[2025-03-11 00:00:05] Production.INFO: next invoice date [2025-03-11 00:00:05] Production.INFO: 2025-04-11 [2025-03-11 00:00:05] Production.INFO: getdaysdiff [2025-03-11 00:00:05] Production.INFO: +31 [2025-03-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,31,31,'RMScheduler',2025-03-11 00:00:05,1,0,,,0) [2025-03-11 00:00:05] Production.INFO: next invoice date [2025-03-11 00:00:05] Production.INFO: 2025-04-11 [2025-03-11 00:00:05] Production.INFO: getdaysdiff [2025-03-11 00:00:05] Production.INFO: +31 [2025-03-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,31,31,'RMScheduler',2025-03-11 00:00:05,1,0,,,0) [2025-03-11 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:00:07 [end_date_ymd] => 2025-03-11 00:00:07 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:00:07' and `end` < '2025-03-11 00: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-11 00:00:19] Production.INFO: count ==571 [2025-03-11 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-10 21:00:07 - End Time 2025-03-11 00:00:07 [2025-03-11 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653034', 'tblTempUsageDetail_20' ) start [2025-03-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653034', 'tblTempUsageDetail_20' ) end [2025-03-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653034', 'tblTempVendorCDR_20' ) start [2025-03-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653034', 'tblTempVendorCDR_20' ) end [2025-03-11 00:00:20] Production.INFO: ProcessCDR(1,14653034,1,1,2) [2025-03-11 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653034', 'tblTempUsageDetail_20' ) start [2025-03-11 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653034', 'tblTempUsageDetail_20' ) end [2025-03-11 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:00:24] Production.INFO: ==1006== Releasing lock... [2025-03-11 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-11 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:01:05 [end_date_ymd] => 2025-03-11 00:01:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:01:05' and `end` < '2025-03-11 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-11 00:01:18] Production.INFO: count ==571 [2025-03-11 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:01:05 - End Time 2025-03-11 00:01:05 [2025-03-11 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653040', 'tblTempUsageDetail_20' ) start [2025-03-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653040', 'tblTempUsageDetail_20' ) end [2025-03-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653040', 'tblTempVendorCDR_20' ) start [2025-03-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653040', 'tblTempVendorCDR_20' ) end [2025-03-11 00:01:18] Production.INFO: ProcessCDR(1,14653040,1,1,2) [2025-03-11 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653040', 'tblTempUsageDetail_20' ) start [2025-03-11 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653040', 'tblTempUsageDetail_20' ) end [2025-03-11 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:01:24] Production.INFO: ==1114== Releasing lock... [2025-03-11 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:01:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-11 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:02:05 [end_date_ymd] => 2025-03-11 00:02:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:02:05' and `end` < '2025-03-11 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-11 00:02:18] Production.INFO: count ==285 [2025-03-11 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:02:05 - End Time 2025-03-11 00:02:05 [2025-03-11 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653045', 'tblTempUsageDetail_20' ) start [2025-03-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653045', 'tblTempUsageDetail_20' ) end [2025-03-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653045', 'tblTempVendorCDR_20' ) start [2025-03-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653045', 'tblTempVendorCDR_20' ) end [2025-03-11 00:02:18] Production.INFO: ProcessCDR(1,14653045,1,1,2) [2025-03-11 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653045', 'tblTempUsageDetail_20' ) start [2025-03-11 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653045', 'tblTempUsageDetail_20' ) end [2025-03-11 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:02:21] Production.INFO: ==1202== Releasing lock... [2025-03-11 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-11 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:03:06 [end_date_ymd] => 2025-03-11 00:03:06 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:03:06' and `end` < '2025-03-11 00: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-11 00:03:24] Production.INFO: count ==280 [2025-03-11 00:03:24] Production.ERROR: pbx CDR StartTime 2025-03-10 21:03:06 - End Time 2025-03-11 00:03:06 [2025-03-11 00:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653050', 'tblTempUsageDetail_20' ) start [2025-03-11 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653050', 'tblTempUsageDetail_20' ) end [2025-03-11 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653050', 'tblTempVendorCDR_20' ) start [2025-03-11 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653050', 'tblTempVendorCDR_20' ) end [2025-03-11 00:03:24] Production.INFO: ProcessCDR(1,14653050,1,1,2) [2025-03-11 00:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653050', 'tblTempUsageDetail_20' ) start [2025-03-11 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653050', 'tblTempUsageDetail_20' ) end [2025-03-11 00:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:03:27] Production.INFO: ==1292== Releasing lock... [2025-03-11 00:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:03:27] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:04:05 [end_date_ymd] => 2025-03-11 00:04:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:04:05' and `end` < '2025-03-11 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-11 00:04:18] Production.INFO: count ==275 [2025-03-11 00:04:19] Production.ERROR: pbx CDR StartTime 2025-03-10 21:04:05 - End Time 2025-03-11 00:04:05 [2025-03-11 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653055', 'tblTempUsageDetail_20' ) start [2025-03-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653055', 'tblTempUsageDetail_20' ) end [2025-03-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653055', 'tblTempVendorCDR_20' ) start [2025-03-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653055', 'tblTempVendorCDR_20' ) end [2025-03-11 00:04:19] Production.INFO: ProcessCDR(1,14653055,1,1,2) [2025-03-11 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653055', 'tblTempUsageDetail_20' ) start [2025-03-11 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653055', 'tblTempUsageDetail_20' ) end [2025-03-11 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:04:22] Production.INFO: ==1389== Releasing lock... [2025-03-11 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:05:05 [end_date_ymd] => 2025-03-11 00:05:05 [RateCDR] => 1 ) [2025-03-11 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:05:05' and `end` < '2025-03-11 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:05:19] Production.INFO: count ==271 [2025-03-11 00:05:19] Production.ERROR: pbx CDR StartTime 2025-03-10 21:05:05 - End Time 2025-03-11 00:05:05 [2025-03-11 00:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653059', 'tblTempUsageDetail_20' ) start [2025-03-11 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653059', 'tblTempUsageDetail_20' ) end [2025-03-11 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653059', 'tblTempVendorCDR_20' ) start [2025-03-11 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653059', 'tblTempVendorCDR_20' ) end [2025-03-11 00:05:19] Production.INFO: ProcessCDR(1,14653059,1,1,2) [2025-03-11 00:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653059', 'tblTempUsageDetail_20' ) start [2025-03-11 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653059', 'tblTempUsageDetail_20' ) end [2025-03-11 00:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:05:24] Production.INFO: ==1548== Releasing lock... [2025-03-11 00:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:05:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:06:06 [end_date_ymd] => 2025-03-11 00:06:06 [RateCDR] => 1 ) [2025-03-11 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:06:06' and `end` < '2025-03-11 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:06:18] Production.INFO: count ==269 [2025-03-11 00:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:06:06 - End Time 2025-03-11 00:06:06 [2025-03-11 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653065', 'tblTempUsageDetail_20' ) start [2025-03-11 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653065', 'tblTempUsageDetail_20' ) end [2025-03-11 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653065', 'tblTempVendorCDR_20' ) start [2025-03-11 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653065', 'tblTempVendorCDR_20' ) end [2025-03-11 00:06:18] Production.INFO: ProcessCDR(1,14653065,1,1,2) [2025-03-11 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653065', 'tblTempUsageDetail_20' ) start [2025-03-11 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653065', 'tblTempUsageDetail_20' ) end [2025-03-11 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:06:22] Production.INFO: ==1651== Releasing lock... [2025-03-11 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:06:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:07:05 [end_date_ymd] => 2025-03-11 00:07:05 [RateCDR] => 1 ) [2025-03-11 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:07:05' and `end` < '2025-03-11 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:07:17] Production.INFO: count ==269 [2025-03-11 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:07:05 - End Time 2025-03-11 00:07:05 [2025-03-11 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653070', 'tblTempUsageDetail_20' ) start [2025-03-11 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653070', 'tblTempUsageDetail_20' ) end [2025-03-11 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653070', 'tblTempVendorCDR_20' ) start [2025-03-11 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653070', 'tblTempVendorCDR_20' ) end [2025-03-11 00:07:17] Production.INFO: ProcessCDR(1,14653070,1,1,2) [2025-03-11 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653070', 'tblTempUsageDetail_20' ) start [2025-03-11 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653070', 'tblTempUsageDetail_20' ) end [2025-03-11 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:07:22] Production.INFO: ==1734== Releasing lock... [2025-03-11 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:08:05 [end_date_ymd] => 2025-03-11 00:08:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:08:05' and `end` < '2025-03-11 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-11 00:08:17] Production.INFO: count ==266 [2025-03-11 00:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:08:05 - End Time 2025-03-11 00:08:05 [2025-03-11 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653075', 'tblTempUsageDetail_20' ) start [2025-03-11 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653075', 'tblTempUsageDetail_20' ) end [2025-03-11 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653075', 'tblTempVendorCDR_20' ) start [2025-03-11 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653075', 'tblTempVendorCDR_20' ) end [2025-03-11 00:08:17] Production.INFO: ProcessCDR(1,14653075,1,1,2) [2025-03-11 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653075', 'tblTempUsageDetail_20' ) start [2025-03-11 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653075', 'tblTempUsageDetail_20' ) end [2025-03-11 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:08:21] Production.INFO: ==1815== Releasing lock... [2025-03-11 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:09:05 [end_date_ymd] => 2025-03-11 00:09:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:09:05' and `end` < '2025-03-11 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-11 00:09:17] Production.INFO: count ==261 [2025-03-11 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:09:05 - End Time 2025-03-11 00:09:05 [2025-03-11 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653080', 'tblTempUsageDetail_20' ) start [2025-03-11 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653080', 'tblTempUsageDetail_20' ) end [2025-03-11 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653080', 'tblTempVendorCDR_20' ) start [2025-03-11 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653080', 'tblTempVendorCDR_20' ) end [2025-03-11 00:09:17] Production.INFO: ProcessCDR(1,14653080,1,1,2) [2025-03-11 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653080', 'tblTempUsageDetail_20' ) start [2025-03-11 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653080', 'tblTempUsageDetail_20' ) end [2025-03-11 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:09:21] Production.INFO: ==1898== Releasing lock... [2025-03-11 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:10:06 [end_date_ymd] => 2025-03-11 00:10:06 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:10:06' and `end` < '2025-03-11 00: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-11 00:10:18] Production.INFO: count ==260 [2025-03-11 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:10:06 - End Time 2025-03-11 00:10:06 [2025-03-11 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653086', 'tblTempUsageDetail_20' ) start [2025-03-11 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653086', 'tblTempUsageDetail_20' ) end [2025-03-11 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653086', 'tblTempVendorCDR_20' ) start [2025-03-11 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653086', 'tblTempVendorCDR_20' ) end [2025-03-11 00:10:18] Production.INFO: ProcessCDR(1,14653086,1,1,2) [2025-03-11 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653086', 'tblTempUsageDetail_20' ) start [2025-03-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653086', 'tblTempUsageDetail_20' ) end [2025-03-11 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:10:22] Production.INFO: ==2003== Releasing lock... [2025-03-11 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:11:05 [end_date_ymd] => 2025-03-11 00:11:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:11:05' and `end` < '2025-03-11 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-11 00:11:17] Production.INFO: count ==260 [2025-03-11 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:11:05 - End Time 2025-03-11 00:11:05 [2025-03-11 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653091', 'tblTempUsageDetail_20' ) start [2025-03-11 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653091', 'tblTempUsageDetail_20' ) end [2025-03-11 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653091', 'tblTempVendorCDR_20' ) start [2025-03-11 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653091', 'tblTempVendorCDR_20' ) end [2025-03-11 00:11:17] Production.INFO: ProcessCDR(1,14653091,1,1,2) [2025-03-11 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653091', 'tblTempUsageDetail_20' ) start [2025-03-11 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653091', 'tblTempUsageDetail_20' ) end [2025-03-11 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:11:21] Production.INFO: ==2086== Releasing lock... [2025-03-11 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:12:05 [end_date_ymd] => 2025-03-11 00:12:05 [RateCDR] => 1 ) [2025-03-11 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:12:05' and `end` < '2025-03-11 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:12:17] Production.INFO: count ==260 [2025-03-11 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:12:05 - End Time 2025-03-11 00:12:05 [2025-03-11 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653096', 'tblTempUsageDetail_20' ) start [2025-03-11 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653096', 'tblTempUsageDetail_20' ) end [2025-03-11 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653096', 'tblTempVendorCDR_20' ) start [2025-03-11 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653096', 'tblTempVendorCDR_20' ) end [2025-03-11 00:12:17] Production.INFO: ProcessCDR(1,14653096,1,1,2) [2025-03-11 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653096', 'tblTempUsageDetail_20' ) start [2025-03-11 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653096', 'tblTempUsageDetail_20' ) end [2025-03-11 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:12:20] Production.INFO: ==2161== Releasing lock... [2025-03-11 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:12:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:13:05 [end_date_ymd] => 2025-03-11 00:13:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:13:05' and `end` < '2025-03-11 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-11 00:13:18] Production.INFO: count ==259 [2025-03-11 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:13:05 - End Time 2025-03-11 00:13:05 [2025-03-11 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653101', 'tblTempUsageDetail_20' ) start [2025-03-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653101', 'tblTempUsageDetail_20' ) end [2025-03-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653101', 'tblTempVendorCDR_20' ) start [2025-03-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653101', 'tblTempVendorCDR_20' ) end [2025-03-11 00:13:18] Production.INFO: ProcessCDR(1,14653101,1,1,2) [2025-03-11 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653101', 'tblTempUsageDetail_20' ) start [2025-03-11 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653101', 'tblTempUsageDetail_20' ) end [2025-03-11 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:13:21] Production.INFO: ==2238== Releasing lock... [2025-03-11 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:14:04 [end_date_ymd] => 2025-03-11 00:14:04 [RateCDR] => 1 ) [2025-03-11 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:14:04' and `end` < '2025-03-11 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:14:16] Production.INFO: count ==256 [2025-03-11 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:14:04 - End Time 2025-03-11 00:14:04 [2025-03-11 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653106', 'tblTempUsageDetail_20' ) start [2025-03-11 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653106', 'tblTempUsageDetail_20' ) end [2025-03-11 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653106', 'tblTempVendorCDR_20' ) start [2025-03-11 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653106', 'tblTempVendorCDR_20' ) end [2025-03-11 00:14:17] Production.INFO: ProcessCDR(1,14653106,1,1,2) [2025-03-11 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653106', 'tblTempUsageDetail_20' ) start [2025-03-11 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653106', 'tblTempUsageDetail_20' ) end [2025-03-11 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:14:20] Production.INFO: ==2316== Releasing lock... [2025-03-11 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:14:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:15:05 [end_date_ymd] => 2025-03-11 00:15:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:15:05' and `end` < '2025-03-11 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-11 00:15:18] Production.INFO: count ==255 [2025-03-11 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:15:05 - End Time 2025-03-11 00:15:05 [2025-03-11 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653111', 'tblTempUsageDetail_20' ) start [2025-03-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653111', 'tblTempUsageDetail_20' ) end [2025-03-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653111', 'tblTempVendorCDR_20' ) start [2025-03-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653111', 'tblTempVendorCDR_20' ) end [2025-03-11 00:15:18] Production.INFO: ProcessCDR(1,14653111,1,1,2) [2025-03-11 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653111', 'tblTempUsageDetail_20' ) start [2025-03-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653111', 'tblTempUsageDetail_20' ) end [2025-03-11 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:15:21] Production.INFO: ==2396== Releasing lock... [2025-03-11 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:16:05 [end_date_ymd] => 2025-03-11 00:16:05 [RateCDR] => 1 ) [2025-03-11 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:16:05' and `end` < '2025-03-11 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:16:17] Production.INFO: count ==257 [2025-03-11 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:16:05 - End Time 2025-03-11 00:16:05 [2025-03-11 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653116', 'tblTempUsageDetail_20' ) start [2025-03-11 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653116', 'tblTempUsageDetail_20' ) end [2025-03-11 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653116', 'tblTempVendorCDR_20' ) start [2025-03-11 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653116', 'tblTempVendorCDR_20' ) end [2025-03-11 00:16:17] Production.INFO: ProcessCDR(1,14653116,1,1,2) [2025-03-11 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653116', 'tblTempUsageDetail_20' ) start [2025-03-11 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653116', 'tblTempUsageDetail_20' ) end [2025-03-11 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:16:22] Production.INFO: ==2473== Releasing lock... [2025-03-11 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:17:05 [end_date_ymd] => 2025-03-11 00:17:05 [RateCDR] => 1 ) [2025-03-11 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:17:05' and `end` < '2025-03-11 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:17:17] Production.INFO: count ==251 [2025-03-11 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:17:05 - End Time 2025-03-11 00:17:05 [2025-03-11 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653121', 'tblTempUsageDetail_20' ) start [2025-03-11 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653121', 'tblTempUsageDetail_20' ) end [2025-03-11 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653121', 'tblTempVendorCDR_20' ) start [2025-03-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653121', 'tblTempVendorCDR_20' ) end [2025-03-11 00:17:18] Production.INFO: ProcessCDR(1,14653121,1,1,2) [2025-03-11 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653121', 'tblTempUsageDetail_20' ) start [2025-03-11 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653121', 'tblTempUsageDetail_20' ) end [2025-03-11 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:17:21] Production.INFO: ==2547== Releasing lock... [2025-03-11 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:18:05 [end_date_ymd] => 2025-03-11 00:18:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:18:05' and `end` < '2025-03-11 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-11 00:18:17] Production.INFO: count ==248 [2025-03-11 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:18:05 - End Time 2025-03-11 00:18:05 [2025-03-11 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653126', 'tblTempUsageDetail_20' ) start [2025-03-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653126', 'tblTempUsageDetail_20' ) end [2025-03-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653126', 'tblTempVendorCDR_20' ) start [2025-03-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653126', 'tblTempVendorCDR_20' ) end [2025-03-11 00:18:17] Production.INFO: ProcessCDR(1,14653126,1,1,2) [2025-03-11 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653126', 'tblTempUsageDetail_20' ) start [2025-03-11 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653126', 'tblTempUsageDetail_20' ) end [2025-03-11 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:18:20] Production.INFO: ==2623== Releasing lock... [2025-03-11 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:18:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:19:05 [end_date_ymd] => 2025-03-11 00:19:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:19:05' and `end` < '2025-03-11 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-11 00:19:18] Production.INFO: count ==244 [2025-03-11 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:19:05 - End Time 2025-03-11 00:19:05 [2025-03-11 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653131', 'tblTempUsageDetail_20' ) start [2025-03-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653131', 'tblTempUsageDetail_20' ) end [2025-03-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653131', 'tblTempVendorCDR_20' ) start [2025-03-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653131', 'tblTempVendorCDR_20' ) end [2025-03-11 00:19:18] Production.INFO: ProcessCDR(1,14653131,1,1,2) [2025-03-11 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653131', 'tblTempUsageDetail_20' ) start [2025-03-11 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653131', 'tblTempUsageDetail_20' ) end [2025-03-11 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:19:21] Production.INFO: ==2708== Releasing lock... [2025-03-11 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:20:07 [end_date_ymd] => 2025-03-11 00:20:07 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:20:07' and `end` < '2025-03-11 00: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-11 00:20:19] Production.INFO: count ==258 [2025-03-11 00:20:20] Production.ERROR: pbx CDR StartTime 2025-03-10 21:20:07 - End Time 2025-03-11 00:20:07 [2025-03-11 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653137', 'tblTempUsageDetail_20' ) start [2025-03-11 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653137', 'tblTempUsageDetail_20' ) end [2025-03-11 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653137', 'tblTempVendorCDR_20' ) start [2025-03-11 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653137', 'tblTempVendorCDR_20' ) end [2025-03-11 00:20:20] Production.INFO: ProcessCDR(1,14653137,1,1,2) [2025-03-11 00:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653137', 'tblTempUsageDetail_20' ) start [2025-03-11 00:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653137', 'tblTempUsageDetail_20' ) end [2025-03-11 00:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:20:25] Production.INFO: ==2811== Releasing lock... [2025-03-11 00:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:20:25] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:21:06 [end_date_ymd] => 2025-03-11 00:21:06 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:21:06' and `end` < '2025-03-11 00: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-11 00:21:18] Production.INFO: count ==260 [2025-03-11 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:21:06 - End Time 2025-03-11 00:21:06 [2025-03-11 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653142', 'tblTempUsageDetail_20' ) start [2025-03-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653142', 'tblTempUsageDetail_20' ) end [2025-03-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653142', 'tblTempVendorCDR_20' ) start [2025-03-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653142', 'tblTempVendorCDR_20' ) end [2025-03-11 00:21:18] Production.INFO: ProcessCDR(1,14653142,1,1,2) [2025-03-11 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653142', 'tblTempUsageDetail_20' ) start [2025-03-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653142', 'tblTempUsageDetail_20' ) end [2025-03-11 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:21:21] Production.INFO: ==2940== Releasing lock... [2025-03-11 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:22:05 [end_date_ymd] => 2025-03-11 00:22:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:22:05' and `end` < '2025-03-11 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-11 00:22:17] Production.INFO: count ==256 [2025-03-11 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:22:05 - End Time 2025-03-11 00:22:05 [2025-03-11 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653147', 'tblTempUsageDetail_20' ) start [2025-03-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653147', 'tblTempUsageDetail_20' ) end [2025-03-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653147', 'tblTempVendorCDR_20' ) start [2025-03-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653147', 'tblTempVendorCDR_20' ) end [2025-03-11 00:22:17] Production.INFO: ProcessCDR(1,14653147,1,1,2) [2025-03-11 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653147', 'tblTempUsageDetail_20' ) start [2025-03-11 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653147', 'tblTempUsageDetail_20' ) end [2025-03-11 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:22:20] Production.INFO: ==3010== Releasing lock... [2025-03-11 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:23:05 [end_date_ymd] => 2025-03-11 00:23:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:23:05' and `end` < '2025-03-11 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-11 00:23:17] Production.INFO: count ==255 [2025-03-11 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:23:05 - End Time 2025-03-11 00:23:05 [2025-03-11 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653152', 'tblTempUsageDetail_20' ) start [2025-03-11 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653152', 'tblTempUsageDetail_20' ) end [2025-03-11 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653152', 'tblTempVendorCDR_20' ) start [2025-03-11 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653152', 'tblTempVendorCDR_20' ) end [2025-03-11 00:23:17] Production.INFO: ProcessCDR(1,14653152,1,1,2) [2025-03-11 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653152', 'tblTempUsageDetail_20' ) start [2025-03-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653152', 'tblTempUsageDetail_20' ) end [2025-03-11 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:23:21] Production.INFO: ==3088== Releasing lock... [2025-03-11 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:24:05 [end_date_ymd] => 2025-03-11 00:24:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:24:05' and `end` < '2025-03-11 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-11 00:24:17] Production.INFO: count ==254 [2025-03-11 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:24:05 - End Time 2025-03-11 00:24:05 [2025-03-11 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653157', 'tblTempUsageDetail_20' ) start [2025-03-11 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653157', 'tblTempUsageDetail_20' ) end [2025-03-11 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653157', 'tblTempVendorCDR_20' ) start [2025-03-11 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653157', 'tblTempVendorCDR_20' ) end [2025-03-11 00:24:17] Production.INFO: ProcessCDR(1,14653157,1,1,2) [2025-03-11 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653157', 'tblTempUsageDetail_20' ) start [2025-03-11 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653157', 'tblTempUsageDetail_20' ) end [2025-03-11 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:24:21] Production.INFO: ==3161== Releasing lock... [2025-03-11 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:25:05 [end_date_ymd] => 2025-03-11 00:25:05 [RateCDR] => 1 ) [2025-03-11 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:25:05' and `end` < '2025-03-11 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:25:17] Production.INFO: count ==245 [2025-03-11 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:25:05 - End Time 2025-03-11 00:25:05 [2025-03-11 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653162', 'tblTempUsageDetail_20' ) start [2025-03-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653162', 'tblTempUsageDetail_20' ) end [2025-03-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653162', 'tblTempVendorCDR_20' ) start [2025-03-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653162', 'tblTempVendorCDR_20' ) end [2025-03-11 00:25:17] Production.INFO: ProcessCDR(1,14653162,1,1,2) [2025-03-11 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653162', 'tblTempUsageDetail_20' ) start [2025-03-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653162', 'tblTempUsageDetail_20' ) end [2025-03-11 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:25:21] Production.INFO: ==3233== Releasing lock... [2025-03-11 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:26:05 [end_date_ymd] => 2025-03-11 00:26:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:26:05' and `end` < '2025-03-11 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-11 00:26:17] Production.INFO: count ==245 [2025-03-11 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:26:05 - End Time 2025-03-11 00:26:05 [2025-03-11 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653167', 'tblTempUsageDetail_20' ) start [2025-03-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653167', 'tblTempUsageDetail_20' ) end [2025-03-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653167', 'tblTempVendorCDR_20' ) start [2025-03-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653167', 'tblTempVendorCDR_20' ) end [2025-03-11 00:26:17] Production.INFO: ProcessCDR(1,14653167,1,1,2) [2025-03-11 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653167', 'tblTempUsageDetail_20' ) start [2025-03-11 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653167', 'tblTempUsageDetail_20' ) end [2025-03-11 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:26:20] Production.INFO: ==3305== Releasing lock... [2025-03-11 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:26:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:27:05 [end_date_ymd] => 2025-03-11 00:27:05 [RateCDR] => 1 ) [2025-03-11 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:27:05' and `end` < '2025-03-11 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:27:17] Production.INFO: count ==244 [2025-03-11 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:27:05 - End Time 2025-03-11 00:27:05 [2025-03-11 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653172', 'tblTempUsageDetail_20' ) start [2025-03-11 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653172', 'tblTempUsageDetail_20' ) end [2025-03-11 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653172', 'tblTempVendorCDR_20' ) start [2025-03-11 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653172', 'tblTempVendorCDR_20' ) end [2025-03-11 00:27:17] Production.INFO: ProcessCDR(1,14653172,1,1,2) [2025-03-11 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653172', 'tblTempUsageDetail_20' ) start [2025-03-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653172', 'tblTempUsageDetail_20' ) end [2025-03-11 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:27:21] Production.INFO: ==3378== Releasing lock... [2025-03-11 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:28:06 [end_date_ymd] => 2025-03-11 00:28:06 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:28:06' and `end` < '2025-03-11 00: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-11 00:28:18] Production.INFO: count ==244 [2025-03-11 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:28:06 - End Time 2025-03-11 00:28:06 [2025-03-11 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653177', 'tblTempUsageDetail_20' ) start [2025-03-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653177', 'tblTempUsageDetail_20' ) end [2025-03-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653177', 'tblTempVendorCDR_20' ) start [2025-03-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653177', 'tblTempVendorCDR_20' ) end [2025-03-11 00:28:18] Production.INFO: ProcessCDR(1,14653177,1,1,2) [2025-03-11 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653177', 'tblTempUsageDetail_20' ) start [2025-03-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653177', 'tblTempUsageDetail_20' ) end [2025-03-11 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:28:21] Production.INFO: ==3451== Releasing lock... [2025-03-11 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:28:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:29:05 [end_date_ymd] => 2025-03-11 00:29:05 [RateCDR] => 1 ) [2025-03-11 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:29:05' and `end` < '2025-03-11 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:29:17] Production.INFO: count ==244 [2025-03-11 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:29:05 - End Time 2025-03-11 00:29:05 [2025-03-11 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653182', 'tblTempUsageDetail_20' ) start [2025-03-11 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653182', 'tblTempUsageDetail_20' ) end [2025-03-11 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653182', 'tblTempVendorCDR_20' ) start [2025-03-11 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653182', 'tblTempVendorCDR_20' ) end [2025-03-11 00:29:17] Production.INFO: ProcessCDR(1,14653182,1,1,2) [2025-03-11 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653182', 'tblTempUsageDetail_20' ) start [2025-03-11 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653182', 'tblTempUsageDetail_20' ) end [2025-03-11 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:29:22] Production.INFO: ==3541== Releasing lock... [2025-03-11 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:29:22] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:30:06 [end_date_ymd] => 2025-03-11 00:30:06 [RateCDR] => 1 ) [2025-03-11 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-10 21:30:06' and `end` < '2025-03-11 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-11 00:30:18] Production.INFO: count ==253 [2025-03-11 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:30:06 - End Time 2025-03-11 00:30:06 [2025-03-11 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653188', 'tblTempUsageDetail_20' ) start [2025-03-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653188', 'tblTempUsageDetail_20' ) end [2025-03-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653188', 'tblTempVendorCDR_20' ) start [2025-03-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653188', 'tblTempVendorCDR_20' ) end [2025-03-11 00:30:18] Production.INFO: ProcessCDR(1,14653188,1,1,2) [2025-03-11 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653188', 'tblTempUsageDetail_20' ) start [2025-03-11 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653188', 'tblTempUsageDetail_20' ) end [2025-03-11 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:30:23] Production.INFO: ==3617== Releasing lock... [2025-03-11 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:30:23] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:31:05 [end_date_ymd] => 2025-03-11 00:31:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:31:05' and `end` < '2025-03-11 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-11 00:31:17] Production.INFO: count ==255 [2025-03-11 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:31:05 - End Time 2025-03-11 00:31:05 [2025-03-11 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653193', 'tblTempUsageDetail_20' ) start [2025-03-11 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653193', 'tblTempUsageDetail_20' ) end [2025-03-11 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653193', 'tblTempVendorCDR_20' ) start [2025-03-11 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653193', 'tblTempVendorCDR_20' ) end [2025-03-11 00:31:17] Production.INFO: ProcessCDR(1,14653193,1,1,2) [2025-03-11 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653193', 'tblTempUsageDetail_20' ) start [2025-03-11 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653193', 'tblTempUsageDetail_20' ) end [2025-03-11 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:31:20] Production.INFO: ==3688== Releasing lock... [2025-03-11 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:31:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:32:05 [end_date_ymd] => 2025-03-11 00:32:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:32:05' and `end` < '2025-03-11 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-11 00:32:17] Production.INFO: count ==255 [2025-03-11 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:32:05 - End Time 2025-03-11 00:32:05 [2025-03-11 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653198', 'tblTempUsageDetail_20' ) start [2025-03-11 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653198', 'tblTempUsageDetail_20' ) end [2025-03-11 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653198', 'tblTempVendorCDR_20' ) start [2025-03-11 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653198', 'tblTempVendorCDR_20' ) end [2025-03-11 00:32:17] Production.INFO: ProcessCDR(1,14653198,1,1,2) [2025-03-11 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653198', 'tblTempUsageDetail_20' ) start [2025-03-11 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653198', 'tblTempUsageDetail_20' ) end [2025-03-11 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:32:21] Production.INFO: ==3764== Releasing lock... [2025-03-11 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:33:05 [end_date_ymd] => 2025-03-11 00:33:05 [RateCDR] => 1 ) [2025-03-11 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:33:05' and `end` < '2025-03-11 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:33:17] Production.INFO: count ==255 [2025-03-11 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:33:05 - End Time 2025-03-11 00:33:05 [2025-03-11 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653203', 'tblTempUsageDetail_20' ) start [2025-03-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653203', 'tblTempUsageDetail_20' ) end [2025-03-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653203', 'tblTempVendorCDR_20' ) start [2025-03-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653203', 'tblTempVendorCDR_20' ) end [2025-03-11 00:33:17] Production.INFO: ProcessCDR(1,14653203,1,1,2) [2025-03-11 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653203', 'tblTempUsageDetail_20' ) start [2025-03-11 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653203', 'tblTempUsageDetail_20' ) end [2025-03-11 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:33:20] Production.INFO: ==3837== Releasing lock... [2025-03-11 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:33:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:34:05 [end_date_ymd] => 2025-03-11 00:34:05 [RateCDR] => 1 ) [2025-03-11 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:34:05' and `end` < '2025-03-11 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:34:17] Production.INFO: count ==256 [2025-03-11 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:34:05 - End Time 2025-03-11 00:34:05 [2025-03-11 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653208', 'tblTempUsageDetail_20' ) start [2025-03-11 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653208', 'tblTempUsageDetail_20' ) end [2025-03-11 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653208', 'tblTempVendorCDR_20' ) start [2025-03-11 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653208', 'tblTempVendorCDR_20' ) end [2025-03-11 00:34:17] Production.INFO: ProcessCDR(1,14653208,1,1,2) [2025-03-11 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653208', 'tblTempUsageDetail_20' ) start [2025-03-11 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653208', 'tblTempUsageDetail_20' ) end [2025-03-11 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:34:22] Production.INFO: ==3913== Releasing lock... [2025-03-11 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:34:22] Production.INFO: 30 MB #Memory Used# [2025-03-11 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:35:05 [end_date_ymd] => 2025-03-11 00:35:05 [RateCDR] => 1 ) [2025-03-11 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:35:05' and `end` < '2025-03-11 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:35:17] Production.INFO: count ==251 [2025-03-11 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:35:05 - End Time 2025-03-11 00:35:05 [2025-03-11 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653213', 'tblTempUsageDetail_20' ) start [2025-03-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653213', 'tblTempUsageDetail_20' ) end [2025-03-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653213', 'tblTempVendorCDR_20' ) start [2025-03-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653213', 'tblTempVendorCDR_20' ) end [2025-03-11 00:35:17] Production.INFO: ProcessCDR(1,14653213,1,1,2) [2025-03-11 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653213', 'tblTempUsageDetail_20' ) start [2025-03-11 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653213', 'tblTempUsageDetail_20' ) end [2025-03-11 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:35:20] Production.INFO: ==3988== Releasing lock... [2025-03-11 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:36:05 [end_date_ymd] => 2025-03-11 00:36:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:36:05' and `end` < '2025-03-11 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-11 00:36:17] Production.INFO: count ==253 [2025-03-11 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:36:05 - End Time 2025-03-11 00:36:05 [2025-03-11 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653218', 'tblTempUsageDetail_20' ) start [2025-03-11 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653218', 'tblTempUsageDetail_20' ) end [2025-03-11 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653218', 'tblTempVendorCDR_20' ) start [2025-03-11 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653218', 'tblTempVendorCDR_20' ) end [2025-03-11 00:36:17] Production.INFO: ProcessCDR(1,14653218,1,1,2) [2025-03-11 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653218', 'tblTempUsageDetail_20' ) start [2025-03-11 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653218', 'tblTempUsageDetail_20' ) end [2025-03-11 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:36:21] Production.INFO: ==4105== Releasing lock... [2025-03-11 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:37:05 [end_date_ymd] => 2025-03-11 00:37:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:37:05' and `end` < '2025-03-11 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-11 00:37:17] Production.INFO: count ==253 [2025-03-11 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:37:05 - End Time 2025-03-11 00:37:05 [2025-03-11 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653223', 'tblTempUsageDetail_20' ) start [2025-03-11 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653223', 'tblTempUsageDetail_20' ) end [2025-03-11 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653223', 'tblTempVendorCDR_20' ) start [2025-03-11 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653223', 'tblTempVendorCDR_20' ) end [2025-03-11 00:37:17] Production.INFO: ProcessCDR(1,14653223,1,1,2) [2025-03-11 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653223', 'tblTempUsageDetail_20' ) start [2025-03-11 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653223', 'tblTempUsageDetail_20' ) end [2025-03-11 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:37:20] Production.INFO: ==4175== Releasing lock... [2025-03-11 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:37:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:38:05 [end_date_ymd] => 2025-03-11 00:38:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:38:05' and `end` < '2025-03-11 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-11 00:38:17] Production.INFO: count ==252 [2025-03-11 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:38:05 - End Time 2025-03-11 00:38:05 [2025-03-11 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653228', 'tblTempUsageDetail_20' ) start [2025-03-11 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653228', 'tblTempUsageDetail_20' ) end [2025-03-11 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653228', 'tblTempVendorCDR_20' ) start [2025-03-11 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653228', 'tblTempVendorCDR_20' ) end [2025-03-11 00:38:17] Production.INFO: ProcessCDR(1,14653228,1,1,2) [2025-03-11 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653228', 'tblTempUsageDetail_20' ) start [2025-03-11 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653228', 'tblTempUsageDetail_20' ) end [2025-03-11 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:38:20] Production.INFO: ==4246== Releasing lock... [2025-03-11 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:38:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:39:05 [end_date_ymd] => 2025-03-11 00:39:05 [RateCDR] => 1 ) [2025-03-11 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:39:05' and `end` < '2025-03-11 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:39:17] Production.INFO: count ==251 [2025-03-11 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:39:05 - End Time 2025-03-11 00:39:05 [2025-03-11 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653233', 'tblTempUsageDetail_20' ) start [2025-03-11 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653233', 'tblTempUsageDetail_20' ) end [2025-03-11 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653233', 'tblTempVendorCDR_20' ) start [2025-03-11 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653233', 'tblTempVendorCDR_20' ) end [2025-03-11 00:39:17] Production.INFO: ProcessCDR(1,14653233,1,1,2) [2025-03-11 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653233', 'tblTempUsageDetail_20' ) start [2025-03-11 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653233', 'tblTempUsageDetail_20' ) end [2025-03-11 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:39:20] Production.INFO: ==4316== Releasing lock... [2025-03-11 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:39:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:40:06 [end_date_ymd] => 2025-03-11 00:40:06 [RateCDR] => 1 ) [2025-03-11 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-10 21:40:06' and `end` < '2025-03-11 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-11 00:40:18] Production.INFO: count ==258 [2025-03-11 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:40:06 - End Time 2025-03-11 00:40:06 [2025-03-11 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653239', 'tblTempUsageDetail_20' ) start [2025-03-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653239', 'tblTempUsageDetail_20' ) end [2025-03-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653239', 'tblTempVendorCDR_20' ) start [2025-03-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653239', 'tblTempVendorCDR_20' ) end [2025-03-11 00:40:18] Production.INFO: ProcessCDR(1,14653239,1,1,2) [2025-03-11 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653239', 'tblTempUsageDetail_20' ) start [2025-03-11 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653239', 'tblTempUsageDetail_20' ) end [2025-03-11 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:40:21] Production.INFO: ==4389== Releasing lock... [2025-03-11 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:41:05 [end_date_ymd] => 2025-03-11 00:41:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:41:05' and `end` < '2025-03-11 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-11 00:41:17] Production.INFO: count ==257 [2025-03-11 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:41:05 - End Time 2025-03-11 00:41:05 [2025-03-11 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653244', 'tblTempUsageDetail_20' ) start [2025-03-11 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653244', 'tblTempUsageDetail_20' ) end [2025-03-11 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653244', 'tblTempVendorCDR_20' ) start [2025-03-11 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653244', 'tblTempVendorCDR_20' ) end [2025-03-11 00:41:17] Production.INFO: ProcessCDR(1,14653244,1,1,2) [2025-03-11 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653244', 'tblTempUsageDetail_20' ) start [2025-03-11 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653244', 'tblTempUsageDetail_20' ) end [2025-03-11 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:41:21] Production.INFO: ==4464== Releasing lock... [2025-03-11 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:41:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:42:05 [end_date_ymd] => 2025-03-11 00:42:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:42:05' and `end` < '2025-03-11 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-11 00:42:17] Production.INFO: count ==260 [2025-03-11 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:42:05 - End Time 2025-03-11 00:42:05 [2025-03-11 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653249', 'tblTempUsageDetail_20' ) start [2025-03-11 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653249', 'tblTempUsageDetail_20' ) end [2025-03-11 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653249', 'tblTempVendorCDR_20' ) start [2025-03-11 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653249', 'tblTempVendorCDR_20' ) end [2025-03-11 00:42:17] Production.INFO: ProcessCDR(1,14653249,1,1,2) [2025-03-11 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653249', 'tblTempUsageDetail_20' ) start [2025-03-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653249', 'tblTempUsageDetail_20' ) end [2025-03-11 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:42:21] Production.INFO: ==4535== Releasing lock... [2025-03-11 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:43:06 [end_date_ymd] => 2025-03-11 00:43:06 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:43:06' and `end` < '2025-03-11 00: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-11 00:43:18] Production.INFO: count ==259 [2025-03-11 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:43:06 - End Time 2025-03-11 00:43:06 [2025-03-11 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653254', 'tblTempUsageDetail_20' ) start [2025-03-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653254', 'tblTempUsageDetail_20' ) end [2025-03-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653254', 'tblTempVendorCDR_20' ) start [2025-03-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653254', 'tblTempVendorCDR_20' ) end [2025-03-11 00:43:18] Production.INFO: ProcessCDR(1,14653254,1,1,2) [2025-03-11 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653254', 'tblTempUsageDetail_20' ) start [2025-03-11 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653254', 'tblTempUsageDetail_20' ) end [2025-03-11 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:43:21] Production.INFO: ==4611== Releasing lock... [2025-03-11 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:44:05 [end_date_ymd] => 2025-03-11 00:44:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:44:05' and `end` < '2025-03-11 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-11 00:44:17] Production.INFO: count ==259 [2025-03-11 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:44:05 - End Time 2025-03-11 00:44:05 [2025-03-11 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653259', 'tblTempUsageDetail_20' ) start [2025-03-11 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653259', 'tblTempUsageDetail_20' ) end [2025-03-11 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653259', 'tblTempVendorCDR_20' ) start [2025-03-11 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653259', 'tblTempVendorCDR_20' ) end [2025-03-11 00:44:17] Production.INFO: ProcessCDR(1,14653259,1,1,2) [2025-03-11 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653259', 'tblTempUsageDetail_20' ) start [2025-03-11 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653259', 'tblTempUsageDetail_20' ) end [2025-03-11 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:44:20] Production.INFO: ==4686== Releasing lock... [2025-03-11 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:45:05 [end_date_ymd] => 2025-03-11 00:45:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:45:05' and `end` < '2025-03-11 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-11 00:45:17] Production.INFO: count ==255 [2025-03-11 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:45:05 - End Time 2025-03-11 00:45:05 [2025-03-11 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653264', 'tblTempUsageDetail_20' ) start [2025-03-11 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653264', 'tblTempUsageDetail_20' ) end [2025-03-11 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653264', 'tblTempVendorCDR_20' ) start [2025-03-11 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653264', 'tblTempVendorCDR_20' ) end [2025-03-11 00:45:17] Production.INFO: ProcessCDR(1,14653264,1,1,2) [2025-03-11 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653264', 'tblTempUsageDetail_20' ) start [2025-03-11 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653264', 'tblTempUsageDetail_20' ) end [2025-03-11 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:45:21] Production.INFO: ==4759== Releasing lock... [2025-03-11 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:46:04 [end_date_ymd] => 2025-03-11 00:46:04 [RateCDR] => 1 ) [2025-03-11 00:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:46:04' and `end` < '2025-03-11 00:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:46:16] Production.INFO: count ==258 [2025-03-11 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:46:04 - End Time 2025-03-11 00:46:04 [2025-03-11 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653269', 'tblTempUsageDetail_20' ) start [2025-03-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653269', 'tblTempUsageDetail_20' ) end [2025-03-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653269', 'tblTempVendorCDR_20' ) start [2025-03-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653269', 'tblTempVendorCDR_20' ) end [2025-03-11 00:46:17] Production.INFO: ProcessCDR(1,14653269,1,1,2) [2025-03-11 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653269', 'tblTempUsageDetail_20' ) start [2025-03-11 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653269', 'tblTempUsageDetail_20' ) end [2025-03-11 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:46:20] Production.INFO: ==4836== Releasing lock... [2025-03-11 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:46:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:47:05 [end_date_ymd] => 2025-03-11 00:47:05 [RateCDR] => 1 ) [2025-03-11 00: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-10 21:47:05' and `end` < '2025-03-11 00: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-11 00:47:17] Production.INFO: count ==260 [2025-03-11 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:47:05 - End Time 2025-03-11 00:47:05 [2025-03-11 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653274', 'tblTempUsageDetail_20' ) start [2025-03-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653274', 'tblTempUsageDetail_20' ) end [2025-03-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653274', 'tblTempVendorCDR_20' ) start [2025-03-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653274', 'tblTempVendorCDR_20' ) end [2025-03-11 00:47:18] Production.INFO: ProcessCDR(1,14653274,1,1,2) [2025-03-11 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653274', 'tblTempUsageDetail_20' ) start [2025-03-11 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653274', 'tblTempUsageDetail_20' ) end [2025-03-11 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:47:21] Production.INFO: ==4910== Releasing lock... [2025-03-11 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:48:05 [end_date_ymd] => 2025-03-11 00:48:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:48:05' and `end` < '2025-03-11 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-11 00:48:17] Production.INFO: count ==258 [2025-03-11 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:48:05 - End Time 2025-03-11 00:48:05 [2025-03-11 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653279', 'tblTempUsageDetail_20' ) start [2025-03-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653279', 'tblTempUsageDetail_20' ) end [2025-03-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653279', 'tblTempVendorCDR_20' ) start [2025-03-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653279', 'tblTempVendorCDR_20' ) end [2025-03-11 00:48:17] Production.INFO: ProcessCDR(1,14653279,1,1,2) [2025-03-11 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653279', 'tblTempUsageDetail_20' ) start [2025-03-11 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653279', 'tblTempUsageDetail_20' ) end [2025-03-11 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:48:22] Production.INFO: ==4985== Releasing lock... [2025-03-11 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-11 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:49:05 [end_date_ymd] => 2025-03-11 00:49:05 [RateCDR] => 1 ) [2025-03-11 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:49:05' and `end` < '2025-03-11 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:49:17] Production.INFO: count ==258 [2025-03-11 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:49:05 - End Time 2025-03-11 00:49:05 [2025-03-11 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653284', 'tblTempUsageDetail_20' ) start [2025-03-11 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653284', 'tblTempUsageDetail_20' ) end [2025-03-11 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653284', 'tblTempVendorCDR_20' ) start [2025-03-11 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653284', 'tblTempVendorCDR_20' ) end [2025-03-11 00:49:17] Production.INFO: ProcessCDR(1,14653284,1,1,2) [2025-03-11 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653284', 'tblTempUsageDetail_20' ) start [2025-03-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653284', 'tblTempUsageDetail_20' ) end [2025-03-11 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:49:21] Production.INFO: ==5057== Releasing lock... [2025-03-11 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:49:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:50:06 [end_date_ymd] => 2025-03-11 00:50:06 [RateCDR] => 1 ) [2025-03-11 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:50:06' and `end` < '2025-03-11 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:50:18] Production.INFO: count ==254 [2025-03-11 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:50:06 - End Time 2025-03-11 00:50:06 [2025-03-11 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653290', 'tblTempUsageDetail_20' ) start [2025-03-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653290', 'tblTempUsageDetail_20' ) end [2025-03-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653290', 'tblTempVendorCDR_20' ) start [2025-03-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653290', 'tblTempVendorCDR_20' ) end [2025-03-11 00:50:18] Production.INFO: ProcessCDR(1,14653290,1,1,2) [2025-03-11 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653290', 'tblTempUsageDetail_20' ) start [2025-03-11 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653290', 'tblTempUsageDetail_20' ) end [2025-03-11 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:50:21] Production.INFO: ==5131== Releasing lock... [2025-03-11 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:51:06 [end_date_ymd] => 2025-03-11 00:51:06 [RateCDR] => 1 ) [2025-03-11 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-10 21:51:06' and `end` < '2025-03-11 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-11 00:51:18] Production.INFO: count ==254 [2025-03-11 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:51:06 - End Time 2025-03-11 00:51:06 [2025-03-11 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653295', 'tblTempUsageDetail_20' ) start [2025-03-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653295', 'tblTempUsageDetail_20' ) end [2025-03-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653295', 'tblTempVendorCDR_20' ) start [2025-03-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653295', 'tblTempVendorCDR_20' ) end [2025-03-11 00:51:18] Production.INFO: ProcessCDR(1,14653295,1,1,2) [2025-03-11 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653295', 'tblTempUsageDetail_20' ) start [2025-03-11 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653295', 'tblTempUsageDetail_20' ) end [2025-03-11 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:51:23] Production.INFO: ==5222== Releasing lock... [2025-03-11 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:52:05 [end_date_ymd] => 2025-03-11 00:52:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:52:05' and `end` < '2025-03-11 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-11 00:52:17] Production.INFO: count ==255 [2025-03-11 00:52:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:52:05 - End Time 2025-03-11 00:52:05 [2025-03-11 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653300', 'tblTempUsageDetail_20' ) start [2025-03-11 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653300', 'tblTempUsageDetail_20' ) end [2025-03-11 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653300', 'tblTempVendorCDR_20' ) start [2025-03-11 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653300', 'tblTempVendorCDR_20' ) end [2025-03-11 00:52:17] Production.INFO: ProcessCDR(1,14653300,1,1,2) [2025-03-11 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653300', 'tblTempUsageDetail_20' ) start [2025-03-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653300', 'tblTempUsageDetail_20' ) end [2025-03-11 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:52:22] Production.INFO: ==5318== Releasing lock... [2025-03-11 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:53:05 [end_date_ymd] => 2025-03-11 00:53:05 [RateCDR] => 1 ) [2025-03-11 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:53:05' and `end` < '2025-03-11 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:53:17] Production.INFO: count ==254 [2025-03-11 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:53:05 - End Time 2025-03-11 00:53:05 [2025-03-11 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653305', 'tblTempUsageDetail_20' ) start [2025-03-11 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653305', 'tblTempUsageDetail_20' ) end [2025-03-11 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653305', 'tblTempVendorCDR_20' ) start [2025-03-11 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653305', 'tblTempVendorCDR_20' ) end [2025-03-11 00:53:17] Production.INFO: ProcessCDR(1,14653305,1,1,2) [2025-03-11 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653305', 'tblTempUsageDetail_20' ) start [2025-03-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653305', 'tblTempUsageDetail_20' ) end [2025-03-11 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:53:21] Production.INFO: ==5391== Releasing lock... [2025-03-11 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:54:05 [end_date_ymd] => 2025-03-11 00:54:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:54:05' and `end` < '2025-03-11 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-11 00:54:17] Production.INFO: count ==253 [2025-03-11 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:54:05 - End Time 2025-03-11 00:54:05 [2025-03-11 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653310', 'tblTempUsageDetail_20' ) start [2025-03-11 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653310', 'tblTempUsageDetail_20' ) end [2025-03-11 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653310', 'tblTempVendorCDR_20' ) start [2025-03-11 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653310', 'tblTempVendorCDR_20' ) end [2025-03-11 00:54:17] Production.INFO: ProcessCDR(1,14653310,1,1,2) [2025-03-11 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653310', 'tblTempUsageDetail_20' ) start [2025-03-11 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653310', 'tblTempUsageDetail_20' ) end [2025-03-11 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:54:20] Production.INFO: ==5463== Releasing lock... [2025-03-11 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:54:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:55:05 [end_date_ymd] => 2025-03-11 00:55:05 [RateCDR] => 1 ) [2025-03-11 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:55:05' and `end` < '2025-03-11 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:55:17] Production.INFO: count ==255 [2025-03-11 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:55:05 - End Time 2025-03-11 00:55:05 [2025-03-11 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653315', 'tblTempUsageDetail_20' ) start [2025-03-11 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653315', 'tblTempUsageDetail_20' ) end [2025-03-11 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653315', 'tblTempVendorCDR_20' ) start [2025-03-11 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653315', 'tblTempVendorCDR_20' ) end [2025-03-11 00:55:17] Production.INFO: ProcessCDR(1,14653315,1,1,2) [2025-03-11 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653315', 'tblTempUsageDetail_20' ) start [2025-03-11 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653315', 'tblTempUsageDetail_20' ) end [2025-03-11 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:55:20] Production.INFO: ==5533== Releasing lock... [2025-03-11 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:55:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:56:05 [end_date_ymd] => 2025-03-11 00:56:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:56:05' and `end` < '2025-03-11 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-11 00:56:17] Production.INFO: count ==255 [2025-03-11 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:56:05 - End Time 2025-03-11 00:56:05 [2025-03-11 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653320', 'tblTempUsageDetail_20' ) start [2025-03-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653320', 'tblTempUsageDetail_20' ) end [2025-03-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653320', 'tblTempVendorCDR_20' ) start [2025-03-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653320', 'tblTempVendorCDR_20' ) end [2025-03-11 00:56:17] Production.INFO: ProcessCDR(1,14653320,1,1,2) [2025-03-11 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653320', 'tblTempUsageDetail_20' ) start [2025-03-11 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653320', 'tblTempUsageDetail_20' ) end [2025-03-11 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:56:20] Production.INFO: ==5605== Releasing lock... [2025-03-11 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:56:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:57:05 [end_date_ymd] => 2025-03-11 00:57:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:57:05' and `end` < '2025-03-11 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-11 00:57:17] Production.INFO: count ==255 [2025-03-11 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:57:05 - End Time 2025-03-11 00:57:05 [2025-03-11 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653325', 'tblTempUsageDetail_20' ) start [2025-03-11 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653325', 'tblTempUsageDetail_20' ) end [2025-03-11 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653325', 'tblTempVendorCDR_20' ) start [2025-03-11 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653325', 'tblTempVendorCDR_20' ) end [2025-03-11 00:57:17] Production.INFO: ProcessCDR(1,14653325,1,1,2) [2025-03-11 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653325', 'tblTempUsageDetail_20' ) start [2025-03-11 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653325', 'tblTempUsageDetail_20' ) end [2025-03-11 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:57:20] Production.INFO: ==5674== Releasing lock... [2025-03-11 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:57:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:58:05 [end_date_ymd] => 2025-03-11 00:58:05 [RateCDR] => 1 ) [2025-03-11 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 21:58:05' and `end` < '2025-03-11 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 00:58:17] Production.INFO: count ==254 [2025-03-11 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 21:58:05 - End Time 2025-03-11 00:58:05 [2025-03-11 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653330', 'tblTempUsageDetail_20' ) start [2025-03-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653330', 'tblTempUsageDetail_20' ) end [2025-03-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653330', 'tblTempVendorCDR_20' ) start [2025-03-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653330', 'tblTempVendorCDR_20' ) end [2025-03-11 00:58:17] Production.INFO: ProcessCDR(1,14653330,1,1,2) [2025-03-11 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653330', 'tblTempUsageDetail_20' ) start [2025-03-11 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653330', 'tblTempUsageDetail_20' ) end [2025-03-11 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:58:20] Production.INFO: ==5744== Releasing lock... [2025-03-11 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:58:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 21:59:05 [end_date_ymd] => 2025-03-11 00:59:05 [RateCDR] => 1 ) [2025-03-11 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-10 21:59:05' and `end` < '2025-03-11 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-11 00:59:18] Production.INFO: count ==254 [2025-03-11 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 21:59:05 - End Time 2025-03-11 00:59:05 [2025-03-11 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653335', 'tblTempUsageDetail_20' ) start [2025-03-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653335', 'tblTempUsageDetail_20' ) end [2025-03-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653335', 'tblTempVendorCDR_20' ) start [2025-03-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653335', 'tblTempVendorCDR_20' ) end [2025-03-11 00:59:18] Production.INFO: ProcessCDR(1,14653335,1,1,2) [2025-03-11 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653335', 'tblTempUsageDetail_20' ) start [2025-03-11 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653335', 'tblTempUsageDetail_20' ) end [2025-03-11 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 00:59:21] Production.INFO: ==5817== Releasing lock... [2025-03-11 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 00:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:00:06 [end_date_ymd] => 2025-03-11 01:00:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:00:06' and `end` < '2025-03-11 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-11 01:00:18] Production.INFO: count ==254 [2025-03-11 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:00:06 - End Time 2025-03-11 01:00:06 [2025-03-11 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653341', 'tblTempUsageDetail_20' ) start [2025-03-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653341', 'tblTempUsageDetail_20' ) end [2025-03-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653341', 'tblTempVendorCDR_20' ) start [2025-03-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653341', 'tblTempVendorCDR_20' ) end [2025-03-11 01:00:18] Production.INFO: ProcessCDR(1,14653341,1,1,2) [2025-03-11 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653341', 'tblTempUsageDetail_20' ) start [2025-03-11 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653341', 'tblTempUsageDetail_20' ) end [2025-03-11 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:00:21] Production.INFO: ==5895== Releasing lock... [2025-03-11 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:00:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:01:05 [end_date_ymd] => 2025-03-11 01:01:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:01:05' and `end` < '2025-03-11 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-11 01:01:17] Production.INFO: count ==258 [2025-03-11 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:01:05 - End Time 2025-03-11 01:01:05 [2025-03-11 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653346', 'tblTempUsageDetail_20' ) start [2025-03-11 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653346', 'tblTempUsageDetail_20' ) end [2025-03-11 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653346', 'tblTempVendorCDR_20' ) start [2025-03-11 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653346', 'tblTempVendorCDR_20' ) end [2025-03-11 01:01:17] Production.INFO: ProcessCDR(1,14653346,1,1,2) [2025-03-11 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653346', 'tblTempUsageDetail_20' ) start [2025-03-11 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653346', 'tblTempUsageDetail_20' ) end [2025-03-11 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:01:21] Production.INFO: ==5981== Releasing lock... [2025-03-11 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:02:05 [end_date_ymd] => 2025-03-11 01:02:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:02:05' and `end` < '2025-03-11 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-11 01:02:17] Production.INFO: count ==250 [2025-03-11 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:02:05 - End Time 2025-03-11 01:02:05 [2025-03-11 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653351', 'tblTempUsageDetail_20' ) start [2025-03-11 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653351', 'tblTempUsageDetail_20' ) end [2025-03-11 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653351', 'tblTempVendorCDR_20' ) start [2025-03-11 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653351', 'tblTempVendorCDR_20' ) end [2025-03-11 01:02:17] Production.INFO: ProcessCDR(1,14653351,1,1,2) [2025-03-11 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653351', 'tblTempUsageDetail_20' ) start [2025-03-11 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653351', 'tblTempUsageDetail_20' ) end [2025-03-11 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:02:20] Production.INFO: ==6052== Releasing lock... [2025-03-11 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:02:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:03:05 [end_date_ymd] => 2025-03-11 01:03:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:03:05' and `end` < '2025-03-11 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-11 01:03:17] Production.INFO: count ==249 [2025-03-11 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:03:05 - End Time 2025-03-11 01:03:05 [2025-03-11 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653356', 'tblTempUsageDetail_20' ) start [2025-03-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653356', 'tblTempUsageDetail_20' ) end [2025-03-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653356', 'tblTempVendorCDR_20' ) start [2025-03-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653356', 'tblTempVendorCDR_20' ) end [2025-03-11 01:03:18] Production.INFO: ProcessCDR(1,14653356,1,1,2) [2025-03-11 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653356', 'tblTempUsageDetail_20' ) start [2025-03-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653356', 'tblTempUsageDetail_20' ) end [2025-03-11 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:03:21] Production.INFO: ==6125== Releasing lock... [2025-03-11 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:04:04 [end_date_ymd] => 2025-03-11 01:04:04 [RateCDR] => 1 ) [2025-03-11 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:04:04' and `end` < '2025-03-11 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:04:17] Production.INFO: count ==246 [2025-03-11 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:04:04 - End Time 2025-03-11 01:04:04 [2025-03-11 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653361', 'tblTempUsageDetail_20' ) start [2025-03-11 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653361', 'tblTempUsageDetail_20' ) end [2025-03-11 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653361', 'tblTempVendorCDR_20' ) start [2025-03-11 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653361', 'tblTempVendorCDR_20' ) end [2025-03-11 01:04:17] Production.INFO: ProcessCDR(1,14653361,1,1,2) [2025-03-11 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653361', 'tblTempUsageDetail_20' ) start [2025-03-11 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653361', 'tblTempUsageDetail_20' ) end [2025-03-11 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:04:20] Production.INFO: ==6199== Releasing lock... [2025-03-11 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:04:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:05:05 [end_date_ymd] => 2025-03-11 01:05:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:05:05' and `end` < '2025-03-11 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-11 01:05:17] Production.INFO: count ==242 [2025-03-11 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:05:05 - End Time 2025-03-11 01:05:05 [2025-03-11 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653366', 'tblTempUsageDetail_20' ) start [2025-03-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653366', 'tblTempUsageDetail_20' ) end [2025-03-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653366', 'tblTempVendorCDR_20' ) start [2025-03-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653366', 'tblTempVendorCDR_20' ) end [2025-03-11 01:05:18] Production.INFO: ProcessCDR(1,14653366,1,1,2) [2025-03-11 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653366', 'tblTempUsageDetail_20' ) start [2025-03-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653366', 'tblTempUsageDetail_20' ) end [2025-03-11 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:05:21] Production.INFO: ==6272== Releasing lock... [2025-03-11 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:06:04 [end_date_ymd] => 2025-03-11 01:06:04 [RateCDR] => 1 ) [2025-03-11 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:06:04' and `end` < '2025-03-11 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:06:17] Production.INFO: count ==236 [2025-03-11 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:06:04 - End Time 2025-03-11 01:06:04 [2025-03-11 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653371', 'tblTempUsageDetail_20' ) start [2025-03-11 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653371', 'tblTempUsageDetail_20' ) end [2025-03-11 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653371', 'tblTempVendorCDR_20' ) start [2025-03-11 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653371', 'tblTempVendorCDR_20' ) end [2025-03-11 01:06:17] Production.INFO: ProcessCDR(1,14653371,1,1,2) [2025-03-11 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653371', 'tblTempUsageDetail_20' ) start [2025-03-11 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653371', 'tblTempUsageDetail_20' ) end [2025-03-11 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:06:20] Production.INFO: ==6340== Releasing lock... [2025-03-11 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:07:05 [end_date_ymd] => 2025-03-11 01:07:05 [RateCDR] => 1 ) [2025-03-11 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:07:05' and `end` < '2025-03-11 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:07:17] Production.INFO: count ==231 [2025-03-11 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:07:05 - End Time 2025-03-11 01:07:05 [2025-03-11 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653376', 'tblTempUsageDetail_20' ) start [2025-03-11 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653376', 'tblTempUsageDetail_20' ) end [2025-03-11 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653376', 'tblTempVendorCDR_20' ) start [2025-03-11 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653376', 'tblTempVendorCDR_20' ) end [2025-03-11 01:07:17] Production.INFO: ProcessCDR(1,14653376,1,1,2) [2025-03-11 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653376', 'tblTempUsageDetail_20' ) start [2025-03-11 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653376', 'tblTempUsageDetail_20' ) end [2025-03-11 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:07:20] Production.INFO: ==6455== Releasing lock... [2025-03-11 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:07:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:08:05 [end_date_ymd] => 2025-03-11 01:08:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:08:05' and `end` < '2025-03-11 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-11 01:08:17] Production.INFO: count ==230 [2025-03-11 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:08:05 - End Time 2025-03-11 01:08:05 [2025-03-11 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653381', 'tblTempUsageDetail_20' ) start [2025-03-11 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653381', 'tblTempUsageDetail_20' ) end [2025-03-11 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653381', 'tblTempVendorCDR_20' ) start [2025-03-11 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653381', 'tblTempVendorCDR_20' ) end [2025-03-11 01:08:17] Production.INFO: ProcessCDR(1,14653381,1,1,2) [2025-03-11 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653381', 'tblTempUsageDetail_20' ) start [2025-03-11 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653381', 'tblTempUsageDetail_20' ) end [2025-03-11 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:08:21] Production.INFO: ==6536== Releasing lock... [2025-03-11 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:09:05 [end_date_ymd] => 2025-03-11 01:09:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:09:05' and `end` < '2025-03-11 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-11 01:09:17] Production.INFO: count ==225 [2025-03-11 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:09:05 - End Time 2025-03-11 01:09:05 [2025-03-11 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653386', 'tblTempUsageDetail_20' ) start [2025-03-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653386', 'tblTempUsageDetail_20' ) end [2025-03-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653386', 'tblTempVendorCDR_20' ) start [2025-03-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653386', 'tblTempVendorCDR_20' ) end [2025-03-11 01:09:17] Production.INFO: ProcessCDR(1,14653386,1,1,2) [2025-03-11 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653386', 'tblTempUsageDetail_20' ) start [2025-03-11 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653386', 'tblTempUsageDetail_20' ) end [2025-03-11 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:09:20] Production.INFO: ==6608== Releasing lock... [2025-03-11 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:10:06 [end_date_ymd] => 2025-03-11 01:10:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:10:06' and `end` < '2025-03-11 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-11 01:10:18] Production.INFO: count ==228 [2025-03-11 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:10:06 - End Time 2025-03-11 01:10:06 [2025-03-11 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653392', 'tblTempUsageDetail_20' ) start [2025-03-11 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653392', 'tblTempUsageDetail_20' ) end [2025-03-11 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653392', 'tblTempVendorCDR_20' ) start [2025-03-11 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653392', 'tblTempVendorCDR_20' ) end [2025-03-11 01:10:18] Production.INFO: ProcessCDR(1,14653392,1,1,2) [2025-03-11 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653392', 'tblTempUsageDetail_20' ) start [2025-03-11 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653392', 'tblTempUsageDetail_20' ) end [2025-03-11 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:10:21] Production.INFO: ==6685== Releasing lock... [2025-03-11 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:10:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:11:05 [end_date_ymd] => 2025-03-11 01:11:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:11:05' and `end` < '2025-03-11 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-11 01:11:17] Production.INFO: count ==228 [2025-03-11 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:11:05 - End Time 2025-03-11 01:11:05 [2025-03-11 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653397', 'tblTempUsageDetail_20' ) start [2025-03-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653397', 'tblTempUsageDetail_20' ) end [2025-03-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653397', 'tblTempVendorCDR_20' ) start [2025-03-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653397', 'tblTempVendorCDR_20' ) end [2025-03-11 01:11:17] Production.INFO: ProcessCDR(1,14653397,1,1,2) [2025-03-11 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653397', 'tblTempUsageDetail_20' ) start [2025-03-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653397', 'tblTempUsageDetail_20' ) end [2025-03-11 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:11:21] Production.INFO: ==6764== Releasing lock... [2025-03-11 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:11:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:12:06 [end_date_ymd] => 2025-03-11 01:12:06 [RateCDR] => 1 ) [2025-03-11 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:12:06' and `end` < '2025-03-11 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:12:18] Production.INFO: count ==227 [2025-03-11 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:12:06 - End Time 2025-03-11 01:12:06 [2025-03-11 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653402', 'tblTempUsageDetail_20' ) start [2025-03-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653402', 'tblTempUsageDetail_20' ) end [2025-03-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653402', 'tblTempVendorCDR_20' ) start [2025-03-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653402', 'tblTempVendorCDR_20' ) end [2025-03-11 01:12:18] Production.INFO: ProcessCDR(1,14653402,1,1,2) [2025-03-11 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653402', 'tblTempUsageDetail_20' ) start [2025-03-11 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653402', 'tblTempUsageDetail_20' ) end [2025-03-11 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:12:21] Production.INFO: ==6848== Releasing lock... [2025-03-11 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:13:05 [end_date_ymd] => 2025-03-11 01:13:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:13:05' and `end` < '2025-03-11 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-11 01:13:17] Production.INFO: count ==227 [2025-03-11 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:13:05 - End Time 2025-03-11 01:13:05 [2025-03-11 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653407', 'tblTempUsageDetail_20' ) start [2025-03-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653407', 'tblTempUsageDetail_20' ) end [2025-03-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653407', 'tblTempVendorCDR_20' ) start [2025-03-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653407', 'tblTempVendorCDR_20' ) end [2025-03-11 01:13:18] Production.INFO: ProcessCDR(1,14653407,1,1,2) [2025-03-11 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653407', 'tblTempUsageDetail_20' ) start [2025-03-11 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653407', 'tblTempUsageDetail_20' ) end [2025-03-11 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:13:21] Production.INFO: ==6923== Releasing lock... [2025-03-11 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:14:05 [end_date_ymd] => 2025-03-11 01:14:05 [RateCDR] => 1 ) [2025-03-11 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:14:05' and `end` < '2025-03-11 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:14:17] Production.INFO: count ==229 [2025-03-11 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:14:05 - End Time 2025-03-11 01:14:05 [2025-03-11 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653412', 'tblTempUsageDetail_20' ) start [2025-03-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653412', 'tblTempUsageDetail_20' ) end [2025-03-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653412', 'tblTempVendorCDR_20' ) start [2025-03-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653412', 'tblTempVendorCDR_20' ) end [2025-03-11 01:14:18] Production.INFO: ProcessCDR(1,14653412,1,1,2) [2025-03-11 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653412', 'tblTempUsageDetail_20' ) start [2025-03-11 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653412', 'tblTempUsageDetail_20' ) end [2025-03-11 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:14:22] Production.INFO: ==6999== Releasing lock... [2025-03-11 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:15:05 [end_date_ymd] => 2025-03-11 01:15:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:15:05' and `end` < '2025-03-11 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-11 01:15:17] Production.INFO: count ==229 [2025-03-11 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:15:05 - End Time 2025-03-11 01:15:05 [2025-03-11 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653417', 'tblTempUsageDetail_20' ) start [2025-03-11 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653417', 'tblTempUsageDetail_20' ) end [2025-03-11 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653417', 'tblTempVendorCDR_20' ) start [2025-03-11 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653417', 'tblTempVendorCDR_20' ) end [2025-03-11 01:15:17] Production.INFO: ProcessCDR(1,14653417,1,1,2) [2025-03-11 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653417', 'tblTempUsageDetail_20' ) start [2025-03-11 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653417', 'tblTempUsageDetail_20' ) end [2025-03-11 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:15:20] Production.INFO: ==7075== Releasing lock... [2025-03-11 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:16:06 [end_date_ymd] => 2025-03-11 01:16:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:16:06' and `end` < '2025-03-11 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-11 01:16:18] Production.INFO: count ==227 [2025-03-11 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:16:06 - End Time 2025-03-11 01:16:06 [2025-03-11 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653422', 'tblTempUsageDetail_20' ) start [2025-03-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653422', 'tblTempUsageDetail_20' ) end [2025-03-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653422', 'tblTempVendorCDR_20' ) start [2025-03-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653422', 'tblTempVendorCDR_20' ) end [2025-03-11 01:16:18] Production.INFO: ProcessCDR(1,14653422,1,1,2) [2025-03-11 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653422', 'tblTempUsageDetail_20' ) start [2025-03-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653422', 'tblTempUsageDetail_20' ) end [2025-03-11 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:16:21] Production.INFO: ==7151== Releasing lock... [2025-03-11 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:17:05 [end_date_ymd] => 2025-03-11 01:17:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:17:05' and `end` < '2025-03-11 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-11 01:17:17] Production.INFO: count ==227 [2025-03-11 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:17:05 - End Time 2025-03-11 01:17:05 [2025-03-11 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653427', 'tblTempUsageDetail_20' ) start [2025-03-11 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653427', 'tblTempUsageDetail_20' ) end [2025-03-11 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653427', 'tblTempVendorCDR_20' ) start [2025-03-11 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653427', 'tblTempVendorCDR_20' ) end [2025-03-11 01:17:17] Production.INFO: ProcessCDR(1,14653427,1,1,2) [2025-03-11 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653427', 'tblTempUsageDetail_20' ) start [2025-03-11 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653427', 'tblTempUsageDetail_20' ) end [2025-03-11 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:17:20] Production.INFO: ==7228== Releasing lock... [2025-03-11 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:18:06 [end_date_ymd] => 2025-03-11 01:18:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:18:06' and `end` < '2025-03-11 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-11 01:18:18] Production.INFO: count ==227 [2025-03-11 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:18:06 - End Time 2025-03-11 01:18:06 [2025-03-11 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653432', 'tblTempUsageDetail_20' ) start [2025-03-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653432', 'tblTempUsageDetail_20' ) end [2025-03-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653432', 'tblTempVendorCDR_20' ) start [2025-03-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653432', 'tblTempVendorCDR_20' ) end [2025-03-11 01:18:18] Production.INFO: ProcessCDR(1,14653432,1,1,2) [2025-03-11 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653432', 'tblTempUsageDetail_20' ) start [2025-03-11 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653432', 'tblTempUsageDetail_20' ) end [2025-03-11 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:18:21] Production.INFO: ==7316== Releasing lock... [2025-03-11 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:19:05 [end_date_ymd] => 2025-03-11 01:19:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:19:05' and `end` < '2025-03-11 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-11 01:19:18] Production.INFO: count ==227 [2025-03-11 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:19:05 - End Time 2025-03-11 01:19:05 [2025-03-11 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653437', 'tblTempUsageDetail_20' ) start [2025-03-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653437', 'tblTempUsageDetail_20' ) end [2025-03-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653437', 'tblTempVendorCDR_20' ) start [2025-03-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653437', 'tblTempVendorCDR_20' ) end [2025-03-11 01:19:18] Production.INFO: ProcessCDR(1,14653437,1,1,2) [2025-03-11 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653437', 'tblTempUsageDetail_20' ) start [2025-03-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653437', 'tblTempUsageDetail_20' ) end [2025-03-11 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:19:21] Production.INFO: ==7394== Releasing lock... [2025-03-11 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:20:06 [end_date_ymd] => 2025-03-11 01:20:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:20:06' and `end` < '2025-03-11 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-11 01:20:18] Production.INFO: count ==235 [2025-03-11 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:20:06 - End Time 2025-03-11 01:20:06 [2025-03-11 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653443', 'tblTempUsageDetail_20' ) start [2025-03-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653443', 'tblTempUsageDetail_20' ) end [2025-03-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653443', 'tblTempVendorCDR_20' ) start [2025-03-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653443', 'tblTempVendorCDR_20' ) end [2025-03-11 01:20:18] Production.INFO: ProcessCDR(1,14653443,1,1,2) [2025-03-11 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653443', 'tblTempUsageDetail_20' ) start [2025-03-11 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653443', 'tblTempUsageDetail_20' ) end [2025-03-11 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:20:21] Production.INFO: ==7479== Releasing lock... [2025-03-11 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:21:05 [end_date_ymd] => 2025-03-11 01:21:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:21:05' and `end` < '2025-03-11 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-11 01:21:17] Production.INFO: count ==237 [2025-03-11 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:21:05 - End Time 2025-03-11 01:21:05 [2025-03-11 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653448', 'tblTempUsageDetail_20' ) start [2025-03-11 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653448', 'tblTempUsageDetail_20' ) end [2025-03-11 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653448', 'tblTempVendorCDR_20' ) start [2025-03-11 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653448', 'tblTempVendorCDR_20' ) end [2025-03-11 01:21:17] Production.INFO: ProcessCDR(1,14653448,1,1,2) [2025-03-11 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653448', 'tblTempUsageDetail_20' ) start [2025-03-11 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653448', 'tblTempUsageDetail_20' ) end [2025-03-11 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:21:20] Production.INFO: ==7556== Releasing lock... [2025-03-11 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:22:06 [end_date_ymd] => 2025-03-11 01:22:06 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:22:06' and `end` < '2025-03-11 01: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-11 01:22:18] Production.INFO: count ==237 [2025-03-11 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:22:06 - End Time 2025-03-11 01:22:06 [2025-03-11 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653453', 'tblTempUsageDetail_20' ) start [2025-03-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653453', 'tblTempUsageDetail_20' ) end [2025-03-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653453', 'tblTempVendorCDR_20' ) start [2025-03-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653453', 'tblTempVendorCDR_20' ) end [2025-03-11 01:22:18] Production.INFO: ProcessCDR(1,14653453,1,1,2) [2025-03-11 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653453', 'tblTempUsageDetail_20' ) start [2025-03-11 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653453', 'tblTempUsageDetail_20' ) end [2025-03-11 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:22:23] Production.INFO: ==7651== Releasing lock... [2025-03-11 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:23:05 [end_date_ymd] => 2025-03-11 01:23:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:23:05' and `end` < '2025-03-11 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-11 01:23:17] Production.INFO: count ==234 [2025-03-11 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:23:05 - End Time 2025-03-11 01:23:05 [2025-03-11 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653458', 'tblTempUsageDetail_20' ) start [2025-03-11 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653458', 'tblTempUsageDetail_20' ) end [2025-03-11 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653458', 'tblTempVendorCDR_20' ) start [2025-03-11 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653458', 'tblTempVendorCDR_20' ) end [2025-03-11 01:23:17] Production.INFO: ProcessCDR(1,14653458,1,1,2) [2025-03-11 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653458', 'tblTempUsageDetail_20' ) start [2025-03-11 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653458', 'tblTempUsageDetail_20' ) end [2025-03-11 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:23:20] Production.INFO: ==7751== Releasing lock... [2025-03-11 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:24:06 [end_date_ymd] => 2025-03-11 01:24:06 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:24:06' and `end` < '2025-03-11 01: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-11 01:24:18] Production.INFO: count ==232 [2025-03-11 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:24:06 - End Time 2025-03-11 01:24:06 [2025-03-11 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653463', 'tblTempUsageDetail_20' ) start [2025-03-11 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653463', 'tblTempUsageDetail_20' ) end [2025-03-11 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653463', 'tblTempVendorCDR_20' ) start [2025-03-11 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653463', 'tblTempVendorCDR_20' ) end [2025-03-11 01:24:18] Production.INFO: ProcessCDR(1,14653463,1,1,2) [2025-03-11 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653463', 'tblTempUsageDetail_20' ) start [2025-03-11 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653463', 'tblTempUsageDetail_20' ) end [2025-03-11 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:24:21] Production.INFO: ==7829== Releasing lock... [2025-03-11 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:25:05 [end_date_ymd] => 2025-03-11 01:25:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:25:05' and `end` < '2025-03-11 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-11 01:25:17] Production.INFO: count ==229 [2025-03-11 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:25:05 - End Time 2025-03-11 01:25:05 [2025-03-11 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653468', 'tblTempUsageDetail_20' ) start [2025-03-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653468', 'tblTempUsageDetail_20' ) end [2025-03-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653468', 'tblTempVendorCDR_20' ) start [2025-03-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653468', 'tblTempVendorCDR_20' ) end [2025-03-11 01:25:17] Production.INFO: ProcessCDR(1,14653468,1,1,2) [2025-03-11 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653468', 'tblTempUsageDetail_20' ) start [2025-03-11 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653468', 'tblTempUsageDetail_20' ) end [2025-03-11 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:25:20] Production.INFO: ==7905== Releasing lock... [2025-03-11 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:26:05 [end_date_ymd] => 2025-03-11 01:26:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:26:05' and `end` < '2025-03-11 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-11 01:26:18] Production.INFO: count ==232 [2025-03-11 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:26:05 - End Time 2025-03-11 01:26:05 [2025-03-11 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653473', 'tblTempUsageDetail_20' ) start [2025-03-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653473', 'tblTempUsageDetail_20' ) end [2025-03-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653473', 'tblTempVendorCDR_20' ) start [2025-03-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653473', 'tblTempVendorCDR_20' ) end [2025-03-11 01:26:18] Production.INFO: ProcessCDR(1,14653473,1,1,2) [2025-03-11 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653473', 'tblTempUsageDetail_20' ) start [2025-03-11 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653473', 'tblTempUsageDetail_20' ) end [2025-03-11 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:26:21] Production.INFO: ==7989== Releasing lock... [2025-03-11 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:27:06 [end_date_ymd] => 2025-03-11 01:27:06 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:27:06' and `end` < '2025-03-11 01: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-11 01:27:18] Production.INFO: count ==231 [2025-03-11 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:27:06 - End Time 2025-03-11 01:27:06 [2025-03-11 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653478', 'tblTempUsageDetail_20' ) start [2025-03-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653478', 'tblTempUsageDetail_20' ) end [2025-03-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653478', 'tblTempVendorCDR_20' ) start [2025-03-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653478', 'tblTempVendorCDR_20' ) end [2025-03-11 01:27:18] Production.INFO: ProcessCDR(1,14653478,1,1,2) [2025-03-11 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653478', 'tblTempUsageDetail_20' ) start [2025-03-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653478', 'tblTempUsageDetail_20' ) end [2025-03-11 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:27:21] Production.INFO: ==8073== Releasing lock... [2025-03-11 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:28:05 [end_date_ymd] => 2025-03-11 01:28:05 [RateCDR] => 1 ) [2025-03-11 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:28:05' and `end` < '2025-03-11 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:28:17] Production.INFO: count ==230 [2025-03-11 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:28:05 - End Time 2025-03-11 01:28:05 [2025-03-11 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653483', 'tblTempUsageDetail_20' ) start [2025-03-11 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653483', 'tblTempUsageDetail_20' ) end [2025-03-11 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653483', 'tblTempVendorCDR_20' ) start [2025-03-11 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653483', 'tblTempVendorCDR_20' ) end [2025-03-11 01:28:17] Production.INFO: ProcessCDR(1,14653483,1,1,2) [2025-03-11 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653483', 'tblTempUsageDetail_20' ) start [2025-03-11 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653483', 'tblTempUsageDetail_20' ) end [2025-03-11 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:28:21] Production.INFO: ==8149== Releasing lock... [2025-03-11 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:29:04 [end_date_ymd] => 2025-03-11 01:29:04 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:29:04' and `end` < '2025-03-11 01: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-11 01:29:16] Production.INFO: count ==230 [2025-03-11 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:29:04 - End Time 2025-03-11 01:29:04 [2025-03-11 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653488', 'tblTempUsageDetail_20' ) start [2025-03-11 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653488', 'tblTempUsageDetail_20' ) end [2025-03-11 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653488', 'tblTempVendorCDR_20' ) start [2025-03-11 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653488', 'tblTempVendorCDR_20' ) end [2025-03-11 01:29:17] Production.INFO: ProcessCDR(1,14653488,1,1,2) [2025-03-11 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653488', 'tblTempUsageDetail_20' ) start [2025-03-11 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653488', 'tblTempUsageDetail_20' ) end [2025-03-11 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:29:20] Production.INFO: ==8225== Releasing lock... [2025-03-11 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:30:06 [end_date_ymd] => 2025-03-11 01:30:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:30:06' and `end` < '2025-03-11 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-11 01:30:18] Production.INFO: count ==238 [2025-03-11 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:30:06 - End Time 2025-03-11 01:30:06 [2025-03-11 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653494', 'tblTempUsageDetail_20' ) start [2025-03-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653494', 'tblTempUsageDetail_20' ) end [2025-03-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653494', 'tblTempVendorCDR_20' ) start [2025-03-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653494', 'tblTempVendorCDR_20' ) end [2025-03-11 01:30:18] Production.INFO: ProcessCDR(1,14653494,1,1,2) [2025-03-11 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653494', 'tblTempUsageDetail_20' ) start [2025-03-11 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653494', 'tblTempUsageDetail_20' ) end [2025-03-11 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:30:21] Production.INFO: ==8307== Releasing lock... [2025-03-11 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:31:06 [end_date_ymd] => 2025-03-11 01:31:06 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:31:06' and `end` < '2025-03-11 01: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-11 01:31:18] Production.INFO: count ==240 [2025-03-11 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:31:06 - End Time 2025-03-11 01:31:06 [2025-03-11 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653499', 'tblTempUsageDetail_20' ) start [2025-03-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653499', 'tblTempUsageDetail_20' ) end [2025-03-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653499', 'tblTempVendorCDR_20' ) start [2025-03-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653499', 'tblTempVendorCDR_20' ) end [2025-03-11 01:31:18] Production.INFO: ProcessCDR(1,14653499,1,1,2) [2025-03-11 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653499', 'tblTempUsageDetail_20' ) start [2025-03-11 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653499', 'tblTempUsageDetail_20' ) end [2025-03-11 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:31:23] Production.INFO: ==8389== Releasing lock... [2025-03-11 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:31:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:32:05 [end_date_ymd] => 2025-03-11 01:32:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:32:05' and `end` < '2025-03-11 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-11 01:32:17] Production.INFO: count ==237 [2025-03-11 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:32:05 - End Time 2025-03-11 01:32:05 [2025-03-11 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653504', 'tblTempUsageDetail_20' ) start [2025-03-11 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653504', 'tblTempUsageDetail_20' ) end [2025-03-11 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653504', 'tblTempVendorCDR_20' ) start [2025-03-11 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653504', 'tblTempVendorCDR_20' ) end [2025-03-11 01:32:17] Production.INFO: ProcessCDR(1,14653504,1,1,2) [2025-03-11 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653504', 'tblTempUsageDetail_20' ) start [2025-03-11 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653504', 'tblTempUsageDetail_20' ) end [2025-03-11 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:32:21] Production.INFO: ==8471== Releasing lock... [2025-03-11 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:33:04 [end_date_ymd] => 2025-03-11 01:33:04 [RateCDR] => 1 ) [2025-03-11 01:33: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-10 22:33:04' and `end` < '2025-03-11 01:33: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-11 01:33:17] Production.INFO: count ==236 [2025-03-11 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:33:04 - End Time 2025-03-11 01:33:04 [2025-03-11 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653509', 'tblTempUsageDetail_20' ) start [2025-03-11 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653509', 'tblTempUsageDetail_20' ) end [2025-03-11 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653509', 'tblTempVendorCDR_20' ) start [2025-03-11 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653509', 'tblTempVendorCDR_20' ) end [2025-03-11 01:33:17] Production.INFO: ProcessCDR(1,14653509,1,1,2) [2025-03-11 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653509', 'tblTempUsageDetail_20' ) start [2025-03-11 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653509', 'tblTempUsageDetail_20' ) end [2025-03-11 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:33:20] Production.INFO: ==8551== Releasing lock... [2025-03-11 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:34:06 [end_date_ymd] => 2025-03-11 01:34:06 [RateCDR] => 1 ) [2025-03-11 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:34:06' and `end` < '2025-03-11 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:34:19] Production.INFO: count ==238 [2025-03-11 01:34:19] Production.ERROR: pbx CDR StartTime 2025-03-10 22:34:06 - End Time 2025-03-11 01:34:06 [2025-03-11 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653514', 'tblTempUsageDetail_20' ) start [2025-03-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653514', 'tblTempUsageDetail_20' ) end [2025-03-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653514', 'tblTempVendorCDR_20' ) start [2025-03-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653514', 'tblTempVendorCDR_20' ) end [2025-03-11 01:34:19] Production.INFO: ProcessCDR(1,14653514,1,1,2) [2025-03-11 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653514', 'tblTempUsageDetail_20' ) start [2025-03-11 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653514', 'tblTempUsageDetail_20' ) end [2025-03-11 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:34:22] Production.INFO: ==8626== Releasing lock... [2025-03-11 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:34:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:35:05 [end_date_ymd] => 2025-03-11 01:35:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:35:05' and `end` < '2025-03-11 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-11 01:35:17] Production.INFO: count ==238 [2025-03-11 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:35:05 - End Time 2025-03-11 01:35:05 [2025-03-11 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653519', 'tblTempUsageDetail_20' ) start [2025-03-11 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653519', 'tblTempUsageDetail_20' ) end [2025-03-11 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653519', 'tblTempVendorCDR_20' ) start [2025-03-11 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653519', 'tblTempVendorCDR_20' ) end [2025-03-11 01:35:17] Production.INFO: ProcessCDR(1,14653519,1,1,2) [2025-03-11 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653519', 'tblTempUsageDetail_20' ) start [2025-03-11 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653519', 'tblTempUsageDetail_20' ) end [2025-03-11 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:35:20] Production.INFO: ==8703== Releasing lock... [2025-03-11 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:36:05 [end_date_ymd] => 2025-03-11 01:36:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:36:05' and `end` < '2025-03-11 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-11 01:36:17] Production.INFO: count ==242 [2025-03-11 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:36:05 - End Time 2025-03-11 01:36:05 [2025-03-11 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653524', 'tblTempUsageDetail_20' ) start [2025-03-11 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653524', 'tblTempUsageDetail_20' ) end [2025-03-11 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653524', 'tblTempVendorCDR_20' ) start [2025-03-11 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653524', 'tblTempVendorCDR_20' ) end [2025-03-11 01:36:17] Production.INFO: ProcessCDR(1,14653524,1,1,2) [2025-03-11 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653524', 'tblTempUsageDetail_20' ) start [2025-03-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653524', 'tblTempUsageDetail_20' ) end [2025-03-11 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:36:21] Production.INFO: ==8782== Releasing lock... [2025-03-11 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:37:05 [end_date_ymd] => 2025-03-11 01:37:05 [RateCDR] => 1 ) [2025-03-11 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:37:05' and `end` < '2025-03-11 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:37:17] Production.INFO: count ==242 [2025-03-11 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:37:05 - End Time 2025-03-11 01:37:05 [2025-03-11 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653529', 'tblTempUsageDetail_20' ) start [2025-03-11 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653529', 'tblTempUsageDetail_20' ) end [2025-03-11 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653529', 'tblTempVendorCDR_20' ) start [2025-03-11 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653529', 'tblTempVendorCDR_20' ) end [2025-03-11 01:37:17] Production.INFO: ProcessCDR(1,14653529,1,1,2) [2025-03-11 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653529', 'tblTempUsageDetail_20' ) start [2025-03-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653529', 'tblTempUsageDetail_20' ) end [2025-03-11 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:37:21] Production.INFO: ==8856== Releasing lock... [2025-03-11 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:38:06 [end_date_ymd] => 2025-03-11 01:38:06 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:38:06' and `end` < '2025-03-11 01: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-11 01:38:18] Production.INFO: count ==242 [2025-03-11 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:38:06 - End Time 2025-03-11 01:38:06 [2025-03-11 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653534', 'tblTempUsageDetail_20' ) start [2025-03-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653534', 'tblTempUsageDetail_20' ) end [2025-03-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653534', 'tblTempVendorCDR_20' ) start [2025-03-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653534', 'tblTempVendorCDR_20' ) end [2025-03-11 01:38:18] Production.INFO: ProcessCDR(1,14653534,1,1,2) [2025-03-11 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653534', 'tblTempUsageDetail_20' ) start [2025-03-11 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653534', 'tblTempUsageDetail_20' ) end [2025-03-11 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:38:21] Production.INFO: ==8978== Releasing lock... [2025-03-11 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:39:05 [end_date_ymd] => 2025-03-11 01:39:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:39:05' and `end` < '2025-03-11 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-11 01:39:17] Production.INFO: count ==242 [2025-03-11 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:39:05 - End Time 2025-03-11 01:39:05 [2025-03-11 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653539', 'tblTempUsageDetail_20' ) start [2025-03-11 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653539', 'tblTempUsageDetail_20' ) end [2025-03-11 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653539', 'tblTempVendorCDR_20' ) start [2025-03-11 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653539', 'tblTempVendorCDR_20' ) end [2025-03-11 01:39:17] Production.INFO: ProcessCDR(1,14653539,1,1,2) [2025-03-11 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653539', 'tblTempUsageDetail_20' ) start [2025-03-11 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653539', 'tblTempUsageDetail_20' ) end [2025-03-11 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:39:20] Production.INFO: ==9056== Releasing lock... [2025-03-11 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:40:06 [end_date_ymd] => 2025-03-11 01:40:06 [RateCDR] => 1 ) [2025-03-11 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-10 22:40:06' and `end` < '2025-03-11 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-11 01:40:18] Production.INFO: count ==240 [2025-03-11 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:40:06 - End Time 2025-03-11 01:40:06 [2025-03-11 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653544', 'tblTempUsageDetail_20' ) start [2025-03-11 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653544', 'tblTempUsageDetail_20' ) end [2025-03-11 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653544', 'tblTempVendorCDR_20' ) start [2025-03-11 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653544', 'tblTempVendorCDR_20' ) end [2025-03-11 01:40:18] Production.INFO: ProcessCDR(1,14653544,1,1,2) [2025-03-11 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653544', 'tblTempUsageDetail_20' ) start [2025-03-11 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653544', 'tblTempUsageDetail_20' ) end [2025-03-11 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:40:21] Production.INFO: ==9137== Releasing lock... [2025-03-11 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:41:05 [end_date_ymd] => 2025-03-11 01:41:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:41:05' and `end` < '2025-03-11 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-11 01:41:17] Production.INFO: count ==239 [2025-03-11 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:41:05 - End Time 2025-03-11 01:41:05 [2025-03-11 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653550', 'tblTempUsageDetail_20' ) start [2025-03-11 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653550', 'tblTempUsageDetail_20' ) end [2025-03-11 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653550', 'tblTempVendorCDR_20' ) start [2025-03-11 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653550', 'tblTempVendorCDR_20' ) end [2025-03-11 01:41:17] Production.INFO: ProcessCDR(1,14653550,1,1,2) [2025-03-11 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653550', 'tblTempUsageDetail_20' ) start [2025-03-11 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653550', 'tblTempUsageDetail_20' ) end [2025-03-11 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:41:20] Production.INFO: ==9218== Releasing lock... [2025-03-11 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:41:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:42:05 [end_date_ymd] => 2025-03-11 01:42:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:42:05' and `end` < '2025-03-11 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-11 01:42:17] Production.INFO: count ==238 [2025-03-11 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:42:05 - End Time 2025-03-11 01:42:05 [2025-03-11 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653555', 'tblTempUsageDetail_20' ) start [2025-03-11 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653555', 'tblTempUsageDetail_20' ) end [2025-03-11 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653555', 'tblTempVendorCDR_20' ) start [2025-03-11 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653555', 'tblTempVendorCDR_20' ) end [2025-03-11 01:42:17] Production.INFO: ProcessCDR(1,14653555,1,1,2) [2025-03-11 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653555', 'tblTempUsageDetail_20' ) start [2025-03-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653555', 'tblTempUsageDetail_20' ) end [2025-03-11 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:42:21] Production.INFO: ==9298== Releasing lock... [2025-03-11 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:43:05 [end_date_ymd] => 2025-03-11 01:43:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:43:05' and `end` < '2025-03-11 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-11 01:43:17] Production.INFO: count ==237 [2025-03-11 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:43:05 - End Time 2025-03-11 01:43:05 [2025-03-11 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653560', 'tblTempUsageDetail_20' ) start [2025-03-11 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653560', 'tblTempUsageDetail_20' ) end [2025-03-11 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653560', 'tblTempVendorCDR_20' ) start [2025-03-11 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653560', 'tblTempVendorCDR_20' ) end [2025-03-11 01:43:17] Production.INFO: ProcessCDR(1,14653560,1,1,2) [2025-03-11 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653560', 'tblTempUsageDetail_20' ) start [2025-03-11 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653560', 'tblTempUsageDetail_20' ) end [2025-03-11 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:43:20] Production.INFO: ==9373== Releasing lock... [2025-03-11 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:44:05 [end_date_ymd] => 2025-03-11 01:44:05 [RateCDR] => 1 ) [2025-03-11 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:44:05' and `end` < '2025-03-11 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:44:17] Production.INFO: count ==237 [2025-03-11 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:44:05 - End Time 2025-03-11 01:44:05 [2025-03-11 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653565', 'tblTempUsageDetail_20' ) start [2025-03-11 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653565', 'tblTempUsageDetail_20' ) end [2025-03-11 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653565', 'tblTempVendorCDR_20' ) start [2025-03-11 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653565', 'tblTempVendorCDR_20' ) end [2025-03-11 01:44:17] Production.INFO: ProcessCDR(1,14653565,1,1,2) [2025-03-11 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653565', 'tblTempUsageDetail_20' ) start [2025-03-11 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653565', 'tblTempUsageDetail_20' ) end [2025-03-11 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:44:21] Production.INFO: ==9446== Releasing lock... [2025-03-11 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:45:05 [end_date_ymd] => 2025-03-11 01:45:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:45:05' and `end` < '2025-03-11 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-11 01:45:17] Production.INFO: count ==235 [2025-03-11 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:45:05 - End Time 2025-03-11 01:45:05 [2025-03-11 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653570', 'tblTempUsageDetail_20' ) start [2025-03-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653570', 'tblTempUsageDetail_20' ) end [2025-03-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653570', 'tblTempVendorCDR_20' ) start [2025-03-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653570', 'tblTempVendorCDR_20' ) end [2025-03-11 01:45:17] Production.INFO: ProcessCDR(1,14653570,1,1,2) [2025-03-11 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653570', 'tblTempUsageDetail_20' ) start [2025-03-11 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653570', 'tblTempUsageDetail_20' ) end [2025-03-11 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:45:21] Production.INFO: ==9527== Releasing lock... [2025-03-11 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:46:05 [end_date_ymd] => 2025-03-11 01:46:05 [RateCDR] => 1 ) [2025-03-11 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:46:05' and `end` < '2025-03-11 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:46:18] Production.INFO: count ==248 [2025-03-11 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:46:05 - End Time 2025-03-11 01:46:05 [2025-03-11 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653575', 'tblTempUsageDetail_20' ) start [2025-03-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653575', 'tblTempUsageDetail_20' ) end [2025-03-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653575', 'tblTempVendorCDR_20' ) start [2025-03-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653575', 'tblTempVendorCDR_20' ) end [2025-03-11 01:46:18] Production.INFO: ProcessCDR(1,14653575,1,1,2) [2025-03-11 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653575', 'tblTempUsageDetail_20' ) start [2025-03-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653575', 'tblTempUsageDetail_20' ) end [2025-03-11 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:46:21] Production.INFO: ==9600== Releasing lock... [2025-03-11 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:47:06 [end_date_ymd] => 2025-03-11 01:47:06 [RateCDR] => 1 ) [2025-03-11 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:47:06' and `end` < '2025-03-11 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:47:18] Production.INFO: count ==248 [2025-03-11 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:47:06 - End Time 2025-03-11 01:47:06 [2025-03-11 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653580', 'tblTempUsageDetail_20' ) start [2025-03-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653580', 'tblTempUsageDetail_20' ) end [2025-03-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653580', 'tblTempVendorCDR_20' ) start [2025-03-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653580', 'tblTempVendorCDR_20' ) end [2025-03-11 01:47:18] Production.INFO: ProcessCDR(1,14653580,1,1,2) [2025-03-11 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653580', 'tblTempUsageDetail_20' ) start [2025-03-11 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653580', 'tblTempUsageDetail_20' ) end [2025-03-11 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:47:21] Production.INFO: ==9679== Releasing lock... [2025-03-11 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:48:05 [end_date_ymd] => 2025-03-11 01:48:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:48:05' and `end` < '2025-03-11 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-11 01:48:17] Production.INFO: count ==271 [2025-03-11 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:48:05 - End Time 2025-03-11 01:48:05 [2025-03-11 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653585', 'tblTempUsageDetail_20' ) start [2025-03-11 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653585', 'tblTempUsageDetail_20' ) end [2025-03-11 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653585', 'tblTempVendorCDR_20' ) start [2025-03-11 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653585', 'tblTempVendorCDR_20' ) end [2025-03-11 01:48:17] Production.INFO: ProcessCDR(1,14653585,1,1,2) [2025-03-11 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653585', 'tblTempUsageDetail_20' ) start [2025-03-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653585', 'tblTempUsageDetail_20' ) end [2025-03-11 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:48:21] Production.INFO: ==9754== Releasing lock... [2025-03-11 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:49:06 [end_date_ymd] => 2025-03-11 01:49:06 [RateCDR] => 1 ) [2025-03-11 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:49:06' and `end` < '2025-03-11 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:49:18] Production.INFO: count ==271 [2025-03-11 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:49:06 - End Time 2025-03-11 01:49:06 [2025-03-11 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653590', 'tblTempUsageDetail_20' ) start [2025-03-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653590', 'tblTempUsageDetail_20' ) end [2025-03-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653590', 'tblTempVendorCDR_20' ) start [2025-03-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653590', 'tblTempVendorCDR_20' ) end [2025-03-11 01:49:18] Production.INFO: ProcessCDR(1,14653590,1,1,2) [2025-03-11 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653590', 'tblTempUsageDetail_20' ) start [2025-03-11 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653590', 'tblTempUsageDetail_20' ) end [2025-03-11 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:49:21] Production.INFO: ==9828== Releasing lock... [2025-03-11 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:50:05 [end_date_ymd] => 2025-03-11 01:50:05 [RateCDR] => 1 ) [2025-03-11 01: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-10 22:50:05' and `end` < '2025-03-11 01: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-11 01:50:17] Production.INFO: count ==271 [2025-03-11 01:50:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:50:05 - End Time 2025-03-11 01:50:05 [2025-03-11 01:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653596', 'tblTempUsageDetail_20' ) start [2025-03-11 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653596', 'tblTempUsageDetail_20' ) end [2025-03-11 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653596', 'tblTempVendorCDR_20' ) start [2025-03-11 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653596', 'tblTempVendorCDR_20' ) end [2025-03-11 01:50:17] Production.INFO: ProcessCDR(1,14653596,1,1,2) [2025-03-11 01:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653596', 'tblTempUsageDetail_20' ) start [2025-03-11 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653596', 'tblTempUsageDetail_20' ) end [2025-03-11 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:50:21] Production.INFO: ==9904== Releasing lock... [2025-03-11 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:51:05 [end_date_ymd] => 2025-03-11 01:51:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:51:05' and `end` < '2025-03-11 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:51:19] Production.INFO: count ==269 [2025-03-11 01:51:19] Production.ERROR: pbx CDR StartTime 2025-03-10 22:51:05 - End Time 2025-03-11 01:51:05 [2025-03-11 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653601', 'tblTempUsageDetail_20' ) start [2025-03-11 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653601', 'tblTempUsageDetail_20' ) end [2025-03-11 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653601', 'tblTempVendorCDR_20' ) start [2025-03-11 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653601', 'tblTempVendorCDR_20' ) end [2025-03-11 01:51:19] Production.INFO: ProcessCDR(1,14653601,1,1,2) [2025-03-11 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653601', 'tblTempUsageDetail_20' ) start [2025-03-11 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653601', 'tblTempUsageDetail_20' ) end [2025-03-11 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:51:23] Production.INFO: ==9982== Releasing lock... [2025-03-11 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:52:05 [end_date_ymd] => 2025-03-11 01:52:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:52:05' and `end` < '2025-03-11 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-11 01:52:17] Production.INFO: count ==268 [2025-03-11 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:52:05 - End Time 2025-03-11 01:52:05 [2025-03-11 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653606', 'tblTempUsageDetail_20' ) start [2025-03-11 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653606', 'tblTempUsageDetail_20' ) end [2025-03-11 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653606', 'tblTempVendorCDR_20' ) start [2025-03-11 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653606', 'tblTempVendorCDR_20' ) end [2025-03-11 01:52:17] Production.INFO: ProcessCDR(1,14653606,1,1,2) [2025-03-11 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653606', 'tblTempUsageDetail_20' ) start [2025-03-11 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653606', 'tblTempUsageDetail_20' ) end [2025-03-11 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:52:21] Production.INFO: ==10060== Releasing lock... [2025-03-11 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:53:05 [end_date_ymd] => 2025-03-11 01:53:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:53:05' and `end` < '2025-03-11 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-11 01:53:17] Production.INFO: count ==262 [2025-03-11 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:53:05 - End Time 2025-03-11 01:53:05 [2025-03-11 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653611', 'tblTempUsageDetail_20' ) start [2025-03-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653611', 'tblTempUsageDetail_20' ) end [2025-03-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653611', 'tblTempVendorCDR_20' ) start [2025-03-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653611', 'tblTempVendorCDR_20' ) end [2025-03-11 01:53:17] Production.INFO: ProcessCDR(1,14653611,1,1,2) [2025-03-11 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653611', 'tblTempUsageDetail_20' ) start [2025-03-11 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653611', 'tblTempUsageDetail_20' ) end [2025-03-11 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:53:21] Production.INFO: ==10178== Releasing lock... [2025-03-11 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:54:05 [end_date_ymd] => 2025-03-11 01:54:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:54:05' and `end` < '2025-03-11 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-11 01:54:17] Production.INFO: count ==261 [2025-03-11 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:54:05 - End Time 2025-03-11 01:54:05 [2025-03-11 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653616', 'tblTempUsageDetail_20' ) start [2025-03-11 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653616', 'tblTempUsageDetail_20' ) end [2025-03-11 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653616', 'tblTempVendorCDR_20' ) start [2025-03-11 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653616', 'tblTempVendorCDR_20' ) end [2025-03-11 01:54:17] Production.INFO: ProcessCDR(1,14653616,1,1,2) [2025-03-11 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653616', 'tblTempUsageDetail_20' ) start [2025-03-11 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653616', 'tblTempUsageDetail_20' ) end [2025-03-11 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:54:21] Production.INFO: ==10260== Releasing lock... [2025-03-11 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:55:05 [end_date_ymd] => 2025-03-11 01:55:05 [RateCDR] => 1 ) [2025-03-11 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:55:05' and `end` < '2025-03-11 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:55:17] Production.INFO: count ==262 [2025-03-11 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:55:05 - End Time 2025-03-11 01:55:05 [2025-03-11 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653621', 'tblTempUsageDetail_20' ) start [2025-03-11 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653621', 'tblTempUsageDetail_20' ) end [2025-03-11 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653621', 'tblTempVendorCDR_20' ) start [2025-03-11 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653621', 'tblTempVendorCDR_20' ) end [2025-03-11 01:55:17] Production.INFO: ProcessCDR(1,14653621,1,1,2) [2025-03-11 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653621', 'tblTempUsageDetail_20' ) start [2025-03-11 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653621', 'tblTempUsageDetail_20' ) end [2025-03-11 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:55:22] Production.INFO: ==10335== Releasing lock... [2025-03-11 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:55:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:56:05 [end_date_ymd] => 2025-03-11 01:56:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:56:05' and `end` < '2025-03-11 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-11 01:56:17] Production.INFO: count ==262 [2025-03-11 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:56:05 - End Time 2025-03-11 01:56:05 [2025-03-11 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653626', 'tblTempUsageDetail_20' ) start [2025-03-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653626', 'tblTempUsageDetail_20' ) end [2025-03-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653626', 'tblTempVendorCDR_20' ) start [2025-03-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653626', 'tblTempVendorCDR_20' ) end [2025-03-11 01:56:18] Production.INFO: ProcessCDR(1,14653626,1,1,2) [2025-03-11 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653626', 'tblTempUsageDetail_20' ) start [2025-03-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653626', 'tblTempUsageDetail_20' ) end [2025-03-11 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:56:21] Production.INFO: ==10408== Releasing lock... [2025-03-11 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:57:05 [end_date_ymd] => 2025-03-11 01:57:05 [RateCDR] => 1 ) [2025-03-11 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:57:05' and `end` < '2025-03-11 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:57:17] Production.INFO: count ==262 [2025-03-11 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:57:05 - End Time 2025-03-11 01:57:05 [2025-03-11 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653631', 'tblTempUsageDetail_20' ) start [2025-03-11 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653631', 'tblTempUsageDetail_20' ) end [2025-03-11 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653631', 'tblTempVendorCDR_20' ) start [2025-03-11 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653631', 'tblTempVendorCDR_20' ) end [2025-03-11 01:57:17] Production.INFO: ProcessCDR(1,14653631,1,1,2) [2025-03-11 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653631', 'tblTempUsageDetail_20' ) start [2025-03-11 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653631', 'tblTempUsageDetail_20' ) end [2025-03-11 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:57:21] Production.INFO: ==10488== Releasing lock... [2025-03-11 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:58:05 [end_date_ymd] => 2025-03-11 01:58:05 [RateCDR] => 1 ) [2025-03-11 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-10 22:58:05' and `end` < '2025-03-11 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-11 01:58:17] Production.INFO: count ==261 [2025-03-11 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 22:58:05 - End Time 2025-03-11 01:58:05 [2025-03-11 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653636', 'tblTempUsageDetail_20' ) start [2025-03-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653636', 'tblTempUsageDetail_20' ) end [2025-03-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653636', 'tblTempVendorCDR_20' ) start [2025-03-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653636', 'tblTempVendorCDR_20' ) end [2025-03-11 01:58:18] Production.INFO: ProcessCDR(1,14653636,1,1,2) [2025-03-11 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653636', 'tblTempUsageDetail_20' ) start [2025-03-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653636', 'tblTempUsageDetail_20' ) end [2025-03-11 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:58:21] Production.INFO: ==10563== Releasing lock... [2025-03-11 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 22:59:05 [end_date_ymd] => 2025-03-11 01:59:05 [RateCDR] => 1 ) [2025-03-11 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 22:59:05' and `end` < '2025-03-11 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 01:59:18] Production.INFO: count ==258 [2025-03-11 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 22:59:05 - End Time 2025-03-11 01:59:05 [2025-03-11 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653641', 'tblTempUsageDetail_20' ) start [2025-03-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653641', 'tblTempUsageDetail_20' ) end [2025-03-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653641', 'tblTempVendorCDR_20' ) start [2025-03-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653641', 'tblTempVendorCDR_20' ) end [2025-03-11 01:59:18] Production.INFO: ProcessCDR(1,14653641,1,1,2) [2025-03-11 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653641', 'tblTempUsageDetail_20' ) start [2025-03-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653641', 'tblTempUsageDetail_20' ) end [2025-03-11 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 01:59:21] Production.INFO: ==10635== Releasing lock... [2025-03-11 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 01:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:00:06 [end_date_ymd] => 2025-03-11 02:00:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:00:06' and `end` < '2025-03-11 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-11 02:00:18] Production.INFO: count ==269 [2025-03-11 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:00:06 - End Time 2025-03-11 02:00:06 [2025-03-11 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653647', 'tblTempUsageDetail_20' ) start [2025-03-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653647', 'tblTempUsageDetail_20' ) end [2025-03-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653647', 'tblTempVendorCDR_20' ) start [2025-03-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653647', 'tblTempVendorCDR_20' ) end [2025-03-11 02:00:19] Production.INFO: ProcessCDR(1,14653647,1,1,2) [2025-03-11 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653647', 'tblTempUsageDetail_20' ) start [2025-03-11 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653647', 'tblTempUsageDetail_20' ) end [2025-03-11 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:00:22] Production.INFO: ==10712== Releasing lock... [2025-03-11 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:01:06 [end_date_ymd] => 2025-03-11 02:01:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:01:06' and `end` < '2025-03-11 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-11 02:01:18] Production.INFO: count ==279 [2025-03-11 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:01:06 - End Time 2025-03-11 02:01:06 [2025-03-11 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653652', 'tblTempUsageDetail_20' ) start [2025-03-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653652', 'tblTempUsageDetail_20' ) end [2025-03-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653652', 'tblTempVendorCDR_20' ) start [2025-03-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653652', 'tblTempVendorCDR_20' ) end [2025-03-11 02:01:18] Production.INFO: ProcessCDR(1,14653652,1,1,2) [2025-03-11 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653652', 'tblTempUsageDetail_20' ) start [2025-03-11 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653652', 'tblTempUsageDetail_20' ) end [2025-03-11 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:01:21] Production.INFO: ==10800== Releasing lock... [2025-03-11 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:02:05 [end_date_ymd] => 2025-03-11 02:02:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:02:05' and `end` < '2025-03-11 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-11 02:02:17] Production.INFO: count ==280 [2025-03-11 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:02:05 - End Time 2025-03-11 02:02:05 [2025-03-11 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653657', 'tblTempUsageDetail_20' ) start [2025-03-11 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653657', 'tblTempUsageDetail_20' ) end [2025-03-11 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653657', 'tblTempVendorCDR_20' ) start [2025-03-11 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653657', 'tblTempVendorCDR_20' ) end [2025-03-11 02:02:17] Production.INFO: ProcessCDR(1,14653657,1,1,2) [2025-03-11 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653657', 'tblTempUsageDetail_20' ) start [2025-03-11 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653657', 'tblTempUsageDetail_20' ) end [2025-03-11 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:02:22] Production.INFO: ==10959== Releasing lock... [2025-03-11 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:02:22] Production.INFO: 30 MB #Memory Used# [2025-03-11 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:03:05 [end_date_ymd] => 2025-03-11 02:03:05 [RateCDR] => 1 ) [2025-03-11 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:03:05' and `end` < '2025-03-11 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:03:17] Production.INFO: count ==281 [2025-03-11 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:03:05 - End Time 2025-03-11 02:03:05 [2025-03-11 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653662', 'tblTempUsageDetail_20' ) start [2025-03-11 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653662', 'tblTempUsageDetail_20' ) end [2025-03-11 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653662', 'tblTempVendorCDR_20' ) start [2025-03-11 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653662', 'tblTempVendorCDR_20' ) end [2025-03-11 02:03:17] Production.INFO: ProcessCDR(1,14653662,1,1,2) [2025-03-11 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653662', 'tblTempUsageDetail_20' ) start [2025-03-11 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653662', 'tblTempUsageDetail_20' ) end [2025-03-11 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:03:21] Production.INFO: ==11031== Releasing lock... [2025-03-11 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:04:05 [end_date_ymd] => 2025-03-11 02:04:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:04:05' and `end` < '2025-03-11 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-11 02:04:17] Production.INFO: count ==280 [2025-03-11 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:04:05 - End Time 2025-03-11 02:04:05 [2025-03-11 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653667', 'tblTempUsageDetail_20' ) start [2025-03-11 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653667', 'tblTempUsageDetail_20' ) end [2025-03-11 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653667', 'tblTempVendorCDR_20' ) start [2025-03-11 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653667', 'tblTempVendorCDR_20' ) end [2025-03-11 02:04:17] Production.INFO: ProcessCDR(1,14653667,1,1,2) [2025-03-11 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653667', 'tblTempUsageDetail_20' ) start [2025-03-11 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653667', 'tblTempUsageDetail_20' ) end [2025-03-11 02:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:04:20] Production.INFO: ==11104== Releasing lock... [2025-03-11 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:04:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:05:05 [end_date_ymd] => 2025-03-11 02:05:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:05:05' and `end` < '2025-03-11 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-11 02:05:17] Production.INFO: count ==283 [2025-03-11 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:05:05 - End Time 2025-03-11 02:05:05 [2025-03-11 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653672', 'tblTempUsageDetail_20' ) start [2025-03-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653672', 'tblTempUsageDetail_20' ) end [2025-03-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653672', 'tblTempVendorCDR_20' ) start [2025-03-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653672', 'tblTempVendorCDR_20' ) end [2025-03-11 02:05:18] Production.INFO: ProcessCDR(1,14653672,1,1,2) [2025-03-11 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653672', 'tblTempUsageDetail_20' ) start [2025-03-11 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653672', 'tblTempUsageDetail_20' ) end [2025-03-11 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:05:21] Production.INFO: ==11177== Releasing lock... [2025-03-11 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:06:05 [end_date_ymd] => 2025-03-11 02:06:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:06:05' and `end` < '2025-03-11 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-11 02:06:17] Production.INFO: count ==283 [2025-03-11 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:06:05 - End Time 2025-03-11 02:06:05 [2025-03-11 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653677', 'tblTempUsageDetail_20' ) start [2025-03-11 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653677', 'tblTempUsageDetail_20' ) end [2025-03-11 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653677', 'tblTempVendorCDR_20' ) start [2025-03-11 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653677', 'tblTempVendorCDR_20' ) end [2025-03-11 02:06:17] Production.INFO: ProcessCDR(1,14653677,1,1,2) [2025-03-11 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653677', 'tblTempUsageDetail_20' ) start [2025-03-11 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653677', 'tblTempUsageDetail_20' ) end [2025-03-11 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:06:20] Production.INFO: ==11256== Releasing lock... [2025-03-11 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:06:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:07:05 [end_date_ymd] => 2025-03-11 02:07:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:07:05' and `end` < '2025-03-11 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-11 02:07:17] Production.INFO: count ==281 [2025-03-11 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:07:05 - End Time 2025-03-11 02:07:05 [2025-03-11 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653682', 'tblTempUsageDetail_20' ) start [2025-03-11 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653682', 'tblTempUsageDetail_20' ) end [2025-03-11 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653682', 'tblTempVendorCDR_20' ) start [2025-03-11 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653682', 'tblTempVendorCDR_20' ) end [2025-03-11 02:07:17] Production.INFO: ProcessCDR(1,14653682,1,1,2) [2025-03-11 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653682', 'tblTempUsageDetail_20' ) start [2025-03-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653682', 'tblTempUsageDetail_20' ) end [2025-03-11 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:07:21] Production.INFO: ==11327== Releasing lock... [2025-03-11 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:08:05 [end_date_ymd] => 2025-03-11 02:08:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:08:05' and `end` < '2025-03-11 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-11 02:08:17] Production.INFO: count ==274 [2025-03-11 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:08:05 - End Time 2025-03-11 02:08:05 [2025-03-11 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653687', 'tblTempUsageDetail_20' ) start [2025-03-11 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653687', 'tblTempUsageDetail_20' ) end [2025-03-11 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653687', 'tblTempVendorCDR_20' ) start [2025-03-11 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653687', 'tblTempVendorCDR_20' ) end [2025-03-11 02:08:17] Production.INFO: ProcessCDR(1,14653687,1,1,2) [2025-03-11 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653687', 'tblTempUsageDetail_20' ) start [2025-03-11 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653687', 'tblTempUsageDetail_20' ) end [2025-03-11 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:08:21] Production.INFO: ==11400== Releasing lock... [2025-03-11 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:09:05 [end_date_ymd] => 2025-03-11 02:09:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:09:05' and `end` < '2025-03-11 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-11 02:09:17] Production.INFO: count ==273 [2025-03-11 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:09:05 - End Time 2025-03-11 02:09:05 [2025-03-11 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653692', 'tblTempUsageDetail_20' ) start [2025-03-11 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653692', 'tblTempUsageDetail_20' ) end [2025-03-11 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653692', 'tblTempVendorCDR_20' ) start [2025-03-11 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653692', 'tblTempVendorCDR_20' ) end [2025-03-11 02:09:17] Production.INFO: ProcessCDR(1,14653692,1,1,2) [2025-03-11 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653692', 'tblTempUsageDetail_20' ) start [2025-03-11 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653692', 'tblTempUsageDetail_20' ) end [2025-03-11 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:09:20] Production.INFO: ==11511== Releasing lock... [2025-03-11 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:10:05 [end_date_ymd] => 2025-03-11 02:10:05 [RateCDR] => 1 ) [2025-03-11 02: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-10 23:10:05' and `end` < '2025-03-11 02: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-11 02:10:18] Production.INFO: count ==269 [2025-03-11 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:10:05 - End Time 2025-03-11 02:10:05 [2025-03-11 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653698', 'tblTempUsageDetail_20' ) start [2025-03-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653698', 'tblTempUsageDetail_20' ) end [2025-03-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653698', 'tblTempVendorCDR_20' ) start [2025-03-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653698', 'tblTempVendorCDR_20' ) end [2025-03-11 02:10:18] Production.INFO: ProcessCDR(1,14653698,1,1,2) [2025-03-11 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653698', 'tblTempUsageDetail_20' ) start [2025-03-11 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653698', 'tblTempUsageDetail_20' ) end [2025-03-11 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:10:21] Production.INFO: ==11611== Releasing lock... [2025-03-11 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:11:05 [end_date_ymd] => 2025-03-11 02:11:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:11:05' and `end` < '2025-03-11 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-11 02:11:17] Production.INFO: count ==269 [2025-03-11 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:11:05 - End Time 2025-03-11 02:11:05 [2025-03-11 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653703', 'tblTempUsageDetail_20' ) start [2025-03-11 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653703', 'tblTempUsageDetail_20' ) end [2025-03-11 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653703', 'tblTempVendorCDR_20' ) start [2025-03-11 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653703', 'tblTempVendorCDR_20' ) end [2025-03-11 02:11:17] Production.INFO: ProcessCDR(1,14653703,1,1,2) [2025-03-11 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653703', 'tblTempUsageDetail_20' ) start [2025-03-11 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653703', 'tblTempUsageDetail_20' ) end [2025-03-11 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:11:20] Production.INFO: ==11685== Releasing lock... [2025-03-11 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:12:06 [end_date_ymd] => 2025-03-11 02:12:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:12:06' and `end` < '2025-03-11 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-11 02:12:18] Production.INFO: count ==269 [2025-03-11 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:12:06 - End Time 2025-03-11 02:12:06 [2025-03-11 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653708', 'tblTempUsageDetail_20' ) start [2025-03-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653708', 'tblTempUsageDetail_20' ) end [2025-03-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653708', 'tblTempVendorCDR_20' ) start [2025-03-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653708', 'tblTempVendorCDR_20' ) end [2025-03-11 02:12:18] Production.INFO: ProcessCDR(1,14653708,1,1,2) [2025-03-11 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653708', 'tblTempUsageDetail_20' ) start [2025-03-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653708', 'tblTempUsageDetail_20' ) end [2025-03-11 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:12:21] Production.INFO: ==11756== Releasing lock... [2025-03-11 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:13:05 [end_date_ymd] => 2025-03-11 02:13:05 [RateCDR] => 1 ) [2025-03-11 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:13:05' and `end` < '2025-03-11 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:13:17] Production.INFO: count ==269 [2025-03-11 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:13:05 - End Time 2025-03-11 02:13:05 [2025-03-11 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653713', 'tblTempUsageDetail_20' ) start [2025-03-11 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653713', 'tblTempUsageDetail_20' ) end [2025-03-11 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653713', 'tblTempVendorCDR_20' ) start [2025-03-11 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653713', 'tblTempVendorCDR_20' ) end [2025-03-11 02:13:17] Production.INFO: ProcessCDR(1,14653713,1,1,2) [2025-03-11 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653713', 'tblTempUsageDetail_20' ) start [2025-03-11 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653713', 'tblTempUsageDetail_20' ) end [2025-03-11 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:13:21] Production.INFO: ==11830== Releasing lock... [2025-03-11 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:14:05 [end_date_ymd] => 2025-03-11 02:14:05 [RateCDR] => 1 ) [2025-03-11 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:14:05' and `end` < '2025-03-11 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:14:17] Production.INFO: count ==269 [2025-03-11 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:14:05 - End Time 2025-03-11 02:14:05 [2025-03-11 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653718', 'tblTempUsageDetail_20' ) start [2025-03-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653718', 'tblTempUsageDetail_20' ) end [2025-03-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653718', 'tblTempVendorCDR_20' ) start [2025-03-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653718', 'tblTempVendorCDR_20' ) end [2025-03-11 02:14:18] Production.INFO: ProcessCDR(1,14653718,1,1,2) [2025-03-11 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653718', 'tblTempUsageDetail_20' ) start [2025-03-11 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653718', 'tblTempUsageDetail_20' ) end [2025-03-11 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:14:21] Production.INFO: ==11902== Releasing lock... [2025-03-11 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:15:05 [end_date_ymd] => 2025-03-11 02:15:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:15:05' and `end` < '2025-03-11 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-11 02:15:18] Production.INFO: count ==269 [2025-03-11 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:15:05 - End Time 2025-03-11 02:15:05 [2025-03-11 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653723', 'tblTempUsageDetail_20' ) start [2025-03-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653723', 'tblTempUsageDetail_20' ) end [2025-03-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653723', 'tblTempVendorCDR_20' ) start [2025-03-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653723', 'tblTempVendorCDR_20' ) end [2025-03-11 02:15:18] Production.INFO: ProcessCDR(1,14653723,1,1,2) [2025-03-11 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653723', 'tblTempUsageDetail_20' ) start [2025-03-11 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653723', 'tblTempUsageDetail_20' ) end [2025-03-11 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:15:21] Production.INFO: ==11976== Releasing lock... [2025-03-11 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:16:05 [end_date_ymd] => 2025-03-11 02:16:05 [RateCDR] => 1 ) [2025-03-11 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:16:05' and `end` < '2025-03-11 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:16:17] Production.INFO: count ==268 [2025-03-11 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:16:05 - End Time 2025-03-11 02:16:05 [2025-03-11 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653728', 'tblTempUsageDetail_20' ) start [2025-03-11 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653728', 'tblTempUsageDetail_20' ) end [2025-03-11 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653728', 'tblTempVendorCDR_20' ) start [2025-03-11 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653728', 'tblTempVendorCDR_20' ) end [2025-03-11 02:16:17] Production.INFO: ProcessCDR(1,14653728,1,1,2) [2025-03-11 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653728', 'tblTempUsageDetail_20' ) start [2025-03-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653728', 'tblTempUsageDetail_20' ) end [2025-03-11 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:16:21] Production.INFO: ==12046== Releasing lock... [2025-03-11 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:17:05 [end_date_ymd] => 2025-03-11 02:17:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:17:05' and `end` < '2025-03-11 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-11 02:17:17] Production.INFO: count ==268 [2025-03-11 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:17:05 - End Time 2025-03-11 02:17:05 [2025-03-11 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653733', 'tblTempUsageDetail_20' ) start [2025-03-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653733', 'tblTempUsageDetail_20' ) end [2025-03-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653733', 'tblTempVendorCDR_20' ) start [2025-03-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653733', 'tblTempVendorCDR_20' ) end [2025-03-11 02:17:17] Production.INFO: ProcessCDR(1,14653733,1,1,2) [2025-03-11 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653733', 'tblTempUsageDetail_20' ) start [2025-03-11 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653733', 'tblTempUsageDetail_20' ) end [2025-03-11 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:17:21] Production.INFO: ==12116== Releasing lock... [2025-03-11 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:18:05 [end_date_ymd] => 2025-03-11 02:18:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:18:05' and `end` < '2025-03-11 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-11 02:18:17] Production.INFO: count ==267 [2025-03-11 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:18:05 - End Time 2025-03-11 02:18:05 [2025-03-11 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653738', 'tblTempUsageDetail_20' ) start [2025-03-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653738', 'tblTempUsageDetail_20' ) end [2025-03-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653738', 'tblTempVendorCDR_20' ) start [2025-03-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653738', 'tblTempVendorCDR_20' ) end [2025-03-11 02:18:17] Production.INFO: ProcessCDR(1,14653738,1,1,2) [2025-03-11 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653738', 'tblTempUsageDetail_20' ) start [2025-03-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653738', 'tblTempUsageDetail_20' ) end [2025-03-11 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:18:21] Production.INFO: ==12187== Releasing lock... [2025-03-11 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:19:05 [end_date_ymd] => 2025-03-11 02:19:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:19:05' and `end` < '2025-03-11 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-11 02:19:17] Production.INFO: count ==261 [2025-03-11 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:19:05 - End Time 2025-03-11 02:19:05 [2025-03-11 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653743', 'tblTempUsageDetail_20' ) start [2025-03-11 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653743', 'tblTempUsageDetail_20' ) end [2025-03-11 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653743', 'tblTempVendorCDR_20' ) start [2025-03-11 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653743', 'tblTempVendorCDR_20' ) end [2025-03-11 02:19:17] Production.INFO: ProcessCDR(1,14653743,1,1,2) [2025-03-11 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653743', 'tblTempUsageDetail_20' ) start [2025-03-11 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653743', 'tblTempUsageDetail_20' ) end [2025-03-11 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:19:20] Production.INFO: ==12259== Releasing lock... [2025-03-11 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:19:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:20:06 [end_date_ymd] => 2025-03-11 02:20:06 [RateCDR] => 1 ) [2025-03-11 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:20:06' and `end` < '2025-03-11 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:20:18] Production.INFO: count ==264 [2025-03-11 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:20:06 - End Time 2025-03-11 02:20:06 [2025-03-11 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653749', 'tblTempUsageDetail_20' ) start [2025-03-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653749', 'tblTempUsageDetail_20' ) end [2025-03-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653749', 'tblTempVendorCDR_20' ) start [2025-03-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653749', 'tblTempVendorCDR_20' ) end [2025-03-11 02:20:18] Production.INFO: ProcessCDR(1,14653749,1,1,2) [2025-03-11 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653749', 'tblTempUsageDetail_20' ) start [2025-03-11 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653749', 'tblTempUsageDetail_20' ) end [2025-03-11 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:20:21] Production.INFO: ==12335== Releasing lock... [2025-03-11 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:21:05 [end_date_ymd] => 2025-03-11 02:21:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:21:05' and `end` < '2025-03-11 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-11 02:21:17] Production.INFO: count ==257 [2025-03-11 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:21:05 - End Time 2025-03-11 02:21:05 [2025-03-11 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653754', 'tblTempUsageDetail_20' ) start [2025-03-11 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653754', 'tblTempUsageDetail_20' ) end [2025-03-11 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653754', 'tblTempVendorCDR_20' ) start [2025-03-11 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653754', 'tblTempVendorCDR_20' ) end [2025-03-11 02:21:17] Production.INFO: ProcessCDR(1,14653754,1,1,2) [2025-03-11 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653754', 'tblTempUsageDetail_20' ) start [2025-03-11 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653754', 'tblTempUsageDetail_20' ) end [2025-03-11 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:21:20] Production.INFO: ==12406== Releasing lock... [2025-03-11 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:22:05 [end_date_ymd] => 2025-03-11 02:22:05 [RateCDR] => 1 ) [2025-03-11 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:22:05' and `end` < '2025-03-11 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:22:17] Production.INFO: count ==254 [2025-03-11 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:22:05 - End Time 2025-03-11 02:22:05 [2025-03-11 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653759', 'tblTempUsageDetail_20' ) start [2025-03-11 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653759', 'tblTempUsageDetail_20' ) end [2025-03-11 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653759', 'tblTempVendorCDR_20' ) start [2025-03-11 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653759', 'tblTempVendorCDR_20' ) end [2025-03-11 02:22:17] Production.INFO: ProcessCDR(1,14653759,1,1,2) [2025-03-11 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653759', 'tblTempUsageDetail_20' ) start [2025-03-11 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653759', 'tblTempUsageDetail_20' ) end [2025-03-11 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:22:21] Production.INFO: ==12477== Releasing lock... [2025-03-11 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:23:04 [end_date_ymd] => 2025-03-11 02:23:04 [RateCDR] => 1 ) [2025-03-11 02: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-10 23:23:04' and `end` < '2025-03-11 02: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-11 02:23:16] Production.INFO: count ==261 [2025-03-11 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:23:04 - End Time 2025-03-11 02:23:04 [2025-03-11 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653764', 'tblTempUsageDetail_20' ) start [2025-03-11 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653764', 'tblTempUsageDetail_20' ) end [2025-03-11 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653764', 'tblTempVendorCDR_20' ) start [2025-03-11 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653764', 'tblTempVendorCDR_20' ) end [2025-03-11 02:23:17] Production.INFO: ProcessCDR(1,14653764,1,1,2) [2025-03-11 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653764', 'tblTempUsageDetail_20' ) start [2025-03-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653764', 'tblTempUsageDetail_20' ) end [2025-03-11 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:23:21] Production.INFO: ==12551== Releasing lock... [2025-03-11 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:24:05 [end_date_ymd] => 2025-03-11 02:24:05 [RateCDR] => 1 ) [2025-03-11 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:24:05' and `end` < '2025-03-11 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:24:17] Production.INFO: count ==264 [2025-03-11 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:24:05 - End Time 2025-03-11 02:24:05 [2025-03-11 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653769', 'tblTempUsageDetail_20' ) start [2025-03-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653769', 'tblTempUsageDetail_20' ) end [2025-03-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653769', 'tblTempVendorCDR_20' ) start [2025-03-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653769', 'tblTempVendorCDR_20' ) end [2025-03-11 02:24:18] Production.INFO: ProcessCDR(1,14653769,1,1,2) [2025-03-11 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653769', 'tblTempUsageDetail_20' ) start [2025-03-11 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653769', 'tblTempUsageDetail_20' ) end [2025-03-11 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:24:21] Production.INFO: ==12660== Releasing lock... [2025-03-11 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:25:05 [end_date_ymd] => 2025-03-11 02:25:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:25:05' and `end` < '2025-03-11 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-11 02:25:17] Production.INFO: count ==261 [2025-03-11 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:25:05 - End Time 2025-03-11 02:25:05 [2025-03-11 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653774', 'tblTempUsageDetail_20' ) start [2025-03-11 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653774', 'tblTempUsageDetail_20' ) end [2025-03-11 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653774', 'tblTempVendorCDR_20' ) start [2025-03-11 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653774', 'tblTempVendorCDR_20' ) end [2025-03-11 02:25:17] Production.INFO: ProcessCDR(1,14653774,1,1,2) [2025-03-11 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653774', 'tblTempUsageDetail_20' ) start [2025-03-11 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653774', 'tblTempUsageDetail_20' ) end [2025-03-11 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:25:20] Production.INFO: ==12737== Releasing lock... [2025-03-11 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:26:05 [end_date_ymd] => 2025-03-11 02:26:05 [RateCDR] => 1 ) [2025-03-11 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:26:05' and `end` < '2025-03-11 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:26:17] Production.INFO: count ==261 [2025-03-11 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:26:05 - End Time 2025-03-11 02:26:05 [2025-03-11 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653779', 'tblTempUsageDetail_20' ) start [2025-03-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653779', 'tblTempUsageDetail_20' ) end [2025-03-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653779', 'tblTempVendorCDR_20' ) start [2025-03-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653779', 'tblTempVendorCDR_20' ) end [2025-03-11 02:26:18] Production.INFO: ProcessCDR(1,14653779,1,1,2) [2025-03-11 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653779', 'tblTempUsageDetail_20' ) start [2025-03-11 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653779', 'tblTempUsageDetail_20' ) end [2025-03-11 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:26:21] Production.INFO: ==12810== Releasing lock... [2025-03-11 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:27:04 [end_date_ymd] => 2025-03-11 02:27:04 [RateCDR] => 1 ) [2025-03-11 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-10 23:27:04' and `end` < '2025-03-11 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-11 02:27:16] Production.INFO: count ==260 [2025-03-11 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:27:04 - End Time 2025-03-11 02:27:04 [2025-03-11 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653784', 'tblTempUsageDetail_20' ) start [2025-03-11 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653784', 'tblTempUsageDetail_20' ) end [2025-03-11 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653784', 'tblTempVendorCDR_20' ) start [2025-03-11 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653784', 'tblTempVendorCDR_20' ) end [2025-03-11 02:27:17] Production.INFO: ProcessCDR(1,14653784,1,1,2) [2025-03-11 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653784', 'tblTempUsageDetail_20' ) start [2025-03-11 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653784', 'tblTempUsageDetail_20' ) end [2025-03-11 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:27:20] Production.INFO: ==12878== Releasing lock... [2025-03-11 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:28:06 [end_date_ymd] => 2025-03-11 02:28:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:28:06' and `end` < '2025-03-11 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-11 02:28:18] Production.INFO: count ==259 [2025-03-11 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:28:06 - End Time 2025-03-11 02:28:06 [2025-03-11 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653789', 'tblTempUsageDetail_20' ) start [2025-03-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653789', 'tblTempUsageDetail_20' ) end [2025-03-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653789', 'tblTempVendorCDR_20' ) start [2025-03-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653789', 'tblTempVendorCDR_20' ) end [2025-03-11 02:28:18] Production.INFO: ProcessCDR(1,14653789,1,1,2) [2025-03-11 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653789', 'tblTempUsageDetail_20' ) start [2025-03-11 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653789', 'tblTempUsageDetail_20' ) end [2025-03-11 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:28:21] Production.INFO: ==12948== Releasing lock... [2025-03-11 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:29:05 [end_date_ymd] => 2025-03-11 02:29:05 [RateCDR] => 1 ) [2025-03-11 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:29:05' and `end` < '2025-03-11 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:29:17] Production.INFO: count ==259 [2025-03-11 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:29:05 - End Time 2025-03-11 02:29:05 [2025-03-11 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653794', 'tblTempUsageDetail_20' ) start [2025-03-11 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653794', 'tblTempUsageDetail_20' ) end [2025-03-11 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653794', 'tblTempVendorCDR_20' ) start [2025-03-11 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653794', 'tblTempVendorCDR_20' ) end [2025-03-11 02:29:17] Production.INFO: ProcessCDR(1,14653794,1,1,2) [2025-03-11 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653794', 'tblTempUsageDetail_20' ) start [2025-03-11 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653794', 'tblTempUsageDetail_20' ) end [2025-03-11 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:29:22] Production.INFO: ==13020== Releasing lock... [2025-03-11 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:30:06 [end_date_ymd] => 2025-03-11 02:30:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:30:06' and `end` < '2025-03-11 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-11 02:30:18] Production.INFO: count ==259 [2025-03-11 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:30:06 - End Time 2025-03-11 02:30:06 [2025-03-11 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653800', 'tblTempUsageDetail_20' ) start [2025-03-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653800', 'tblTempUsageDetail_20' ) end [2025-03-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653800', 'tblTempVendorCDR_20' ) start [2025-03-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653800', 'tblTempVendorCDR_20' ) end [2025-03-11 02:30:18] Production.INFO: ProcessCDR(1,14653800,1,1,2) [2025-03-11 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653800', 'tblTempUsageDetail_20' ) start [2025-03-11 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653800', 'tblTempUsageDetail_20' ) end [2025-03-11 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:30:21] Production.INFO: ==13094== Releasing lock... [2025-03-11 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:31:06 [end_date_ymd] => 2025-03-11 02:31:06 [RateCDR] => 1 ) [2025-03-11 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:31:06' and `end` < '2025-03-11 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:31:18] Production.INFO: count ==256 [2025-03-11 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:31:06 - End Time 2025-03-11 02:31:06 [2025-03-11 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653805', 'tblTempUsageDetail_20' ) start [2025-03-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653805', 'tblTempUsageDetail_20' ) end [2025-03-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653805', 'tblTempVendorCDR_20' ) start [2025-03-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653805', 'tblTempVendorCDR_20' ) end [2025-03-11 02:31:18] Production.INFO: ProcessCDR(1,14653805,1,1,2) [2025-03-11 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653805', 'tblTempUsageDetail_20' ) start [2025-03-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653805', 'tblTempUsageDetail_20' ) end [2025-03-11 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:31:21] Production.INFO: ==13169== Releasing lock... [2025-03-11 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:32:05 [end_date_ymd] => 2025-03-11 02:32:05 [RateCDR] => 1 ) [2025-03-11 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:32:05' and `end` < '2025-03-11 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:32:17] Production.INFO: count ==254 [2025-03-11 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:32:05 - End Time 2025-03-11 02:32:05 [2025-03-11 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653810', 'tblTempUsageDetail_20' ) start [2025-03-11 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653810', 'tblTempUsageDetail_20' ) end [2025-03-11 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653810', 'tblTempVendorCDR_20' ) start [2025-03-11 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653810', 'tblTempVendorCDR_20' ) end [2025-03-11 02:32:17] Production.INFO: ProcessCDR(1,14653810,1,1,2) [2025-03-11 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653810', 'tblTempUsageDetail_20' ) start [2025-03-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653810', 'tblTempUsageDetail_20' ) end [2025-03-11 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:32:21] Production.INFO: ==13243== Releasing lock... [2025-03-11 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:33:05 [end_date_ymd] => 2025-03-11 02:33:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:33:05' and `end` < '2025-03-11 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-11 02:33:17] Production.INFO: count ==252 [2025-03-11 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:33:05 - End Time 2025-03-11 02:33:05 [2025-03-11 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653815', 'tblTempUsageDetail_20' ) start [2025-03-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653815', 'tblTempUsageDetail_20' ) end [2025-03-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653815', 'tblTempVendorCDR_20' ) start [2025-03-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653815', 'tblTempVendorCDR_20' ) end [2025-03-11 02:33:17] Production.INFO: ProcessCDR(1,14653815,1,1,2) [2025-03-11 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653815', 'tblTempUsageDetail_20' ) start [2025-03-11 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653815', 'tblTempUsageDetail_20' ) end [2025-03-11 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:33:21] Production.INFO: ==13315== Releasing lock... [2025-03-11 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:34:05 [end_date_ymd] => 2025-03-11 02:34:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:34:05' and `end` < '2025-03-11 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-11 02:34:17] Production.INFO: count ==251 [2025-03-11 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:34:05 - End Time 2025-03-11 02:34:05 [2025-03-11 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653820', 'tblTempUsageDetail_20' ) start [2025-03-11 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653820', 'tblTempUsageDetail_20' ) end [2025-03-11 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653820', 'tblTempVendorCDR_20' ) start [2025-03-11 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653820', 'tblTempVendorCDR_20' ) end [2025-03-11 02:34:17] Production.INFO: ProcessCDR(1,14653820,1,1,2) [2025-03-11 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653820', 'tblTempUsageDetail_20' ) start [2025-03-11 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653820', 'tblTempUsageDetail_20' ) end [2025-03-11 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:34:21] Production.INFO: ==13386== Releasing lock... [2025-03-11 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:35:06 [end_date_ymd] => 2025-03-11 02:35:06 [RateCDR] => 1 ) [2025-03-11 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:35:06' and `end` < '2025-03-11 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:35:18] Production.INFO: count ==251 [2025-03-11 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:35:06 - End Time 2025-03-11 02:35:06 [2025-03-11 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653825', 'tblTempUsageDetail_20' ) start [2025-03-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653825', 'tblTempUsageDetail_20' ) end [2025-03-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653825', 'tblTempVendorCDR_20' ) start [2025-03-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653825', 'tblTempVendorCDR_20' ) end [2025-03-11 02:35:18] Production.INFO: ProcessCDR(1,14653825,1,1,2) [2025-03-11 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653825', 'tblTempUsageDetail_20' ) start [2025-03-11 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653825', 'tblTempUsageDetail_20' ) end [2025-03-11 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:35:21] Production.INFO: ==13457== Releasing lock... [2025-03-11 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:36:05 [end_date_ymd] => 2025-03-11 02:36:05 [RateCDR] => 1 ) [2025-03-11 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:36:05' and `end` < '2025-03-11 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:36:17] Production.INFO: count ==251 [2025-03-11 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:36:05 - End Time 2025-03-11 02:36:05 [2025-03-11 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653830', 'tblTempUsageDetail_20' ) start [2025-03-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653830', 'tblTempUsageDetail_20' ) end [2025-03-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653830', 'tblTempVendorCDR_20' ) start [2025-03-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653830', 'tblTempVendorCDR_20' ) end [2025-03-11 02:36:18] Production.INFO: ProcessCDR(1,14653830,1,1,2) [2025-03-11 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653830', 'tblTempUsageDetail_20' ) start [2025-03-11 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653830', 'tblTempUsageDetail_20' ) end [2025-03-11 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:36:21] Production.INFO: ==13529== Releasing lock... [2025-03-11 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:37:06 [end_date_ymd] => 2025-03-11 02:37:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:37:06' and `end` < '2025-03-11 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-11 02:37:18] Production.INFO: count ==251 [2025-03-11 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:37:06 - End Time 2025-03-11 02:37:06 [2025-03-11 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653835', 'tblTempUsageDetail_20' ) start [2025-03-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653835', 'tblTempUsageDetail_20' ) end [2025-03-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653835', 'tblTempVendorCDR_20' ) start [2025-03-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653835', 'tblTempVendorCDR_20' ) end [2025-03-11 02:37:18] Production.INFO: ProcessCDR(1,14653835,1,1,2) [2025-03-11 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653835', 'tblTempUsageDetail_20' ) start [2025-03-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653835', 'tblTempUsageDetail_20' ) end [2025-03-11 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:37:22] Production.INFO: ==13600== Releasing lock... [2025-03-11 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:38:05 [end_date_ymd] => 2025-03-11 02:38:05 [RateCDR] => 1 ) [2025-03-11 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:38:05' and `end` < '2025-03-11 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:38:17] Production.INFO: count ==257 [2025-03-11 02:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:38:05 - End Time 2025-03-11 02:38:05 [2025-03-11 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653840', 'tblTempUsageDetail_20' ) start [2025-03-11 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653840', 'tblTempUsageDetail_20' ) end [2025-03-11 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653840', 'tblTempVendorCDR_20' ) start [2025-03-11 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653840', 'tblTempVendorCDR_20' ) end [2025-03-11 02:38:17] Production.INFO: ProcessCDR(1,14653840,1,1,2) [2025-03-11 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653840', 'tblTempUsageDetail_20' ) start [2025-03-11 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653840', 'tblTempUsageDetail_20' ) end [2025-03-11 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:38:21] Production.INFO: ==13669== Releasing lock... [2025-03-11 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:39:05 [end_date_ymd] => 2025-03-11 02:39:05 [RateCDR] => 1 ) [2025-03-11 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:39:05' and `end` < '2025-03-11 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:39:17] Production.INFO: count ==263 [2025-03-11 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:39:05 - End Time 2025-03-11 02:39:05 [2025-03-11 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653845', 'tblTempUsageDetail_20' ) start [2025-03-11 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653845', 'tblTempUsageDetail_20' ) end [2025-03-11 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653845', 'tblTempVendorCDR_20' ) start [2025-03-11 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653845', 'tblTempVendorCDR_20' ) end [2025-03-11 02:39:17] Production.INFO: ProcessCDR(1,14653845,1,1,2) [2025-03-11 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653845', 'tblTempUsageDetail_20' ) start [2025-03-11 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653845', 'tblTempUsageDetail_20' ) end [2025-03-11 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:39:20] Production.INFO: ==13743== Releasing lock... [2025-03-11 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:40:05 [end_date_ymd] => 2025-03-11 02:40:05 [RateCDR] => 1 ) [2025-03-11 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:40:05' and `end` < '2025-03-11 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:40:17] Production.INFO: count ==269 [2025-03-11 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:40:05 - End Time 2025-03-11 02:40:05 [2025-03-11 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653850', 'tblTempUsageDetail_20' ) start [2025-03-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653850', 'tblTempUsageDetail_20' ) end [2025-03-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653850', 'tblTempVendorCDR_20' ) start [2025-03-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653850', 'tblTempVendorCDR_20' ) end [2025-03-11 02:40:18] Production.INFO: ProcessCDR(1,14653850,1,1,2) [2025-03-11 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653850', 'tblTempUsageDetail_20' ) start [2025-03-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653850', 'tblTempUsageDetail_20' ) end [2025-03-11 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:40:22] Production.INFO: ==13858== Releasing lock... [2025-03-11 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:41:06 [end_date_ymd] => 2025-03-11 02:41:06 [RateCDR] => 1 ) [2025-03-11 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:41:06' and `end` < '2025-03-11 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:41:18] Production.INFO: count ==276 [2025-03-11 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:41:06 - End Time 2025-03-11 02:41:06 [2025-03-11 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653856', 'tblTempUsageDetail_20' ) start [2025-03-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653856', 'tblTempUsageDetail_20' ) end [2025-03-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653856', 'tblTempVendorCDR_20' ) start [2025-03-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653856', 'tblTempVendorCDR_20' ) end [2025-03-11 02:41:18] Production.INFO: ProcessCDR(1,14653856,1,1,2) [2025-03-11 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653856', 'tblTempUsageDetail_20' ) start [2025-03-11 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653856', 'tblTempUsageDetail_20' ) end [2025-03-11 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:41:21] Production.INFO: ==13933== Releasing lock... [2025-03-11 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:42:06 [end_date_ymd] => 2025-03-11 02:42:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:42:06' and `end` < '2025-03-11 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-11 02:42:18] Production.INFO: count ==276 [2025-03-11 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:42:06 - End Time 2025-03-11 02:42:06 [2025-03-11 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653861', 'tblTempUsageDetail_20' ) start [2025-03-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653861', 'tblTempUsageDetail_20' ) end [2025-03-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653861', 'tblTempVendorCDR_20' ) start [2025-03-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653861', 'tblTempVendorCDR_20' ) end [2025-03-11 02:42:18] Production.INFO: ProcessCDR(1,14653861,1,1,2) [2025-03-11 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653861', 'tblTempUsageDetail_20' ) start [2025-03-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653861', 'tblTempUsageDetail_20' ) end [2025-03-11 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:42:22] Production.INFO: ==14005== Releasing lock... [2025-03-11 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:43:05 [end_date_ymd] => 2025-03-11 02:43:05 [RateCDR] => 1 ) [2025-03-11 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:43:05' and `end` < '2025-03-11 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:43:17] Production.INFO: count ==269 [2025-03-11 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:43:05 - End Time 2025-03-11 02:43:05 [2025-03-11 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653866', 'tblTempUsageDetail_20' ) start [2025-03-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653866', 'tblTempUsageDetail_20' ) end [2025-03-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653866', 'tblTempVendorCDR_20' ) start [2025-03-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653866', 'tblTempVendorCDR_20' ) end [2025-03-11 02:43:17] Production.INFO: ProcessCDR(1,14653866,1,1,2) [2025-03-11 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653866', 'tblTempUsageDetail_20' ) start [2025-03-11 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653866', 'tblTempUsageDetail_20' ) end [2025-03-11 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:43:21] Production.INFO: ==14076== Releasing lock... [2025-03-11 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:44:05 [end_date_ymd] => 2025-03-11 02:44:05 [RateCDR] => 1 ) [2025-03-11 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:44:05' and `end` < '2025-03-11 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:44:17] Production.INFO: count ==269 [2025-03-11 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:44:05 - End Time 2025-03-11 02:44:05 [2025-03-11 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653871', 'tblTempUsageDetail_20' ) start [2025-03-11 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653871', 'tblTempUsageDetail_20' ) end [2025-03-11 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653871', 'tblTempVendorCDR_20' ) start [2025-03-11 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653871', 'tblTempVendorCDR_20' ) end [2025-03-11 02:44:17] Production.INFO: ProcessCDR(1,14653871,1,1,2) [2025-03-11 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653871', 'tblTempUsageDetail_20' ) start [2025-03-11 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653871', 'tblTempUsageDetail_20' ) end [2025-03-11 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:44:21] Production.INFO: ==14146== Releasing lock... [2025-03-11 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:45:05 [end_date_ymd] => 2025-03-11 02:45:05 [RateCDR] => 1 ) [2025-03-11 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:45:05' and `end` < '2025-03-11 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:45:17] Production.INFO: count ==267 [2025-03-11 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:45:05 - End Time 2025-03-11 02:45:05 [2025-03-11 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653876', 'tblTempUsageDetail_20' ) start [2025-03-11 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653876', 'tblTempUsageDetail_20' ) end [2025-03-11 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653876', 'tblTempVendorCDR_20' ) start [2025-03-11 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653876', 'tblTempVendorCDR_20' ) end [2025-03-11 02:45:17] Production.INFO: ProcessCDR(1,14653876,1,1,2) [2025-03-11 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653876', 'tblTempUsageDetail_20' ) start [2025-03-11 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653876', 'tblTempUsageDetail_20' ) end [2025-03-11 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:45:21] Production.INFO: ==14224== Releasing lock... [2025-03-11 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:46:05 [end_date_ymd] => 2025-03-11 02:46:05 [RateCDR] => 1 ) [2025-03-11 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:46:05' and `end` < '2025-03-11 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:46:17] Production.INFO: count ==264 [2025-03-11 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:46:05 - End Time 2025-03-11 02:46:05 [2025-03-11 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653881', 'tblTempUsageDetail_20' ) start [2025-03-11 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653881', 'tblTempUsageDetail_20' ) end [2025-03-11 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653881', 'tblTempVendorCDR_20' ) start [2025-03-11 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653881', 'tblTempVendorCDR_20' ) end [2025-03-11 02:46:17] Production.INFO: ProcessCDR(1,14653881,1,1,2) [2025-03-11 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653881', 'tblTempUsageDetail_20' ) start [2025-03-11 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653881', 'tblTempUsageDetail_20' ) end [2025-03-11 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:46:21] Production.INFO: ==14297== Releasing lock... [2025-03-11 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:47:06 [end_date_ymd] => 2025-03-11 02:47:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:47:06' and `end` < '2025-03-11 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-11 02:47:18] Production.INFO: count ==262 [2025-03-11 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:47:06 - End Time 2025-03-11 02:47:06 [2025-03-11 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653886', 'tblTempUsageDetail_20' ) start [2025-03-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653886', 'tblTempUsageDetail_20' ) end [2025-03-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653886', 'tblTempVendorCDR_20' ) start [2025-03-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653886', 'tblTempVendorCDR_20' ) end [2025-03-11 02:47:18] Production.INFO: ProcessCDR(1,14653886,1,1,2) [2025-03-11 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653886', 'tblTempUsageDetail_20' ) start [2025-03-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653886', 'tblTempUsageDetail_20' ) end [2025-03-11 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:47:22] Production.INFO: ==14369== Releasing lock... [2025-03-11 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:48:06 [end_date_ymd] => 2025-03-11 02:48:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:48:06' and `end` < '2025-03-11 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-11 02:48:18] Production.INFO: count ==258 [2025-03-11 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:48:06 - End Time 2025-03-11 02:48:06 [2025-03-11 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653891', 'tblTempUsageDetail_20' ) start [2025-03-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653891', 'tblTempUsageDetail_20' ) end [2025-03-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653891', 'tblTempVendorCDR_20' ) start [2025-03-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653891', 'tblTempVendorCDR_20' ) end [2025-03-11 02:48:18] Production.INFO: ProcessCDR(1,14653891,1,1,2) [2025-03-11 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653891', 'tblTempUsageDetail_20' ) start [2025-03-11 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653891', 'tblTempUsageDetail_20' ) end [2025-03-11 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:48:22] Production.INFO: ==14446== Releasing lock... [2025-03-11 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:49:05 [end_date_ymd] => 2025-03-11 02:49:05 [RateCDR] => 1 ) [2025-03-11 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:49:05' and `end` < '2025-03-11 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:49:17] Production.INFO: count ==258 [2025-03-11 02:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:49:05 - End Time 2025-03-11 02:49:05 [2025-03-11 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653896', 'tblTempUsageDetail_20' ) start [2025-03-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653896', 'tblTempUsageDetail_20' ) end [2025-03-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653896', 'tblTempVendorCDR_20' ) start [2025-03-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653896', 'tblTempVendorCDR_20' ) end [2025-03-11 02:49:18] Production.INFO: ProcessCDR(1,14653896,1,1,2) [2025-03-11 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653896', 'tblTempUsageDetail_20' ) start [2025-03-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653896', 'tblTempUsageDetail_20' ) end [2025-03-11 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:49:21] Production.INFO: ==14521== Releasing lock... [2025-03-11 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:50:06 [end_date_ymd] => 2025-03-11 02:50:06 [RateCDR] => 1 ) [2025-03-11 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:50:06' and `end` < '2025-03-11 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:50:18] Production.INFO: count ==266 [2025-03-11 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:50:06 - End Time 2025-03-11 02:50:06 [2025-03-11 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653902', 'tblTempUsageDetail_20' ) start [2025-03-11 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653902', 'tblTempUsageDetail_20' ) end [2025-03-11 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653902', 'tblTempVendorCDR_20' ) start [2025-03-11 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653902', 'tblTempVendorCDR_20' ) end [2025-03-11 02:50:18] Production.INFO: ProcessCDR(1,14653902,1,1,2) [2025-03-11 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653902', 'tblTempUsageDetail_20' ) start [2025-03-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653902', 'tblTempUsageDetail_20' ) end [2025-03-11 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:50:22] Production.INFO: ==14597== Releasing lock... [2025-03-11 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:51:05 [end_date_ymd] => 2025-03-11 02:51:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:51:05' and `end` < '2025-03-11 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-11 02:51:17] Production.INFO: count ==269 [2025-03-11 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:51:05 - End Time 2025-03-11 02:51:05 [2025-03-11 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653907', 'tblTempUsageDetail_20' ) start [2025-03-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653907', 'tblTempUsageDetail_20' ) end [2025-03-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653907', 'tblTempVendorCDR_20' ) start [2025-03-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653907', 'tblTempVendorCDR_20' ) end [2025-03-11 02:51:18] Production.INFO: ProcessCDR(1,14653907,1,1,2) [2025-03-11 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653907', 'tblTempUsageDetail_20' ) start [2025-03-11 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653907', 'tblTempUsageDetail_20' ) end [2025-03-11 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:51:21] Production.INFO: ==14670== Releasing lock... [2025-03-11 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:52:06 [end_date_ymd] => 2025-03-11 02:52:06 [RateCDR] => 1 ) [2025-03-11 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-10 23:52:06' and `end` < '2025-03-11 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-11 02:52:18] Production.INFO: count ==275 [2025-03-11 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:52:06 - End Time 2025-03-11 02:52:06 [2025-03-11 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653912', 'tblTempUsageDetail_20' ) start [2025-03-11 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653912', 'tblTempUsageDetail_20' ) end [2025-03-11 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653912', 'tblTempVendorCDR_20' ) start [2025-03-11 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653912', 'tblTempVendorCDR_20' ) end [2025-03-11 02:52:18] Production.INFO: ProcessCDR(1,14653912,1,1,2) [2025-03-11 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653912', 'tblTempUsageDetail_20' ) start [2025-03-11 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653912', 'tblTempUsageDetail_20' ) end [2025-03-11 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:52:22] Production.INFO: ==14744== Releasing lock... [2025-03-11 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:53:06 [end_date_ymd] => 2025-03-11 02:53:06 [RateCDR] => 1 ) [2025-03-11 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:53:06' and `end` < '2025-03-11 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:53:18] Production.INFO: count ==277 [2025-03-11 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:53:06 - End Time 2025-03-11 02:53:06 [2025-03-11 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653917', 'tblTempUsageDetail_20' ) start [2025-03-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653917', 'tblTempUsageDetail_20' ) end [2025-03-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653917', 'tblTempVendorCDR_20' ) start [2025-03-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653917', 'tblTempVendorCDR_20' ) end [2025-03-11 02:53:18] Production.INFO: ProcessCDR(1,14653917,1,1,2) [2025-03-11 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653917', 'tblTempUsageDetail_20' ) start [2025-03-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653917', 'tblTempUsageDetail_20' ) end [2025-03-11 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:53:22] Production.INFO: ==14817== Releasing lock... [2025-03-11 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:53:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:54:06 [end_date_ymd] => 2025-03-11 02:54:06 [RateCDR] => 1 ) [2025-03-11 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:54:06' and `end` < '2025-03-11 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:54:18] Production.INFO: count ==280 [2025-03-11 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:54:06 - End Time 2025-03-11 02:54:06 [2025-03-11 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653922', 'tblTempUsageDetail_20' ) start [2025-03-11 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653922', 'tblTempUsageDetail_20' ) end [2025-03-11 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653922', 'tblTempVendorCDR_20' ) start [2025-03-11 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653922', 'tblTempVendorCDR_20' ) end [2025-03-11 02:54:18] Production.INFO: ProcessCDR(1,14653922,1,1,2) [2025-03-11 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653922', 'tblTempUsageDetail_20' ) start [2025-03-11 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653922', 'tblTempUsageDetail_20' ) end [2025-03-11 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:54:22] Production.INFO: ==14890== Releasing lock... [2025-03-11 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:55:06 [end_date_ymd] => 2025-03-11 02:55:06 [RateCDR] => 1 ) [2025-03-11 02: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-10 23:55:06' and `end` < '2025-03-11 02: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-11 02:55:18] Production.INFO: count ==301 [2025-03-11 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:55:06 - End Time 2025-03-11 02:55:06 [2025-03-11 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653927', 'tblTempUsageDetail_20' ) start [2025-03-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653927', 'tblTempUsageDetail_20' ) end [2025-03-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653927', 'tblTempVendorCDR_20' ) start [2025-03-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653927', 'tblTempVendorCDR_20' ) end [2025-03-11 02:55:18] Production.INFO: ProcessCDR(1,14653927,1,1,2) [2025-03-11 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653927', 'tblTempUsageDetail_20' ) start [2025-03-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653927', 'tblTempUsageDetail_20' ) end [2025-03-11 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:55:22] Production.INFO: ==15004== Releasing lock... [2025-03-11 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:56:06 [end_date_ymd] => 2025-03-11 02:56:06 [RateCDR] => 1 ) [2025-03-11 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:56:06' and `end` < '2025-03-11 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:56:18] Production.INFO: count ==301 [2025-03-11 02:56:19] Production.ERROR: pbx CDR StartTime 2025-03-10 23:56:06 - End Time 2025-03-11 02:56:06 [2025-03-11 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653932', 'tblTempUsageDetail_20' ) start [2025-03-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653932', 'tblTempUsageDetail_20' ) end [2025-03-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653932', 'tblTempVendorCDR_20' ) start [2025-03-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653932', 'tblTempVendorCDR_20' ) end [2025-03-11 02:56:19] Production.INFO: ProcessCDR(1,14653932,1,1,2) [2025-03-11 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653932', 'tblTempUsageDetail_20' ) start [2025-03-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653932', 'tblTempUsageDetail_20' ) end [2025-03-11 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:56:22] Production.INFO: ==15082== Releasing lock... [2025-03-11 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:57:05 [end_date_ymd] => 2025-03-11 02:57:05 [RateCDR] => 1 ) [2025-03-11 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-10 23:57:05' and `end` < '2025-03-11 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-11 02:57:17] Production.INFO: count ==300 [2025-03-11 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:57:05 - End Time 2025-03-11 02:57:05 [2025-03-11 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653937', 'tblTempUsageDetail_20' ) start [2025-03-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653937', 'tblTempUsageDetail_20' ) end [2025-03-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653937', 'tblTempVendorCDR_20' ) start [2025-03-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653937', 'tblTempVendorCDR_20' ) end [2025-03-11 02:57:18] Production.INFO: ProcessCDR(1,14653937,1,1,2) [2025-03-11 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653937', 'tblTempUsageDetail_20' ) start [2025-03-11 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653937', 'tblTempUsageDetail_20' ) end [2025-03-11 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:57:21] Production.INFO: ==15154== Releasing lock... [2025-03-11 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:58:06 [end_date_ymd] => 2025-03-11 02:58:06 [RateCDR] => 1 ) [2025-03-11 02: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-10 23:58:06' and `end` < '2025-03-11 02: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-11 02:58:18] Production.INFO: count ==304 [2025-03-11 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-10 23:58:06 - End Time 2025-03-11 02:58:06 [2025-03-11 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653942', 'tblTempUsageDetail_20' ) start [2025-03-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653942', 'tblTempUsageDetail_20' ) end [2025-03-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653942', 'tblTempVendorCDR_20' ) start [2025-03-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653942', 'tblTempVendorCDR_20' ) end [2025-03-11 02:58:18] Production.INFO: ProcessCDR(1,14653942,1,1,2) [2025-03-11 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653942', 'tblTempUsageDetail_20' ) start [2025-03-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653942', 'tblTempUsageDetail_20' ) end [2025-03-11 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:58:22] Production.INFO: ==15228== Releasing lock... [2025-03-11 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 23:59:05 [end_date_ymd] => 2025-03-11 02:59:05 [RateCDR] => 1 ) [2025-03-11 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 23:59:05' and `end` < '2025-03-11 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 02:59:17] Production.INFO: count ==310 [2025-03-11 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 23:59:05 - End Time 2025-03-11 02:59:05 [2025-03-11 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653947', 'tblTempUsageDetail_20' ) start [2025-03-11 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653947', 'tblTempUsageDetail_20' ) end [2025-03-11 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653947', 'tblTempVendorCDR_20' ) start [2025-03-11 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653947', 'tblTempVendorCDR_20' ) end [2025-03-11 02:59:17] Production.INFO: ProcessCDR(1,14653947,1,1,2) [2025-03-11 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653947', 'tblTempUsageDetail_20' ) start [2025-03-11 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653947', 'tblTempUsageDetail_20' ) end [2025-03-11 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 02:59:21] Production.INFO: ==15307== Releasing lock... [2025-03-11 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 02:59:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:00:06 [end_date_ymd] => 2025-03-11 03:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:00:06' and `end` < '2025-03-11 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-11 03:00:19] Production.INFO: count ==315 [2025-03-11 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 00:00:06 - End Time 2025-03-11 03:00:06 [2025-03-11 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653953', 'tblTempUsageDetail_20' ) start [2025-03-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653953', 'tblTempUsageDetail_20' ) end [2025-03-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653953', 'tblTempVendorCDR_20' ) start [2025-03-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653953', 'tblTempVendorCDR_20' ) end [2025-03-11 03:00:19] Production.INFO: ProcessCDR(1,14653953,1,1,2) [2025-03-11 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653953', 'tblTempUsageDetail_20' ) start [2025-03-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653953', 'tblTempUsageDetail_20' ) end [2025-03-11 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:00:22] Production.INFO: ==15385== Releasing lock... [2025-03-11 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:00:22] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:01:05 [end_date_ymd] => 2025-03-11 03:01:05 [RateCDR] => 1 ) [2025-03-11 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:01:05' and `end` < '2025-03-11 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:01:17] Production.INFO: count ==315 [2025-03-11 03:01:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:01:05 - End Time 2025-03-11 03:01:05 [2025-03-11 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653958', 'tblTempUsageDetail_20' ) start [2025-03-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653958', 'tblTempUsageDetail_20' ) end [2025-03-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653958', 'tblTempVendorCDR_20' ) start [2025-03-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653958', 'tblTempVendorCDR_20' ) end [2025-03-11 03:01:18] Production.INFO: ProcessCDR(1,14653958,1,1,2) [2025-03-11 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653958', 'tblTempUsageDetail_20' ) start [2025-03-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653958', 'tblTempUsageDetail_20' ) end [2025-03-11 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:01:21] Production.INFO: ==15470== Releasing lock... [2025-03-11 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:02:05 [end_date_ymd] => 2025-03-11 03:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:02:05' and `end` < '2025-03-11 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-11 03:02:17] Production.INFO: count ==315 [2025-03-11 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:02:05 - End Time 2025-03-11 03:02:05 [2025-03-11 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653963', 'tblTempUsageDetail_20' ) start [2025-03-11 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653963', 'tblTempUsageDetail_20' ) end [2025-03-11 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653963', 'tblTempVendorCDR_20' ) start [2025-03-11 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653963', 'tblTempVendorCDR_20' ) end [2025-03-11 03:02:17] Production.INFO: ProcessCDR(1,14653963,1,1,2) [2025-03-11 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653963', 'tblTempUsageDetail_20' ) start [2025-03-11 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653963', 'tblTempUsageDetail_20' ) end [2025-03-11 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:02:21] Production.INFO: ==15618== Releasing lock... [2025-03-11 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:03:05 [end_date_ymd] => 2025-03-11 03:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:03:05' and `end` < '2025-03-11 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-11 03:03:17] Production.INFO: count ==313 [2025-03-11 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:03:05 - End Time 2025-03-11 03:03:05 [2025-03-11 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653968', 'tblTempUsageDetail_20' ) start [2025-03-11 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653968', 'tblTempUsageDetail_20' ) end [2025-03-11 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653968', 'tblTempVendorCDR_20' ) start [2025-03-11 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653968', 'tblTempVendorCDR_20' ) end [2025-03-11 03:03:17] Production.INFO: ProcessCDR(1,14653968,1,1,2) [2025-03-11 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653968', 'tblTempUsageDetail_20' ) start [2025-03-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653968', 'tblTempUsageDetail_20' ) end [2025-03-11 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:03:21] Production.INFO: ==15691== Releasing lock... [2025-03-11 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:04:05 [end_date_ymd] => 2025-03-11 03:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:04:05' and `end` < '2025-03-11 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-11 03:04:17] Production.INFO: count ==312 [2025-03-11 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:04:05 - End Time 2025-03-11 03:04:05 [2025-03-11 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653972', 'tblTempUsageDetail_20' ) start [2025-03-11 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653972', 'tblTempUsageDetail_20' ) end [2025-03-11 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653972', 'tblTempVendorCDR_20' ) start [2025-03-11 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653972', 'tblTempVendorCDR_20' ) end [2025-03-11 03:04:17] Production.INFO: ProcessCDR(1,14653972,1,1,2) [2025-03-11 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653972', 'tblTempUsageDetail_20' ) start [2025-03-11 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653972', 'tblTempUsageDetail_20' ) end [2025-03-11 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:04:20] Production.INFO: ==15768== Releasing lock... [2025-03-11 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:04:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:05:06 [end_date_ymd] => 2025-03-11 03:05:06 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:05:06' and `end` < '2025-03-11 03: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-11 03:05:18] Production.INFO: count ==311 [2025-03-11 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:05:06 - End Time 2025-03-11 03:05:06 [2025-03-11 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653978', 'tblTempUsageDetail_20' ) start [2025-03-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653978', 'tblTempUsageDetail_20' ) end [2025-03-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653978', 'tblTempVendorCDR_20' ) start [2025-03-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653978', 'tblTempVendorCDR_20' ) end [2025-03-11 03:05:18] Production.INFO: ProcessCDR(1,14653978,1,1,2) [2025-03-11 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653978', 'tblTempUsageDetail_20' ) start [2025-03-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653978', 'tblTempUsageDetail_20' ) end [2025-03-11 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:05:21] Production.INFO: ==15841== Releasing lock... [2025-03-11 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:06:06 [end_date_ymd] => 2025-03-11 03:06:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:06:06' and `end` < '2025-03-11 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-11 03:06:18] Production.INFO: count ==311 [2025-03-11 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:06:06 - End Time 2025-03-11 03:06:06 [2025-03-11 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653983', 'tblTempUsageDetail_20' ) start [2025-03-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653983', 'tblTempUsageDetail_20' ) end [2025-03-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653983', 'tblTempVendorCDR_20' ) start [2025-03-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653983', 'tblTempVendorCDR_20' ) end [2025-03-11 03:06:18] Production.INFO: ProcessCDR(1,14653983,1,1,2) [2025-03-11 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653983', 'tblTempUsageDetail_20' ) start [2025-03-11 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653983', 'tblTempUsageDetail_20' ) end [2025-03-11 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:06:21] Production.INFO: ==15991== Releasing lock... [2025-03-11 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:07:05 [end_date_ymd] => 2025-03-11 03:07:05 [RateCDR] => 1 ) [2025-03-11 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:07:05' and `end` < '2025-03-11 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:07:17] Production.INFO: count ==310 [2025-03-11 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:07:05 - End Time 2025-03-11 03:07:05 [2025-03-11 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653988', 'tblTempUsageDetail_20' ) start [2025-03-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653988', 'tblTempUsageDetail_20' ) end [2025-03-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653988', 'tblTempVendorCDR_20' ) start [2025-03-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653988', 'tblTempVendorCDR_20' ) end [2025-03-11 03:07:17] Production.INFO: ProcessCDR(1,14653988,1,1,2) [2025-03-11 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653988', 'tblTempUsageDetail_20' ) start [2025-03-11 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653988', 'tblTempUsageDetail_20' ) end [2025-03-11 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:07:20] Production.INFO: ==16063== Releasing lock... [2025-03-11 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:07:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:08:06 [end_date_ymd] => 2025-03-11 03:08:06 [RateCDR] => 1 ) [2025-03-11 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:08:06' and `end` < '2025-03-11 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:08:18] Production.INFO: count ==310 [2025-03-11 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:08:06 - End Time 2025-03-11 03:08:06 [2025-03-11 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653993', 'tblTempUsageDetail_20' ) start [2025-03-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653993', 'tblTempUsageDetail_20' ) end [2025-03-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653993', 'tblTempVendorCDR_20' ) start [2025-03-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653993', 'tblTempVendorCDR_20' ) end [2025-03-11 03:08:18] Production.INFO: ProcessCDR(1,14653993,1,1,2) [2025-03-11 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653993', 'tblTempUsageDetail_20' ) start [2025-03-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653993', 'tblTempUsageDetail_20' ) end [2025-03-11 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:08:21] Production.INFO: ==16137== Releasing lock... [2025-03-11 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:09:05 [end_date_ymd] => 2025-03-11 03:09:05 [RateCDR] => 1 ) [2025-03-11 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:09:05' and `end` < '2025-03-11 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:09:17] Production.INFO: count ==314 [2025-03-11 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:09:05 - End Time 2025-03-11 03:09:05 [2025-03-11 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653998', 'tblTempUsageDetail_20' ) start [2025-03-11 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653998', 'tblTempUsageDetail_20' ) end [2025-03-11 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653998', 'tblTempVendorCDR_20' ) start [2025-03-11 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653998', 'tblTempVendorCDR_20' ) end [2025-03-11 03:09:17] Production.INFO: ProcessCDR(1,14653998,1,1,2) [2025-03-11 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653998', 'tblTempUsageDetail_20' ) start [2025-03-11 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653998', 'tblTempUsageDetail_20' ) end [2025-03-11 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:09:20] Production.INFO: ==16284== Releasing lock... [2025-03-11 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:09:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:10:07 [end_date_ymd] => 2025-03-11 03:10:07 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:10:07' and `end` < '2025-03-11 03: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-11 03:10:19] Production.INFO: count ==314 [2025-03-11 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-11 00:10:07 - End Time 2025-03-11 03:10:07 [2025-03-11 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654004', 'tblTempUsageDetail_20' ) start [2025-03-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654004', 'tblTempUsageDetail_20' ) end [2025-03-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654004', 'tblTempVendorCDR_20' ) start [2025-03-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654004', 'tblTempVendorCDR_20' ) end [2025-03-11 03:10:19] Production.INFO: ProcessCDR(1,14654004,1,1,2) [2025-03-11 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654004', 'tblTempUsageDetail_20' ) start [2025-03-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654004', 'tblTempUsageDetail_20' ) end [2025-03-11 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:10:22] Production.INFO: ==16360== Releasing lock... [2025-03-11 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:10:22] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:11:05 [end_date_ymd] => 2025-03-11 03:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:11:05' and `end` < '2025-03-11 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-11 03:11:17] Production.INFO: count ==314 [2025-03-11 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:11:05 - End Time 2025-03-11 03:11:05 [2025-03-11 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654009', 'tblTempUsageDetail_20' ) start [2025-03-11 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654009', 'tblTempUsageDetail_20' ) end [2025-03-11 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654009', 'tblTempVendorCDR_20' ) start [2025-03-11 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654009', 'tblTempVendorCDR_20' ) end [2025-03-11 03:11:17] Production.INFO: ProcessCDR(1,14654009,1,1,2) [2025-03-11 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654009', 'tblTempUsageDetail_20' ) start [2025-03-11 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654009', 'tblTempUsageDetail_20' ) end [2025-03-11 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:11:20] Production.INFO: ==16470== Releasing lock... [2025-03-11 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:11:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:12:06 [end_date_ymd] => 2025-03-11 03:12:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:12:06' and `end` < '2025-03-11 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-11 03:12:18] Production.INFO: count ==314 [2025-03-11 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:12:06 - End Time 2025-03-11 03:12:06 [2025-03-11 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654014', 'tblTempUsageDetail_20' ) start [2025-03-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654014', 'tblTempUsageDetail_20' ) end [2025-03-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654014', 'tblTempVendorCDR_20' ) start [2025-03-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654014', 'tblTempVendorCDR_20' ) end [2025-03-11 03:12:18] Production.INFO: ProcessCDR(1,14654014,1,1,2) [2025-03-11 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654014', 'tblTempUsageDetail_20' ) start [2025-03-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654014', 'tblTempUsageDetail_20' ) end [2025-03-11 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:12:21] Production.INFO: ==16542== Releasing lock... [2025-03-11 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:13:05 [end_date_ymd] => 2025-03-11 03:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:13:05' and `end` < '2025-03-11 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-11 03:13:17] Production.INFO: count ==314 [2025-03-11 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:13:05 - End Time 2025-03-11 03:13:05 [2025-03-11 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654019', 'tblTempUsageDetail_20' ) start [2025-03-11 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654019', 'tblTempUsageDetail_20' ) end [2025-03-11 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654019', 'tblTempVendorCDR_20' ) start [2025-03-11 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654019', 'tblTempVendorCDR_20' ) end [2025-03-11 03:13:17] Production.INFO: ProcessCDR(1,14654019,1,1,2) [2025-03-11 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654019', 'tblTempUsageDetail_20' ) start [2025-03-11 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654019', 'tblTempUsageDetail_20' ) end [2025-03-11 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:13:20] Production.INFO: ==16714== Releasing lock... [2025-03-11 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:13:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:14:05 [end_date_ymd] => 2025-03-11 03:14:05 [RateCDR] => 1 ) [2025-03-11 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:14:05' and `end` < '2025-03-11 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:14:17] Production.INFO: count ==314 [2025-03-11 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:14:05 - End Time 2025-03-11 03:14:05 [2025-03-11 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654024', 'tblTempUsageDetail_20' ) start [2025-03-11 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654024', 'tblTempUsageDetail_20' ) end [2025-03-11 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654024', 'tblTempVendorCDR_20' ) start [2025-03-11 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654024', 'tblTempVendorCDR_20' ) end [2025-03-11 03:14:17] Production.INFO: ProcessCDR(1,14654024,1,1,2) [2025-03-11 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654024', 'tblTempUsageDetail_20' ) start [2025-03-11 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654024', 'tblTempUsageDetail_20' ) end [2025-03-11 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:14:20] Production.INFO: ==16808== Releasing lock... [2025-03-11 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:14:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:15:05 [end_date_ymd] => 2025-03-11 03:15:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:15:05' and `end` < '2025-03-11 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-11 03:15:17] Production.INFO: count ==314 [2025-03-11 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:15:05 - End Time 2025-03-11 03:15:05 [2025-03-11 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654029', 'tblTempUsageDetail_20' ) start [2025-03-11 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654029', 'tblTempUsageDetail_20' ) end [2025-03-11 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654029', 'tblTempVendorCDR_20' ) start [2025-03-11 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654029', 'tblTempVendorCDR_20' ) end [2025-03-11 03:15:17] Production.INFO: ProcessCDR(1,14654029,1,1,2) [2025-03-11 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654029', 'tblTempUsageDetail_20' ) start [2025-03-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654029', 'tblTempUsageDetail_20' ) end [2025-03-11 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:15:21] Production.INFO: ==16879== Releasing lock... [2025-03-11 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:16:06 [end_date_ymd] => 2025-03-11 03:16:06 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:16:06' and `end` < '2025-03-11 03: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-11 03:16:17] Production.INFO: count ==312 [2025-03-11 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:16:06 - End Time 2025-03-11 03:16:06 [2025-03-11 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654034', 'tblTempUsageDetail_20' ) start [2025-03-11 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654034', 'tblTempUsageDetail_20' ) end [2025-03-11 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654034', 'tblTempVendorCDR_20' ) start [2025-03-11 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654034', 'tblTempVendorCDR_20' ) end [2025-03-11 03:16:18] Production.INFO: ProcessCDR(1,14654034,1,1,2) [2025-03-11 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654034', 'tblTempUsageDetail_20' ) start [2025-03-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654034', 'tblTempUsageDetail_20' ) end [2025-03-11 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:16:21] Production.INFO: ==16952== Releasing lock... [2025-03-11 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:17:05 [end_date_ymd] => 2025-03-11 03:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:17:05' and `end` < '2025-03-11 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-11 03:17:16] Production.INFO: count ==312 [2025-03-11 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:17:05 - End Time 2025-03-11 03:17:05 [2025-03-11 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654039', 'tblTempUsageDetail_20' ) start [2025-03-11 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654039', 'tblTempUsageDetail_20' ) end [2025-03-11 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654039', 'tblTempVendorCDR_20' ) start [2025-03-11 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654039', 'tblTempVendorCDR_20' ) end [2025-03-11 03:17:17] Production.INFO: ProcessCDR(1,14654039,1,1,2) [2025-03-11 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654039', 'tblTempUsageDetail_20' ) start [2025-03-11 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654039', 'tblTempUsageDetail_20' ) end [2025-03-11 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:17:20] Production.INFO: ==17104== Releasing lock... [2025-03-11 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:17:20] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:18:06 [end_date_ymd] => 2025-03-11 03:18:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:18:06' and `end` < '2025-03-11 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-11 03:18:17] Production.INFO: count ==312 [2025-03-11 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:18:06 - End Time 2025-03-11 03:18:06 [2025-03-11 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654044', 'tblTempUsageDetail_20' ) start [2025-03-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654044', 'tblTempUsageDetail_20' ) end [2025-03-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654044', 'tblTempVendorCDR_20' ) start [2025-03-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654044', 'tblTempVendorCDR_20' ) end [2025-03-11 03:18:18] Production.INFO: ProcessCDR(1,14654044,1,1,2) [2025-03-11 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654044', 'tblTempUsageDetail_20' ) start [2025-03-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654044', 'tblTempUsageDetail_20' ) end [2025-03-11 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:18:21] Production.INFO: ==17176== Releasing lock... [2025-03-11 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:18:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:19:05 [end_date_ymd] => 2025-03-11 03:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:19:05' and `end` < '2025-03-11 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-11 03:19:17] Production.INFO: count ==312 [2025-03-11 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:19:05 - End Time 2025-03-11 03:19:05 [2025-03-11 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654049', 'tblTempUsageDetail_20' ) start [2025-03-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654049', 'tblTempUsageDetail_20' ) end [2025-03-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654049', 'tblTempVendorCDR_20' ) start [2025-03-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654049', 'tblTempVendorCDR_20' ) end [2025-03-11 03:19:18] Production.INFO: ProcessCDR(1,14654049,1,1,2) [2025-03-11 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654049', 'tblTempUsageDetail_20' ) start [2025-03-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654049', 'tblTempUsageDetail_20' ) end [2025-03-11 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:19:21] Production.INFO: ==17253== Releasing lock... [2025-03-11 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:19:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:20:06 [end_date_ymd] => 2025-03-11 03:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:20:06' and `end` < '2025-03-11 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-11 03:20:18] Production.INFO: count ==300 [2025-03-11 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:20:06 - End Time 2025-03-11 03:20:06 [2025-03-11 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654055', 'tblTempUsageDetail_20' ) start [2025-03-11 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654055', 'tblTempUsageDetail_20' ) end [2025-03-11 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654055', 'tblTempVendorCDR_20' ) start [2025-03-11 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654055', 'tblTempVendorCDR_20' ) end [2025-03-11 03:20:19] Production.INFO: ProcessCDR(1,14654055,1,1,2) [2025-03-11 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654055', 'tblTempUsageDetail_20' ) start [2025-03-11 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654055', 'tblTempUsageDetail_20' ) end [2025-03-11 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:20:22] Production.INFO: ==17325== Releasing lock... [2025-03-11 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:21:06 [end_date_ymd] => 2025-03-11 03:21:06 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:21:06' and `end` < '2025-03-11 03: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-11 03:21:18] Production.INFO: count ==296 [2025-03-11 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:21:06 - End Time 2025-03-11 03:21:06 [2025-03-11 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654060', 'tblTempUsageDetail_20' ) start [2025-03-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654060', 'tblTempUsageDetail_20' ) end [2025-03-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654060', 'tblTempVendorCDR_20' ) start [2025-03-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654060', 'tblTempVendorCDR_20' ) end [2025-03-11 03:21:18] Production.INFO: ProcessCDR(1,14654060,1,1,2) [2025-03-11 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654060', 'tblTempUsageDetail_20' ) start [2025-03-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654060', 'tblTempUsageDetail_20' ) end [2025-03-11 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:21:21] Production.INFO: ==17411== Releasing lock... [2025-03-11 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:22:05 [end_date_ymd] => 2025-03-11 03:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:22:05' and `end` < '2025-03-11 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-11 03:22:17] Production.INFO: count ==296 [2025-03-11 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:22:05 - End Time 2025-03-11 03:22:05 [2025-03-11 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654065', 'tblTempUsageDetail_20' ) start [2025-03-11 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654065', 'tblTempUsageDetail_20' ) end [2025-03-11 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654065', 'tblTempVendorCDR_20' ) start [2025-03-11 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654065', 'tblTempVendorCDR_20' ) end [2025-03-11 03:22:17] Production.INFO: ProcessCDR(1,14654065,1,1,2) [2025-03-11 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654065', 'tblTempUsageDetail_20' ) start [2025-03-11 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654065', 'tblTempUsageDetail_20' ) end [2025-03-11 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:22:20] Production.INFO: ==17481== Releasing lock... [2025-03-11 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:23:05 [end_date_ymd] => 2025-03-11 03:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:23:05' and `end` < '2025-03-11 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-11 03:23:17] Production.INFO: count ==297 [2025-03-11 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:23:05 - End Time 2025-03-11 03:23:05 [2025-03-11 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654070', 'tblTempUsageDetail_20' ) start [2025-03-11 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654070', 'tblTempUsageDetail_20' ) end [2025-03-11 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654070', 'tblTempVendorCDR_20' ) start [2025-03-11 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654070', 'tblTempVendorCDR_20' ) end [2025-03-11 03:23:17] Production.INFO: ProcessCDR(1,14654070,1,1,2) [2025-03-11 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654070', 'tblTempUsageDetail_20' ) start [2025-03-11 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654070', 'tblTempUsageDetail_20' ) end [2025-03-11 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:23:22] Production.INFO: ==17561== Releasing lock... [2025-03-11 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:23:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:24:05 [end_date_ymd] => 2025-03-11 03:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:24:05' and `end` < '2025-03-11 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-11 03:24:17] Production.INFO: count ==297 [2025-03-11 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:24:05 - End Time 2025-03-11 03:24:05 [2025-03-11 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654075', 'tblTempUsageDetail_20' ) start [2025-03-11 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654075', 'tblTempUsageDetail_20' ) end [2025-03-11 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654075', 'tblTempVendorCDR_20' ) start [2025-03-11 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654075', 'tblTempVendorCDR_20' ) end [2025-03-11 03:24:17] Production.INFO: ProcessCDR(1,14654075,1,1,2) [2025-03-11 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654075', 'tblTempUsageDetail_20' ) start [2025-03-11 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654075', 'tblTempUsageDetail_20' ) end [2025-03-11 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:24:20] Production.INFO: ==17633== Releasing lock... [2025-03-11 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:25:05 [end_date_ymd] => 2025-03-11 03:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:25:05' and `end` < '2025-03-11 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-11 03:25:17] Production.INFO: count ==297 [2025-03-11 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:25:05 - End Time 2025-03-11 03:25:05 [2025-03-11 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654080', 'tblTempUsageDetail_20' ) start [2025-03-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654080', 'tblTempUsageDetail_20' ) end [2025-03-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654080', 'tblTempVendorCDR_20' ) start [2025-03-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654080', 'tblTempVendorCDR_20' ) end [2025-03-11 03:25:17] Production.INFO: ProcessCDR(1,14654080,1,1,2) [2025-03-11 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654080', 'tblTempUsageDetail_20' ) start [2025-03-11 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654080', 'tblTempUsageDetail_20' ) end [2025-03-11 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:25:21] Production.INFO: ==17706== Releasing lock... [2025-03-11 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:26:05 [end_date_ymd] => 2025-03-11 03:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:26:05' and `end` < '2025-03-11 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-11 03:26:17] Production.INFO: count ==297 [2025-03-11 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:26:05 - End Time 2025-03-11 03:26:05 [2025-03-11 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654085', 'tblTempUsageDetail_20' ) start [2025-03-11 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654085', 'tblTempUsageDetail_20' ) end [2025-03-11 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654085', 'tblTempVendorCDR_20' ) start [2025-03-11 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654085', 'tblTempVendorCDR_20' ) end [2025-03-11 03:26:17] Production.INFO: ProcessCDR(1,14654085,1,1,2) [2025-03-11 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654085', 'tblTempUsageDetail_20' ) start [2025-03-11 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654085', 'tblTempUsageDetail_20' ) end [2025-03-11 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:26:21] Production.INFO: ==17785== Releasing lock... [2025-03-11 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:27:05 [end_date_ymd] => 2025-03-11 03:27:05 [RateCDR] => 1 ) [2025-03-11 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:27:05' and `end` < '2025-03-11 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:27:17] Production.INFO: count ==297 [2025-03-11 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:27:05 - End Time 2025-03-11 03:27:05 [2025-03-11 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654090', 'tblTempUsageDetail_20' ) start [2025-03-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654090', 'tblTempUsageDetail_20' ) end [2025-03-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654090', 'tblTempVendorCDR_20' ) start [2025-03-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654090', 'tblTempVendorCDR_20' ) end [2025-03-11 03:27:17] Production.INFO: ProcessCDR(1,14654090,1,1,2) [2025-03-11 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654090', 'tblTempUsageDetail_20' ) start [2025-03-11 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654090', 'tblTempUsageDetail_20' ) end [2025-03-11 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:27:21] Production.INFO: ==17862== Releasing lock... [2025-03-11 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:28:05 [end_date_ymd] => 2025-03-11 03:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:28:05' and `end` < '2025-03-11 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-11 03:28:17] Production.INFO: count ==297 [2025-03-11 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:28:05 - End Time 2025-03-11 03:28:05 [2025-03-11 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654095', 'tblTempUsageDetail_20' ) start [2025-03-11 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654095', 'tblTempUsageDetail_20' ) end [2025-03-11 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654095', 'tblTempVendorCDR_20' ) start [2025-03-11 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654095', 'tblTempVendorCDR_20' ) end [2025-03-11 03:28:17] Production.INFO: ProcessCDR(1,14654095,1,1,2) [2025-03-11 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654095', 'tblTempUsageDetail_20' ) start [2025-03-11 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654095', 'tblTempUsageDetail_20' ) end [2025-03-11 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:28:20] Production.INFO: ==17972== Releasing lock... [2025-03-11 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:28:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:29:05 [end_date_ymd] => 2025-03-11 03:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:29:05' and `end` < '2025-03-11 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-11 03:29:17] Production.INFO: count ==297 [2025-03-11 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:29:05 - End Time 2025-03-11 03:29:05 [2025-03-11 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654100', 'tblTempUsageDetail_20' ) start [2025-03-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654100', 'tblTempUsageDetail_20' ) end [2025-03-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654100', 'tblTempVendorCDR_20' ) start [2025-03-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654100', 'tblTempVendorCDR_20' ) end [2025-03-11 03:29:17] Production.INFO: ProcessCDR(1,14654100,1,1,2) [2025-03-11 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654100', 'tblTempUsageDetail_20' ) start [2025-03-11 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654100', 'tblTempUsageDetail_20' ) end [2025-03-11 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:29:22] Production.INFO: ==18047== Releasing lock... [2025-03-11 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:30:05 [end_date_ymd] => 2025-03-11 03:30:05 [RateCDR] => 1 ) [2025-03-11 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:30:05' and `end` < '2025-03-11 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:30:17] Production.INFO: count ==296 [2025-03-11 03:30:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:30:05 - End Time 2025-03-11 03:30:05 [2025-03-11 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654106', 'tblTempUsageDetail_20' ) start [2025-03-11 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654106', 'tblTempUsageDetail_20' ) end [2025-03-11 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654106', 'tblTempVendorCDR_20' ) start [2025-03-11 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654106', 'tblTempVendorCDR_20' ) end [2025-03-11 03:30:17] Production.INFO: ProcessCDR(1,14654106,1,1,2) [2025-03-11 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654106', 'tblTempUsageDetail_20' ) start [2025-03-11 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654106', 'tblTempUsageDetail_20' ) end [2025-03-11 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:30:21] Production.INFO: ==18119== Releasing lock... [2025-03-11 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:31:06 [end_date_ymd] => 2025-03-11 03:31:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:31:06' and `end` < '2025-03-11 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-11 03:31:18] Production.INFO: count ==290 [2025-03-11 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:31:06 - End Time 2025-03-11 03:31:06 [2025-03-11 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654111', 'tblTempUsageDetail_20' ) start [2025-03-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654111', 'tblTempUsageDetail_20' ) end [2025-03-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654111', 'tblTempVendorCDR_20' ) start [2025-03-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654111', 'tblTempVendorCDR_20' ) end [2025-03-11 03:31:18] Production.INFO: ProcessCDR(1,14654111,1,1,2) [2025-03-11 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654111', 'tblTempUsageDetail_20' ) start [2025-03-11 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654111', 'tblTempUsageDetail_20' ) end [2025-03-11 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:31:22] Production.INFO: ==18193== Releasing lock... [2025-03-11 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:32:06 [end_date_ymd] => 2025-03-11 03:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:32:06' and `end` < '2025-03-11 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-11 03:32:18] Production.INFO: count ==290 [2025-03-11 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:32:06 - End Time 2025-03-11 03:32:06 [2025-03-11 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654116', 'tblTempUsageDetail_20' ) start [2025-03-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654116', 'tblTempUsageDetail_20' ) end [2025-03-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654116', 'tblTempVendorCDR_20' ) start [2025-03-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654116', 'tblTempVendorCDR_20' ) end [2025-03-11 03:32:18] Production.INFO: ProcessCDR(1,14654116,1,1,2) [2025-03-11 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654116', 'tblTempUsageDetail_20' ) start [2025-03-11 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654116', 'tblTempUsageDetail_20' ) end [2025-03-11 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:32:21] Production.INFO: ==18262== Releasing lock... [2025-03-11 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:33:05 [end_date_ymd] => 2025-03-11 03:33:05 [RateCDR] => 1 ) [2025-03-11 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:33:05' and `end` < '2025-03-11 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:33:18] Production.INFO: count ==290 [2025-03-11 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:33:05 - End Time 2025-03-11 03:33:05 [2025-03-11 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654121', 'tblTempUsageDetail_20' ) start [2025-03-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654121', 'tblTempUsageDetail_20' ) end [2025-03-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654121', 'tblTempVendorCDR_20' ) start [2025-03-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654121', 'tblTempVendorCDR_20' ) end [2025-03-11 03:33:18] Production.INFO: ProcessCDR(1,14654121,1,1,2) [2025-03-11 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654121', 'tblTempUsageDetail_20' ) start [2025-03-11 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654121', 'tblTempUsageDetail_20' ) end [2025-03-11 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:33:21] Production.INFO: ==18338== Releasing lock... [2025-03-11 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:34:05 [end_date_ymd] => 2025-03-11 03:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:34:05' and `end` < '2025-03-11 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-11 03:34:17] Production.INFO: count ==288 [2025-03-11 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:34:05 - End Time 2025-03-11 03:34:05 [2025-03-11 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654126', 'tblTempUsageDetail_20' ) start [2025-03-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654126', 'tblTempUsageDetail_20' ) end [2025-03-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654126', 'tblTempVendorCDR_20' ) start [2025-03-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654126', 'tblTempVendorCDR_20' ) end [2025-03-11 03:34:18] Production.INFO: ProcessCDR(1,14654126,1,1,2) [2025-03-11 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654126', 'tblTempUsageDetail_20' ) start [2025-03-11 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654126', 'tblTempUsageDetail_20' ) end [2025-03-11 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:34:21] Production.INFO: ==18413== Releasing lock... [2025-03-11 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:35:05 [end_date_ymd] => 2025-03-11 03:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:35:05' and `end` < '2025-03-11 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-11 03:35:17] Production.INFO: count ==285 [2025-03-11 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:35:05 - End Time 2025-03-11 03:35:05 [2025-03-11 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654131', 'tblTempUsageDetail_20' ) start [2025-03-11 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654131', 'tblTempUsageDetail_20' ) end [2025-03-11 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654131', 'tblTempVendorCDR_20' ) start [2025-03-11 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654131', 'tblTempVendorCDR_20' ) end [2025-03-11 03:35:17] Production.INFO: ProcessCDR(1,14654131,1,1,2) [2025-03-11 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654131', 'tblTempUsageDetail_20' ) start [2025-03-11 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654131', 'tblTempUsageDetail_20' ) end [2025-03-11 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:35:21] Production.INFO: ==18487== Releasing lock... [2025-03-11 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:36:05 [end_date_ymd] => 2025-03-11 03:36:05 [RateCDR] => 1 ) [2025-03-11 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:36:05' and `end` < '2025-03-11 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:36:17] Production.INFO: count ==284 [2025-03-11 03:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:36:05 - End Time 2025-03-11 03:36:05 [2025-03-11 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654136', 'tblTempUsageDetail_20' ) start [2025-03-11 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654136', 'tblTempUsageDetail_20' ) end [2025-03-11 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654136', 'tblTempVendorCDR_20' ) start [2025-03-11 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654136', 'tblTempVendorCDR_20' ) end [2025-03-11 03:36:17] Production.INFO: ProcessCDR(1,14654136,1,1,2) [2025-03-11 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654136', 'tblTempUsageDetail_20' ) start [2025-03-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654136', 'tblTempUsageDetail_20' ) end [2025-03-11 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:36:21] Production.INFO: ==18564== Releasing lock... [2025-03-11 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:37:06 [end_date_ymd] => 2025-03-11 03:37:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:37:06' and `end` < '2025-03-11 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-11 03:37:18] Production.INFO: count ==284 [2025-03-11 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:37:06 - End Time 2025-03-11 03:37:06 [2025-03-11 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654141', 'tblTempUsageDetail_20' ) start [2025-03-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654141', 'tblTempUsageDetail_20' ) end [2025-03-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654141', 'tblTempVendorCDR_20' ) start [2025-03-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654141', 'tblTempVendorCDR_20' ) end [2025-03-11 03:37:18] Production.INFO: ProcessCDR(1,14654141,1,1,2) [2025-03-11 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654141', 'tblTempUsageDetail_20' ) start [2025-03-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654141', 'tblTempUsageDetail_20' ) end [2025-03-11 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:37:22] Production.INFO: ==18636== Releasing lock... [2025-03-11 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:38:05 [end_date_ymd] => 2025-03-11 03:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:38:05' and `end` < '2025-03-11 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-11 03:38:17] Production.INFO: count ==284 [2025-03-11 03:38:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:38:05 - End Time 2025-03-11 03:38:05 [2025-03-11 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654146', 'tblTempUsageDetail_20' ) start [2025-03-11 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654146', 'tblTempUsageDetail_20' ) end [2025-03-11 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654146', 'tblTempVendorCDR_20' ) start [2025-03-11 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654146', 'tblTempVendorCDR_20' ) end [2025-03-11 03:38:17] Production.INFO: ProcessCDR(1,14654146,1,1,2) [2025-03-11 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654146', 'tblTempUsageDetail_20' ) start [2025-03-11 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654146', 'tblTempUsageDetail_20' ) end [2025-03-11 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:38:21] Production.INFO: ==18713== Releasing lock... [2025-03-11 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:39:05 [end_date_ymd] => 2025-03-11 03:39:05 [RateCDR] => 1 ) [2025-03-11 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:39:05' and `end` < '2025-03-11 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:39:17] Production.INFO: count ==284 [2025-03-11 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:39:05 - End Time 2025-03-11 03:39:05 [2025-03-11 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654151', 'tblTempUsageDetail_20' ) start [2025-03-11 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654151', 'tblTempUsageDetail_20' ) end [2025-03-11 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654151', 'tblTempVendorCDR_20' ) start [2025-03-11 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654151', 'tblTempVendorCDR_20' ) end [2025-03-11 03:39:17] Production.INFO: ProcessCDR(1,14654151,1,1,2) [2025-03-11 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654151', 'tblTempUsageDetail_20' ) start [2025-03-11 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654151', 'tblTempUsageDetail_20' ) end [2025-03-11 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:39:21] Production.INFO: ==18793== Releasing lock... [2025-03-11 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:40:06 [end_date_ymd] => 2025-03-11 03:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:40:06' and `end` < '2025-03-11 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-11 03:40:20] Production.INFO: count ==279 [2025-03-11 03:40:20] Production.ERROR: pbx CDR StartTime 2025-03-11 00:40:06 - End Time 2025-03-11 03:40:06 [2025-03-11 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654157', 'tblTempUsageDetail_20' ) start [2025-03-11 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654157', 'tblTempUsageDetail_20' ) end [2025-03-11 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654157', 'tblTempVendorCDR_20' ) start [2025-03-11 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654157', 'tblTempVendorCDR_20' ) end [2025-03-11 03:40:20] Production.INFO: ProcessCDR(1,14654157,1,1,2) [2025-03-11 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654157', 'tblTempUsageDetail_20' ) start [2025-03-11 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654157', 'tblTempUsageDetail_20' ) end [2025-03-11 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:40:24] Production.INFO: ==18867== Releasing lock... [2025-03-11 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:40:24] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:41:05 [end_date_ymd] => 2025-03-11 03:41:05 [RateCDR] => 1 ) [2025-03-11 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:41:05' and `end` < '2025-03-11 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:41:17] Production.INFO: count ==279 [2025-03-11 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:41:05 - End Time 2025-03-11 03:41:05 [2025-03-11 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654162', 'tblTempUsageDetail_20' ) start [2025-03-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654162', 'tblTempUsageDetail_20' ) end [2025-03-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654162', 'tblTempVendorCDR_20' ) start [2025-03-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654162', 'tblTempVendorCDR_20' ) end [2025-03-11 03:41:18] Production.INFO: ProcessCDR(1,14654162,1,1,2) [2025-03-11 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654162', 'tblTempUsageDetail_20' ) start [2025-03-11 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654162', 'tblTempUsageDetail_20' ) end [2025-03-11 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:41:21] Production.INFO: ==18944== Releasing lock... [2025-03-11 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:41:21] Production.INFO: 31 MB #Memory Used# [2025-03-11 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:42:05 [end_date_ymd] => 2025-03-11 03:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:42:05' and `end` < '2025-03-11 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-11 03:42:17] Production.INFO: count ==276 [2025-03-11 03:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:42:05 - End Time 2025-03-11 03:42:05 [2025-03-11 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654167', 'tblTempUsageDetail_20' ) start [2025-03-11 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654167', 'tblTempUsageDetail_20' ) end [2025-03-11 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654167', 'tblTempVendorCDR_20' ) start [2025-03-11 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654167', 'tblTempVendorCDR_20' ) end [2025-03-11 03:42:17] Production.INFO: ProcessCDR(1,14654167,1,1,2) [2025-03-11 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654167', 'tblTempUsageDetail_20' ) start [2025-03-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654167', 'tblTempUsageDetail_20' ) end [2025-03-11 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:42:21] Production.INFO: ==19017== Releasing lock... [2025-03-11 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:43:05 [end_date_ymd] => 2025-03-11 03:43:05 [RateCDR] => 1 ) [2025-03-11 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:43:05' and `end` < '2025-03-11 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:43:17] Production.INFO: count ==277 [2025-03-11 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:43:05 - End Time 2025-03-11 03:43:05 [2025-03-11 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654172', 'tblTempUsageDetail_20' ) start [2025-03-11 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654172', 'tblTempUsageDetail_20' ) end [2025-03-11 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654172', 'tblTempVendorCDR_20' ) start [2025-03-11 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654172', 'tblTempVendorCDR_20' ) end [2025-03-11 03:43:17] Production.INFO: ProcessCDR(1,14654172,1,1,2) [2025-03-11 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654172', 'tblTempUsageDetail_20' ) start [2025-03-11 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654172', 'tblTempUsageDetail_20' ) end [2025-03-11 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:43:22] Production.INFO: ==19140== Releasing lock... [2025-03-11 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:44:05 [end_date_ymd] => 2025-03-11 03:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:44:05' and `end` < '2025-03-11 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-11 03:44:17] Production.INFO: count ==273 [2025-03-11 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:44:05 - End Time 2025-03-11 03:44:05 [2025-03-11 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654177', 'tblTempUsageDetail_20' ) start [2025-03-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654177', 'tblTempUsageDetail_20' ) end [2025-03-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654177', 'tblTempVendorCDR_20' ) start [2025-03-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654177', 'tblTempVendorCDR_20' ) end [2025-03-11 03:44:18] Production.INFO: ProcessCDR(1,14654177,1,1,2) [2025-03-11 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654177', 'tblTempUsageDetail_20' ) start [2025-03-11 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654177', 'tblTempUsageDetail_20' ) end [2025-03-11 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:44:21] Production.INFO: ==19215== Releasing lock... [2025-03-11 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:45:05 [end_date_ymd] => 2025-03-11 03:45:05 [RateCDR] => 1 ) [2025-03-11 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:45:05' and `end` < '2025-03-11 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:45:17] Production.INFO: count ==270 [2025-03-11 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:45:05 - End Time 2025-03-11 03:45:05 [2025-03-11 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654182', 'tblTempUsageDetail_20' ) start [2025-03-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654182', 'tblTempUsageDetail_20' ) end [2025-03-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654182', 'tblTempVendorCDR_20' ) start [2025-03-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654182', 'tblTempVendorCDR_20' ) end [2025-03-11 03:45:17] Production.INFO: ProcessCDR(1,14654182,1,1,2) [2025-03-11 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654182', 'tblTempUsageDetail_20' ) start [2025-03-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654182', 'tblTempUsageDetail_20' ) end [2025-03-11 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:45:21] Production.INFO: ==19292== Releasing lock... [2025-03-11 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:46:05 [end_date_ymd] => 2025-03-11 03:46:05 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:46:05' and `end` < '2025-03-11 03: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-11 03:46:18] Production.INFO: count ==269 [2025-03-11 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:46:05 - End Time 2025-03-11 03:46:05 [2025-03-11 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654187', 'tblTempUsageDetail_20' ) start [2025-03-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654187', 'tblTempUsageDetail_20' ) end [2025-03-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654187', 'tblTempVendorCDR_20' ) start [2025-03-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654187', 'tblTempVendorCDR_20' ) end [2025-03-11 03:46:18] Production.INFO: ProcessCDR(1,14654187,1,1,2) [2025-03-11 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654187', 'tblTempUsageDetail_20' ) start [2025-03-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654187', 'tblTempUsageDetail_20' ) end [2025-03-11 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:46:21] Production.INFO: ==19371== Releasing lock... [2025-03-11 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:47:05 [end_date_ymd] => 2025-03-11 03:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 00:47:05' and `end` < '2025-03-11 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-11 03:47:18] Production.INFO: count ==273 [2025-03-11 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:47:05 - End Time 2025-03-11 03:47:05 [2025-03-11 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654192', 'tblTempUsageDetail_20' ) start [2025-03-11 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654192', 'tblTempUsageDetail_20' ) end [2025-03-11 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654192', 'tblTempVendorCDR_20' ) start [2025-03-11 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654192', 'tblTempVendorCDR_20' ) end [2025-03-11 03:47:18] Production.INFO: ProcessCDR(1,14654192,1,1,2) [2025-03-11 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654192', 'tblTempUsageDetail_20' ) start [2025-03-11 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654192', 'tblTempUsageDetail_20' ) end [2025-03-11 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:47:21] Production.INFO: ==19443== Releasing lock... [2025-03-11 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:48:05 [end_date_ymd] => 2025-03-11 03:48:05 [RateCDR] => 1 ) [2025-03-11 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:48:05' and `end` < '2025-03-11 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:48:19] Production.INFO: count ==272 [2025-03-11 03:48:19] Production.ERROR: pbx CDR StartTime 2025-03-11 00:48:05 - End Time 2025-03-11 03:48:05 [2025-03-11 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654197', 'tblTempUsageDetail_20' ) start [2025-03-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654197', 'tblTempUsageDetail_20' ) end [2025-03-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654197', 'tblTempVendorCDR_20' ) start [2025-03-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654197', 'tblTempVendorCDR_20' ) end [2025-03-11 03:48:19] Production.INFO: ProcessCDR(1,14654197,1,1,2) [2025-03-11 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654197', 'tblTempUsageDetail_20' ) start [2025-03-11 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654197', 'tblTempUsageDetail_20' ) end [2025-03-11 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:48:23] Production.INFO: ==19514== Releasing lock... [2025-03-11 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:48:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:49:06 [end_date_ymd] => 2025-03-11 03:49:06 [RateCDR] => 1 ) [2025-03-11 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:49:06' and `end` < '2025-03-11 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:49:18] Production.INFO: count ==272 [2025-03-11 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:49:06 - End Time 2025-03-11 03:49:06 [2025-03-11 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654202', 'tblTempUsageDetail_20' ) start [2025-03-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654202', 'tblTempUsageDetail_20' ) end [2025-03-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654202', 'tblTempVendorCDR_20' ) start [2025-03-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654202', 'tblTempVendorCDR_20' ) end [2025-03-11 03:49:18] Production.INFO: ProcessCDR(1,14654202,1,1,2) [2025-03-11 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654202', 'tblTempUsageDetail_20' ) start [2025-03-11 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654202', 'tblTempUsageDetail_20' ) end [2025-03-11 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:49:22] Production.INFO: ==19587== Releasing lock... [2025-03-11 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:50:06 [end_date_ymd] => 2025-03-11 03:50:06 [RateCDR] => 1 ) [2025-03-11 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:50:06' and `end` < '2025-03-11 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:50:18] Production.INFO: count ==272 [2025-03-11 03:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:50:06 - End Time 2025-03-11 03:50:06 [2025-03-11 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654207', 'tblTempUsageDetail_20' ) start [2025-03-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654207', 'tblTempUsageDetail_20' ) end [2025-03-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654207', 'tblTempVendorCDR_20' ) start [2025-03-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654207', 'tblTempVendorCDR_20' ) end [2025-03-11 03:50:18] Production.INFO: ProcessCDR(1,14654207,1,1,2) [2025-03-11 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654207', 'tblTempUsageDetail_20' ) start [2025-03-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654207', 'tblTempUsageDetail_20' ) end [2025-03-11 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:50:22] Production.INFO: ==19664== Releasing lock... [2025-03-11 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:51:06 [end_date_ymd] => 2025-03-11 03:51:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:51:06' and `end` < '2025-03-11 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-11 03:51:18] Production.INFO: count ==271 [2025-03-11 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:51:06 - End Time 2025-03-11 03:51:06 [2025-03-11 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654213', 'tblTempUsageDetail_20' ) start [2025-03-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654213', 'tblTempUsageDetail_20' ) end [2025-03-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654213', 'tblTempVendorCDR_20' ) start [2025-03-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654213', 'tblTempVendorCDR_20' ) end [2025-03-11 03:51:18] Production.INFO: ProcessCDR(1,14654213,1,1,2) [2025-03-11 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654213', 'tblTempUsageDetail_20' ) start [2025-03-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654213', 'tblTempUsageDetail_20' ) end [2025-03-11 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:51:22] Production.INFO: ==19741== Releasing lock... [2025-03-11 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:51:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:52:05 [end_date_ymd] => 2025-03-11 03:52:05 [RateCDR] => 1 ) [2025-03-11 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:52:05' and `end` < '2025-03-11 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:52:17] Production.INFO: count ==270 [2025-03-11 03:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:52:05 - End Time 2025-03-11 03:52:05 [2025-03-11 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654218', 'tblTempUsageDetail_20' ) start [2025-03-11 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654218', 'tblTempUsageDetail_20' ) end [2025-03-11 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654218', 'tblTempVendorCDR_20' ) start [2025-03-11 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654218', 'tblTempVendorCDR_20' ) end [2025-03-11 03:52:17] Production.INFO: ProcessCDR(1,14654218,1,1,2) [2025-03-11 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654218', 'tblTempUsageDetail_20' ) start [2025-03-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654218', 'tblTempUsageDetail_20' ) end [2025-03-11 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:52:22] Production.INFO: ==19822== Releasing lock... [2025-03-11 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:53:06 [end_date_ymd] => 2025-03-11 03:53:06 [RateCDR] => 1 ) [2025-03-11 03: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-11 00:53:06' and `end` < '2025-03-11 03: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-11 03:53:18] Production.INFO: count ==270 [2025-03-11 03:53:19] Production.ERROR: pbx CDR StartTime 2025-03-11 00:53:06 - End Time 2025-03-11 03:53:06 [2025-03-11 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654223', 'tblTempUsageDetail_20' ) start [2025-03-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654223', 'tblTempUsageDetail_20' ) end [2025-03-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654223', 'tblTempVendorCDR_20' ) start [2025-03-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654223', 'tblTempVendorCDR_20' ) end [2025-03-11 03:53:19] Production.INFO: ProcessCDR(1,14654223,1,1,2) [2025-03-11 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654223', 'tblTempUsageDetail_20' ) start [2025-03-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654223', 'tblTempUsageDetail_20' ) end [2025-03-11 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:53:22] Production.INFO: ==19933== Releasing lock... [2025-03-11 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:54:05 [end_date_ymd] => 2025-03-11 03:54:05 [RateCDR] => 1 ) [2025-03-11 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:54:05' and `end` < '2025-03-11 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:54:17] Production.INFO: count ==267 [2025-03-11 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 00:54:05 - End Time 2025-03-11 03:54:05 [2025-03-11 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654228', 'tblTempUsageDetail_20' ) start [2025-03-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654228', 'tblTempUsageDetail_20' ) end [2025-03-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654228', 'tblTempVendorCDR_20' ) start [2025-03-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654228', 'tblTempVendorCDR_20' ) end [2025-03-11 03:54:17] Production.INFO: ProcessCDR(1,14654228,1,1,2) [2025-03-11 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654228', 'tblTempUsageDetail_20' ) start [2025-03-11 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654228', 'tblTempUsageDetail_20' ) end [2025-03-11 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:54:21] Production.INFO: ==20038== Releasing lock... [2025-03-11 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:55:06 [end_date_ymd] => 2025-03-11 03:55:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:55:06' and `end` < '2025-03-11 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:55:18] Production.INFO: count ==266 [2025-03-11 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:55:06 - End Time 2025-03-11 03:55:06 [2025-03-11 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654233', 'tblTempUsageDetail_20' ) start [2025-03-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654233', 'tblTempUsageDetail_20' ) end [2025-03-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654233', 'tblTempVendorCDR_20' ) start [2025-03-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654233', 'tblTempVendorCDR_20' ) end [2025-03-11 03:55:18] Production.INFO: ProcessCDR(1,14654233,1,1,2) [2025-03-11 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654233', 'tblTempUsageDetail_20' ) start [2025-03-11 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654233', 'tblTempUsageDetail_20' ) end [2025-03-11 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:55:22] Production.INFO: ==20141== Releasing lock... [2025-03-11 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:56:06 [end_date_ymd] => 2025-03-11 03:56:06 [RateCDR] => 1 ) [2025-03-11 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-11 00:56:06' and `end` < '2025-03-11 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-11 03:56:17] Production.INFO: count ==266 [2025-03-11 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:56:06 - End Time 2025-03-11 03:56:06 [2025-03-11 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654238', 'tblTempUsageDetail_20' ) start [2025-03-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654238', 'tblTempUsageDetail_20' ) end [2025-03-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654238', 'tblTempVendorCDR_20' ) start [2025-03-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654238', 'tblTempVendorCDR_20' ) end [2025-03-11 03:56:18] Production.INFO: ProcessCDR(1,14654238,1,1,2) [2025-03-11 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654238', 'tblTempUsageDetail_20' ) start [2025-03-11 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654238', 'tblTempUsageDetail_20' ) end [2025-03-11 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:56:21] Production.INFO: ==20250== Releasing lock... [2025-03-11 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:57:06 [end_date_ymd] => 2025-03-11 03:57:06 [RateCDR] => 1 ) [2025-03-11 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:57:06' and `end` < '2025-03-11 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:57:18] Production.INFO: count ==266 [2025-03-11 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:57:06 - End Time 2025-03-11 03:57:06 [2025-03-11 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654243', 'tblTempUsageDetail_20' ) start [2025-03-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654243', 'tblTempUsageDetail_20' ) end [2025-03-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654243', 'tblTempVendorCDR_20' ) start [2025-03-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654243', 'tblTempVendorCDR_20' ) end [2025-03-11 03:57:18] Production.INFO: ProcessCDR(1,14654243,1,1,2) [2025-03-11 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654243', 'tblTempUsageDetail_20' ) start [2025-03-11 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654243', 'tblTempUsageDetail_20' ) end [2025-03-11 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:57:22] Production.INFO: ==20325== Releasing lock... [2025-03-11 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:58:05 [end_date_ymd] => 2025-03-11 03:58:05 [RateCDR] => 1 ) [2025-03-11 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:58:05' and `end` < '2025-03-11 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:58:17] Production.INFO: count ==266 [2025-03-11 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:58:05 - End Time 2025-03-11 03:58:05 [2025-03-11 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654248', 'tblTempUsageDetail_20' ) start [2025-03-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654248', 'tblTempUsageDetail_20' ) end [2025-03-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654248', 'tblTempVendorCDR_20' ) start [2025-03-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654248', 'tblTempVendorCDR_20' ) end [2025-03-11 03:58:18] Production.INFO: ProcessCDR(1,14654248,1,1,2) [2025-03-11 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654248', 'tblTempUsageDetail_20' ) start [2025-03-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654248', 'tblTempUsageDetail_20' ) end [2025-03-11 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:58:22] Production.INFO: ==20399== Releasing lock... [2025-03-11 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 00:59:06 [end_date_ymd] => 2025-03-11 03:59:06 [RateCDR] => 1 ) [2025-03-11 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 00:59:06' and `end` < '2025-03-11 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 03:59:18] Production.INFO: count ==266 [2025-03-11 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-11 00:59:06 - End Time 2025-03-11 03:59:06 [2025-03-11 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654253', 'tblTempUsageDetail_20' ) start [2025-03-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654253', 'tblTempUsageDetail_20' ) end [2025-03-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654253', 'tblTempVendorCDR_20' ) start [2025-03-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654253', 'tblTempVendorCDR_20' ) end [2025-03-11 03:59:18] Production.INFO: ProcessCDR(1,14654253,1,1,2) [2025-03-11 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654253', 'tblTempUsageDetail_20' ) start [2025-03-11 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654253', 'tblTempUsageDetail_20' ) end [2025-03-11 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 03:59:22] Production.INFO: ==20511== Releasing lock... [2025-03-11 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 03:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:00:06 [end_date_ymd] => 2025-03-11 04:00:06 [RateCDR] => 1 ) [2025-03-11 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:00:06' and `end` < '2025-03-11 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:00:18] Production.INFO: count ==278 [2025-03-11 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:00:06 - End Time 2025-03-11 04:00:06 [2025-03-11 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654258', 'tblTempUsageDetail_20' ) start [2025-03-11 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654258', 'tblTempUsageDetail_20' ) end [2025-03-11 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654258', 'tblTempVendorCDR_20' ) start [2025-03-11 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654258', 'tblTempVendorCDR_20' ) end [2025-03-11 04:00:18] Production.INFO: ProcessCDR(1,14654258,1,1,2) [2025-03-11 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654258', 'tblTempUsageDetail_20' ) start [2025-03-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654258', 'tblTempUsageDetail_20' ) end [2025-03-11 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:00:22] Production.INFO: ==20586== Releasing lock... [2025-03-11 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:01:07 [end_date_ymd] => 2025-03-11 04:01:07 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:01:07' and `end` < '2025-03-11 04: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-11 04:01:19] Production.INFO: count ==283 [2025-03-11 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:01:07 - End Time 2025-03-11 04:01:07 [2025-03-11 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654265', 'tblTempUsageDetail_20' ) start [2025-03-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654265', 'tblTempUsageDetail_20' ) end [2025-03-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654265', 'tblTempVendorCDR_20' ) start [2025-03-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654265', 'tblTempVendorCDR_20' ) end [2025-03-11 04:01:19] Production.INFO: ProcessCDR(1,14654265,1,1,2) [2025-03-11 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654265', 'tblTempUsageDetail_20' ) start [2025-03-11 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654265', 'tblTempUsageDetail_20' ) end [2025-03-11 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:01:24] Production.INFO: ==20673== Releasing lock... [2025-03-11 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:01:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:02:05 [end_date_ymd] => 2025-03-11 04:02:05 [RateCDR] => 1 ) [2025-03-11 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:02:05' and `end` < '2025-03-11 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:02:17] Production.INFO: count ==283 [2025-03-11 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:02:05 - End Time 2025-03-11 04:02:05 [2025-03-11 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654270', 'tblTempUsageDetail_20' ) start [2025-03-11 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654270', 'tblTempUsageDetail_20' ) end [2025-03-11 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654270', 'tblTempVendorCDR_20' ) start [2025-03-11 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654270', 'tblTempVendorCDR_20' ) end [2025-03-11 04:02:17] Production.INFO: ProcessCDR(1,14654270,1,1,2) [2025-03-11 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654270', 'tblTempUsageDetail_20' ) start [2025-03-11 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654270', 'tblTempUsageDetail_20' ) end [2025-03-11 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:02:21] Production.INFO: ==20749== Releasing lock... [2025-03-11 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:03:06 [end_date_ymd] => 2025-03-11 04:03:06 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:03:06' and `end` < '2025-03-11 04: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-11 04:03:18] Production.INFO: count ==283 [2025-03-11 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:03:06 - End Time 2025-03-11 04:03:06 [2025-03-11 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654275', 'tblTempUsageDetail_20' ) start [2025-03-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654275', 'tblTempUsageDetail_20' ) end [2025-03-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654275', 'tblTempVendorCDR_20' ) start [2025-03-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654275', 'tblTempVendorCDR_20' ) end [2025-03-11 04:03:18] Production.INFO: ProcessCDR(1,14654275,1,1,2) [2025-03-11 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654275', 'tblTempUsageDetail_20' ) start [2025-03-11 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654275', 'tblTempUsageDetail_20' ) end [2025-03-11 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:03:21] Production.INFO: ==20821== Releasing lock... [2025-03-11 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:04:05 [end_date_ymd] => 2025-03-11 04:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:04:05' and `end` < '2025-03-11 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-11 04:04:17] Production.INFO: count ==283 [2025-03-11 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:04:05 - End Time 2025-03-11 04:04:05 [2025-03-11 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654280', 'tblTempUsageDetail_20' ) start [2025-03-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654280', 'tblTempUsageDetail_20' ) end [2025-03-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654280', 'tblTempVendorCDR_20' ) start [2025-03-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654280', 'tblTempVendorCDR_20' ) end [2025-03-11 04:04:17] Production.INFO: ProcessCDR(1,14654280,1,1,2) [2025-03-11 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654280', 'tblTempUsageDetail_20' ) start [2025-03-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654280', 'tblTempUsageDetail_20' ) end [2025-03-11 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:04:21] Production.INFO: ==20891== Releasing lock... [2025-03-11 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:05:05 [end_date_ymd] => 2025-03-11 04:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:05:05' and `end` < '2025-03-11 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-11 04:05:17] Production.INFO: count ==280 [2025-03-11 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:05:05 - End Time 2025-03-11 04:05:05 [2025-03-11 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654285', 'tblTempUsageDetail_20' ) start [2025-03-11 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654285', 'tblTempUsageDetail_20' ) end [2025-03-11 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654285', 'tblTempVendorCDR_20' ) start [2025-03-11 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654285', 'tblTempVendorCDR_20' ) end [2025-03-11 04:05:17] Production.INFO: ProcessCDR(1,14654285,1,1,2) [2025-03-11 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654285', 'tblTempUsageDetail_20' ) start [2025-03-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654285', 'tblTempUsageDetail_20' ) end [2025-03-11 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:05:21] Production.INFO: ==20967== Releasing lock... [2025-03-11 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:06:05 [end_date_ymd] => 2025-03-11 04:06:05 [RateCDR] => 1 ) [2025-03-11 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:06:05' and `end` < '2025-03-11 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:06:19] Production.INFO: count ==283 [2025-03-11 04:06:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:06:05 - End Time 2025-03-11 04:06:05 [2025-03-11 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654290', 'tblTempUsageDetail_20' ) start [2025-03-11 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654290', 'tblTempUsageDetail_20' ) end [2025-03-11 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654290', 'tblTempVendorCDR_20' ) start [2025-03-11 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654290', 'tblTempVendorCDR_20' ) end [2025-03-11 04:06:19] Production.INFO: ProcessCDR(1,14654290,1,1,2) [2025-03-11 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654290', 'tblTempUsageDetail_20' ) start [2025-03-11 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654290', 'tblTempUsageDetail_20' ) end [2025-03-11 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:06:23] Production.INFO: ==21046== Releasing lock... [2025-03-11 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:06:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:07:05 [end_date_ymd] => 2025-03-11 04:07:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:07:05' and `end` < '2025-03-11 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-11 04:07:17] Production.INFO: count ==283 [2025-03-11 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:07:05 - End Time 2025-03-11 04:07:05 [2025-03-11 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654295', 'tblTempUsageDetail_20' ) start [2025-03-11 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654295', 'tblTempUsageDetail_20' ) end [2025-03-11 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654295', 'tblTempVendorCDR_20' ) start [2025-03-11 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654295', 'tblTempVendorCDR_20' ) end [2025-03-11 04:07:17] Production.INFO: ProcessCDR(1,14654295,1,1,2) [2025-03-11 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654295', 'tblTempUsageDetail_20' ) start [2025-03-11 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654295', 'tblTempUsageDetail_20' ) end [2025-03-11 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:07:20] Production.INFO: ==21115== Releasing lock... [2025-03-11 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:07:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:08:05 [end_date_ymd] => 2025-03-11 04:08:05 [RateCDR] => 1 ) [2025-03-11 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:08:05' and `end` < '2025-03-11 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:08:18] Production.INFO: count ==283 [2025-03-11 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:08:05 - End Time 2025-03-11 04:08:05 [2025-03-11 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654300', 'tblTempUsageDetail_20' ) start [2025-03-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654300', 'tblTempUsageDetail_20' ) end [2025-03-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654300', 'tblTempVendorCDR_20' ) start [2025-03-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654300', 'tblTempVendorCDR_20' ) end [2025-03-11 04:08:18] Production.INFO: ProcessCDR(1,14654300,1,1,2) [2025-03-11 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654300', 'tblTempUsageDetail_20' ) start [2025-03-11 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654300', 'tblTempUsageDetail_20' ) end [2025-03-11 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:08:21] Production.INFO: ==21189== Releasing lock... [2025-03-11 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:09:04 [end_date_ymd] => 2025-03-11 04:09:04 [RateCDR] => 1 ) [2025-03-11 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:09:04' and `end` < '2025-03-11 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:09:16] Production.INFO: count ==283 [2025-03-11 04:09:16] Production.ERROR: pbx CDR StartTime 2025-03-11 01:09:04 - End Time 2025-03-11 04:09:04 [2025-03-11 04:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654305', 'tblTempUsageDetail_20' ) start [2025-03-11 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654305', 'tblTempUsageDetail_20' ) end [2025-03-11 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654305', 'tblTempVendorCDR_20' ) start [2025-03-11 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654305', 'tblTempVendorCDR_20' ) end [2025-03-11 04:09:16] Production.INFO: ProcessCDR(1,14654305,1,1,2) [2025-03-11 04:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654305', 'tblTempUsageDetail_20' ) start [2025-03-11 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654305', 'tblTempUsageDetail_20' ) end [2025-03-11 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:09:20] Production.INFO: ==21259== Releasing lock... [2025-03-11 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:09:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:10:06 [end_date_ymd] => 2025-03-11 04:10:06 [RateCDR] => 1 ) [2025-03-11 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:10:06' and `end` < '2025-03-11 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:10:18] Production.INFO: count ==275 [2025-03-11 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:10:06 - End Time 2025-03-11 04:10:06 [2025-03-11 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654311', 'tblTempUsageDetail_20' ) start [2025-03-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654311', 'tblTempUsageDetail_20' ) end [2025-03-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654311', 'tblTempVendorCDR_20' ) start [2025-03-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654311', 'tblTempVendorCDR_20' ) end [2025-03-11 04:10:19] Production.INFO: ProcessCDR(1,14654311,1,1,2) [2025-03-11 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654311', 'tblTempUsageDetail_20' ) start [2025-03-11 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654311', 'tblTempUsageDetail_20' ) end [2025-03-11 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:10:22] Production.INFO: ==21335== Releasing lock... [2025-03-11 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:11:05 [end_date_ymd] => 2025-03-11 04:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:11:05' and `end` < '2025-03-11 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-11 04:11:19] Production.INFO: count ==275 [2025-03-11 04:11:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:11:05 - End Time 2025-03-11 04:11:05 [2025-03-11 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654316', 'tblTempUsageDetail_20' ) start [2025-03-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654316', 'tblTempUsageDetail_20' ) end [2025-03-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654316', 'tblTempVendorCDR_20' ) start [2025-03-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654316', 'tblTempVendorCDR_20' ) end [2025-03-11 04:11:19] Production.INFO: ProcessCDR(1,14654316,1,1,2) [2025-03-11 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654316', 'tblTempUsageDetail_20' ) start [2025-03-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654316', 'tblTempUsageDetail_20' ) end [2025-03-11 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:11:22] Production.INFO: ==21436== Releasing lock... [2025-03-11 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:12:05 [end_date_ymd] => 2025-03-11 04:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:12:05' and `end` < '2025-03-11 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-11 04:12:17] Production.INFO: count ==275 [2025-03-11 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:12:05 - End Time 2025-03-11 04:12:05 [2025-03-11 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654321', 'tblTempUsageDetail_20' ) start [2025-03-11 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654321', 'tblTempUsageDetail_20' ) end [2025-03-11 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654321', 'tblTempVendorCDR_20' ) start [2025-03-11 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654321', 'tblTempVendorCDR_20' ) end [2025-03-11 04:12:17] Production.INFO: ProcessCDR(1,14654321,1,1,2) [2025-03-11 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654321', 'tblTempUsageDetail_20' ) start [2025-03-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654321', 'tblTempUsageDetail_20' ) end [2025-03-11 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:12:21] Production.INFO: ==21510== Releasing lock... [2025-03-11 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:13:04 [end_date_ymd] => 2025-03-11 04:13:04 [RateCDR] => 1 ) [2025-03-11 04:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:13:04' and `end` < '2025-03-11 04:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:13:16] Production.INFO: count ==275 [2025-03-11 04:13:16] Production.ERROR: pbx CDR StartTime 2025-03-11 01:13:04 - End Time 2025-03-11 04:13:04 [2025-03-11 04:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654326', 'tblTempUsageDetail_20' ) start [2025-03-11 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654326', 'tblTempUsageDetail_20' ) end [2025-03-11 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654326', 'tblTempVendorCDR_20' ) start [2025-03-11 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654326', 'tblTempVendorCDR_20' ) end [2025-03-11 04:13:16] Production.INFO: ProcessCDR(1,14654326,1,1,2) [2025-03-11 04:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654326', 'tblTempUsageDetail_20' ) start [2025-03-11 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654326', 'tblTempUsageDetail_20' ) end [2025-03-11 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:13:20] Production.INFO: ==21584== Releasing lock... [2025-03-11 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:14:05 [end_date_ymd] => 2025-03-11 04:14:05 [RateCDR] => 1 ) [2025-03-11 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:14:05' and `end` < '2025-03-11 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-11 04:14:18] Production.INFO: count ==273 [2025-03-11 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:14:05 - End Time 2025-03-11 04:14:05 [2025-03-11 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654331', 'tblTempUsageDetail_20' ) start [2025-03-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654331', 'tblTempUsageDetail_20' ) end [2025-03-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654331', 'tblTempVendorCDR_20' ) start [2025-03-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654331', 'tblTempVendorCDR_20' ) end [2025-03-11 04:14:18] Production.INFO: ProcessCDR(1,14654331,1,1,2) [2025-03-11 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654331', 'tblTempUsageDetail_20' ) start [2025-03-11 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654331', 'tblTempUsageDetail_20' ) end [2025-03-11 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:14:21] Production.INFO: ==21696== Releasing lock... [2025-03-11 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:15:04 [end_date_ymd] => 2025-03-11 04:15:04 [RateCDR] => 1 ) [2025-03-11 04:15: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-11 01:15:04' and `end` < '2025-03-11 04:15: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-11 04:15:16] Production.INFO: count ==273 [2025-03-11 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:15:04 - End Time 2025-03-11 04:15:04 [2025-03-11 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654336', 'tblTempUsageDetail_20' ) start [2025-03-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654336', 'tblTempUsageDetail_20' ) end [2025-03-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654336', 'tblTempVendorCDR_20' ) start [2025-03-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654336', 'tblTempVendorCDR_20' ) end [2025-03-11 04:15:17] Production.INFO: ProcessCDR(1,14654336,1,1,2) [2025-03-11 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654336', 'tblTempUsageDetail_20' ) start [2025-03-11 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654336', 'tblTempUsageDetail_20' ) end [2025-03-11 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:15:20] Production.INFO: ==21768== Releasing lock... [2025-03-11 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:16:05 [end_date_ymd] => 2025-03-11 04:16:05 [RateCDR] => 1 ) [2025-03-11 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:16:05' and `end` < '2025-03-11 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:16:17] Production.INFO: count ==273 [2025-03-11 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:16:05 - End Time 2025-03-11 04:16:05 [2025-03-11 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654341', 'tblTempUsageDetail_20' ) start [2025-03-11 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654341', 'tblTempUsageDetail_20' ) end [2025-03-11 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654341', 'tblTempVendorCDR_20' ) start [2025-03-11 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654341', 'tblTempVendorCDR_20' ) end [2025-03-11 04:16:17] Production.INFO: ProcessCDR(1,14654341,1,1,2) [2025-03-11 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654341', 'tblTempUsageDetail_20' ) start [2025-03-11 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654341', 'tblTempUsageDetail_20' ) end [2025-03-11 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:16:20] Production.INFO: ==21840== Releasing lock... [2025-03-11 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:16:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:17:06 [end_date_ymd] => 2025-03-11 04:17:06 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:17:06' and `end` < '2025-03-11 04: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-11 04:17:18] Production.INFO: count ==273 [2025-03-11 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:17:06 - End Time 2025-03-11 04:17:06 [2025-03-11 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654346', 'tblTempUsageDetail_20' ) start [2025-03-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654346', 'tblTempUsageDetail_20' ) end [2025-03-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654346', 'tblTempVendorCDR_20' ) start [2025-03-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654346', 'tblTempVendorCDR_20' ) end [2025-03-11 04:17:18] Production.INFO: ProcessCDR(1,14654346,1,1,2) [2025-03-11 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654346', 'tblTempUsageDetail_20' ) start [2025-03-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654346', 'tblTempUsageDetail_20' ) end [2025-03-11 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:17:21] Production.INFO: ==21910== Releasing lock... [2025-03-11 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:18:05 [end_date_ymd] => 2025-03-11 04:18:05 [RateCDR] => 1 ) [2025-03-11 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:18:05' and `end` < '2025-03-11 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:18:18] Production.INFO: count ==272 [2025-03-11 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:18:05 - End Time 2025-03-11 04:18:05 [2025-03-11 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654351', 'tblTempUsageDetail_20' ) start [2025-03-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654351', 'tblTempUsageDetail_20' ) end [2025-03-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654351', 'tblTempVendorCDR_20' ) start [2025-03-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654351', 'tblTempVendorCDR_20' ) end [2025-03-11 04:18:18] Production.INFO: ProcessCDR(1,14654351,1,1,2) [2025-03-11 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654351', 'tblTempUsageDetail_20' ) start [2025-03-11 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654351', 'tblTempUsageDetail_20' ) end [2025-03-11 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:18:21] Production.INFO: ==21983== Releasing lock... [2025-03-11 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:19:06 [end_date_ymd] => 2025-03-11 04:19:06 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:19:06' and `end` < '2025-03-11 04: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-11 04:19:18] Production.INFO: count ==272 [2025-03-11 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:19:06 - End Time 2025-03-11 04:19:06 [2025-03-11 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654356', 'tblTempUsageDetail_20' ) start [2025-03-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654356', 'tblTempUsageDetail_20' ) end [2025-03-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654356', 'tblTempVendorCDR_20' ) start [2025-03-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654356', 'tblTempVendorCDR_20' ) end [2025-03-11 04:19:18] Production.INFO: ProcessCDR(1,14654356,1,1,2) [2025-03-11 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654356', 'tblTempUsageDetail_20' ) start [2025-03-11 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654356', 'tblTempUsageDetail_20' ) end [2025-03-11 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:19:22] Production.INFO: ==22062== Releasing lock... [2025-03-11 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:20:06 [end_date_ymd] => 2025-03-11 04:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 01:20:06' and `end` < '2025-03-11 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-11 04:20:18] Production.INFO: count ==263 [2025-03-11 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:20:06 - End Time 2025-03-11 04:20:06 [2025-03-11 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654362', 'tblTempUsageDetail_20' ) start [2025-03-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654362', 'tblTempUsageDetail_20' ) end [2025-03-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654362', 'tblTempVendorCDR_20' ) start [2025-03-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654362', 'tblTempVendorCDR_20' ) end [2025-03-11 04:20:18] Production.INFO: ProcessCDR(1,14654362,1,1,2) [2025-03-11 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654362', 'tblTempUsageDetail_20' ) start [2025-03-11 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654362', 'tblTempUsageDetail_20' ) end [2025-03-11 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:20:21] Production.INFO: ==22142== Releasing lock... [2025-03-11 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:21:05 [end_date_ymd] => 2025-03-11 04:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:21:05' and `end` < '2025-03-11 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-11 04:21:17] Production.INFO: count ==263 [2025-03-11 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:21:05 - End Time 2025-03-11 04:21:05 [2025-03-11 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654367', 'tblTempUsageDetail_20' ) start [2025-03-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654367', 'tblTempUsageDetail_20' ) end [2025-03-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654367', 'tblTempVendorCDR_20' ) start [2025-03-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654367', 'tblTempVendorCDR_20' ) end [2025-03-11 04:21:17] Production.INFO: ProcessCDR(1,14654367,1,1,2) [2025-03-11 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654367', 'tblTempUsageDetail_20' ) start [2025-03-11 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654367', 'tblTempUsageDetail_20' ) end [2025-03-11 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:21:20] Production.INFO: ==22219== Releasing lock... [2025-03-11 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:22:05 [end_date_ymd] => 2025-03-11 04:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:22:05' and `end` < '2025-03-11 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-11 04:22:17] Production.INFO: count ==262 [2025-03-11 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:22:05 - End Time 2025-03-11 04:22:05 [2025-03-11 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654372', 'tblTempUsageDetail_20' ) start [2025-03-11 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654372', 'tblTempUsageDetail_20' ) end [2025-03-11 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654372', 'tblTempVendorCDR_20' ) start [2025-03-11 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654372', 'tblTempVendorCDR_20' ) end [2025-03-11 04:22:17] Production.INFO: ProcessCDR(1,14654372,1,1,2) [2025-03-11 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654372', 'tblTempUsageDetail_20' ) start [2025-03-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654372', 'tblTempUsageDetail_20' ) end [2025-03-11 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:22:21] Production.INFO: ==22295== Releasing lock... [2025-03-11 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:23:06 [end_date_ymd] => 2025-03-11 04:23:06 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:23:06' and `end` < '2025-03-11 04: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-11 04:23:18] Production.INFO: count ==262 [2025-03-11 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:23:06 - End Time 2025-03-11 04:23:06 [2025-03-11 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654377', 'tblTempUsageDetail_20' ) start [2025-03-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654377', 'tblTempUsageDetail_20' ) end [2025-03-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654377', 'tblTempVendorCDR_20' ) start [2025-03-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654377', 'tblTempVendorCDR_20' ) end [2025-03-11 04:23:18] Production.INFO: ProcessCDR(1,14654377,1,1,2) [2025-03-11 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654377', 'tblTempUsageDetail_20' ) start [2025-03-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654377', 'tblTempUsageDetail_20' ) end [2025-03-11 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:23:21] Production.INFO: ==22368== Releasing lock... [2025-03-11 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:24:05 [end_date_ymd] => 2025-03-11 04:24:05 [RateCDR] => 1 ) [2025-03-11 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:24:05' and `end` < '2025-03-11 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:24:17] Production.INFO: count ==262 [2025-03-11 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:24:05 - End Time 2025-03-11 04:24:05 [2025-03-11 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654382', 'tblTempUsageDetail_20' ) start [2025-03-11 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654382', 'tblTempUsageDetail_20' ) end [2025-03-11 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654382', 'tblTempVendorCDR_20' ) start [2025-03-11 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654382', 'tblTempVendorCDR_20' ) end [2025-03-11 04:24:17] Production.INFO: ProcessCDR(1,14654382,1,1,2) [2025-03-11 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654382', 'tblTempUsageDetail_20' ) start [2025-03-11 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654382', 'tblTempUsageDetail_20' ) end [2025-03-11 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:24:20] Production.INFO: ==22439== Releasing lock... [2025-03-11 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:25:06 [end_date_ymd] => 2025-03-11 04:25:06 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:25:06' and `end` < '2025-03-11 04: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-11 04:25:18] Production.INFO: count ==259 [2025-03-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:25:06 - End Time 2025-03-11 04:25:06 [2025-03-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654387', 'tblTempUsageDetail_20' ) start [2025-03-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654387', 'tblTempUsageDetail_20' ) end [2025-03-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654387', 'tblTempVendorCDR_20' ) start [2025-03-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654387', 'tblTempVendorCDR_20' ) end [2025-03-11 04:25:18] Production.INFO: ProcessCDR(1,14654387,1,1,2) [2025-03-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654387', 'tblTempUsageDetail_20' ) start [2025-03-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654387', 'tblTempUsageDetail_20' ) end [2025-03-11 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:25:21] Production.INFO: ==22514== Releasing lock... [2025-03-11 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:26:05 [end_date_ymd] => 2025-03-11 04:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:26:05' and `end` < '2025-03-11 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-11 04:26:17] Production.INFO: count ==258 [2025-03-11 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:26:05 - End Time 2025-03-11 04:26:05 [2025-03-11 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654392', 'tblTempUsageDetail_20' ) start [2025-03-11 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654392', 'tblTempUsageDetail_20' ) end [2025-03-11 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654392', 'tblTempVendorCDR_20' ) start [2025-03-11 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654392', 'tblTempVendorCDR_20' ) end [2025-03-11 04:26:17] Production.INFO: ProcessCDR(1,14654392,1,1,2) [2025-03-11 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654392', 'tblTempUsageDetail_20' ) start [2025-03-11 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654392', 'tblTempUsageDetail_20' ) end [2025-03-11 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:26:20] Production.INFO: ==22589== Releasing lock... [2025-03-11 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:27:06 [end_date_ymd] => 2025-03-11 04:27:06 [RateCDR] => 1 ) [2025-03-11 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:27:06' and `end` < '2025-03-11 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:27:18] Production.INFO: count ==258 [2025-03-11 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:27:06 - End Time 2025-03-11 04:27:06 [2025-03-11 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654397', 'tblTempUsageDetail_20' ) start [2025-03-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654397', 'tblTempUsageDetail_20' ) end [2025-03-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654397', 'tblTempVendorCDR_20' ) start [2025-03-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654397', 'tblTempVendorCDR_20' ) end [2025-03-11 04:27:18] Production.INFO: ProcessCDR(1,14654397,1,1,2) [2025-03-11 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654397', 'tblTempUsageDetail_20' ) start [2025-03-11 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654397', 'tblTempUsageDetail_20' ) end [2025-03-11 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:27:21] Production.INFO: ==22665== Releasing lock... [2025-03-11 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:28:05 [end_date_ymd] => 2025-03-11 04:28:05 [RateCDR] => 1 ) [2025-03-11 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:28:05' and `end` < '2025-03-11 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:28:17] Production.INFO: count ==258 [2025-03-11 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:28:05 - End Time 2025-03-11 04:28:05 [2025-03-11 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654402', 'tblTempUsageDetail_20' ) start [2025-03-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654402', 'tblTempUsageDetail_20' ) end [2025-03-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654402', 'tblTempVendorCDR_20' ) start [2025-03-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654402', 'tblTempVendorCDR_20' ) end [2025-03-11 04:28:17] Production.INFO: ProcessCDR(1,14654402,1,1,2) [2025-03-11 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654402', 'tblTempUsageDetail_20' ) start [2025-03-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654402', 'tblTempUsageDetail_20' ) end [2025-03-11 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:28:21] Production.INFO: ==22742== Releasing lock... [2025-03-11 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:29:05 [end_date_ymd] => 2025-03-11 04:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:29:05' and `end` < '2025-03-11 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-11 04:29:19] Production.INFO: count ==258 [2025-03-11 04:29:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:29:05 - End Time 2025-03-11 04:29:05 [2025-03-11 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654407', 'tblTempUsageDetail_20' ) start [2025-03-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654407', 'tblTempUsageDetail_20' ) end [2025-03-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654407', 'tblTempVendorCDR_20' ) start [2025-03-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654407', 'tblTempVendorCDR_20' ) end [2025-03-11 04:29:19] Production.INFO: ProcessCDR(1,14654407,1,1,2) [2025-03-11 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654407', 'tblTempUsageDetail_20' ) start [2025-03-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654407', 'tblTempUsageDetail_20' ) end [2025-03-11 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:29:23] Production.INFO: ==22818== Releasing lock... [2025-03-11 04:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:29:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:30:05 [end_date_ymd] => 2025-03-11 04:30:05 [RateCDR] => 1 ) [2025-03-11 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:30:05' and `end` < '2025-03-11 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:30:18] Production.INFO: count ==254 [2025-03-11 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:30:05 - End Time 2025-03-11 04:30:05 [2025-03-11 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654412', 'tblTempUsageDetail_20' ) start [2025-03-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654412', 'tblTempUsageDetail_20' ) end [2025-03-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654412', 'tblTempVendorCDR_20' ) start [2025-03-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654412', 'tblTempVendorCDR_20' ) end [2025-03-11 04:30:18] Production.INFO: ProcessCDR(1,14654412,1,1,2) [2025-03-11 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654412', 'tblTempUsageDetail_20' ) start [2025-03-11 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654412', 'tblTempUsageDetail_20' ) end [2025-03-11 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:30:21] Production.INFO: ==22938== Releasing lock... [2025-03-11 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:31:05 [end_date_ymd] => 2025-03-11 04:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:31:05' and `end` < '2025-03-11 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-11 04:31:17] Production.INFO: count ==246 [2025-03-11 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:31:05 - End Time 2025-03-11 04:31:05 [2025-03-11 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654419', 'tblTempUsageDetail_20' ) start [2025-03-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654419', 'tblTempUsageDetail_20' ) end [2025-03-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654419', 'tblTempVendorCDR_20' ) start [2025-03-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654419', 'tblTempVendorCDR_20' ) end [2025-03-11 04:31:18] Production.INFO: ProcessCDR(1,14654419,1,1,2) [2025-03-11 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654419', 'tblTempUsageDetail_20' ) start [2025-03-11 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654419', 'tblTempUsageDetail_20' ) end [2025-03-11 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:31:22] Production.INFO: ==23019== Releasing lock... [2025-03-11 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:32:05 [end_date_ymd] => 2025-03-11 04:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:32:05' and `end` < '2025-03-11 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-11 04:32:19] Production.INFO: count ==241 [2025-03-11 04:32:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:32:05 - End Time 2025-03-11 04:32:05 [2025-03-11 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654424', 'tblTempUsageDetail_20' ) start [2025-03-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654424', 'tblTempUsageDetail_20' ) end [2025-03-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654424', 'tblTempVendorCDR_20' ) start [2025-03-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654424', 'tblTempVendorCDR_20' ) end [2025-03-11 04:32:19] Production.INFO: ProcessCDR(1,14654424,1,1,2) [2025-03-11 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654424', 'tblTempUsageDetail_20' ) start [2025-03-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654424', 'tblTempUsageDetail_20' ) end [2025-03-11 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:32:22] Production.INFO: ==23194== Releasing lock... [2025-03-11 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:33:06 [end_date_ymd] => 2025-03-11 04:33:06 [RateCDR] => 1 ) [2025-03-11 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-11 01:33:06' and `end` < '2025-03-11 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-11 04:33:18] Production.INFO: count ==241 [2025-03-11 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:33:06 - End Time 2025-03-11 04:33:06 [2025-03-11 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654429', 'tblTempUsageDetail_20' ) start [2025-03-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654429', 'tblTempUsageDetail_20' ) end [2025-03-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654429', 'tblTempVendorCDR_20' ) start [2025-03-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654429', 'tblTempVendorCDR_20' ) end [2025-03-11 04:33:18] Production.INFO: ProcessCDR(1,14654429,1,1,2) [2025-03-11 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654429', 'tblTempUsageDetail_20' ) start [2025-03-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654429', 'tblTempUsageDetail_20' ) end [2025-03-11 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:33:21] Production.INFO: ==23275== Releasing lock... [2025-03-11 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:34:04 [end_date_ymd] => 2025-03-11 04:34:04 [RateCDR] => 1 ) [2025-03-11 04:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:34:04' and `end` < '2025-03-11 04:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:34:17] Production.INFO: count ==237 [2025-03-11 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:34:04 - End Time 2025-03-11 04:34:04 [2025-03-11 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654432', 'tblTempUsageDetail_20' ) start [2025-03-11 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654432', 'tblTempUsageDetail_20' ) end [2025-03-11 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654432', 'tblTempVendorCDR_20' ) start [2025-03-11 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654432', 'tblTempVendorCDR_20' ) end [2025-03-11 04:34:17] Production.INFO: ProcessCDR(1,14654432,1,1,2) [2025-03-11 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654432', 'tblTempUsageDetail_20' ) start [2025-03-11 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654432', 'tblTempUsageDetail_20' ) end [2025-03-11 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:34:20] Production.INFO: ==23353== Releasing lock... [2025-03-11 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:34:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:35:05 [end_date_ymd] => 2025-03-11 04:35:05 [RateCDR] => 1 ) [2025-03-11 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:35:05' and `end` < '2025-03-11 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:35:18] Production.INFO: count ==233 [2025-03-11 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:35:05 - End Time 2025-03-11 04:35:05 [2025-03-11 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654439', 'tblTempUsageDetail_20' ) start [2025-03-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654439', 'tblTempUsageDetail_20' ) end [2025-03-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654439', 'tblTempVendorCDR_20' ) start [2025-03-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654439', 'tblTempVendorCDR_20' ) end [2025-03-11 04:35:18] Production.INFO: ProcessCDR(1,14654439,1,1,2) [2025-03-11 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654439', 'tblTempUsageDetail_20' ) start [2025-03-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654439', 'tblTempUsageDetail_20' ) end [2025-03-11 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:35:21] Production.INFO: ==23468== Releasing lock... [2025-03-11 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:36:05 [end_date_ymd] => 2025-03-11 04:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:36:05' and `end` < '2025-03-11 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-11 04:36:17] Production.INFO: count ==232 [2025-03-11 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:36:05 - End Time 2025-03-11 04:36:05 [2025-03-11 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654444', 'tblTempUsageDetail_20' ) start [2025-03-11 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654444', 'tblTempUsageDetail_20' ) end [2025-03-11 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654444', 'tblTempVendorCDR_20' ) start [2025-03-11 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654444', 'tblTempVendorCDR_20' ) end [2025-03-11 04:36:17] Production.INFO: ProcessCDR(1,14654444,1,1,2) [2025-03-11 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654444', 'tblTempUsageDetail_20' ) start [2025-03-11 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654444', 'tblTempUsageDetail_20' ) end [2025-03-11 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:36:20] Production.INFO: ==23546== Releasing lock... [2025-03-11 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:37:05 [end_date_ymd] => 2025-03-11 04:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:37:05' and `end` < '2025-03-11 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-11 04:37:17] Production.INFO: count ==232 [2025-03-11 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:37:05 - End Time 2025-03-11 04:37:05 [2025-03-11 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654449', 'tblTempUsageDetail_20' ) start [2025-03-11 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654449', 'tblTempUsageDetail_20' ) end [2025-03-11 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654449', 'tblTempVendorCDR_20' ) start [2025-03-11 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654449', 'tblTempVendorCDR_20' ) end [2025-03-11 04:37:17] Production.INFO: ProcessCDR(1,14654449,1,1,2) [2025-03-11 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654449', 'tblTempUsageDetail_20' ) start [2025-03-11 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654449', 'tblTempUsageDetail_20' ) end [2025-03-11 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:37:20] Production.INFO: ==23622== Releasing lock... [2025-03-11 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:38:05 [end_date_ymd] => 2025-03-11 04:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:38:05' and `end` < '2025-03-11 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-11 04:38:18] Production.INFO: count ==232 [2025-03-11 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:38:05 - End Time 2025-03-11 04:38:05 [2025-03-11 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654454', 'tblTempUsageDetail_20' ) start [2025-03-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654454', 'tblTempUsageDetail_20' ) end [2025-03-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654454', 'tblTempVendorCDR_20' ) start [2025-03-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654454', 'tblTempVendorCDR_20' ) end [2025-03-11 04:38:18] Production.INFO: ProcessCDR(1,14654454,1,1,2) [2025-03-11 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654454', 'tblTempUsageDetail_20' ) start [2025-03-11 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654454', 'tblTempUsageDetail_20' ) end [2025-03-11 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:38:21] Production.INFO: ==23702== Releasing lock... [2025-03-11 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:39:05 [end_date_ymd] => 2025-03-11 04:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:39:05' and `end` < '2025-03-11 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-11 04:39:16] Production.INFO: count ==232 [2025-03-11 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:39:05 - End Time 2025-03-11 04:39:05 [2025-03-11 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654458', 'tblTempUsageDetail_20' ) start [2025-03-11 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654458', 'tblTempUsageDetail_20' ) end [2025-03-11 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654458', 'tblTempVendorCDR_20' ) start [2025-03-11 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654458', 'tblTempVendorCDR_20' ) end [2025-03-11 04:39:17] Production.INFO: ProcessCDR(1,14654458,1,1,2) [2025-03-11 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654458', 'tblTempUsageDetail_20' ) start [2025-03-11 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654458', 'tblTempUsageDetail_20' ) end [2025-03-11 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:39:20] Production.INFO: ==23778== Releasing lock... [2025-03-11 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:40:07 [end_date_ymd] => 2025-03-11 04:40:07 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:40:07' and `end` < '2025-03-11 04: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-11 04:40:19] Production.INFO: count ==232 [2025-03-11 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:40:07 - End Time 2025-03-11 04:40:07 [2025-03-11 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654465', 'tblTempUsageDetail_20' ) start [2025-03-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654465', 'tblTempUsageDetail_20' ) end [2025-03-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654465', 'tblTempVendorCDR_20' ) start [2025-03-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654465', 'tblTempVendorCDR_20' ) end [2025-03-11 04:40:19] Production.INFO: ProcessCDR(1,14654465,1,1,2) [2025-03-11 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654465', 'tblTempUsageDetail_20' ) start [2025-03-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654465', 'tblTempUsageDetail_20' ) end [2025-03-11 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:40:22] Production.INFO: ==23857== Releasing lock... [2025-03-11 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:41:05 [end_date_ymd] => 2025-03-11 04:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:41:05' and `end` < '2025-03-11 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-11 04:41:17] Production.INFO: count ==232 [2025-03-11 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:41:05 - End Time 2025-03-11 04:41:05 [2025-03-11 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654470', 'tblTempUsageDetail_20' ) start [2025-03-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654470', 'tblTempUsageDetail_20' ) end [2025-03-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654470', 'tblTempVendorCDR_20' ) start [2025-03-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654470', 'tblTempVendorCDR_20' ) end [2025-03-11 04:41:17] Production.INFO: ProcessCDR(1,14654470,1,1,2) [2025-03-11 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654470', 'tblTempUsageDetail_20' ) start [2025-03-11 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654470', 'tblTempUsageDetail_20' ) end [2025-03-11 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:41:20] Production.INFO: ==23943== Releasing lock... [2025-03-11 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:41:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:42:06 [end_date_ymd] => 2025-03-11 04:42:06 [RateCDR] => 1 ) [2025-03-11 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:42:06' and `end` < '2025-03-11 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:42:18] Production.INFO: count ==232 [2025-03-11 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:42:06 - End Time 2025-03-11 04:42:06 [2025-03-11 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654475', 'tblTempUsageDetail_20' ) start [2025-03-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654475', 'tblTempUsageDetail_20' ) end [2025-03-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654475', 'tblTempVendorCDR_20' ) start [2025-03-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654475', 'tblTempVendorCDR_20' ) end [2025-03-11 04:42:18] Production.INFO: ProcessCDR(1,14654475,1,1,2) [2025-03-11 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654475', 'tblTempUsageDetail_20' ) start [2025-03-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654475', 'tblTempUsageDetail_20' ) end [2025-03-11 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:42:22] Production.INFO: ==24020== Releasing lock... [2025-03-11 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:43:05 [end_date_ymd] => 2025-03-11 04:43:05 [RateCDR] => 1 ) [2025-03-11 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:43:05' and `end` < '2025-03-11 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:43:17] Production.INFO: count ==232 [2025-03-11 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:43:05 - End Time 2025-03-11 04:43:05 [2025-03-11 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654480', 'tblTempUsageDetail_20' ) start [2025-03-11 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654480', 'tblTempUsageDetail_20' ) end [2025-03-11 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654480', 'tblTempVendorCDR_20' ) start [2025-03-11 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654480', 'tblTempVendorCDR_20' ) end [2025-03-11 04:43:17] Production.INFO: ProcessCDR(1,14654480,1,1,2) [2025-03-11 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654480', 'tblTempUsageDetail_20' ) start [2025-03-11 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654480', 'tblTempUsageDetail_20' ) end [2025-03-11 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:43:20] Production.INFO: ==24096== Releasing lock... [2025-03-11 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:43:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:44:05 [end_date_ymd] => 2025-03-11 04:44:05 [RateCDR] => 1 ) [2025-03-11 04: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-11 01:44:05' and `end` < '2025-03-11 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-11 04:44:17] Production.INFO: count ==228 [2025-03-11 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:44:05 - End Time 2025-03-11 04:44:05 [2025-03-11 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654485', 'tblTempUsageDetail_20' ) start [2025-03-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654485', 'tblTempUsageDetail_20' ) end [2025-03-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654485', 'tblTempVendorCDR_20' ) start [2025-03-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654485', 'tblTempVendorCDR_20' ) end [2025-03-11 04:44:18] Production.INFO: ProcessCDR(1,14654485,1,1,2) [2025-03-11 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654485', 'tblTempUsageDetail_20' ) start [2025-03-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654485', 'tblTempUsageDetail_20' ) end [2025-03-11 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:44:21] Production.INFO: ==24172== Releasing lock... [2025-03-11 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:45:05 [end_date_ymd] => 2025-03-11 04:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:45:05' and `end` < '2025-03-11 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-11 04:45:17] Production.INFO: count ==218 [2025-03-11 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:45:05 - End Time 2025-03-11 04:45:05 [2025-03-11 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654490', 'tblTempUsageDetail_20' ) start [2025-03-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654490', 'tblTempUsageDetail_20' ) end [2025-03-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654490', 'tblTempVendorCDR_20' ) start [2025-03-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654490', 'tblTempVendorCDR_20' ) end [2025-03-11 04:45:17] Production.INFO: ProcessCDR(1,14654490,1,1,2) [2025-03-11 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654490', 'tblTempUsageDetail_20' ) start [2025-03-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654490', 'tblTempUsageDetail_20' ) end [2025-03-11 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:45:21] Production.INFO: ==24292== Releasing lock... [2025-03-11 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:45:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:46:06 [end_date_ymd] => 2025-03-11 04:46:06 [RateCDR] => 1 ) [2025-03-11 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-11 01:46:06' and `end` < '2025-03-11 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-11 04:46:18] Production.INFO: count ==210 [2025-03-11 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:46:06 - End Time 2025-03-11 04:46:06 [2025-03-11 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654495', 'tblTempUsageDetail_20' ) start [2025-03-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654495', 'tblTempUsageDetail_20' ) end [2025-03-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654495', 'tblTempVendorCDR_20' ) start [2025-03-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654495', 'tblTempVendorCDR_20' ) end [2025-03-11 04:46:18] Production.INFO: ProcessCDR(1,14654495,1,1,2) [2025-03-11 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654495', 'tblTempUsageDetail_20' ) start [2025-03-11 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654495', 'tblTempUsageDetail_20' ) end [2025-03-11 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:46:21] Production.INFO: ==24369== Releasing lock... [2025-03-11 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:47:05 [end_date_ymd] => 2025-03-11 04:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:47:05' and `end` < '2025-03-11 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-11 04:47:17] Production.INFO: count ==200 [2025-03-11 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:47:05 - End Time 2025-03-11 04:47:05 [2025-03-11 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654500', 'tblTempUsageDetail_20' ) start [2025-03-11 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654500', 'tblTempUsageDetail_20' ) end [2025-03-11 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654500', 'tblTempVendorCDR_20' ) start [2025-03-11 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654500', 'tblTempVendorCDR_20' ) end [2025-03-11 04:47:18] Production.INFO: ProcessCDR(1,14654500,1,1,2) [2025-03-11 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654500', 'tblTempUsageDetail_20' ) start [2025-03-11 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654500', 'tblTempUsageDetail_20' ) end [2025-03-11 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:47:21] Production.INFO: ==24447== Releasing lock... [2025-03-11 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:48:05 [end_date_ymd] => 2025-03-11 04:48:05 [RateCDR] => 1 ) [2025-03-11 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 01:48:05' and `end` < '2025-03-11 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 04:48:19] Production.INFO: count ==195 [2025-03-11 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:48:05 - End Time 2025-03-11 04:48:05 [2025-03-11 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654505', 'tblTempUsageDetail_20' ) start [2025-03-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654505', 'tblTempUsageDetail_20' ) end [2025-03-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654505', 'tblTempVendorCDR_20' ) start [2025-03-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654505', 'tblTempVendorCDR_20' ) end [2025-03-11 04:48:19] Production.INFO: ProcessCDR(1,14654505,1,1,2) [2025-03-11 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654505', 'tblTempUsageDetail_20' ) start [2025-03-11 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654505', 'tblTempUsageDetail_20' ) end [2025-03-11 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:48:22] Production.INFO: ==24523== Releasing lock... [2025-03-11 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:49:05 [end_date_ymd] => 2025-03-11 04:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:49:05' and `end` < '2025-03-11 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-11 04:49:17] Production.INFO: count ==195 [2025-03-11 04:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:49:05 - End Time 2025-03-11 04:49:05 [2025-03-11 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654510', 'tblTempUsageDetail_20' ) start [2025-03-11 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654510', 'tblTempUsageDetail_20' ) end [2025-03-11 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654510', 'tblTempVendorCDR_20' ) start [2025-03-11 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654510', 'tblTempVendorCDR_20' ) end [2025-03-11 04:49:17] Production.INFO: ProcessCDR(1,14654510,1,1,2) [2025-03-11 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654510', 'tblTempUsageDetail_20' ) start [2025-03-11 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654510', 'tblTempUsageDetail_20' ) end [2025-03-11 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:49:20] Production.INFO: ==24600== Releasing lock... [2025-03-11 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:49:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:50:06 [end_date_ymd] => 2025-03-11 04:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 01:50:06' and `end` < '2025-03-11 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-11 04:50:18] Production.INFO: count ==195 [2025-03-11 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:50:06 - End Time 2025-03-11 04:50:06 [2025-03-11 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654516', 'tblTempUsageDetail_20' ) start [2025-03-11 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654516', 'tblTempUsageDetail_20' ) end [2025-03-11 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654516', 'tblTempVendorCDR_20' ) start [2025-03-11 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654516', 'tblTempVendorCDR_20' ) end [2025-03-11 04:50:18] Production.INFO: ProcessCDR(1,14654516,1,1,2) [2025-03-11 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654516', 'tblTempUsageDetail_20' ) start [2025-03-11 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654516', 'tblTempUsageDetail_20' ) end [2025-03-11 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:50:21] Production.INFO: ==24681== Releasing lock... [2025-03-11 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:51:05 [end_date_ymd] => 2025-03-11 04:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:51:05' and `end` < '2025-03-11 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-11 04:51:17] Production.INFO: count ==195 [2025-03-11 04:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:51:05 - End Time 2025-03-11 04:51:05 [2025-03-11 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654521', 'tblTempUsageDetail_20' ) start [2025-03-11 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654521', 'tblTempUsageDetail_20' ) end [2025-03-11 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654521', 'tblTempVendorCDR_20' ) start [2025-03-11 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654521', 'tblTempVendorCDR_20' ) end [2025-03-11 04:51:17] Production.INFO: ProcessCDR(1,14654521,1,1,2) [2025-03-11 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654521', 'tblTempUsageDetail_20' ) start [2025-03-11 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654521', 'tblTempUsageDetail_20' ) end [2025-03-11 04:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:51:20] Production.INFO: ==24757== Releasing lock... [2025-03-11 04:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:52:05 [end_date_ymd] => 2025-03-11 04:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:52:05' and `end` < '2025-03-11 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-11 04:52:17] Production.INFO: count ==195 [2025-03-11 04:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:52:05 - End Time 2025-03-11 04:52:05 [2025-03-11 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654526', 'tblTempUsageDetail_20' ) start [2025-03-11 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654526', 'tblTempUsageDetail_20' ) end [2025-03-11 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654526', 'tblTempVendorCDR_20' ) start [2025-03-11 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654526', 'tblTempVendorCDR_20' ) end [2025-03-11 04:52:17] Production.INFO: ProcessCDR(1,14654526,1,1,2) [2025-03-11 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654526', 'tblTempUsageDetail_20' ) start [2025-03-11 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654526', 'tblTempUsageDetail_20' ) end [2025-03-11 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:52:21] Production.INFO: ==24838== Releasing lock... [2025-03-11 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:53:04 [end_date_ymd] => 2025-03-11 04:53:04 [RateCDR] => 1 ) [2025-03-11 04:53: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-11 01:53:04' and `end` < '2025-03-11 04:53: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-11 04:53:17] Production.INFO: count ==195 [2025-03-11 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:53:04 - End Time 2025-03-11 04:53:04 [2025-03-11 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654531', 'tblTempUsageDetail_20' ) start [2025-03-11 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654531', 'tblTempUsageDetail_20' ) end [2025-03-11 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654531', 'tblTempVendorCDR_20' ) start [2025-03-11 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654531', 'tblTempVendorCDR_20' ) end [2025-03-11 04:53:17] Production.INFO: ProcessCDR(1,14654531,1,1,2) [2025-03-11 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654531', 'tblTempUsageDetail_20' ) start [2025-03-11 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654531', 'tblTempUsageDetail_20' ) end [2025-03-11 04:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:53:20] Production.INFO: ==24915== Releasing lock... [2025-03-11 04:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:54:05 [end_date_ymd] => 2025-03-11 04:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:54:05' and `end` < '2025-03-11 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-11 04:54:19] Production.INFO: count ==195 [2025-03-11 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:54:05 - End Time 2025-03-11 04:54:05 [2025-03-11 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654536', 'tblTempUsageDetail_20' ) start [2025-03-11 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654536', 'tblTempUsageDetail_20' ) end [2025-03-11 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654536', 'tblTempVendorCDR_20' ) start [2025-03-11 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654536', 'tblTempVendorCDR_20' ) end [2025-03-11 04:54:19] Production.INFO: ProcessCDR(1,14654536,1,1,2) [2025-03-11 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654536', 'tblTempUsageDetail_20' ) start [2025-03-11 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654536', 'tblTempUsageDetail_20' ) end [2025-03-11 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:54:22] Production.INFO: ==24991== Releasing lock... [2025-03-11 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:55:05 [end_date_ymd] => 2025-03-11 04:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:55:05' and `end` < '2025-03-11 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-11 04:55:18] Production.INFO: count ==194 [2025-03-11 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:55:05 - End Time 2025-03-11 04:55:05 [2025-03-11 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654541', 'tblTempUsageDetail_20' ) start [2025-03-11 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654541', 'tblTempUsageDetail_20' ) end [2025-03-11 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654541', 'tblTempVendorCDR_20' ) start [2025-03-11 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654541', 'tblTempVendorCDR_20' ) end [2025-03-11 04:55:18] Production.INFO: ProcessCDR(1,14654541,1,1,2) [2025-03-11 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654541', 'tblTempUsageDetail_20' ) start [2025-03-11 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654541', 'tblTempUsageDetail_20' ) end [2025-03-11 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:55:21] Production.INFO: ==25070== Releasing lock... [2025-03-11 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:56:06 [end_date_ymd] => 2025-03-11 04:56:06 [RateCDR] => 1 ) [2025-03-11 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-11 01:56:06' and `end` < '2025-03-11 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-11 04:56:18] Production.INFO: count ==194 [2025-03-11 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 01:56:06 - End Time 2025-03-11 04:56:06 [2025-03-11 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654546', 'tblTempUsageDetail_20' ) start [2025-03-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654546', 'tblTempUsageDetail_20' ) end [2025-03-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654546', 'tblTempVendorCDR_20' ) start [2025-03-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654546', 'tblTempVendorCDR_20' ) end [2025-03-11 04:56:18] Production.INFO: ProcessCDR(1,14654546,1,1,2) [2025-03-11 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654546', 'tblTempUsageDetail_20' ) start [2025-03-11 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654546', 'tblTempUsageDetail_20' ) end [2025-03-11 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:56:21] Production.INFO: ==25146== Releasing lock... [2025-03-11 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:57:05 [end_date_ymd] => 2025-03-11 04:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:57:05' and `end` < '2025-03-11 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-11 04:57:19] Production.INFO: count ==194 [2025-03-11 04:57:19] Production.ERROR: pbx CDR StartTime 2025-03-11 01:57:05 - End Time 2025-03-11 04:57:05 [2025-03-11 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654551', 'tblTempUsageDetail_20' ) start [2025-03-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654551', 'tblTempUsageDetail_20' ) end [2025-03-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654551', 'tblTempVendorCDR_20' ) start [2025-03-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654551', 'tblTempVendorCDR_20' ) end [2025-03-11 04:57:19] Production.INFO: ProcessCDR(1,14654551,1,1,2) [2025-03-11 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654551', 'tblTempUsageDetail_20' ) start [2025-03-11 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654551', 'tblTempUsageDetail_20' ) end [2025-03-11 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:57:22] Production.INFO: ==25223== Releasing lock... [2025-03-11 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:58:04 [end_date_ymd] => 2025-03-11 04:58:04 [RateCDR] => 1 ) [2025-03-11 04:58: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-11 01:58:04' and `end` < '2025-03-11 04:58: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-11 04:58:17] Production.INFO: count ==194 [2025-03-11 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:58:04 - End Time 2025-03-11 04:58:04 [2025-03-11 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654556', 'tblTempUsageDetail_20' ) start [2025-03-11 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654556', 'tblTempUsageDetail_20' ) end [2025-03-11 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654556', 'tblTempVendorCDR_20' ) start [2025-03-11 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654556', 'tblTempVendorCDR_20' ) end [2025-03-11 04:58:17] Production.INFO: ProcessCDR(1,14654556,1,1,2) [2025-03-11 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654556', 'tblTempUsageDetail_20' ) start [2025-03-11 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654556', 'tblTempUsageDetail_20' ) end [2025-03-11 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:58:20] Production.INFO: ==25296== Releasing lock... [2025-03-11 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:58:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 01:59:05 [end_date_ymd] => 2025-03-11 04:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 01:59:05' and `end` < '2025-03-11 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-11 04:59:17] Production.INFO: count ==194 [2025-03-11 04:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 01:59:05 - End Time 2025-03-11 04:59:05 [2025-03-11 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654561', 'tblTempUsageDetail_20' ) start [2025-03-11 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654561', 'tblTempUsageDetail_20' ) end [2025-03-11 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654561', 'tblTempVendorCDR_20' ) start [2025-03-11 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654561', 'tblTempVendorCDR_20' ) end [2025-03-11 04:59:17] Production.INFO: ProcessCDR(1,14654561,1,1,2) [2025-03-11 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654561', 'tblTempUsageDetail_20' ) start [2025-03-11 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654561', 'tblTempUsageDetail_20' ) end [2025-03-11 04:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 04:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 04:59:20] Production.INFO: ==25374== Releasing lock... [2025-03-11 04:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 04:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:00:06 [end_date_ymd] => 2025-03-11 05:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 02:00:06' and `end` < '2025-03-11 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-11 05:00:18] Production.INFO: count ==181 [2025-03-11 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:00:06 - End Time 2025-03-11 05:00:06 [2025-03-11 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654567', 'tblTempUsageDetail_20' ) start [2025-03-11 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654567', 'tblTempUsageDetail_20' ) end [2025-03-11 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654567', 'tblTempVendorCDR_20' ) start [2025-03-11 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654567', 'tblTempVendorCDR_20' ) end [2025-03-11 05:00:18] Production.INFO: ProcessCDR(1,14654567,1,1,2) [2025-03-11 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654567', 'tblTempUsageDetail_20' ) start [2025-03-11 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654567', 'tblTempUsageDetail_20' ) end [2025-03-11 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:00:22] Production.INFO: ==25507== Releasing lock... [2025-03-11 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:01:05 [end_date_ymd] => 2025-03-11 05:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:01:05' and `end` < '2025-03-11 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-11 05:01:20] Production.INFO: count ==172 [2025-03-11 05:01:20] Production.ERROR: pbx CDR StartTime 2025-03-11 02:01:05 - End Time 2025-03-11 05:01:05 [2025-03-11 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654572', 'tblTempUsageDetail_20' ) start [2025-03-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654572', 'tblTempUsageDetail_20' ) end [2025-03-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654572', 'tblTempVendorCDR_20' ) start [2025-03-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654572', 'tblTempVendorCDR_20' ) end [2025-03-11 05:01:20] Production.INFO: ProcessCDR(1,14654572,1,1,2) [2025-03-11 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654572', 'tblTempUsageDetail_20' ) start [2025-03-11 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654572', 'tblTempUsageDetail_20' ) end [2025-03-11 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:01:23] Production.INFO: ==25599== Releasing lock... [2025-03-11 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:02:05 [end_date_ymd] => 2025-03-11 05:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:02:05' and `end` < '2025-03-11 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-11 05:02:17] Production.INFO: count ==173 [2025-03-11 05:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:02:05 - End Time 2025-03-11 05:02:05 [2025-03-11 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654577', 'tblTempUsageDetail_20' ) start [2025-03-11 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654577', 'tblTempUsageDetail_20' ) end [2025-03-11 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654577', 'tblTempVendorCDR_20' ) start [2025-03-11 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654577', 'tblTempVendorCDR_20' ) end [2025-03-11 05:02:17] Production.INFO: ProcessCDR(1,14654577,1,1,2) [2025-03-11 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654577', 'tblTempUsageDetail_20' ) start [2025-03-11 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654577', 'tblTempUsageDetail_20' ) end [2025-03-11 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:02:21] Production.INFO: ==25674== Releasing lock... [2025-03-11 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:03:05 [end_date_ymd] => 2025-03-11 05:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:03:05' and `end` < '2025-03-11 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-11 05:03:17] Production.INFO: count ==170 [2025-03-11 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:03:05 - End Time 2025-03-11 05:03:05 [2025-03-11 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654582', 'tblTempUsageDetail_20' ) start [2025-03-11 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654582', 'tblTempUsageDetail_20' ) end [2025-03-11 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654582', 'tblTempVendorCDR_20' ) start [2025-03-11 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654582', 'tblTempVendorCDR_20' ) end [2025-03-11 05:03:17] Production.INFO: ProcessCDR(1,14654582,1,1,2) [2025-03-11 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654582', 'tblTempUsageDetail_20' ) start [2025-03-11 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654582', 'tblTempUsageDetail_20' ) end [2025-03-11 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:03:21] Production.INFO: ==25747== Releasing lock... [2025-03-11 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:04:04 [end_date_ymd] => 2025-03-11 05:04:04 [RateCDR] => 1 ) [2025-03-11 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:04:04' and `end` < '2025-03-11 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:04:18] Production.INFO: count ==170 [2025-03-11 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:04:04 - End Time 2025-03-11 05:04:04 [2025-03-11 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654587', 'tblTempUsageDetail_20' ) start [2025-03-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654587', 'tblTempUsageDetail_20' ) end [2025-03-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654587', 'tblTempVendorCDR_20' ) start [2025-03-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654587', 'tblTempVendorCDR_20' ) end [2025-03-11 05:04:18] Production.INFO: ProcessCDR(1,14654587,1,1,2) [2025-03-11 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654587', 'tblTempUsageDetail_20' ) start [2025-03-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654587', 'tblTempUsageDetail_20' ) end [2025-03-11 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:04:21] Production.INFO: ==25818== Releasing lock... [2025-03-11 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:05:05 [end_date_ymd] => 2025-03-11 05:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:05:05' and `end` < '2025-03-11 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-11 05:05:19] Production.INFO: count ==169 [2025-03-11 05:05:19] Production.ERROR: pbx CDR StartTime 2025-03-11 02:05:05 - End Time 2025-03-11 05:05:05 [2025-03-11 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654592', 'tblTempUsageDetail_20' ) start [2025-03-11 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654592', 'tblTempUsageDetail_20' ) end [2025-03-11 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654592', 'tblTempVendorCDR_20' ) start [2025-03-11 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654592', 'tblTempVendorCDR_20' ) end [2025-03-11 05:05:19] Production.INFO: ProcessCDR(1,14654592,1,1,2) [2025-03-11 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654592', 'tblTempUsageDetail_20' ) start [2025-03-11 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654592', 'tblTempUsageDetail_20' ) end [2025-03-11 05:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:05:23] Production.INFO: ==25888== Releasing lock... [2025-03-11 05:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:06:05 [end_date_ymd] => 2025-03-11 05:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:06:05' and `end` < '2025-03-11 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-11 05:06:17] Production.INFO: count ==169 [2025-03-11 05:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:06:05 - End Time 2025-03-11 05:06:05 [2025-03-11 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654597', 'tblTempUsageDetail_20' ) start [2025-03-11 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654597', 'tblTempUsageDetail_20' ) end [2025-03-11 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654597', 'tblTempVendorCDR_20' ) start [2025-03-11 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654597', 'tblTempVendorCDR_20' ) end [2025-03-11 05:06:17] Production.INFO: ProcessCDR(1,14654597,1,1,2) [2025-03-11 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654597', 'tblTempUsageDetail_20' ) start [2025-03-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654597', 'tblTempUsageDetail_20' ) end [2025-03-11 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:06:21] Production.INFO: ==25958== Releasing lock... [2025-03-11 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:07:05 [end_date_ymd] => 2025-03-11 05:07:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:07:05' and `end` < '2025-03-11 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-11 05:07:18] Production.INFO: count ==169 [2025-03-11 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:07:05 - End Time 2025-03-11 05:07:05 [2025-03-11 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654602', 'tblTempUsageDetail_20' ) start [2025-03-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654602', 'tblTempUsageDetail_20' ) end [2025-03-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654602', 'tblTempVendorCDR_20' ) start [2025-03-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654602', 'tblTempVendorCDR_20' ) end [2025-03-11 05:07:18] Production.INFO: ProcessCDR(1,14654602,1,1,2) [2025-03-11 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654602', 'tblTempUsageDetail_20' ) start [2025-03-11 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654602', 'tblTempUsageDetail_20' ) end [2025-03-11 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:07:21] Production.INFO: ==26028== Releasing lock... [2025-03-11 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:08:05 [end_date_ymd] => 2025-03-11 05:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:08:05' and `end` < '2025-03-11 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-11 05:08:17] Production.INFO: count ==169 [2025-03-11 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:08:05 - End Time 2025-03-11 05:08:05 [2025-03-11 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654607', 'tblTempUsageDetail_20' ) start [2025-03-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654607', 'tblTempUsageDetail_20' ) end [2025-03-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654607', 'tblTempVendorCDR_20' ) start [2025-03-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654607', 'tblTempVendorCDR_20' ) end [2025-03-11 05:08:17] Production.INFO: ProcessCDR(1,14654607,1,1,2) [2025-03-11 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654607', 'tblTempUsageDetail_20' ) start [2025-03-11 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654607', 'tblTempUsageDetail_20' ) end [2025-03-11 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:08:20] Production.INFO: ==26099== Releasing lock... [2025-03-11 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:08:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:09:05 [end_date_ymd] => 2025-03-11 05:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:09:05' and `end` < '2025-03-11 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-11 05:09:17] Production.INFO: count ==169 [2025-03-11 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:09:05 - End Time 2025-03-11 05:09:05 [2025-03-11 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654612', 'tblTempUsageDetail_20' ) start [2025-03-11 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654612', 'tblTempUsageDetail_20' ) end [2025-03-11 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654612', 'tblTempVendorCDR_20' ) start [2025-03-11 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654612', 'tblTempVendorCDR_20' ) end [2025-03-11 05:09:17] Production.INFO: ProcessCDR(1,14654612,1,1,2) [2025-03-11 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654612', 'tblTempUsageDetail_20' ) start [2025-03-11 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654612', 'tblTempUsageDetail_20' ) end [2025-03-11 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:09:20] Production.INFO: ==26173== Releasing lock... [2025-03-11 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:10:06 [end_date_ymd] => 2025-03-11 05:10:06 [RateCDR] => 1 ) [2025-03-11 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:10:06' and `end` < '2025-03-11 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:10:18] Production.INFO: count ==169 [2025-03-11 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:10:06 - End Time 2025-03-11 05:10:06 [2025-03-11 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654618', 'tblTempUsageDetail_20' ) start [2025-03-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654618', 'tblTempUsageDetail_20' ) end [2025-03-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654618', 'tblTempVendorCDR_20' ) start [2025-03-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654618', 'tblTempVendorCDR_20' ) end [2025-03-11 05:10:18] Production.INFO: ProcessCDR(1,14654618,1,1,2) [2025-03-11 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654618', 'tblTempUsageDetail_20' ) start [2025-03-11 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654618', 'tblTempUsageDetail_20' ) end [2025-03-11 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:10:21] Production.INFO: ==26245== Releasing lock... [2025-03-11 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:11:05 [end_date_ymd] => 2025-03-11 05:11:05 [RateCDR] => 1 ) [2025-03-11 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:11:05' and `end` < '2025-03-11 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:11:17] Production.INFO: count ==169 [2025-03-11 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:11:05 - End Time 2025-03-11 05:11:05 [2025-03-11 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654623', 'tblTempUsageDetail_20' ) start [2025-03-11 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654623', 'tblTempUsageDetail_20' ) end [2025-03-11 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654623', 'tblTempVendorCDR_20' ) start [2025-03-11 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654623', 'tblTempVendorCDR_20' ) end [2025-03-11 05:11:17] Production.INFO: ProcessCDR(1,14654623,1,1,2) [2025-03-11 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654623', 'tblTempUsageDetail_20' ) start [2025-03-11 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654623', 'tblTempUsageDetail_20' ) end [2025-03-11 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:11:20] Production.INFO: ==26318== Releasing lock... [2025-03-11 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:12:05 [end_date_ymd] => 2025-03-11 05:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:12:05' and `end` < '2025-03-11 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-11 05:12:17] Production.INFO: count ==174 [2025-03-11 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:12:05 - End Time 2025-03-11 05:12:05 [2025-03-11 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654628', 'tblTempUsageDetail_20' ) start [2025-03-11 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654628', 'tblTempUsageDetail_20' ) end [2025-03-11 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654628', 'tblTempVendorCDR_20' ) start [2025-03-11 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654628', 'tblTempVendorCDR_20' ) end [2025-03-11 05:12:17] Production.INFO: ProcessCDR(1,14654628,1,1,2) [2025-03-11 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654628', 'tblTempUsageDetail_20' ) start [2025-03-11 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654628', 'tblTempUsageDetail_20' ) end [2025-03-11 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:12:20] Production.INFO: ==26389== Releasing lock... [2025-03-11 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:13:05 [end_date_ymd] => 2025-03-11 05:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:13:05' and `end` < '2025-03-11 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-11 05:13:19] Production.INFO: count ==174 [2025-03-11 05:13:19] Production.ERROR: pbx CDR StartTime 2025-03-11 02:13:05 - End Time 2025-03-11 05:13:05 [2025-03-11 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654633', 'tblTempUsageDetail_20' ) start [2025-03-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654633', 'tblTempUsageDetail_20' ) end [2025-03-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654633', 'tblTempVendorCDR_20' ) start [2025-03-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654633', 'tblTempVendorCDR_20' ) end [2025-03-11 05:13:19] Production.INFO: ProcessCDR(1,14654633,1,1,2) [2025-03-11 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654633', 'tblTempUsageDetail_20' ) start [2025-03-11 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654633', 'tblTempUsageDetail_20' ) end [2025-03-11 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:13:22] Production.INFO: ==26461== Releasing lock... [2025-03-11 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:14:05 [end_date_ymd] => 2025-03-11 05:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:14:05' and `end` < '2025-03-11 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-11 05:14:17] Production.INFO: count ==174 [2025-03-11 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:14:05 - End Time 2025-03-11 05:14:05 [2025-03-11 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654638', 'tblTempUsageDetail_20' ) start [2025-03-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654638', 'tblTempUsageDetail_20' ) end [2025-03-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654638', 'tblTempVendorCDR_20' ) start [2025-03-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654638', 'tblTempVendorCDR_20' ) end [2025-03-11 05:14:17] Production.INFO: ProcessCDR(1,14654638,1,1,2) [2025-03-11 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654638', 'tblTempUsageDetail_20' ) start [2025-03-11 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654638', 'tblTempUsageDetail_20' ) end [2025-03-11 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:14:20] Production.INFO: ==26532== Releasing lock... [2025-03-11 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:14:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:15:05 [end_date_ymd] => 2025-03-11 05:15:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:15:05' and `end` < '2025-03-11 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-11 05:15:17] Production.INFO: count ==174 [2025-03-11 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:15:05 - End Time 2025-03-11 05:15:05 [2025-03-11 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654643', 'tblTempUsageDetail_20' ) start [2025-03-11 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654643', 'tblTempUsageDetail_20' ) end [2025-03-11 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654643', 'tblTempVendorCDR_20' ) start [2025-03-11 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654643', 'tblTempVendorCDR_20' ) end [2025-03-11 05:15:17] Production.INFO: ProcessCDR(1,14654643,1,1,2) [2025-03-11 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654643', 'tblTempUsageDetail_20' ) start [2025-03-11 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654643', 'tblTempUsageDetail_20' ) end [2025-03-11 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:15:20] Production.INFO: ==26606== Releasing lock... [2025-03-11 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:16:06 [end_date_ymd] => 2025-03-11 05:16:06 [RateCDR] => 1 ) [2025-03-11 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:16:06' and `end` < '2025-03-11 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:16:18] Production.INFO: count ==174 [2025-03-11 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:16:06 - End Time 2025-03-11 05:16:06 [2025-03-11 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654648', 'tblTempUsageDetail_20' ) start [2025-03-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654648', 'tblTempUsageDetail_20' ) end [2025-03-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654648', 'tblTempVendorCDR_20' ) start [2025-03-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654648', 'tblTempVendorCDR_20' ) end [2025-03-11 05:16:18] Production.INFO: ProcessCDR(1,14654648,1,1,2) [2025-03-11 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654648', 'tblTempUsageDetail_20' ) start [2025-03-11 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654648', 'tblTempUsageDetail_20' ) end [2025-03-11 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:16:21] Production.INFO: ==26716== Releasing lock... [2025-03-11 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:17:05 [end_date_ymd] => 2025-03-11 05:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:17:05' and `end` < '2025-03-11 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-11 05:17:17] Production.INFO: count ==174 [2025-03-11 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:17:05 - End Time 2025-03-11 05:17:05 [2025-03-11 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654653', 'tblTempUsageDetail_20' ) start [2025-03-11 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654653', 'tblTempUsageDetail_20' ) end [2025-03-11 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654653', 'tblTempVendorCDR_20' ) start [2025-03-11 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654653', 'tblTempVendorCDR_20' ) end [2025-03-11 05:17:17] Production.INFO: ProcessCDR(1,14654653,1,1,2) [2025-03-11 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654653', 'tblTempUsageDetail_20' ) start [2025-03-11 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654653', 'tblTempUsageDetail_20' ) end [2025-03-11 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:17:20] Production.INFO: ==26788== Releasing lock... [2025-03-11 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:18:05 [end_date_ymd] => 2025-03-11 05:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:18:05' and `end` < '2025-03-11 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-11 05:18:17] Production.INFO: count ==174 [2025-03-11 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:18:05 - End Time 2025-03-11 05:18:05 [2025-03-11 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654658', 'tblTempUsageDetail_20' ) start [2025-03-11 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654658', 'tblTempUsageDetail_20' ) end [2025-03-11 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654658', 'tblTempVendorCDR_20' ) start [2025-03-11 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654658', 'tblTempVendorCDR_20' ) end [2025-03-11 05:18:17] Production.INFO: ProcessCDR(1,14654658,1,1,2) [2025-03-11 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654658', 'tblTempUsageDetail_20' ) start [2025-03-11 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654658', 'tblTempUsageDetail_20' ) end [2025-03-11 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:18:21] Production.INFO: ==26870== Releasing lock... [2025-03-11 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:19:05 [end_date_ymd] => 2025-03-11 05:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:19:05' and `end` < '2025-03-11 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-11 05:19:17] Production.INFO: count ==174 [2025-03-11 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:19:05 - End Time 2025-03-11 05:19:05 [2025-03-11 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654663', 'tblTempUsageDetail_20' ) start [2025-03-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654663', 'tblTempUsageDetail_20' ) end [2025-03-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654663', 'tblTempVendorCDR_20' ) start [2025-03-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654663', 'tblTempVendorCDR_20' ) end [2025-03-11 05:19:17] Production.INFO: ProcessCDR(1,14654663,1,1,2) [2025-03-11 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654663', 'tblTempUsageDetail_20' ) start [2025-03-11 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654663', 'tblTempUsageDetail_20' ) end [2025-03-11 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:19:21] Production.INFO: ==26941== Releasing lock... [2025-03-11 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:20:07 [end_date_ymd] => 2025-03-11 05:20:07 [RateCDR] => 1 ) [2025-03-11 05: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-11 02:20:07' and `end` < '2025-03-11 05: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-11 05:20:19] Production.INFO: count ==163 [2025-03-11 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-11 02:20:07 - End Time 2025-03-11 05:20:07 [2025-03-11 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654669', 'tblTempUsageDetail_20' ) start [2025-03-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654669', 'tblTempUsageDetail_20' ) end [2025-03-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654669', 'tblTempVendorCDR_20' ) start [2025-03-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654669', 'tblTempVendorCDR_20' ) end [2025-03-11 05:20:19] Production.INFO: ProcessCDR(1,14654669,1,1,2) [2025-03-11 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654669', 'tblTempUsageDetail_20' ) start [2025-03-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654669', 'tblTempUsageDetail_20' ) end [2025-03-11 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:20:22] Production.INFO: ==27019== Releasing lock... [2025-03-11 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:21:05 [end_date_ymd] => 2025-03-11 05:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:21:05' and `end` < '2025-03-11 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-11 05:21:17] Production.INFO: count ==161 [2025-03-11 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:21:05 - End Time 2025-03-11 05:21:05 [2025-03-11 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654674', 'tblTempUsageDetail_20' ) start [2025-03-11 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654674', 'tblTempUsageDetail_20' ) end [2025-03-11 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654674', 'tblTempVendorCDR_20' ) start [2025-03-11 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654674', 'tblTempVendorCDR_20' ) end [2025-03-11 05:21:17] Production.INFO: ProcessCDR(1,14654674,1,1,2) [2025-03-11 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654674', 'tblTempUsageDetail_20' ) start [2025-03-11 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654674', 'tblTempUsageDetail_20' ) end [2025-03-11 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:21:20] Production.INFO: ==27096== Releasing lock... [2025-03-11 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:22:06 [end_date_ymd] => 2025-03-11 05:22:06 [RateCDR] => 1 ) [2025-03-11 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:22:06' and `end` < '2025-03-11 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:22:18] Production.INFO: count ==160 [2025-03-11 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:22:06 - End Time 2025-03-11 05:22:06 [2025-03-11 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654679', 'tblTempUsageDetail_20' ) start [2025-03-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654679', 'tblTempUsageDetail_20' ) end [2025-03-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654679', 'tblTempVendorCDR_20' ) start [2025-03-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654679', 'tblTempVendorCDR_20' ) end [2025-03-11 05:22:18] Production.INFO: ProcessCDR(1,14654679,1,1,2) [2025-03-11 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654679', 'tblTempUsageDetail_20' ) start [2025-03-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654679', 'tblTempUsageDetail_20' ) end [2025-03-11 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:22:21] Production.INFO: ==27166== Releasing lock... [2025-03-11 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:23:04 [end_date_ymd] => 2025-03-11 05:23:04 [RateCDR] => 1 ) [2025-03-11 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:23:04' and `end` < '2025-03-11 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:23:16] Production.INFO: count ==156 [2025-03-11 05:23:16] Production.ERROR: pbx CDR StartTime 2025-03-11 02:23:04 - End Time 2025-03-11 05:23:04 [2025-03-11 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654684', 'tblTempUsageDetail_20' ) start [2025-03-11 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654684', 'tblTempUsageDetail_20' ) end [2025-03-11 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654684', 'tblTempVendorCDR_20' ) start [2025-03-11 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654684', 'tblTempVendorCDR_20' ) end [2025-03-11 05:23:16] Production.INFO: ProcessCDR(1,14654684,1,1,2) [2025-03-11 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654684', 'tblTempUsageDetail_20' ) start [2025-03-11 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654684', 'tblTempUsageDetail_20' ) end [2025-03-11 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:23:20] Production.INFO: ==27238== Releasing lock... [2025-03-11 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:24:05 [end_date_ymd] => 2025-03-11 05:24:05 [RateCDR] => 1 ) [2025-03-11 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:24:05' and `end` < '2025-03-11 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:24:17] Production.INFO: count ==155 [2025-03-11 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:24:05 - End Time 2025-03-11 05:24:05 [2025-03-11 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654689', 'tblTempUsageDetail_20' ) start [2025-03-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654689', 'tblTempUsageDetail_20' ) end [2025-03-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654689', 'tblTempVendorCDR_20' ) start [2025-03-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654689', 'tblTempVendorCDR_20' ) end [2025-03-11 05:24:17] Production.INFO: ProcessCDR(1,14654689,1,1,2) [2025-03-11 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654689', 'tblTempUsageDetail_20' ) start [2025-03-11 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654689', 'tblTempUsageDetail_20' ) end [2025-03-11 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:24:20] Production.INFO: ==27309== Releasing lock... [2025-03-11 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:25:05 [end_date_ymd] => 2025-03-11 05:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:25:05' and `end` < '2025-03-11 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-11 05:25:17] Production.INFO: count ==155 [2025-03-11 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:25:05 - End Time 2025-03-11 05:25:05 [2025-03-11 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654694', 'tblTempUsageDetail_20' ) start [2025-03-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654694', 'tblTempUsageDetail_20' ) end [2025-03-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654694', 'tblTempVendorCDR_20' ) start [2025-03-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654694', 'tblTempVendorCDR_20' ) end [2025-03-11 05:25:17] Production.INFO: ProcessCDR(1,14654694,1,1,2) [2025-03-11 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654694', 'tblTempUsageDetail_20' ) start [2025-03-11 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654694', 'tblTempUsageDetail_20' ) end [2025-03-11 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:25:20] Production.INFO: ==27381== Releasing lock... [2025-03-11 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:26:05 [end_date_ymd] => 2025-03-11 05:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:26:05' and `end` < '2025-03-11 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-11 05:26:17] Production.INFO: count ==155 [2025-03-11 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:26:05 - End Time 2025-03-11 05:26:05 [2025-03-11 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654699', 'tblTempUsageDetail_20' ) start [2025-03-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654699', 'tblTempUsageDetail_20' ) end [2025-03-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654699', 'tblTempVendorCDR_20' ) start [2025-03-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654699', 'tblTempVendorCDR_20' ) end [2025-03-11 05:26:17] Production.INFO: ProcessCDR(1,14654699,1,1,2) [2025-03-11 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654699', 'tblTempUsageDetail_20' ) start [2025-03-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654699', 'tblTempUsageDetail_20' ) end [2025-03-11 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:26:21] Production.INFO: ==27455== Releasing lock... [2025-03-11 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:27:05 [end_date_ymd] => 2025-03-11 05:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:27:05' and `end` < '2025-03-11 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-11 05:27:18] Production.INFO: count ==155 [2025-03-11 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:27:05 - End Time 2025-03-11 05:27:05 [2025-03-11 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654704', 'tblTempUsageDetail_20' ) start [2025-03-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654704', 'tblTempUsageDetail_20' ) end [2025-03-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654704', 'tblTempVendorCDR_20' ) start [2025-03-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654704', 'tblTempVendorCDR_20' ) end [2025-03-11 05:27:18] Production.INFO: ProcessCDR(1,14654704,1,1,2) [2025-03-11 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654704', 'tblTempUsageDetail_20' ) start [2025-03-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654704', 'tblTempUsageDetail_20' ) end [2025-03-11 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:27:21] Production.INFO: ==27529== Releasing lock... [2025-03-11 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:28:05 [end_date_ymd] => 2025-03-11 05:28:05 [RateCDR] => 1 ) [2025-03-11 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:28:05' and `end` < '2025-03-11 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:28:17] Production.INFO: count ==155 [2025-03-11 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:28:05 - End Time 2025-03-11 05:28:05 [2025-03-11 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654709', 'tblTempUsageDetail_20' ) start [2025-03-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654709', 'tblTempUsageDetail_20' ) end [2025-03-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654709', 'tblTempVendorCDR_20' ) start [2025-03-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654709', 'tblTempVendorCDR_20' ) end [2025-03-11 05:28:17] Production.INFO: ProcessCDR(1,14654709,1,1,2) [2025-03-11 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654709', 'tblTempUsageDetail_20' ) start [2025-03-11 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654709', 'tblTempUsageDetail_20' ) end [2025-03-11 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:28:21] Production.INFO: ==27603== Releasing lock... [2025-03-11 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:29:04 [end_date_ymd] => 2025-03-11 05:29:04 [RateCDR] => 1 ) [2025-03-11 05: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-11 02:29:04' and `end` < '2025-03-11 05: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-11 05:29:16] Production.INFO: count ==154 [2025-03-11 05:29:16] Production.ERROR: pbx CDR StartTime 2025-03-11 02:29:04 - End Time 2025-03-11 05:29:04 [2025-03-11 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654714', 'tblTempUsageDetail_20' ) start [2025-03-11 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654714', 'tblTempUsageDetail_20' ) end [2025-03-11 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654714', 'tblTempVendorCDR_20' ) start [2025-03-11 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654714', 'tblTempVendorCDR_20' ) end [2025-03-11 05:29:16] Production.INFO: ProcessCDR(1,14654714,1,1,2) [2025-03-11 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654714', 'tblTempUsageDetail_20' ) start [2025-03-11 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654714', 'tblTempUsageDetail_20' ) end [2025-03-11 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:29:20] Production.INFO: ==27677== Releasing lock... [2025-03-11 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:30:06 [end_date_ymd] => 2025-03-11 05:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 02:30:06' and `end` < '2025-03-11 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-11 05:30:18] Production.INFO: count ==152 [2025-03-11 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:30:06 - End Time 2025-03-11 05:30:06 [2025-03-11 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654720', 'tblTempUsageDetail_20' ) start [2025-03-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654720', 'tblTempUsageDetail_20' ) end [2025-03-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654720', 'tblTempVendorCDR_20' ) start [2025-03-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654720', 'tblTempVendorCDR_20' ) end [2025-03-11 05:30:18] Production.INFO: ProcessCDR(1,14654720,1,1,2) [2025-03-11 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654720', 'tblTempUsageDetail_20' ) start [2025-03-11 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654720', 'tblTempUsageDetail_20' ) end [2025-03-11 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:30:21] Production.INFO: ==27755== Releasing lock... [2025-03-11 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:31:05 [end_date_ymd] => 2025-03-11 05:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:31:05' and `end` < '2025-03-11 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-11 05:31:17] Production.INFO: count ==152 [2025-03-11 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:31:05 - End Time 2025-03-11 05:31:05 [2025-03-11 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654725', 'tblTempUsageDetail_20' ) start [2025-03-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654725', 'tblTempUsageDetail_20' ) end [2025-03-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654725', 'tblTempVendorCDR_20' ) start [2025-03-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654725', 'tblTempVendorCDR_20' ) end [2025-03-11 05:31:17] Production.INFO: ProcessCDR(1,14654725,1,1,2) [2025-03-11 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654725', 'tblTempUsageDetail_20' ) start [2025-03-11 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654725', 'tblTempUsageDetail_20' ) end [2025-03-11 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:31:20] Production.INFO: ==27870== Releasing lock... [2025-03-11 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:32:05 [end_date_ymd] => 2025-03-11 05:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:32:05' and `end` < '2025-03-11 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-11 05:32:17] Production.INFO: count ==152 [2025-03-11 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:32:05 - End Time 2025-03-11 05:32:05 [2025-03-11 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654730', 'tblTempUsageDetail_20' ) start [2025-03-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654730', 'tblTempUsageDetail_20' ) end [2025-03-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654730', 'tblTempVendorCDR_20' ) start [2025-03-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654730', 'tblTempVendorCDR_20' ) end [2025-03-11 05:32:17] Production.INFO: ProcessCDR(1,14654730,1,1,2) [2025-03-11 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654730', 'tblTempUsageDetail_20' ) start [2025-03-11 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654730', 'tblTempUsageDetail_20' ) end [2025-03-11 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:32:21] Production.INFO: ==27945== Releasing lock... [2025-03-11 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:33:04 [end_date_ymd] => 2025-03-11 05:33:04 [RateCDR] => 1 ) [2025-03-11 05:33: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-11 02:33:04' and `end` < '2025-03-11 05:33: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-11 05:33:16] Production.INFO: count ==152 [2025-03-11 05:33:16] Production.ERROR: pbx CDR StartTime 2025-03-11 02:33:04 - End Time 2025-03-11 05:33:04 [2025-03-11 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654735', 'tblTempUsageDetail_20' ) start [2025-03-11 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654735', 'tblTempUsageDetail_20' ) end [2025-03-11 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654735', 'tblTempVendorCDR_20' ) start [2025-03-11 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654735', 'tblTempVendorCDR_20' ) end [2025-03-11 05:33:16] Production.INFO: ProcessCDR(1,14654735,1,1,2) [2025-03-11 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654735', 'tblTempUsageDetail_20' ) start [2025-03-11 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654735', 'tblTempUsageDetail_20' ) end [2025-03-11 05:33:19] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:33:19] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:33:19] Production.INFO: ==28018== Releasing lock... [2025-03-11 05:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:33:19] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:34:05 [end_date_ymd] => 2025-03-11 05:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:34:05' and `end` < '2025-03-11 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-11 05:34:17] Production.INFO: count ==152 [2025-03-11 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:34:05 - End Time 2025-03-11 05:34:05 [2025-03-11 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654740', 'tblTempUsageDetail_20' ) start [2025-03-11 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654740', 'tblTempUsageDetail_20' ) end [2025-03-11 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654740', 'tblTempVendorCDR_20' ) start [2025-03-11 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654740', 'tblTempVendorCDR_20' ) end [2025-03-11 05:34:17] Production.INFO: ProcessCDR(1,14654740,1,1,2) [2025-03-11 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654740', 'tblTempUsageDetail_20' ) start [2025-03-11 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654740', 'tblTempUsageDetail_20' ) end [2025-03-11 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:34:20] Production.INFO: ==28102== Releasing lock... [2025-03-11 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:35:04 [end_date_ymd] => 2025-03-11 05:35:04 [RateCDR] => 1 ) [2025-03-11 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:35:04' and `end` < '2025-03-11 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:35:16] Production.INFO: count ==152 [2025-03-11 05:35:16] Production.ERROR: pbx CDR StartTime 2025-03-11 02:35:04 - End Time 2025-03-11 05:35:04 [2025-03-11 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654745', 'tblTempUsageDetail_20' ) start [2025-03-11 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654745', 'tblTempUsageDetail_20' ) end [2025-03-11 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654745', 'tblTempVendorCDR_20' ) start [2025-03-11 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654745', 'tblTempVendorCDR_20' ) end [2025-03-11 05:35:16] Production.INFO: ProcessCDR(1,14654745,1,1,2) [2025-03-11 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654745', 'tblTempUsageDetail_20' ) start [2025-03-11 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654745', 'tblTempUsageDetail_20' ) end [2025-03-11 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:35:20] Production.INFO: ==28183== Releasing lock... [2025-03-11 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:36:05 [end_date_ymd] => 2025-03-11 05:36:05 [RateCDR] => 1 ) [2025-03-11 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:36:05' and `end` < '2025-03-11 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:36:17] Production.INFO: count ==149 [2025-03-11 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:36:05 - End Time 2025-03-11 05:36:05 [2025-03-11 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654750', 'tblTempUsageDetail_20' ) start [2025-03-11 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654750', 'tblTempUsageDetail_20' ) end [2025-03-11 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654750', 'tblTempVendorCDR_20' ) start [2025-03-11 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654750', 'tblTempVendorCDR_20' ) end [2025-03-11 05:36:17] Production.INFO: ProcessCDR(1,14654750,1,1,2) [2025-03-11 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654750', 'tblTempUsageDetail_20' ) start [2025-03-11 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654750', 'tblTempUsageDetail_20' ) end [2025-03-11 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:36:20] Production.INFO: ==28262== Releasing lock... [2025-03-11 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:37:05 [end_date_ymd] => 2025-03-11 05:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:37:05' and `end` < '2025-03-11 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-11 05:37:17] Production.INFO: count ==147 [2025-03-11 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:37:05 - End Time 2025-03-11 05:37:05 [2025-03-11 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654755', 'tblTempUsageDetail_20' ) start [2025-03-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654755', 'tblTempUsageDetail_20' ) end [2025-03-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654755', 'tblTempVendorCDR_20' ) start [2025-03-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654755', 'tblTempVendorCDR_20' ) end [2025-03-11 05:37:17] Production.INFO: ProcessCDR(1,14654755,1,1,2) [2025-03-11 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654755', 'tblTempUsageDetail_20' ) start [2025-03-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654755', 'tblTempUsageDetail_20' ) end [2025-03-11 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:37:21] Production.INFO: ==28342== Releasing lock... [2025-03-11 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:38:05 [end_date_ymd] => 2025-03-11 05:38:05 [RateCDR] => 1 ) [2025-03-11 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:38:05' and `end` < '2025-03-11 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:38:17] Production.INFO: count ==142 [2025-03-11 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:38:05 - End Time 2025-03-11 05:38:05 [2025-03-11 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654760', 'tblTempUsageDetail_20' ) start [2025-03-11 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654760', 'tblTempUsageDetail_20' ) end [2025-03-11 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654760', 'tblTempVendorCDR_20' ) start [2025-03-11 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654760', 'tblTempVendorCDR_20' ) end [2025-03-11 05:38:17] Production.INFO: ProcessCDR(1,14654760,1,1,2) [2025-03-11 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654760', 'tblTempUsageDetail_20' ) start [2025-03-11 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654760', 'tblTempUsageDetail_20' ) end [2025-03-11 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:38:20] Production.INFO: ==28419== Releasing lock... [2025-03-11 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:39:05 [end_date_ymd] => 2025-03-11 05:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:39:05' and `end` < '2025-03-11 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-11 05:39:17] Production.INFO: count ==135 [2025-03-11 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:39:05 - End Time 2025-03-11 05:39:05 [2025-03-11 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654765', 'tblTempUsageDetail_20' ) start [2025-03-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654765', 'tblTempUsageDetail_20' ) end [2025-03-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654765', 'tblTempVendorCDR_20' ) start [2025-03-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654765', 'tblTempVendorCDR_20' ) end [2025-03-11 05:39:17] Production.INFO: ProcessCDR(1,14654765,1,1,2) [2025-03-11 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654765', 'tblTempUsageDetail_20' ) start [2025-03-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654765', 'tblTempUsageDetail_20' ) end [2025-03-11 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:39:21] Production.INFO: ==28502== Releasing lock... [2025-03-11 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:40:05 [end_date_ymd] => 2025-03-11 05:40:05 [RateCDR] => 1 ) [2025-03-11 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:40:05' and `end` < '2025-03-11 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:40:18] Production.INFO: count ==129 [2025-03-11 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:40:05 - End Time 2025-03-11 05:40:05 [2025-03-11 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654771', 'tblTempUsageDetail_20' ) start [2025-03-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654771', 'tblTempUsageDetail_20' ) end [2025-03-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654771', 'tblTempVendorCDR_20' ) start [2025-03-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654771', 'tblTempVendorCDR_20' ) end [2025-03-11 05:40:18] Production.INFO: ProcessCDR(1,14654771,1,1,2) [2025-03-11 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654771', 'tblTempUsageDetail_20' ) start [2025-03-11 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654771', 'tblTempUsageDetail_20' ) end [2025-03-11 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:40:21] Production.INFO: ==28581== Releasing lock... [2025-03-11 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:41:05 [end_date_ymd] => 2025-03-11 05:41:05 [RateCDR] => 1 ) [2025-03-11 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:41:05' and `end` < '2025-03-11 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:41:17] Production.INFO: count ==124 [2025-03-11 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:41:05 - End Time 2025-03-11 05:41:05 [2025-03-11 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654776', 'tblTempUsageDetail_20' ) start [2025-03-11 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654776', 'tblTempUsageDetail_20' ) end [2025-03-11 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654776', 'tblTempVendorCDR_20' ) start [2025-03-11 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654776', 'tblTempVendorCDR_20' ) end [2025-03-11 05:41:17] Production.INFO: ProcessCDR(1,14654776,1,1,2) [2025-03-11 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654776', 'tblTempUsageDetail_20' ) start [2025-03-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654776', 'tblTempUsageDetail_20' ) end [2025-03-11 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:41:21] Production.INFO: ==28664== Releasing lock... [2025-03-11 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:42:05 [end_date_ymd] => 2025-03-11 05:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:42:05' and `end` < '2025-03-11 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-11 05:42:17] Production.INFO: count ==124 [2025-03-11 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:42:05 - End Time 2025-03-11 05:42:05 [2025-03-11 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654781', 'tblTempUsageDetail_20' ) start [2025-03-11 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654781', 'tblTempUsageDetail_20' ) end [2025-03-11 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654781', 'tblTempVendorCDR_20' ) start [2025-03-11 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654781', 'tblTempVendorCDR_20' ) end [2025-03-11 05:42:17] Production.INFO: ProcessCDR(1,14654781,1,1,2) [2025-03-11 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654781', 'tblTempUsageDetail_20' ) start [2025-03-11 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654781', 'tblTempUsageDetail_20' ) end [2025-03-11 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:42:20] Production.INFO: ==28748== Releasing lock... [2025-03-11 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:42:20] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:43:05 [end_date_ymd] => 2025-03-11 05:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:43:05' and `end` < '2025-03-11 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-11 05:43:17] Production.INFO: count ==124 [2025-03-11 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:43:05 - End Time 2025-03-11 05:43:05 [2025-03-11 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654786', 'tblTempUsageDetail_20' ) start [2025-03-11 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654786', 'tblTempUsageDetail_20' ) end [2025-03-11 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654786', 'tblTempVendorCDR_20' ) start [2025-03-11 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654786', 'tblTempVendorCDR_20' ) end [2025-03-11 05:43:17] Production.INFO: ProcessCDR(1,14654786,1,1,2) [2025-03-11 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654786', 'tblTempUsageDetail_20' ) start [2025-03-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654786', 'tblTempUsageDetail_20' ) end [2025-03-11 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:43:21] Production.INFO: ==28825== Releasing lock... [2025-03-11 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:44:04 [end_date_ymd] => 2025-03-11 05:44:04 [RateCDR] => 1 ) [2025-03-11 05:44: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-11 02:44:04' and `end` < '2025-03-11 05:44: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-11 05:44:16] Production.INFO: count ==124 [2025-03-11 05:44:16] Production.ERROR: pbx CDR StartTime 2025-03-11 02:44:04 - End Time 2025-03-11 05:44:04 [2025-03-11 05:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654791', 'tblTempUsageDetail_20' ) start [2025-03-11 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654791', 'tblTempUsageDetail_20' ) end [2025-03-11 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654791', 'tblTempVendorCDR_20' ) start [2025-03-11 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654791', 'tblTempVendorCDR_20' ) end [2025-03-11 05:44:16] Production.INFO: ProcessCDR(1,14654791,1,1,2) [2025-03-11 05:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654791', 'tblTempUsageDetail_20' ) start [2025-03-11 05:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654791', 'tblTempUsageDetail_20' ) end [2025-03-11 05:44:19] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:44:19] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:44:19] Production.INFO: ==28898== Releasing lock... [2025-03-11 05:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:44:19] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:45:05 [end_date_ymd] => 2025-03-11 05:45:05 [RateCDR] => 1 ) [2025-03-11 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:45:05' and `end` < '2025-03-11 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:45:17] Production.INFO: count ==124 [2025-03-11 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:45:05 - End Time 2025-03-11 05:45:05 [2025-03-11 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654796', 'tblTempUsageDetail_20' ) start [2025-03-11 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654796', 'tblTempUsageDetail_20' ) end [2025-03-11 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654796', 'tblTempVendorCDR_20' ) start [2025-03-11 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654796', 'tblTempVendorCDR_20' ) end [2025-03-11 05:45:17] Production.INFO: ProcessCDR(1,14654796,1,1,2) [2025-03-11 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654796', 'tblTempUsageDetail_20' ) start [2025-03-11 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654796', 'tblTempUsageDetail_20' ) end [2025-03-11 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:45:20] Production.INFO: ==28978== Releasing lock... [2025-03-11 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:46:05 [end_date_ymd] => 2025-03-11 05:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:46:05' and `end` < '2025-03-11 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-11 05:46:17] Production.INFO: count ==124 [2025-03-11 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:46:05 - End Time 2025-03-11 05:46:05 [2025-03-11 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654801', 'tblTempUsageDetail_20' ) start [2025-03-11 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654801', 'tblTempUsageDetail_20' ) end [2025-03-11 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654801', 'tblTempVendorCDR_20' ) start [2025-03-11 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654801', 'tblTempVendorCDR_20' ) end [2025-03-11 05:46:17] Production.INFO: ProcessCDR(1,14654801,1,1,2) [2025-03-11 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654801', 'tblTempUsageDetail_20' ) start [2025-03-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654801', 'tblTempUsageDetail_20' ) end [2025-03-11 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:46:21] Production.INFO: ==29058== Releasing lock... [2025-03-11 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:47:05 [end_date_ymd] => 2025-03-11 05:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:47:05' and `end` < '2025-03-11 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-11 05:47:17] Production.INFO: count ==124 [2025-03-11 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:47:05 - End Time 2025-03-11 05:47:05 [2025-03-11 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654806', 'tblTempUsageDetail_20' ) start [2025-03-11 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654806', 'tblTempUsageDetail_20' ) end [2025-03-11 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654806', 'tblTempVendorCDR_20' ) start [2025-03-11 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654806', 'tblTempVendorCDR_20' ) end [2025-03-11 05:47:17] Production.INFO: ProcessCDR(1,14654806,1,1,2) [2025-03-11 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654806', 'tblTempUsageDetail_20' ) start [2025-03-11 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654806', 'tblTempUsageDetail_20' ) end [2025-03-11 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:47:20] Production.INFO: ==29173== Releasing lock... [2025-03-11 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:47:20] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:48:06 [end_date_ymd] => 2025-03-11 05:48:06 [RateCDR] => 1 ) [2025-03-11 05: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-11 02:48:06' and `end` < '2025-03-11 05: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-11 05:48:18] Production.INFO: count ==124 [2025-03-11 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:48:06 - End Time 2025-03-11 05:48:06 [2025-03-11 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654811', 'tblTempUsageDetail_20' ) start [2025-03-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654811', 'tblTempUsageDetail_20' ) end [2025-03-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654811', 'tblTempVendorCDR_20' ) start [2025-03-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654811', 'tblTempVendorCDR_20' ) end [2025-03-11 05:48:18] Production.INFO: ProcessCDR(1,14654811,1,1,2) [2025-03-11 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654811', 'tblTempUsageDetail_20' ) start [2025-03-11 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654811', 'tblTempUsageDetail_20' ) end [2025-03-11 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:48:21] Production.INFO: ==29254== Releasing lock... [2025-03-11 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:49:05 [end_date_ymd] => 2025-03-11 05:49:05 [RateCDR] => 1 ) [2025-03-11 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:49:05' and `end` < '2025-03-11 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:49:17] Production.INFO: count ==124 [2025-03-11 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:49:05 - End Time 2025-03-11 05:49:05 [2025-03-11 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654816', 'tblTempUsageDetail_20' ) start [2025-03-11 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654816', 'tblTempUsageDetail_20' ) end [2025-03-11 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654816', 'tblTempVendorCDR_20' ) start [2025-03-11 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654816', 'tblTempVendorCDR_20' ) end [2025-03-11 05:49:17] Production.INFO: ProcessCDR(1,14654816,1,1,2) [2025-03-11 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654816', 'tblTempUsageDetail_20' ) start [2025-03-11 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654816', 'tblTempUsageDetail_20' ) end [2025-03-11 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:49:20] Production.INFO: ==29330== Releasing lock... [2025-03-11 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:49:20] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:50:06 [end_date_ymd] => 2025-03-11 05:50:06 [RateCDR] => 1 ) [2025-03-11 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:50:06' and `end` < '2025-03-11 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:50:18] Production.INFO: count ==116 [2025-03-11 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 02:50:06 - End Time 2025-03-11 05:50:06 [2025-03-11 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654822', 'tblTempUsageDetail_20' ) start [2025-03-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654822', 'tblTempUsageDetail_20' ) end [2025-03-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654822', 'tblTempVendorCDR_20' ) start [2025-03-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654822', 'tblTempVendorCDR_20' ) end [2025-03-11 05:50:18] Production.INFO: ProcessCDR(1,14654822,1,1,2) [2025-03-11 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654822', 'tblTempUsageDetail_20' ) start [2025-03-11 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654822', 'tblTempUsageDetail_20' ) end [2025-03-11 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:50:22] Production.INFO: ==29415== Releasing lock... [2025-03-11 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:51:05 [end_date_ymd] => 2025-03-11 05:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:51:05' and `end` < '2025-03-11 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-11 05:51:17] Production.INFO: count ==112 [2025-03-11 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:51:05 - End Time 2025-03-11 05:51:05 [2025-03-11 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654827', 'tblTempUsageDetail_20' ) start [2025-03-11 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654827', 'tblTempUsageDetail_20' ) end [2025-03-11 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654827', 'tblTempVendorCDR_20' ) start [2025-03-11 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654827', 'tblTempVendorCDR_20' ) end [2025-03-11 05:51:17] Production.INFO: ProcessCDR(1,14654827,1,1,2) [2025-03-11 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654827', 'tblTempUsageDetail_20' ) start [2025-03-11 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654827', 'tblTempUsageDetail_20' ) end [2025-03-11 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:51:21] Production.INFO: ==29493== Releasing lock... [2025-03-11 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:52:05 [end_date_ymd] => 2025-03-11 05:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:52:05' and `end` < '2025-03-11 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-11 05:52:17] Production.INFO: count ==104 [2025-03-11 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:52:05 - End Time 2025-03-11 05:52:05 [2025-03-11 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654832', 'tblTempUsageDetail_20' ) start [2025-03-11 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654832', 'tblTempUsageDetail_20' ) end [2025-03-11 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654832', 'tblTempVendorCDR_20' ) start [2025-03-11 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654832', 'tblTempVendorCDR_20' ) end [2025-03-11 05:52:17] Production.INFO: ProcessCDR(1,14654832,1,1,2) [2025-03-11 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654832', 'tblTempUsageDetail_20' ) start [2025-03-11 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654832', 'tblTempUsageDetail_20' ) end [2025-03-11 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:52:20] Production.INFO: ==29572== Releasing lock... [2025-03-11 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:52:20] Production.INFO: 29 MB #Memory Used# [2025-03-11 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:53:05 [end_date_ymd] => 2025-03-11 05:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:53:05' and `end` < '2025-03-11 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-11 05:53:17] Production.INFO: count ==94 [2025-03-11 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:53:05 - End Time 2025-03-11 05:53:05 [2025-03-11 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654837', 'tblTempUsageDetail_20' ) start [2025-03-11 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654837', 'tblTempUsageDetail_20' ) end [2025-03-11 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654837', 'tblTempVendorCDR_20' ) start [2025-03-11 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654837', 'tblTempVendorCDR_20' ) end [2025-03-11 05:53:17] Production.INFO: ProcessCDR(1,14654837,1,1,2) [2025-03-11 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654837', 'tblTempUsageDetail_20' ) start [2025-03-11 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654837', 'tblTempUsageDetail_20' ) end [2025-03-11 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:53:20] Production.INFO: ==29650== Releasing lock... [2025-03-11 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:54:05 [end_date_ymd] => 2025-03-11 05:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:54:05' and `end` < '2025-03-11 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-11 05:54:17] Production.INFO: count ==90 [2025-03-11 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:54:05 - End Time 2025-03-11 05:54:05 [2025-03-11 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654842', 'tblTempUsageDetail_20' ) start [2025-03-11 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654842', 'tblTempUsageDetail_20' ) end [2025-03-11 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654842', 'tblTempVendorCDR_20' ) start [2025-03-11 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654842', 'tblTempVendorCDR_20' ) end [2025-03-11 05:54:17] Production.INFO: ProcessCDR(1,14654842,1,1,2) [2025-03-11 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654842', 'tblTempUsageDetail_20' ) start [2025-03-11 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654842', 'tblTempUsageDetail_20' ) end [2025-03-11 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:54:21] Production.INFO: ==29730== Releasing lock... [2025-03-11 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:55:05 [end_date_ymd] => 2025-03-11 05:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:55:05' and `end` < '2025-03-11 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-11 05:55:17] Production.INFO: count ==77 [2025-03-11 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:55:05 - End Time 2025-03-11 05:55:05 [2025-03-11 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654847', 'tblTempUsageDetail_20' ) start [2025-03-11 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654847', 'tblTempUsageDetail_20' ) end [2025-03-11 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654847', 'tblTempVendorCDR_20' ) start [2025-03-11 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654847', 'tblTempVendorCDR_20' ) end [2025-03-11 05:55:17] Production.INFO: ProcessCDR(1,14654847,1,1,2) [2025-03-11 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654847', 'tblTempUsageDetail_20' ) start [2025-03-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654847', 'tblTempUsageDetail_20' ) end [2025-03-11 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:55:21] Production.INFO: ==29806== Releasing lock... [2025-03-11 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:56:05 [end_date_ymd] => 2025-03-11 05:56:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:56:05' and `end` < '2025-03-11 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-11 05:56:17] Production.INFO: count ==78 [2025-03-11 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:56:05 - End Time 2025-03-11 05:56:05 [2025-03-11 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654852', 'tblTempUsageDetail_20' ) start [2025-03-11 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654852', 'tblTempUsageDetail_20' ) end [2025-03-11 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654852', 'tblTempVendorCDR_20' ) start [2025-03-11 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654852', 'tblTempVendorCDR_20' ) end [2025-03-11 05:56:17] Production.INFO: ProcessCDR(1,14654852,1,1,2) [2025-03-11 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654852', 'tblTempUsageDetail_20' ) start [2025-03-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654852', 'tblTempUsageDetail_20' ) end [2025-03-11 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:56:22] Production.INFO: ==29886== Releasing lock... [2025-03-11 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:57:05 [end_date_ymd] => 2025-03-11 05:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:57:05' and `end` < '2025-03-11 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-11 05:57:17] Production.INFO: count ==74 [2025-03-11 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:57:05 - End Time 2025-03-11 05:57:05 [2025-03-11 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654857', 'tblTempUsageDetail_20' ) start [2025-03-11 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654857', 'tblTempUsageDetail_20' ) end [2025-03-11 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654857', 'tblTempVendorCDR_20' ) start [2025-03-11 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654857', 'tblTempVendorCDR_20' ) end [2025-03-11 05:57:17] Production.INFO: ProcessCDR(1,14654857,1,1,2) [2025-03-11 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654857', 'tblTempUsageDetail_20' ) start [2025-03-11 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654857', 'tblTempUsageDetail_20' ) end [2025-03-11 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:57:20] Production.INFO: ==29964== Releasing lock... [2025-03-11 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:58:05 [end_date_ymd] => 2025-03-11 05:58:05 [RateCDR] => 1 ) [2025-03-11 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 02:58:05' and `end` < '2025-03-11 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 05:58:19] Production.INFO: count ==71 [2025-03-11 05:58:19] Production.ERROR: pbx CDR StartTime 2025-03-11 02:58:05 - End Time 2025-03-11 05:58:05 [2025-03-11 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654862', 'tblTempUsageDetail_20' ) start [2025-03-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654862', 'tblTempUsageDetail_20' ) end [2025-03-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654862', 'tblTempVendorCDR_20' ) start [2025-03-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654862', 'tblTempVendorCDR_20' ) end [2025-03-11 05:58:19] Production.INFO: ProcessCDR(1,14654862,1,1,2) [2025-03-11 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654862', 'tblTempUsageDetail_20' ) start [2025-03-11 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654862', 'tblTempUsageDetail_20' ) end [2025-03-11 05:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:58:23] Production.INFO: ==30047== Releasing lock... [2025-03-11 05:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 02:59:05 [end_date_ymd] => 2025-03-11 05:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 02:59:05' and `end` < '2025-03-11 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-11 05:59:17] Production.INFO: count ==63 [2025-03-11 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 02:59:05 - End Time 2025-03-11 05:59:05 [2025-03-11 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654867', 'tblTempUsageDetail_20' ) start [2025-03-11 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654867', 'tblTempUsageDetail_20' ) end [2025-03-11 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654867', 'tblTempVendorCDR_20' ) start [2025-03-11 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654867', 'tblTempVendorCDR_20' ) end [2025-03-11 05:59:17] Production.INFO: ProcessCDR(1,14654867,1,1,2) [2025-03-11 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654867', 'tblTempUsageDetail_20' ) start [2025-03-11 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654867', 'tblTempUsageDetail_20' ) end [2025-03-11 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 05:59:20] Production.INFO: ==30129== Releasing lock... [2025-03-11 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 05:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:00:06 [end_date_ymd] => 2025-03-11 06:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 03:00:06' and `end` < '2025-03-11 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-11 06:00:17] Production.INFO: count ==60 [2025-03-11 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:00:06 - End Time 2025-03-11 06:00:06 [2025-03-11 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654873', 'tblTempUsageDetail_20' ) start [2025-03-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654873', 'tblTempUsageDetail_20' ) end [2025-03-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654873', 'tblTempVendorCDR_20' ) start [2025-03-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654873', 'tblTempVendorCDR_20' ) end [2025-03-11 06:00:18] Production.INFO: ProcessCDR(1,14654873,1,1,2) [2025-03-11 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654873', 'tblTempUsageDetail_20' ) start [2025-03-11 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654873', 'tblTempUsageDetail_20' ) end [2025-03-11 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:00:21] Production.INFO: ==30210== Releasing lock... [2025-03-11 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:01:06 [end_date_ymd] => 2025-03-11 06:01:06 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:01:06' and `end` < '2025-03-11 06: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-11 06:01:18] Production.INFO: count ==60 [2025-03-11 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:01:06 - End Time 2025-03-11 06:01:06 [2025-03-11 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654878', 'tblTempUsageDetail_20' ) start [2025-03-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654878', 'tblTempUsageDetail_20' ) end [2025-03-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654878', 'tblTempVendorCDR_20' ) start [2025-03-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654878', 'tblTempVendorCDR_20' ) end [2025-03-11 06:01:18] Production.INFO: ProcessCDR(1,14654878,1,1,2) [2025-03-11 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654878', 'tblTempUsageDetail_20' ) start [2025-03-11 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654878', 'tblTempUsageDetail_20' ) end [2025-03-11 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:01:21] Production.INFO: ==30328== Releasing lock... [2025-03-11 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:02:05 [end_date_ymd] => 2025-03-11 06:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:02:05' and `end` < '2025-03-11 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-11 06:02:17] Production.INFO: count ==60 [2025-03-11 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:02:05 - End Time 2025-03-11 06:02:05 [2025-03-11 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654883', 'tblTempUsageDetail_20' ) start [2025-03-11 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654883', 'tblTempUsageDetail_20' ) end [2025-03-11 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654883', 'tblTempVendorCDR_20' ) start [2025-03-11 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654883', 'tblTempVendorCDR_20' ) end [2025-03-11 06:02:17] Production.INFO: ProcessCDR(1,14654883,1,1,2) [2025-03-11 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654883', 'tblTempUsageDetail_20' ) start [2025-03-11 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654883', 'tblTempUsageDetail_20' ) end [2025-03-11 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:02:21] Production.INFO: ==30472== Releasing lock... [2025-03-11 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:03:06 [end_date_ymd] => 2025-03-11 06:03:06 [RateCDR] => 1 ) [2025-03-11 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:03:06' and `end` < '2025-03-11 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:03:18] Production.INFO: count ==60 [2025-03-11 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:03:06 - End Time 2025-03-11 06:03:06 [2025-03-11 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654888', 'tblTempUsageDetail_20' ) start [2025-03-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654888', 'tblTempUsageDetail_20' ) end [2025-03-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654888', 'tblTempVendorCDR_20' ) start [2025-03-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654888', 'tblTempVendorCDR_20' ) end [2025-03-11 06:03:18] Production.INFO: ProcessCDR(1,14654888,1,1,2) [2025-03-11 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654888', 'tblTempUsageDetail_20' ) start [2025-03-11 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654888', 'tblTempUsageDetail_20' ) end [2025-03-11 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:03:21] Production.INFO: ==30573== Releasing lock... [2025-03-11 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:04:05 [end_date_ymd] => 2025-03-11 06:04:05 [RateCDR] => 1 ) [2025-03-11 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:04:05' and `end` < '2025-03-11 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:04:17] Production.INFO: count ==60 [2025-03-11 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:04:05 - End Time 2025-03-11 06:04:05 [2025-03-11 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654893', 'tblTempUsageDetail_20' ) start [2025-03-11 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654893', 'tblTempUsageDetail_20' ) end [2025-03-11 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654893', 'tblTempVendorCDR_20' ) start [2025-03-11 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654893', 'tblTempVendorCDR_20' ) end [2025-03-11 06:04:17] Production.INFO: ProcessCDR(1,14654893,1,1,2) [2025-03-11 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654893', 'tblTempUsageDetail_20' ) start [2025-03-11 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654893', 'tblTempUsageDetail_20' ) end [2025-03-11 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:04:21] Production.INFO: ==30671== Releasing lock... [2025-03-11 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:05:05 [end_date_ymd] => 2025-03-11 06:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:05:05' and `end` < '2025-03-11 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-11 06:05:17] Production.INFO: count ==60 [2025-03-11 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:05:05 - End Time 2025-03-11 06:05:05 [2025-03-11 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654898', 'tblTempUsageDetail_20' ) start [2025-03-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654898', 'tblTempUsageDetail_20' ) end [2025-03-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654898', 'tblTempVendorCDR_20' ) start [2025-03-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654898', 'tblTempVendorCDR_20' ) end [2025-03-11 06:05:17] Production.INFO: ProcessCDR(1,14654898,1,1,2) [2025-03-11 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654898', 'tblTempUsageDetail_20' ) start [2025-03-11 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654898', 'tblTempUsageDetail_20' ) end [2025-03-11 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:05:20] Production.INFO: ==30767== Releasing lock... [2025-03-11 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:06:05 [end_date_ymd] => 2025-03-11 06:06:05 [RateCDR] => 1 ) [2025-03-11 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:06:05' and `end` < '2025-03-11 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:06:17] Production.INFO: count ==60 [2025-03-11 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:06:05 - End Time 2025-03-11 06:06:05 [2025-03-11 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654903', 'tblTempUsageDetail_20' ) start [2025-03-11 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654903', 'tblTempUsageDetail_20' ) end [2025-03-11 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654903', 'tblTempVendorCDR_20' ) start [2025-03-11 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654903', 'tblTempVendorCDR_20' ) end [2025-03-11 06:06:17] Production.INFO: ProcessCDR(1,14654903,1,1,2) [2025-03-11 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654903', 'tblTempUsageDetail_20' ) start [2025-03-11 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654903', 'tblTempUsageDetail_20' ) end [2025-03-11 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:06:20] Production.INFO: ==30862== Releasing lock... [2025-03-11 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:07:05 [end_date_ymd] => 2025-03-11 06:07:05 [RateCDR] => 1 ) [2025-03-11 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:07:05' and `end` < '2025-03-11 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:07:17] Production.INFO: count ==63 [2025-03-11 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:07:05 - End Time 2025-03-11 06:07:05 [2025-03-11 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654908', 'tblTempUsageDetail_20' ) start [2025-03-11 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654908', 'tblTempUsageDetail_20' ) end [2025-03-11 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654908', 'tblTempVendorCDR_20' ) start [2025-03-11 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654908', 'tblTempVendorCDR_20' ) end [2025-03-11 06:07:17] Production.INFO: ProcessCDR(1,14654908,1,1,2) [2025-03-11 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654908', 'tblTempUsageDetail_20' ) start [2025-03-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654908', 'tblTempUsageDetail_20' ) end [2025-03-11 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:07:21] Production.INFO: ==30959== Releasing lock... [2025-03-11 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:08:05 [end_date_ymd] => 2025-03-11 06:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:08:05' and `end` < '2025-03-11 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-11 06:08:17] Production.INFO: count ==63 [2025-03-11 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:08:05 - End Time 2025-03-11 06:08:05 [2025-03-11 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654913', 'tblTempUsageDetail_20' ) start [2025-03-11 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654913', 'tblTempUsageDetail_20' ) end [2025-03-11 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654913', 'tblTempVendorCDR_20' ) start [2025-03-11 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654913', 'tblTempVendorCDR_20' ) end [2025-03-11 06:08:17] Production.INFO: ProcessCDR(1,14654913,1,1,2) [2025-03-11 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654913', 'tblTempUsageDetail_20' ) start [2025-03-11 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654913', 'tblTempUsageDetail_20' ) end [2025-03-11 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:08:20] Production.INFO: ==31052== Releasing lock... [2025-03-11 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:09:05 [end_date_ymd] => 2025-03-11 06:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:09:05' and `end` < '2025-03-11 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-11 06:09:17] Production.INFO: count ==59 [2025-03-11 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:09:05 - End Time 2025-03-11 06:09:05 [2025-03-11 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654918', 'tblTempUsageDetail_20' ) start [2025-03-11 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654918', 'tblTempUsageDetail_20' ) end [2025-03-11 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654918', 'tblTempVendorCDR_20' ) start [2025-03-11 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654918', 'tblTempVendorCDR_20' ) end [2025-03-11 06:09:17] Production.INFO: ProcessCDR(1,14654918,1,1,2) [2025-03-11 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654918', 'tblTempUsageDetail_20' ) start [2025-03-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654918', 'tblTempUsageDetail_20' ) end [2025-03-11 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:09:21] Production.INFO: ==31143== Releasing lock... [2025-03-11 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:10:05 [end_date_ymd] => 2025-03-11 06:10:05 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:10:05' and `end` < '2025-03-11 06: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-11 06:10:17] Production.INFO: count ==59 [2025-03-11 06:10:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:10:05 - End Time 2025-03-11 06:10:05 [2025-03-11 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654923', 'tblTempUsageDetail_20' ) start [2025-03-11 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654923', 'tblTempUsageDetail_20' ) end [2025-03-11 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654923', 'tblTempVendorCDR_20' ) start [2025-03-11 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654923', 'tblTempVendorCDR_20' ) end [2025-03-11 06:10:17] Production.INFO: ProcessCDR(1,14654923,1,1,2) [2025-03-11 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654923', 'tblTempUsageDetail_20' ) start [2025-03-11 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654923', 'tblTempUsageDetail_20' ) end [2025-03-11 06:10:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:10:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:10:20] Production.INFO: ==31236== Releasing lock... [2025-03-11 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:10:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:11:05 [end_date_ymd] => 2025-03-11 06:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:11:05' and `end` < '2025-03-11 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-11 06:11:18] Production.INFO: count ==59 [2025-03-11 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:11:05 - End Time 2025-03-11 06:11:05 [2025-03-11 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654929', 'tblTempUsageDetail_20' ) start [2025-03-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654929', 'tblTempUsageDetail_20' ) end [2025-03-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654929', 'tblTempVendorCDR_20' ) start [2025-03-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654929', 'tblTempVendorCDR_20' ) end [2025-03-11 06:11:18] Production.INFO: ProcessCDR(1,14654929,1,1,2) [2025-03-11 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654929', 'tblTempUsageDetail_20' ) start [2025-03-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654929', 'tblTempUsageDetail_20' ) end [2025-03-11 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:11:21] Production.INFO: ==31333== Releasing lock... [2025-03-11 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:12:05 [end_date_ymd] => 2025-03-11 06:12:05 [RateCDR] => 1 ) [2025-03-11 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:12:05' and `end` < '2025-03-11 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:12:17] Production.INFO: count ==59 [2025-03-11 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:12:05 - End Time 2025-03-11 06:12:05 [2025-03-11 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654934', 'tblTempUsageDetail_20' ) start [2025-03-11 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654934', 'tblTempUsageDetail_20' ) end [2025-03-11 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654934', 'tblTempVendorCDR_20' ) start [2025-03-11 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654934', 'tblTempVendorCDR_20' ) end [2025-03-11 06:12:17] Production.INFO: ProcessCDR(1,14654934,1,1,2) [2025-03-11 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654934', 'tblTempUsageDetail_20' ) start [2025-03-11 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654934', 'tblTempUsageDetail_20' ) end [2025-03-11 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:12:20] Production.INFO: ==31429== Releasing lock... [2025-03-11 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:13:06 [end_date_ymd] => 2025-03-11 06:13:06 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:13:06' and `end` < '2025-03-11 06: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-11 06:13:18] Production.INFO: count ==59 [2025-03-11 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:13:06 - End Time 2025-03-11 06:13:06 [2025-03-11 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654939', 'tblTempUsageDetail_20' ) start [2025-03-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654939', 'tblTempUsageDetail_20' ) end [2025-03-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654939', 'tblTempVendorCDR_20' ) start [2025-03-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654939', 'tblTempVendorCDR_20' ) end [2025-03-11 06:13:18] Production.INFO: ProcessCDR(1,14654939,1,1,2) [2025-03-11 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654939', 'tblTempUsageDetail_20' ) start [2025-03-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654939', 'tblTempUsageDetail_20' ) end [2025-03-11 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:13:21] Production.INFO: ==31522== Releasing lock... [2025-03-11 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:14:05 [end_date_ymd] => 2025-03-11 06:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:14:05' and `end` < '2025-03-11 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-11 06:14:17] Production.INFO: count ==59 [2025-03-11 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:14:05 - End Time 2025-03-11 06:14:05 [2025-03-11 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654944', 'tblTempUsageDetail_20' ) start [2025-03-11 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654944', 'tblTempUsageDetail_20' ) end [2025-03-11 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654944', 'tblTempVendorCDR_20' ) start [2025-03-11 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654944', 'tblTempVendorCDR_20' ) end [2025-03-11 06:14:17] Production.INFO: ProcessCDR(1,14654944,1,1,2) [2025-03-11 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654944', 'tblTempUsageDetail_20' ) start [2025-03-11 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654944', 'tblTempUsageDetail_20' ) end [2025-03-11 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:14:21] Production.INFO: ==31619== Releasing lock... [2025-03-11 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:15:05 [end_date_ymd] => 2025-03-11 06:15:05 [RateCDR] => 1 ) [2025-03-11 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:15:05' and `end` < '2025-03-11 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:15:17] Production.INFO: count ==59 [2025-03-11 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:15:05 - End Time 2025-03-11 06:15:05 [2025-03-11 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654949', 'tblTempUsageDetail_20' ) start [2025-03-11 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654949', 'tblTempUsageDetail_20' ) end [2025-03-11 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654949', 'tblTempVendorCDR_20' ) start [2025-03-11 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654949', 'tblTempVendorCDR_20' ) end [2025-03-11 06:15:17] Production.INFO: ProcessCDR(1,14654949,1,1,2) [2025-03-11 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654949', 'tblTempUsageDetail_20' ) start [2025-03-11 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654949', 'tblTempUsageDetail_20' ) end [2025-03-11 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:15:21] Production.INFO: ==31713== Releasing lock... [2025-03-11 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:16:05 [end_date_ymd] => 2025-03-11 06:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:16:05' and `end` < '2025-03-11 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-11 06:16:17] Production.INFO: count ==62 [2025-03-11 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:16:05 - End Time 2025-03-11 06:16:05 [2025-03-11 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654954', 'tblTempUsageDetail_20' ) start [2025-03-11 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654954', 'tblTempUsageDetail_20' ) end [2025-03-11 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654954', 'tblTempVendorCDR_20' ) start [2025-03-11 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654954', 'tblTempVendorCDR_20' ) end [2025-03-11 06:16:17] Production.INFO: ProcessCDR(1,14654954,1,1,2) [2025-03-11 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654954', 'tblTempUsageDetail_20' ) start [2025-03-11 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654954', 'tblTempUsageDetail_20' ) end [2025-03-11 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:16:20] Production.INFO: ==31810== Releasing lock... [2025-03-11 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:17:06 [end_date_ymd] => 2025-03-11 06:17:06 [RateCDR] => 1 ) [2025-03-11 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-11 03:17:06' and `end` < '2025-03-11 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-11 06:17:18] Production.INFO: count ==62 [2025-03-11 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:17:06 - End Time 2025-03-11 06:17:06 [2025-03-11 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654959', 'tblTempUsageDetail_20' ) start [2025-03-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654959', 'tblTempUsageDetail_20' ) end [2025-03-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654959', 'tblTempVendorCDR_20' ) start [2025-03-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654959', 'tblTempVendorCDR_20' ) end [2025-03-11 06:17:18] Production.INFO: ProcessCDR(1,14654959,1,1,2) [2025-03-11 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654959', 'tblTempUsageDetail_20' ) start [2025-03-11 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654959', 'tblTempUsageDetail_20' ) end [2025-03-11 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:17:21] Production.INFO: ==31898== Releasing lock... [2025-03-11 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:18:05 [end_date_ymd] => 2025-03-11 06:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:18:05' and `end` < '2025-03-11 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-11 06:18:17] Production.INFO: count ==66 [2025-03-11 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:18:05 - End Time 2025-03-11 06:18:05 [2025-03-11 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654964', 'tblTempUsageDetail_20' ) start [2025-03-11 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654964', 'tblTempUsageDetail_20' ) end [2025-03-11 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654964', 'tblTempVendorCDR_20' ) start [2025-03-11 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654964', 'tblTempVendorCDR_20' ) end [2025-03-11 06:18:17] Production.INFO: ProcessCDR(1,14654964,1,1,2) [2025-03-11 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654964', 'tblTempUsageDetail_20' ) start [2025-03-11 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654964', 'tblTempUsageDetail_20' ) end [2025-03-11 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:18:20] Production.INFO: ==32034== Releasing lock... [2025-03-11 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:19:05 [end_date_ymd] => 2025-03-11 06:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:19:05' and `end` < '2025-03-11 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-11 06:19:17] Production.INFO: count ==66 [2025-03-11 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:19:05 - End Time 2025-03-11 06:19:05 [2025-03-11 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654969', 'tblTempUsageDetail_20' ) start [2025-03-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654969', 'tblTempUsageDetail_20' ) end [2025-03-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654969', 'tblTempVendorCDR_20' ) start [2025-03-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654969', 'tblTempVendorCDR_20' ) end [2025-03-11 06:19:17] Production.INFO: ProcessCDR(1,14654969,1,1,2) [2025-03-11 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654969', 'tblTempUsageDetail_20' ) start [2025-03-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654969', 'tblTempUsageDetail_20' ) end [2025-03-11 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:19:21] Production.INFO: ==32128== Releasing lock... [2025-03-11 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:20:06 [end_date_ymd] => 2025-03-11 06:20:06 [RateCDR] => 1 ) [2025-03-11 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:20:06' and `end` < '2025-03-11 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:20:18] Production.INFO: count ==66 [2025-03-11 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:20:06 - End Time 2025-03-11 06:20:06 [2025-03-11 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654975', 'tblTempUsageDetail_20' ) start [2025-03-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654975', 'tblTempUsageDetail_20' ) end [2025-03-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654975', 'tblTempVendorCDR_20' ) start [2025-03-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654975', 'tblTempVendorCDR_20' ) end [2025-03-11 06:20:18] Production.INFO: ProcessCDR(1,14654975,1,1,2) [2025-03-11 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654975', 'tblTempUsageDetail_20' ) start [2025-03-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654975', 'tblTempUsageDetail_20' ) end [2025-03-11 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:20:21] Production.INFO: ==32223== Releasing lock... [2025-03-11 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:21:05 [end_date_ymd] => 2025-03-11 06:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:21:05' and `end` < '2025-03-11 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-11 06:21:19] Production.INFO: count ==66 [2025-03-11 06:21:19] Production.ERROR: pbx CDR StartTime 2025-03-11 03:21:05 - End Time 2025-03-11 06:21:05 [2025-03-11 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654980', 'tblTempUsageDetail_20' ) start [2025-03-11 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654980', 'tblTempUsageDetail_20' ) end [2025-03-11 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654980', 'tblTempVendorCDR_20' ) start [2025-03-11 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654980', 'tblTempVendorCDR_20' ) end [2025-03-11 06:21:19] Production.INFO: ProcessCDR(1,14654980,1,1,2) [2025-03-11 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654980', 'tblTempUsageDetail_20' ) start [2025-03-11 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654980', 'tblTempUsageDetail_20' ) end [2025-03-11 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:21:22] Production.INFO: ==32321== Releasing lock... [2025-03-11 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:22:06 [end_date_ymd] => 2025-03-11 06:22:06 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:22:06' and `end` < '2025-03-11 06: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-11 06:22:18] Production.INFO: count ==66 [2025-03-11 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:22:06 - End Time 2025-03-11 06:22:06 [2025-03-11 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654985', 'tblTempUsageDetail_20' ) start [2025-03-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654985', 'tblTempUsageDetail_20' ) end [2025-03-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654985', 'tblTempVendorCDR_20' ) start [2025-03-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654985', 'tblTempVendorCDR_20' ) end [2025-03-11 06:22:18] Production.INFO: ProcessCDR(1,14654985,1,1,2) [2025-03-11 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654985', 'tblTempUsageDetail_20' ) start [2025-03-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654985', 'tblTempUsageDetail_20' ) end [2025-03-11 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:22:22] Production.INFO: ==32415== Releasing lock... [2025-03-11 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:23:05 [end_date_ymd] => 2025-03-11 06:23:05 [RateCDR] => 1 ) [2025-03-11 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:23:05' and `end` < '2025-03-11 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:23:17] Production.INFO: count ==65 [2025-03-11 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:23:05 - End Time 2025-03-11 06:23:05 [2025-03-11 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654990', 'tblTempUsageDetail_20' ) start [2025-03-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654990', 'tblTempUsageDetail_20' ) end [2025-03-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654990', 'tblTempVendorCDR_20' ) start [2025-03-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654990', 'tblTempVendorCDR_20' ) end [2025-03-11 06:23:17] Production.INFO: ProcessCDR(1,14654990,1,1,2) [2025-03-11 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654990', 'tblTempUsageDetail_20' ) start [2025-03-11 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654990', 'tblTempUsageDetail_20' ) end [2025-03-11 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:23:20] Production.INFO: ==32517== Releasing lock... [2025-03-11 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:24:05 [end_date_ymd] => 2025-03-11 06:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:24:05' and `end` < '2025-03-11 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-11 06:24:17] Production.INFO: count ==65 [2025-03-11 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:24:05 - End Time 2025-03-11 06:24:05 [2025-03-11 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654995', 'tblTempUsageDetail_20' ) start [2025-03-11 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14654995', 'tblTempUsageDetail_20' ) end [2025-03-11 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654995', 'tblTempVendorCDR_20' ) start [2025-03-11 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14654995', 'tblTempVendorCDR_20' ) end [2025-03-11 06:24:17] Production.INFO: ProcessCDR(1,14654995,1,1,2) [2025-03-11 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14654995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14654995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14654995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14654995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654995', 'tblTempUsageDetail_20' ) start [2025-03-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14654995', 'tblTempUsageDetail_20' ) end [2025-03-11 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:24:21] Production.INFO: ==32606== Releasing lock... [2025-03-11 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:25:05 [end_date_ymd] => 2025-03-11 06:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:25:05' and `end` < '2025-03-11 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-11 06:25:17] Production.INFO: count ==73 [2025-03-11 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:25:05 - End Time 2025-03-11 06:25:05 [2025-03-11 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655000', 'tblTempUsageDetail_20' ) start [2025-03-11 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655000', 'tblTempUsageDetail_20' ) end [2025-03-11 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655000', 'tblTempVendorCDR_20' ) start [2025-03-11 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655000', 'tblTempVendorCDR_20' ) end [2025-03-11 06:25:17] Production.INFO: ProcessCDR(1,14655000,1,1,2) [2025-03-11 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655000', 'tblTempUsageDetail_20' ) start [2025-03-11 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655000', 'tblTempUsageDetail_20' ) end [2025-03-11 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:25:20] Production.INFO: ==32695== Releasing lock... [2025-03-11 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:26:06 [end_date_ymd] => 2025-03-11 06:26:06 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:26:06' and `end` < '2025-03-11 06: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-11 06:26:18] Production.INFO: count ==73 [2025-03-11 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:26:06 - End Time 2025-03-11 06:26:06 [2025-03-11 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655005', 'tblTempUsageDetail_20' ) start [2025-03-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655005', 'tblTempUsageDetail_20' ) end [2025-03-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655005', 'tblTempVendorCDR_20' ) start [2025-03-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655005', 'tblTempVendorCDR_20' ) end [2025-03-11 06:26:18] Production.INFO: ProcessCDR(1,14655005,1,1,2) [2025-03-11 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655005', 'tblTempUsageDetail_20' ) start [2025-03-11 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655005', 'tblTempUsageDetail_20' ) end [2025-03-11 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:26:21] Production.INFO: ==330== Releasing lock... [2025-03-11 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:27:06 [end_date_ymd] => 2025-03-11 06:27:06 [RateCDR] => 1 ) [2025-03-11 06:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:27:06' and `end` < '2025-03-11 06:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:27:18] Production.INFO: count ==73 [2025-03-11 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:27:06 - End Time 2025-03-11 06:27:06 [2025-03-11 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655010', 'tblTempUsageDetail_20' ) start [2025-03-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655010', 'tblTempUsageDetail_20' ) end [2025-03-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655010', 'tblTempVendorCDR_20' ) start [2025-03-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655010', 'tblTempVendorCDR_20' ) end [2025-03-11 06:27:18] Production.INFO: ProcessCDR(1,14655010,1,1,2) [2025-03-11 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655010', 'tblTempUsageDetail_20' ) start [2025-03-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655010', 'tblTempUsageDetail_20' ) end [2025-03-11 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:27:21] Production.INFO: ==438== Releasing lock... [2025-03-11 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:28:05 [end_date_ymd] => 2025-03-11 06:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:28:05' and `end` < '2025-03-11 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:28:17] Production.INFO: count ==73 [2025-03-11 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:28:05 - End Time 2025-03-11 06:28:05 [2025-03-11 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655015', 'tblTempUsageDetail_20' ) start [2025-03-11 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655015', 'tblTempUsageDetail_20' ) end [2025-03-11 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655015', 'tblTempVendorCDR_20' ) start [2025-03-11 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655015', 'tblTempVendorCDR_20' ) end [2025-03-11 06:28:17] Production.INFO: ProcessCDR(1,14655015,1,1,2) [2025-03-11 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655015', 'tblTempUsageDetail_20' ) start [2025-03-11 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655015', 'tblTempUsageDetail_20' ) end [2025-03-11 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:28:20] Production.INFO: ==538== Releasing lock... [2025-03-11 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:29:05 [end_date_ymd] => 2025-03-11 06:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:29:05' and `end` < '2025-03-11 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-11 06:29:17] Production.INFO: count ==72 [2025-03-11 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:29:05 - End Time 2025-03-11 06:29:05 [2025-03-11 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655020', 'tblTempUsageDetail_20' ) start [2025-03-11 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655020', 'tblTempUsageDetail_20' ) end [2025-03-11 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655020', 'tblTempVendorCDR_20' ) start [2025-03-11 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655020', 'tblTempVendorCDR_20' ) end [2025-03-11 06:29:17] Production.INFO: ProcessCDR(1,14655020,1,1,2) [2025-03-11 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655020', 'tblTempUsageDetail_20' ) start [2025-03-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655020', 'tblTempUsageDetail_20' ) end [2025-03-11 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:29:21] Production.INFO: ==636== Releasing lock... [2025-03-11 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:30:06 [end_date_ymd] => 2025-03-11 06:30:06 [RateCDR] => 1 ) [2025-03-11 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:30:06' and `end` < '2025-03-11 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:30:18] Production.INFO: count ==72 [2025-03-11 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:30:06 - End Time 2025-03-11 06:30:06 [2025-03-11 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655026', 'tblTempUsageDetail_20' ) start [2025-03-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655026', 'tblTempUsageDetail_20' ) end [2025-03-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655026', 'tblTempVendorCDR_20' ) start [2025-03-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655026', 'tblTempVendorCDR_20' ) end [2025-03-11 06:30:18] Production.INFO: ProcessCDR(1,14655026,1,1,2) [2025-03-11 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655026', 'tblTempUsageDetail_20' ) start [2025-03-11 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655026', 'tblTempUsageDetail_20' ) end [2025-03-11 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:30:22] Production.INFO: ==762== Releasing lock... [2025-03-11 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:31:05 [end_date_ymd] => 2025-03-11 06:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:31:05' and `end` < '2025-03-11 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-11 06:31:17] Production.INFO: count ==77 [2025-03-11 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:31:05 - End Time 2025-03-11 06:31:05 [2025-03-11 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655031', 'tblTempUsageDetail_20' ) start [2025-03-11 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655031', 'tblTempUsageDetail_20' ) end [2025-03-11 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655031', 'tblTempVendorCDR_20' ) start [2025-03-11 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655031', 'tblTempVendorCDR_20' ) end [2025-03-11 06:31:17] Production.INFO: ProcessCDR(1,14655031,1,1,2) [2025-03-11 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655031', 'tblTempUsageDetail_20' ) start [2025-03-11 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655031', 'tblTempUsageDetail_20' ) end [2025-03-11 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:31:20] Production.INFO: ==860== Releasing lock... [2025-03-11 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:31:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:32:05 [end_date_ymd] => 2025-03-11 06:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:32:05' and `end` < '2025-03-11 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-11 06:32:17] Production.INFO: count ==77 [2025-03-11 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:32:05 - End Time 2025-03-11 06:32:05 [2025-03-11 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655036', 'tblTempUsageDetail_20' ) start [2025-03-11 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655036', 'tblTempUsageDetail_20' ) end [2025-03-11 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655036', 'tblTempVendorCDR_20' ) start [2025-03-11 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655036', 'tblTempVendorCDR_20' ) end [2025-03-11 06:32:17] Production.INFO: ProcessCDR(1,14655036,1,1,2) [2025-03-11 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655036', 'tblTempUsageDetail_20' ) start [2025-03-11 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655036', 'tblTempUsageDetail_20' ) end [2025-03-11 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:32:20] Production.INFO: ==954== Releasing lock... [2025-03-11 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:33:05 [end_date_ymd] => 2025-03-11 06:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:33:05' and `end` < '2025-03-11 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-11 06:33:19] Production.INFO: count ==77 [2025-03-11 06:33:19] Production.ERROR: pbx CDR StartTime 2025-03-11 03:33:05 - End Time 2025-03-11 06:33:05 [2025-03-11 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655041', 'tblTempUsageDetail_20' ) start [2025-03-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655041', 'tblTempUsageDetail_20' ) end [2025-03-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655041', 'tblTempVendorCDR_20' ) start [2025-03-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655041', 'tblTempVendorCDR_20' ) end [2025-03-11 06:33:19] Production.INFO: ProcessCDR(1,14655041,1,1,2) [2025-03-11 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655041', 'tblTempUsageDetail_20' ) start [2025-03-11 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655041', 'tblTempUsageDetail_20' ) end [2025-03-11 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:33:22] Production.INFO: ==1086== Releasing lock... [2025-03-11 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:34:05 [end_date_ymd] => 2025-03-11 06:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:34:05' and `end` < '2025-03-11 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-11 06:34:17] Production.INFO: count ==77 [2025-03-11 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:34:05 - End Time 2025-03-11 06:34:05 [2025-03-11 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655046', 'tblTempUsageDetail_20' ) start [2025-03-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655046', 'tblTempUsageDetail_20' ) end [2025-03-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655046', 'tblTempVendorCDR_20' ) start [2025-03-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655046', 'tblTempVendorCDR_20' ) end [2025-03-11 06:34:17] Production.INFO: ProcessCDR(1,14655046,1,1,2) [2025-03-11 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655046', 'tblTempUsageDetail_20' ) start [2025-03-11 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655046', 'tblTempUsageDetail_20' ) end [2025-03-11 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:34:20] Production.INFO: ==1190== Releasing lock... [2025-03-11 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:35:05 [end_date_ymd] => 2025-03-11 06:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:35:05' and `end` < '2025-03-11 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-11 06:35:17] Production.INFO: count ==77 [2025-03-11 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:35:05 - End Time 2025-03-11 06:35:05 [2025-03-11 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655051', 'tblTempUsageDetail_20' ) start [2025-03-11 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655051', 'tblTempUsageDetail_20' ) end [2025-03-11 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655051', 'tblTempVendorCDR_20' ) start [2025-03-11 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655051', 'tblTempVendorCDR_20' ) end [2025-03-11 06:35:17] Production.INFO: ProcessCDR(1,14655051,1,1,2) [2025-03-11 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655051', 'tblTempUsageDetail_20' ) start [2025-03-11 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655051', 'tblTempUsageDetail_20' ) end [2025-03-11 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:35:20] Production.INFO: ==1291== Releasing lock... [2025-03-11 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:36:05 [end_date_ymd] => 2025-03-11 06:36:05 [RateCDR] => 1 ) [2025-03-11 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:36:05' and `end` < '2025-03-11 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:36:17] Production.INFO: count ==77 [2025-03-11 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:36:05 - End Time 2025-03-11 06:36:05 [2025-03-11 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655056', 'tblTempUsageDetail_20' ) start [2025-03-11 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655056', 'tblTempUsageDetail_20' ) end [2025-03-11 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655056', 'tblTempVendorCDR_20' ) start [2025-03-11 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655056', 'tblTempVendorCDR_20' ) end [2025-03-11 06:36:17] Production.INFO: ProcessCDR(1,14655056,1,1,2) [2025-03-11 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655056', 'tblTempUsageDetail_20' ) start [2025-03-11 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655056', 'tblTempUsageDetail_20' ) end [2025-03-11 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:36:21] Production.INFO: ==1382== Releasing lock... [2025-03-11 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:37:05 [end_date_ymd] => 2025-03-11 06:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:37:05' and `end` < '2025-03-11 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-11 06:37:18] Production.INFO: count ==75 [2025-03-11 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:37:05 - End Time 2025-03-11 06:37:05 [2025-03-11 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655061', 'tblTempUsageDetail_20' ) start [2025-03-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655061', 'tblTempUsageDetail_20' ) end [2025-03-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655061', 'tblTempVendorCDR_20' ) start [2025-03-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655061', 'tblTempVendorCDR_20' ) end [2025-03-11 06:37:18] Production.INFO: ProcessCDR(1,14655061,1,1,2) [2025-03-11 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655061', 'tblTempUsageDetail_20' ) start [2025-03-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655061', 'tblTempUsageDetail_20' ) end [2025-03-11 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:37:21] Production.INFO: ==1488== Releasing lock... [2025-03-11 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:38:05 [end_date_ymd] => 2025-03-11 06:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:38:05' and `end` < '2025-03-11 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-11 06:38:17] Production.INFO: count ==75 [2025-03-11 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:38:05 - End Time 2025-03-11 06:38:05 [2025-03-11 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655066', 'tblTempUsageDetail_20' ) start [2025-03-11 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655066', 'tblTempUsageDetail_20' ) end [2025-03-11 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655066', 'tblTempVendorCDR_20' ) start [2025-03-11 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655066', 'tblTempVendorCDR_20' ) end [2025-03-11 06:38:17] Production.INFO: ProcessCDR(1,14655066,1,1,2) [2025-03-11 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655066', 'tblTempUsageDetail_20' ) start [2025-03-11 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655066', 'tblTempUsageDetail_20' ) end [2025-03-11 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:38:21] Production.INFO: ==1607== Releasing lock... [2025-03-11 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:39:06 [end_date_ymd] => 2025-03-11 06:39:06 [RateCDR] => 1 ) [2025-03-11 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:39:06' and `end` < '2025-03-11 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:39:18] Production.INFO: count ==75 [2025-03-11 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:39:06 - End Time 2025-03-11 06:39:06 [2025-03-11 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655071', 'tblTempUsageDetail_20' ) start [2025-03-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655071', 'tblTempUsageDetail_20' ) end [2025-03-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655071', 'tblTempVendorCDR_20' ) start [2025-03-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655071', 'tblTempVendorCDR_20' ) end [2025-03-11 06:39:18] Production.INFO: ProcessCDR(1,14655071,1,1,2) [2025-03-11 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655071', 'tblTempUsageDetail_20' ) start [2025-03-11 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655071', 'tblTempUsageDetail_20' ) end [2025-03-11 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:39:21] Production.INFO: ==1698== Releasing lock... [2025-03-11 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:40:06 [end_date_ymd] => 2025-03-11 06:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 03:40:06' and `end` < '2025-03-11 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-11 06:40:18] Production.INFO: count ==74 [2025-03-11 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:40:06 - End Time 2025-03-11 06:40:06 [2025-03-11 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655077', 'tblTempUsageDetail_20' ) start [2025-03-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655077', 'tblTempUsageDetail_20' ) end [2025-03-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655077', 'tblTempVendorCDR_20' ) start [2025-03-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655077', 'tblTempVendorCDR_20' ) end [2025-03-11 06:40:18] Production.INFO: ProcessCDR(1,14655077,1,1,2) [2025-03-11 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655077', 'tblTempUsageDetail_20' ) start [2025-03-11 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655077', 'tblTempUsageDetail_20' ) end [2025-03-11 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:40:21] Production.INFO: ==1802== Releasing lock... [2025-03-11 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:41:05 [end_date_ymd] => 2025-03-11 06:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:41:05' and `end` < '2025-03-11 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-11 06:41:17] Production.INFO: count ==74 [2025-03-11 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:41:05 - End Time 2025-03-11 06:41:05 [2025-03-11 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655082', 'tblTempUsageDetail_20' ) start [2025-03-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655082', 'tblTempUsageDetail_20' ) end [2025-03-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655082', 'tblTempVendorCDR_20' ) start [2025-03-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655082', 'tblTempVendorCDR_20' ) end [2025-03-11 06:41:17] Production.INFO: ProcessCDR(1,14655082,1,1,2) [2025-03-11 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655082', 'tblTempUsageDetail_20' ) start [2025-03-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655082', 'tblTempUsageDetail_20' ) end [2025-03-11 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:41:21] Production.INFO: ==1909== Releasing lock... [2025-03-11 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:42:04 [end_date_ymd] => 2025-03-11 06:42:04 [RateCDR] => 1 ) [2025-03-11 06:42: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-11 03:42:04' and `end` < '2025-03-11 06:42: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-11 06:42:16] Production.INFO: count ==74 [2025-03-11 06:42:16] Production.ERROR: pbx CDR StartTime 2025-03-11 03:42:04 - End Time 2025-03-11 06:42:04 [2025-03-11 06:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655087', 'tblTempUsageDetail_20' ) start [2025-03-11 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655087', 'tblTempUsageDetail_20' ) end [2025-03-11 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655087', 'tblTempVendorCDR_20' ) start [2025-03-11 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655087', 'tblTempVendorCDR_20' ) end [2025-03-11 06:42:16] Production.INFO: ProcessCDR(1,14655087,1,1,2) [2025-03-11 06:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655087', 'tblTempUsageDetail_20' ) start [2025-03-11 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655087', 'tblTempUsageDetail_20' ) end [2025-03-11 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:42:20] Production.INFO: ==1997== Releasing lock... [2025-03-11 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:43:05 [end_date_ymd] => 2025-03-11 06:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:43:05' and `end` < '2025-03-11 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-11 06:43:17] Production.INFO: count ==76 [2025-03-11 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:43:05 - End Time 2025-03-11 06:43:05 [2025-03-11 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655092', 'tblTempUsageDetail_20' ) start [2025-03-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655092', 'tblTempUsageDetail_20' ) end [2025-03-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655092', 'tblTempVendorCDR_20' ) start [2025-03-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655092', 'tblTempVendorCDR_20' ) end [2025-03-11 06:43:17] Production.INFO: ProcessCDR(1,14655092,1,1,2) [2025-03-11 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655092', 'tblTempUsageDetail_20' ) start [2025-03-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655092', 'tblTempUsageDetail_20' ) end [2025-03-11 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:43:21] Production.INFO: ==2083== Releasing lock... [2025-03-11 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:44:05 [end_date_ymd] => 2025-03-11 06:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:44:05' and `end` < '2025-03-11 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-11 06:44:17] Production.INFO: count ==76 [2025-03-11 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:44:05 - End Time 2025-03-11 06:44:05 [2025-03-11 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655097', 'tblTempUsageDetail_20' ) start [2025-03-11 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655097', 'tblTempUsageDetail_20' ) end [2025-03-11 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655097', 'tblTempVendorCDR_20' ) start [2025-03-11 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655097', 'tblTempVendorCDR_20' ) end [2025-03-11 06:44:17] Production.INFO: ProcessCDR(1,14655097,1,1,2) [2025-03-11 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655097', 'tblTempUsageDetail_20' ) start [2025-03-11 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655097', 'tblTempUsageDetail_20' ) end [2025-03-11 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:44:20] Production.INFO: ==2168== Releasing lock... [2025-03-11 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:45:05 [end_date_ymd] => 2025-03-11 06:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:45:05' and `end` < '2025-03-11 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-11 06:45:19] Production.INFO: count ==76 [2025-03-11 06:45:19] Production.ERROR: pbx CDR StartTime 2025-03-11 03:45:05 - End Time 2025-03-11 06:45:05 [2025-03-11 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655102', 'tblTempUsageDetail_20' ) start [2025-03-11 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655102', 'tblTempUsageDetail_20' ) end [2025-03-11 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655102', 'tblTempVendorCDR_20' ) start [2025-03-11 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655102', 'tblTempVendorCDR_20' ) end [2025-03-11 06:45:19] Production.INFO: ProcessCDR(1,14655102,1,1,2) [2025-03-11 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655102', 'tblTempUsageDetail_20' ) start [2025-03-11 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655102', 'tblTempUsageDetail_20' ) end [2025-03-11 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:45:22] Production.INFO: ==2258== Releasing lock... [2025-03-11 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:46:05 [end_date_ymd] => 2025-03-11 06:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:46:05' and `end` < '2025-03-11 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-11 06:46:18] Production.INFO: count ==76 [2025-03-11 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:46:05 - End Time 2025-03-11 06:46:05 [2025-03-11 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655107', 'tblTempUsageDetail_20' ) start [2025-03-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655107', 'tblTempUsageDetail_20' ) end [2025-03-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655107', 'tblTempVendorCDR_20' ) start [2025-03-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655107', 'tblTempVendorCDR_20' ) end [2025-03-11 06:46:18] Production.INFO: ProcessCDR(1,14655107,1,1,2) [2025-03-11 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655107', 'tblTempUsageDetail_20' ) start [2025-03-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655107', 'tblTempUsageDetail_20' ) end [2025-03-11 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:46:21] Production.INFO: ==2345== Releasing lock... [2025-03-11 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:47:05 [end_date_ymd] => 2025-03-11 06:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:47:05' and `end` < '2025-03-11 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-11 06:47:17] Production.INFO: count ==72 [2025-03-11 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:47:05 - End Time 2025-03-11 06:47:05 [2025-03-11 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655112', 'tblTempUsageDetail_20' ) start [2025-03-11 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655112', 'tblTempUsageDetail_20' ) end [2025-03-11 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655112', 'tblTempVendorCDR_20' ) start [2025-03-11 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655112', 'tblTempVendorCDR_20' ) end [2025-03-11 06:47:17] Production.INFO: ProcessCDR(1,14655112,1,1,2) [2025-03-11 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655112', 'tblTempUsageDetail_20' ) start [2025-03-11 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655112', 'tblTempUsageDetail_20' ) end [2025-03-11 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:47:21] Production.INFO: ==2429== Releasing lock... [2025-03-11 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:48:06 [end_date_ymd] => 2025-03-11 06:48:06 [RateCDR] => 1 ) [2025-03-11 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:48:06' and `end` < '2025-03-11 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:48:18] Production.INFO: count ==72 [2025-03-11 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:48:06 - End Time 2025-03-11 06:48:06 [2025-03-11 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655117', 'tblTempUsageDetail_20' ) start [2025-03-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655117', 'tblTempUsageDetail_20' ) end [2025-03-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655117', 'tblTempVendorCDR_20' ) start [2025-03-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655117', 'tblTempVendorCDR_20' ) end [2025-03-11 06:48:18] Production.INFO: ProcessCDR(1,14655117,1,1,2) [2025-03-11 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655117', 'tblTempUsageDetail_20' ) start [2025-03-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655117', 'tblTempUsageDetail_20' ) end [2025-03-11 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:48:22] Production.INFO: ==2519== Releasing lock... [2025-03-11 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:49:06 [end_date_ymd] => 2025-03-11 06:49:06 [RateCDR] => 1 ) [2025-03-11 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-11 03:49:06' and `end` < '2025-03-11 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-11 06:49:18] Production.INFO: count ==72 [2025-03-11 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:49:06 - End Time 2025-03-11 06:49:06 [2025-03-11 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655122', 'tblTempUsageDetail_20' ) start [2025-03-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655122', 'tblTempUsageDetail_20' ) end [2025-03-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655122', 'tblTempVendorCDR_20' ) start [2025-03-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655122', 'tblTempVendorCDR_20' ) end [2025-03-11 06:49:18] Production.INFO: ProcessCDR(1,14655122,1,1,2) [2025-03-11 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655122', 'tblTempUsageDetail_20' ) start [2025-03-11 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655122', 'tblTempUsageDetail_20' ) end [2025-03-11 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:49:22] Production.INFO: ==2640== Releasing lock... [2025-03-11 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:50:07 [end_date_ymd] => 2025-03-11 06:50:07 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:50:07' and `end` < '2025-03-11 06: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-11 06:50:19] Production.INFO: count ==72 [2025-03-11 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-11 03:50:07 - End Time 2025-03-11 06:50:07 [2025-03-11 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655128', 'tblTempUsageDetail_20' ) start [2025-03-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655128', 'tblTempUsageDetail_20' ) end [2025-03-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655128', 'tblTempVendorCDR_20' ) start [2025-03-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655128', 'tblTempVendorCDR_20' ) end [2025-03-11 06:50:19] Production.INFO: ProcessCDR(1,14655128,1,1,2) [2025-03-11 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655128', 'tblTempUsageDetail_20' ) start [2025-03-11 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655128', 'tblTempUsageDetail_20' ) end [2025-03-11 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:50:23] Production.INFO: ==2732== Releasing lock... [2025-03-11 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:51:05 [end_date_ymd] => 2025-03-11 06:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:51:05' and `end` < '2025-03-11 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-11 06:51:17] Production.INFO: count ==72 [2025-03-11 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:51:05 - End Time 2025-03-11 06:51:05 [2025-03-11 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655129', 'tblTempUsageDetail_20' ) start [2025-03-11 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655129', 'tblTempUsageDetail_20' ) end [2025-03-11 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655129', 'tblTempVendorCDR_20' ) start [2025-03-11 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655129', 'tblTempVendorCDR_20' ) end [2025-03-11 06:51:17] Production.INFO: ProcessCDR(1,14655129,1,1,2) [2025-03-11 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655129', 'tblTempUsageDetail_20' ) start [2025-03-11 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655129', 'tblTempUsageDetail_20' ) end [2025-03-11 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:51:21] Production.INFO: ==2816== Releasing lock... [2025-03-11 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:52:06 [end_date_ymd] => 2025-03-11 06:52:06 [RateCDR] => 1 ) [2025-03-11 06: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-11 03:52:06' and `end` < '2025-03-11 06: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-11 06:52:18] Production.INFO: count ==72 [2025-03-11 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 03:52:06 - End Time 2025-03-11 06:52:06 [2025-03-11 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655138', 'tblTempUsageDetail_20' ) start [2025-03-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655138', 'tblTempUsageDetail_20' ) end [2025-03-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655138', 'tblTempVendorCDR_20' ) start [2025-03-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655138', 'tblTempVendorCDR_20' ) end [2025-03-11 06:52:18] Production.INFO: ProcessCDR(1,14655138,1,1,2) [2025-03-11 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655138', 'tblTempUsageDetail_20' ) start [2025-03-11 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655138', 'tblTempUsageDetail_20' ) end [2025-03-11 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:52:22] Production.INFO: ==2906== Releasing lock... [2025-03-11 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:53:05 [end_date_ymd] => 2025-03-11 06:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:53:05' and `end` < '2025-03-11 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-11 06:53:17] Production.INFO: count ==72 [2025-03-11 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:53:05 - End Time 2025-03-11 06:53:05 [2025-03-11 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655143', 'tblTempUsageDetail_20' ) start [2025-03-11 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655143', 'tblTempUsageDetail_20' ) end [2025-03-11 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655143', 'tblTempVendorCDR_20' ) start [2025-03-11 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655143', 'tblTempVendorCDR_20' ) end [2025-03-11 06:53:17] Production.INFO: ProcessCDR(1,14655143,1,1,2) [2025-03-11 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655143', 'tblTempUsageDetail_20' ) start [2025-03-11 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655143', 'tblTempUsageDetail_20' ) end [2025-03-11 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:53:21] Production.INFO: ==2994== Releasing lock... [2025-03-11 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:54:04 [end_date_ymd] => 2025-03-11 06:54:04 [RateCDR] => 1 ) [2025-03-11 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:54:04' and `end` < '2025-03-11 06:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:54:16] Production.INFO: count ==72 [2025-03-11 06:54:16] Production.ERROR: pbx CDR StartTime 2025-03-11 03:54:04 - End Time 2025-03-11 06:54:04 [2025-03-11 06:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655148', 'tblTempUsageDetail_20' ) start [2025-03-11 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655148', 'tblTempUsageDetail_20' ) end [2025-03-11 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655148', 'tblTempVendorCDR_20' ) start [2025-03-11 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655148', 'tblTempVendorCDR_20' ) end [2025-03-11 06:54:16] Production.INFO: ProcessCDR(1,14655148,1,1,2) [2025-03-11 06:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655148', 'tblTempUsageDetail_20' ) start [2025-03-11 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655148', 'tblTempUsageDetail_20' ) end [2025-03-11 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:54:20] Production.INFO: ==3082== Releasing lock... [2025-03-11 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:55:05 [end_date_ymd] => 2025-03-11 06:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:55:05' and `end` < '2025-03-11 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-11 06:55:19] Production.INFO: count ==72 [2025-03-11 06:55:19] Production.ERROR: pbx CDR StartTime 2025-03-11 03:55:05 - End Time 2025-03-11 06:55:05 [2025-03-11 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655153', 'tblTempUsageDetail_20' ) start [2025-03-11 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655153', 'tblTempUsageDetail_20' ) end [2025-03-11 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655153', 'tblTempVendorCDR_20' ) start [2025-03-11 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655153', 'tblTempVendorCDR_20' ) end [2025-03-11 06:55:19] Production.INFO: ProcessCDR(1,14655153,1,1,2) [2025-03-11 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655153', 'tblTempUsageDetail_20' ) start [2025-03-11 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655153', 'tblTempUsageDetail_20' ) end [2025-03-11 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:55:22] Production.INFO: ==3175== Releasing lock... [2025-03-11 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:56:05 [end_date_ymd] => 2025-03-11 06:56:05 [RateCDR] => 1 ) [2025-03-11 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 03:56:05' and `end` < '2025-03-11 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 06:56:17] Production.INFO: count ==72 [2025-03-11 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:56:05 - End Time 2025-03-11 06:56:05 [2025-03-11 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655158', 'tblTempUsageDetail_20' ) start [2025-03-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655158', 'tblTempUsageDetail_20' ) end [2025-03-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655158', 'tblTempVendorCDR_20' ) start [2025-03-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655158', 'tblTempVendorCDR_20' ) end [2025-03-11 06:56:17] Production.INFO: ProcessCDR(1,14655158,1,1,2) [2025-03-11 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655158', 'tblTempUsageDetail_20' ) start [2025-03-11 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655158', 'tblTempUsageDetail_20' ) end [2025-03-11 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:56:20] Production.INFO: ==3268== Releasing lock... [2025-03-11 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:57:05 [end_date_ymd] => 2025-03-11 06:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:57:05' and `end` < '2025-03-11 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-11 06:57:17] Production.INFO: count ==72 [2025-03-11 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:57:05 - End Time 2025-03-11 06:57:05 [2025-03-11 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655163', 'tblTempUsageDetail_20' ) start [2025-03-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655163', 'tblTempUsageDetail_20' ) end [2025-03-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655163', 'tblTempVendorCDR_20' ) start [2025-03-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655163', 'tblTempVendorCDR_20' ) end [2025-03-11 06:57:17] Production.INFO: ProcessCDR(1,14655163,1,1,2) [2025-03-11 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655163', 'tblTempUsageDetail_20' ) start [2025-03-11 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655163', 'tblTempUsageDetail_20' ) end [2025-03-11 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:57:20] Production.INFO: ==3360== Releasing lock... [2025-03-11 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:58:05 [end_date_ymd] => 2025-03-11 06:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:58:05' and `end` < '2025-03-11 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-11 06:58:17] Production.INFO: count ==72 [2025-03-11 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:58:05 - End Time 2025-03-11 06:58:05 [2025-03-11 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655168', 'tblTempUsageDetail_20' ) start [2025-03-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655168', 'tblTempUsageDetail_20' ) end [2025-03-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655168', 'tblTempVendorCDR_20' ) start [2025-03-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655168', 'tblTempVendorCDR_20' ) end [2025-03-11 06:58:17] Production.INFO: ProcessCDR(1,14655168,1,1,2) [2025-03-11 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655168', 'tblTempUsageDetail_20' ) start [2025-03-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655168', 'tblTempUsageDetail_20' ) end [2025-03-11 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:58:20] Production.INFO: ==3438== Releasing lock... [2025-03-11 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 03:59:05 [end_date_ymd] => 2025-03-11 06:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 03:59:05' and `end` < '2025-03-11 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-11 06:59:17] Production.INFO: count ==72 [2025-03-11 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 03:59:05 - End Time 2025-03-11 06:59:05 [2025-03-11 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655173', 'tblTempUsageDetail_20' ) start [2025-03-11 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655173', 'tblTempUsageDetail_20' ) end [2025-03-11 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655173', 'tblTempVendorCDR_20' ) start [2025-03-11 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655173', 'tblTempVendorCDR_20' ) end [2025-03-11 06:59:17] Production.INFO: ProcessCDR(1,14655173,1,1,2) [2025-03-11 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655173', 'tblTempUsageDetail_20' ) start [2025-03-11 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655173', 'tblTempUsageDetail_20' ) end [2025-03-11 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 06:59:21] Production.INFO: ==3522== Releasing lock... [2025-03-11 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:00:07 [end_date_ymd] => 2025-03-11 07:00:07 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:00:07' and `end` < '2025-03-11 07: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-11 07:00:19] Production.INFO: count ==58 [2025-03-11 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 04:00:07 - End Time 2025-03-11 07:00:07 [2025-03-11 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655179', 'tblTempUsageDetail_20' ) start [2025-03-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655179', 'tblTempUsageDetail_20' ) end [2025-03-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655179', 'tblTempVendorCDR_20' ) start [2025-03-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655179', 'tblTempVendorCDR_20' ) end [2025-03-11 07:00:19] Production.INFO: ProcessCDR(1,14655179,1,1,2) [2025-03-11 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655179', 'tblTempUsageDetail_20' ) start [2025-03-11 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655179', 'tblTempUsageDetail_20' ) end [2025-03-11 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:00:22] Production.INFO: ==3611== Releasing lock... [2025-03-11 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:01:05 [end_date_ymd] => 2025-03-11 07:01:05 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:01:05' and `end` < '2025-03-11 07: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-11 07:01:18] Production.INFO: count ==51 [2025-03-11 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:01:05 - End Time 2025-03-11 07:01:05 [2025-03-11 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655184', 'tblTempUsageDetail_20' ) start [2025-03-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655184', 'tblTempUsageDetail_20' ) end [2025-03-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655184', 'tblTempVendorCDR_20' ) start [2025-03-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655184', 'tblTempVendorCDR_20' ) end [2025-03-11 07:01:18] Production.INFO: ProcessCDR(1,14655184,1,1,2) [2025-03-11 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655184', 'tblTempUsageDetail_20' ) start [2025-03-11 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655184', 'tblTempUsageDetail_20' ) end [2025-03-11 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:01:21] Production.INFO: ==3787== Releasing lock... [2025-03-11 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:02:06 [end_date_ymd] => 2025-03-11 07:02:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:02:06' and `end` < '2025-03-11 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-11 07:02:18] Production.INFO: count ==51 [2025-03-11 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:02:06 - End Time 2025-03-11 07:02:06 [2025-03-11 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655189', 'tblTempUsageDetail_20' ) start [2025-03-11 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655189', 'tblTempUsageDetail_20' ) end [2025-03-11 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655189', 'tblTempVendorCDR_20' ) start [2025-03-11 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655189', 'tblTempVendorCDR_20' ) end [2025-03-11 07:02:18] Production.INFO: ProcessCDR(1,14655189,1,1,2) [2025-03-11 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655189', 'tblTempUsageDetail_20' ) start [2025-03-11 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655189', 'tblTempUsageDetail_20' ) end [2025-03-11 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:02:21] Production.INFO: ==3877== Releasing lock... [2025-03-11 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:03:05 [end_date_ymd] => 2025-03-11 07:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:03:05' and `end` < '2025-03-11 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-11 07:03:17] Production.INFO: count ==51 [2025-03-11 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:03:05 - End Time 2025-03-11 07:03:05 [2025-03-11 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655194', 'tblTempUsageDetail_20' ) start [2025-03-11 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655194', 'tblTempUsageDetail_20' ) end [2025-03-11 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655194', 'tblTempVendorCDR_20' ) start [2025-03-11 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655194', 'tblTempVendorCDR_20' ) end [2025-03-11 07:03:17] Production.INFO: ProcessCDR(1,14655194,1,1,2) [2025-03-11 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655194', 'tblTempUsageDetail_20' ) start [2025-03-11 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655194', 'tblTempUsageDetail_20' ) end [2025-03-11 07:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:03:20] Production.INFO: ==3955== Releasing lock... [2025-03-11 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:04:06 [end_date_ymd] => 2025-03-11 07:04:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:04:06' and `end` < '2025-03-11 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-11 07:04:19] Production.INFO: count ==52 [2025-03-11 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-11 04:04:06 - End Time 2025-03-11 07:04:06 [2025-03-11 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655199', 'tblTempUsageDetail_20' ) start [2025-03-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655199', 'tblTempUsageDetail_20' ) end [2025-03-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655199', 'tblTempVendorCDR_20' ) start [2025-03-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655199', 'tblTempVendorCDR_20' ) end [2025-03-11 07:04:19] Production.INFO: ProcessCDR(1,14655199,1,1,2) [2025-03-11 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655199', 'tblTempUsageDetail_20' ) start [2025-03-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655199', 'tblTempUsageDetail_20' ) end [2025-03-11 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:04:22] Production.INFO: ==4067== Releasing lock... [2025-03-11 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:05:05 [end_date_ymd] => 2025-03-11 07:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:05:05' and `end` < '2025-03-11 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-11 07:05:18] Production.INFO: count ==51 [2025-03-11 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:05:05 - End Time 2025-03-11 07:05:05 [2025-03-11 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655204', 'tblTempUsageDetail_20' ) start [2025-03-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655204', 'tblTempUsageDetail_20' ) end [2025-03-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655204', 'tblTempVendorCDR_20' ) start [2025-03-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655204', 'tblTempVendorCDR_20' ) end [2025-03-11 07:05:18] Production.INFO: ProcessCDR(1,14655204,1,1,2) [2025-03-11 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655204', 'tblTempUsageDetail_20' ) start [2025-03-11 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655204', 'tblTempUsageDetail_20' ) end [2025-03-11 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:05:22] Production.INFO: ==4221== Releasing lock... [2025-03-11 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:06:06 [end_date_ymd] => 2025-03-11 07:06:06 [RateCDR] => 1 ) [2025-03-11 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:06:06' and `end` < '2025-03-11 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:06:18] Production.INFO: count ==50 [2025-03-11 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:06:06 - End Time 2025-03-11 07:06:06 [2025-03-11 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655209', 'tblTempUsageDetail_20' ) start [2025-03-11 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655209', 'tblTempUsageDetail_20' ) end [2025-03-11 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655209', 'tblTempVendorCDR_20' ) start [2025-03-11 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655209', 'tblTempVendorCDR_20' ) end [2025-03-11 07:06:18] Production.INFO: ProcessCDR(1,14655209,1,1,2) [2025-03-11 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655209', 'tblTempUsageDetail_20' ) start [2025-03-11 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655209', 'tblTempUsageDetail_20' ) end [2025-03-11 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:06:21] Production.INFO: ==4293== Releasing lock... [2025-03-11 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:07:05 [end_date_ymd] => 2025-03-11 07:07:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:07:05' and `end` < '2025-03-11 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-11 07:07:18] Production.INFO: count ==50 [2025-03-11 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:07:05 - End Time 2025-03-11 07:07:05 [2025-03-11 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655214', 'tblTempUsageDetail_20' ) start [2025-03-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655214', 'tblTempUsageDetail_20' ) end [2025-03-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655214', 'tblTempVendorCDR_20' ) start [2025-03-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655214', 'tblTempVendorCDR_20' ) end [2025-03-11 07:07:18] Production.INFO: ProcessCDR(1,14655214,1,1,2) [2025-03-11 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655214', 'tblTempUsageDetail_20' ) start [2025-03-11 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655214', 'tblTempUsageDetail_20' ) end [2025-03-11 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:07:21] Production.INFO: ==4366== Releasing lock... [2025-03-11 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:08:05 [end_date_ymd] => 2025-03-11 07:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:08:05' and `end` < '2025-03-11 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-11 07:08:17] Production.INFO: count ==50 [2025-03-11 07:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:08:05 - End Time 2025-03-11 07:08:05 [2025-03-11 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655219', 'tblTempUsageDetail_20' ) start [2025-03-11 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655219', 'tblTempUsageDetail_20' ) end [2025-03-11 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655219', 'tblTempVendorCDR_20' ) start [2025-03-11 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655219', 'tblTempVendorCDR_20' ) end [2025-03-11 07:08:17] Production.INFO: ProcessCDR(1,14655219,1,1,2) [2025-03-11 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655219', 'tblTempUsageDetail_20' ) start [2025-03-11 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655219', 'tblTempUsageDetail_20' ) end [2025-03-11 07:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:08:20] Production.INFO: ==4517== Releasing lock... [2025-03-11 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:09:05 [end_date_ymd] => 2025-03-11 07:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:09:05' and `end` < '2025-03-11 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-11 07:09:18] Production.INFO: count ==50 [2025-03-11 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:09:05 - End Time 2025-03-11 07:09:05 [2025-03-11 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655224', 'tblTempUsageDetail_20' ) start [2025-03-11 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655224', 'tblTempUsageDetail_20' ) end [2025-03-11 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655224', 'tblTempVendorCDR_20' ) start [2025-03-11 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655224', 'tblTempVendorCDR_20' ) end [2025-03-11 07:09:18] Production.INFO: ProcessCDR(1,14655224,1,1,2) [2025-03-11 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655224', 'tblTempUsageDetail_20' ) start [2025-03-11 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655224', 'tblTempUsageDetail_20' ) end [2025-03-11 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:09:21] Production.INFO: ==4595== Releasing lock... [2025-03-11 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:10:06 [end_date_ymd] => 2025-03-11 07:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:10:06' and `end` < '2025-03-11 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-11 07:10:18] Production.INFO: count ==62 [2025-03-11 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:10:06 - End Time 2025-03-11 07:10:06 [2025-03-11 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655230', 'tblTempUsageDetail_20' ) start [2025-03-11 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655230', 'tblTempUsageDetail_20' ) end [2025-03-11 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655230', 'tblTempVendorCDR_20' ) start [2025-03-11 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655230', 'tblTempVendorCDR_20' ) end [2025-03-11 07:10:18] Production.INFO: ProcessCDR(1,14655230,1,1,2) [2025-03-11 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655230', 'tblTempUsageDetail_20' ) start [2025-03-11 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655230', 'tblTempUsageDetail_20' ) end [2025-03-11 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:10:21] Production.INFO: ==4670== Releasing lock... [2025-03-11 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:11:05 [end_date_ymd] => 2025-03-11 07:11:05 [RateCDR] => 1 ) [2025-03-11 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:11:05' and `end` < '2025-03-11 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:11:17] Production.INFO: count ==62 [2025-03-11 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:11:05 - End Time 2025-03-11 07:11:05 [2025-03-11 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655235', 'tblTempUsageDetail_20' ) start [2025-03-11 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655235', 'tblTempUsageDetail_20' ) end [2025-03-11 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655235', 'tblTempVendorCDR_20' ) start [2025-03-11 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655235', 'tblTempVendorCDR_20' ) end [2025-03-11 07:11:17] Production.INFO: ProcessCDR(1,14655235,1,1,2) [2025-03-11 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655235', 'tblTempUsageDetail_20' ) start [2025-03-11 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655235', 'tblTempUsageDetail_20' ) end [2025-03-11 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:11:20] Production.INFO: ==4743== Releasing lock... [2025-03-11 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:12:05 [end_date_ymd] => 2025-03-11 07:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:12:05' and `end` < '2025-03-11 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-11 07:12:17] Production.INFO: count ==67 [2025-03-11 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:12:05 - End Time 2025-03-11 07:12:05 [2025-03-11 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655240', 'tblTempUsageDetail_20' ) start [2025-03-11 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655240', 'tblTempUsageDetail_20' ) end [2025-03-11 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655240', 'tblTempVendorCDR_20' ) start [2025-03-11 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655240', 'tblTempVendorCDR_20' ) end [2025-03-11 07:12:17] Production.INFO: ProcessCDR(1,14655240,1,1,2) [2025-03-11 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655240', 'tblTempUsageDetail_20' ) start [2025-03-11 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655240', 'tblTempUsageDetail_20' ) end [2025-03-11 07:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:12:20] Production.INFO: ==4895== Releasing lock... [2025-03-11 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:13:05 [end_date_ymd] => 2025-03-11 07:13:05 [RateCDR] => 1 ) [2025-03-11 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:13:05' and `end` < '2025-03-11 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:13:19] Production.INFO: count ==67 [2025-03-11 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-11 04:13:05 - End Time 2025-03-11 07:13:05 [2025-03-11 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655245', 'tblTempUsageDetail_20' ) start [2025-03-11 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655245', 'tblTempUsageDetail_20' ) end [2025-03-11 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655245', 'tblTempVendorCDR_20' ) start [2025-03-11 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655245', 'tblTempVendorCDR_20' ) end [2025-03-11 07:13:19] Production.INFO: ProcessCDR(1,14655245,1,1,2) [2025-03-11 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655245', 'tblTempUsageDetail_20' ) start [2025-03-11 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655245', 'tblTempUsageDetail_20' ) end [2025-03-11 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:13:22] Production.INFO: ==4970== Releasing lock... [2025-03-11 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:14:05 [end_date_ymd] => 2025-03-11 07:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:14:05' and `end` < '2025-03-11 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-11 07:14:17] Production.INFO: count ==67 [2025-03-11 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:14:05 - End Time 2025-03-11 07:14:05 [2025-03-11 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655250', 'tblTempUsageDetail_20' ) start [2025-03-11 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655250', 'tblTempUsageDetail_20' ) end [2025-03-11 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655250', 'tblTempVendorCDR_20' ) start [2025-03-11 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655250', 'tblTempVendorCDR_20' ) end [2025-03-11 07:14:17] Production.INFO: ProcessCDR(1,14655250,1,1,2) [2025-03-11 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655250', 'tblTempUsageDetail_20' ) start [2025-03-11 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655250', 'tblTempUsageDetail_20' ) end [2025-03-11 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:14:20] Production.INFO: ==5041== Releasing lock... [2025-03-11 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-11 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:15:05 [end_date_ymd] => 2025-03-11 07:15:05 [RateCDR] => 1 ) [2025-03-11 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:15:05' and `end` < '2025-03-11 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:15:17] Production.INFO: count ==68 [2025-03-11 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:15:05 - End Time 2025-03-11 07:15:05 [2025-03-11 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655255', 'tblTempUsageDetail_20' ) start [2025-03-11 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655255', 'tblTempUsageDetail_20' ) end [2025-03-11 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655255', 'tblTempVendorCDR_20' ) start [2025-03-11 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655255', 'tblTempVendorCDR_20' ) end [2025-03-11 07:15:17] Production.INFO: ProcessCDR(1,14655255,1,1,2) [2025-03-11 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655255', 'tblTempUsageDetail_20' ) start [2025-03-11 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655255', 'tblTempUsageDetail_20' ) end [2025-03-11 07:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:15:20] Production.INFO: ==5190== Releasing lock... [2025-03-11 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:16:05 [end_date_ymd] => 2025-03-11 07:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:16:05' and `end` < '2025-03-11 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-11 07:16:18] Production.INFO: count ==68 [2025-03-11 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:16:05 - End Time 2025-03-11 07:16:05 [2025-03-11 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655260', 'tblTempUsageDetail_20' ) start [2025-03-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655260', 'tblTempUsageDetail_20' ) end [2025-03-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655260', 'tblTempVendorCDR_20' ) start [2025-03-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655260', 'tblTempVendorCDR_20' ) end [2025-03-11 07:16:18] Production.INFO: ProcessCDR(1,14655260,1,1,2) [2025-03-11 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655260', 'tblTempUsageDetail_20' ) start [2025-03-11 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655260', 'tblTempUsageDetail_20' ) end [2025-03-11 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:16:21] Production.INFO: ==5267== Releasing lock... [2025-03-11 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:17:05 [end_date_ymd] => 2025-03-11 07:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:17:05' and `end` < '2025-03-11 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-11 07:17:17] Production.INFO: count ==73 [2025-03-11 07:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:17:05 - End Time 2025-03-11 07:17:05 [2025-03-11 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655265', 'tblTempUsageDetail_20' ) start [2025-03-11 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655265', 'tblTempUsageDetail_20' ) end [2025-03-11 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655265', 'tblTempVendorCDR_20' ) start [2025-03-11 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655265', 'tblTempVendorCDR_20' ) end [2025-03-11 07:17:17] Production.INFO: ProcessCDR(1,14655265,1,1,2) [2025-03-11 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655265', 'tblTempUsageDetail_20' ) start [2025-03-11 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655265', 'tblTempUsageDetail_20' ) end [2025-03-11 07:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:17:20] Production.INFO: ==5340== Releasing lock... [2025-03-11 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:18:05 [end_date_ymd] => 2025-03-11 07:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:18:05' and `end` < '2025-03-11 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-11 07:18:18] Production.INFO: count ==73 [2025-03-11 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:18:05 - End Time 2025-03-11 07:18:05 [2025-03-11 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655270', 'tblTempUsageDetail_20' ) start [2025-03-11 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655270', 'tblTempUsageDetail_20' ) end [2025-03-11 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655270', 'tblTempVendorCDR_20' ) start [2025-03-11 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655270', 'tblTempVendorCDR_20' ) end [2025-03-11 07:18:18] Production.INFO: ProcessCDR(1,14655270,1,1,2) [2025-03-11 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655270', 'tblTempUsageDetail_20' ) start [2025-03-11 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655270', 'tblTempUsageDetail_20' ) end [2025-03-11 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:18:21] Production.INFO: ==5411== Releasing lock... [2025-03-11 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:19:05 [end_date_ymd] => 2025-03-11 07:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:19:05' and `end` < '2025-03-11 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-11 07:19:17] Production.INFO: count ==73 [2025-03-11 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:19:05 - End Time 2025-03-11 07:19:05 [2025-03-11 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655275', 'tblTempUsageDetail_20' ) start [2025-03-11 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655275', 'tblTempUsageDetail_20' ) end [2025-03-11 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655275', 'tblTempVendorCDR_20' ) start [2025-03-11 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655275', 'tblTempVendorCDR_20' ) end [2025-03-11 07:19:17] Production.INFO: ProcessCDR(1,14655275,1,1,2) [2025-03-11 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655275', 'tblTempUsageDetail_20' ) start [2025-03-11 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655275', 'tblTempUsageDetail_20' ) end [2025-03-11 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:19:21] Production.INFO: ==5523== Releasing lock... [2025-03-11 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:20:06 [end_date_ymd] => 2025-03-11 07:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:20:06' and `end` < '2025-03-11 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-11 07:20:19] Production.INFO: count ==73 [2025-03-11 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-11 04:20:06 - End Time 2025-03-11 07:20:06 [2025-03-11 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655281', 'tblTempUsageDetail_20' ) start [2025-03-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655281', 'tblTempUsageDetail_20' ) end [2025-03-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655281', 'tblTempVendorCDR_20' ) start [2025-03-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655281', 'tblTempVendorCDR_20' ) end [2025-03-11 07:20:19] Production.INFO: ProcessCDR(1,14655281,1,1,2) [2025-03-11 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655281', 'tblTempUsageDetail_20' ) start [2025-03-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655281', 'tblTempUsageDetail_20' ) end [2025-03-11 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:20:22] Production.INFO: ==5595== Releasing lock... [2025-03-11 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:21:06 [end_date_ymd] => 2025-03-11 07:21:06 [RateCDR] => 1 ) [2025-03-11 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:21:06' and `end` < '2025-03-11 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:21:18] Production.INFO: count ==73 [2025-03-11 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:21:06 - End Time 2025-03-11 07:21:06 [2025-03-11 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655286', 'tblTempUsageDetail_20' ) start [2025-03-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655286', 'tblTempUsageDetail_20' ) end [2025-03-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655286', 'tblTempVendorCDR_20' ) start [2025-03-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655286', 'tblTempVendorCDR_20' ) end [2025-03-11 07:21:18] Production.INFO: ProcessCDR(1,14655286,1,1,2) [2025-03-11 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655286', 'tblTempUsageDetail_20' ) start [2025-03-11 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655286', 'tblTempUsageDetail_20' ) end [2025-03-11 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:21:21] Production.INFO: ==5672== Releasing lock... [2025-03-11 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:22:05 [end_date_ymd] => 2025-03-11 07:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:22:05' and `end` < '2025-03-11 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-11 07:22:18] Production.INFO: count ==73 [2025-03-11 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:22:05 - End Time 2025-03-11 07:22:05 [2025-03-11 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655291', 'tblTempUsageDetail_20' ) start [2025-03-11 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655291', 'tblTempUsageDetail_20' ) end [2025-03-11 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655291', 'tblTempVendorCDR_20' ) start [2025-03-11 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655291', 'tblTempVendorCDR_20' ) end [2025-03-11 07:22:18] Production.INFO: ProcessCDR(1,14655291,1,1,2) [2025-03-11 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655291', 'tblTempUsageDetail_20' ) start [2025-03-11 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655291', 'tblTempUsageDetail_20' ) end [2025-03-11 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:22:22] Production.INFO: ==5743== Releasing lock... [2025-03-11 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:23:05 [end_date_ymd] => 2025-03-11 07:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:23:05' and `end` < '2025-03-11 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-11 07:23:17] Production.INFO: count ==73 [2025-03-11 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:23:05 - End Time 2025-03-11 07:23:05 [2025-03-11 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655296', 'tblTempUsageDetail_20' ) start [2025-03-11 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655296', 'tblTempUsageDetail_20' ) end [2025-03-11 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655296', 'tblTempVendorCDR_20' ) start [2025-03-11 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655296', 'tblTempVendorCDR_20' ) end [2025-03-11 07:23:17] Production.INFO: ProcessCDR(1,14655296,1,1,2) [2025-03-11 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655296', 'tblTempUsageDetail_20' ) start [2025-03-11 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655296', 'tblTempUsageDetail_20' ) end [2025-03-11 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:23:21] Production.INFO: ==5816== Releasing lock... [2025-03-11 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:24:05 [end_date_ymd] => 2025-03-11 07:24:05 [RateCDR] => 1 ) [2025-03-11 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:24:05' and `end` < '2025-03-11 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:24:17] Production.INFO: count ==73 [2025-03-11 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:24:05 - End Time 2025-03-11 07:24:05 [2025-03-11 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655301', 'tblTempUsageDetail_20' ) start [2025-03-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655301', 'tblTempUsageDetail_20' ) end [2025-03-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655301', 'tblTempVendorCDR_20' ) start [2025-03-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655301', 'tblTempVendorCDR_20' ) end [2025-03-11 07:24:17] Production.INFO: ProcessCDR(1,14655301,1,1,2) [2025-03-11 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655301', 'tblTempUsageDetail_20' ) start [2025-03-11 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655301', 'tblTempUsageDetail_20' ) end [2025-03-11 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:24:20] Production.INFO: ==5887== Releasing lock... [2025-03-11 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:25:05 [end_date_ymd] => 2025-03-11 07:25:05 [RateCDR] => 1 ) [2025-03-11 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:25:05' and `end` < '2025-03-11 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:25:17] Production.INFO: count ==73 [2025-03-11 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:25:05 - End Time 2025-03-11 07:25:05 [2025-03-11 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655306', 'tblTempUsageDetail_20' ) start [2025-03-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655306', 'tblTempUsageDetail_20' ) end [2025-03-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655306', 'tblTempVendorCDR_20' ) start [2025-03-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655306', 'tblTempVendorCDR_20' ) end [2025-03-11 07:25:17] Production.INFO: ProcessCDR(1,14655306,1,1,2) [2025-03-11 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655306', 'tblTempUsageDetail_20' ) start [2025-03-11 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655306', 'tblTempUsageDetail_20' ) end [2025-03-11 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:25:20] Production.INFO: ==5959== Releasing lock... [2025-03-11 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:26:05 [end_date_ymd] => 2025-03-11 07:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:26:05' and `end` < '2025-03-11 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-11 07:26:17] Production.INFO: count ==73 [2025-03-11 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:26:05 - End Time 2025-03-11 07:26:05 [2025-03-11 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655311', 'tblTempUsageDetail_20' ) start [2025-03-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655311', 'tblTempUsageDetail_20' ) end [2025-03-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655311', 'tblTempVendorCDR_20' ) start [2025-03-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655311', 'tblTempVendorCDR_20' ) end [2025-03-11 07:26:17] Production.INFO: ProcessCDR(1,14655311,1,1,2) [2025-03-11 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655311', 'tblTempUsageDetail_20' ) start [2025-03-11 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655311', 'tblTempUsageDetail_20' ) end [2025-03-11 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:26:20] Production.INFO: ==6032== Releasing lock... [2025-03-11 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:27:05 [end_date_ymd] => 2025-03-11 07:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:27:05' and `end` < '2025-03-11 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-11 07:27:17] Production.INFO: count ==76 [2025-03-11 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:27:05 - End Time 2025-03-11 07:27:05 [2025-03-11 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655316', 'tblTempUsageDetail_20' ) start [2025-03-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655316', 'tblTempUsageDetail_20' ) end [2025-03-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655316', 'tblTempVendorCDR_20' ) start [2025-03-11 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655316', 'tblTempVendorCDR_20' ) end [2025-03-11 07:27:18] Production.INFO: ProcessCDR(1,14655316,1,1,2) [2025-03-11 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655316', 'tblTempUsageDetail_20' ) start [2025-03-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655316', 'tblTempUsageDetail_20' ) end [2025-03-11 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:27:21] Production.INFO: ==6107== Releasing lock... [2025-03-11 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:28:05 [end_date_ymd] => 2025-03-11 07:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:28:05' and `end` < '2025-03-11 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-11 07:28:17] Production.INFO: count ==76 [2025-03-11 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:28:05 - End Time 2025-03-11 07:28:05 [2025-03-11 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655321', 'tblTempUsageDetail_20' ) start [2025-03-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655321', 'tblTempUsageDetail_20' ) end [2025-03-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655321', 'tblTempVendorCDR_20' ) start [2025-03-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655321', 'tblTempVendorCDR_20' ) end [2025-03-11 07:28:17] Production.INFO: ProcessCDR(1,14655321,1,1,2) [2025-03-11 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655321', 'tblTempUsageDetail_20' ) start [2025-03-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655321', 'tblTempUsageDetail_20' ) end [2025-03-11 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:28:21] Production.INFO: ==6178== Releasing lock... [2025-03-11 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:29:06 [end_date_ymd] => 2025-03-11 07:29:06 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:29:06' and `end` < '2025-03-11 07: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-11 07:29:18] Production.INFO: count ==77 [2025-03-11 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:29:06 - End Time 2025-03-11 07:29:06 [2025-03-11 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655326', 'tblTempUsageDetail_20' ) start [2025-03-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655326', 'tblTempUsageDetail_20' ) end [2025-03-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655326', 'tblTempVendorCDR_20' ) start [2025-03-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655326', 'tblTempVendorCDR_20' ) end [2025-03-11 07:29:18] Production.INFO: ProcessCDR(1,14655326,1,1,2) [2025-03-11 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655326', 'tblTempUsageDetail_20' ) start [2025-03-11 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655326', 'tblTempUsageDetail_20' ) end [2025-03-11 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:29:23] Production.INFO: ==6248== Releasing lock... [2025-03-11 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:29:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:30:06 [end_date_ymd] => 2025-03-11 07:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:30:06' and `end` < '2025-03-11 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-11 07:30:18] Production.INFO: count ==75 [2025-03-11 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:30:06 - End Time 2025-03-11 07:30:06 [2025-03-11 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655332', 'tblTempUsageDetail_20' ) start [2025-03-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655332', 'tblTempUsageDetail_20' ) end [2025-03-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655332', 'tblTempVendorCDR_20' ) start [2025-03-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655332', 'tblTempVendorCDR_20' ) end [2025-03-11 07:30:18] Production.INFO: ProcessCDR(1,14655332,1,1,2) [2025-03-11 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655332', 'tblTempUsageDetail_20' ) start [2025-03-11 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655332', 'tblTempUsageDetail_20' ) end [2025-03-11 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:30:22] Production.INFO: ==6324== Releasing lock... [2025-03-11 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:31:05 [end_date_ymd] => 2025-03-11 07:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:31:05' and `end` < '2025-03-11 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-11 07:31:17] Production.INFO: count ==76 [2025-03-11 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:31:05 - End Time 2025-03-11 07:31:05 [2025-03-11 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655337', 'tblTempUsageDetail_20' ) start [2025-03-11 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655337', 'tblTempUsageDetail_20' ) end [2025-03-11 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655337', 'tblTempVendorCDR_20' ) start [2025-03-11 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655337', 'tblTempVendorCDR_20' ) end [2025-03-11 07:31:17] Production.INFO: ProcessCDR(1,14655337,1,1,2) [2025-03-11 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655337', 'tblTempUsageDetail_20' ) start [2025-03-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655337', 'tblTempUsageDetail_20' ) end [2025-03-11 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:31:21] Production.INFO: ==6399== Releasing lock... [2025-03-11 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:32:05 [end_date_ymd] => 2025-03-11 07:32:05 [RateCDR] => 1 ) [2025-03-11 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:32:05' and `end` < '2025-03-11 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:32:17] Production.INFO: count ==78 [2025-03-11 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:32:05 - End Time 2025-03-11 07:32:05 [2025-03-11 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655342', 'tblTempUsageDetail_20' ) start [2025-03-11 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655342', 'tblTempUsageDetail_20' ) end [2025-03-11 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655342', 'tblTempVendorCDR_20' ) start [2025-03-11 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655342', 'tblTempVendorCDR_20' ) end [2025-03-11 07:32:17] Production.INFO: ProcessCDR(1,14655342,1,1,2) [2025-03-11 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655342', 'tblTempUsageDetail_20' ) start [2025-03-11 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655342', 'tblTempUsageDetail_20' ) end [2025-03-11 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:32:20] Production.INFO: ==6470== Releasing lock... [2025-03-11 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:33:05 [end_date_ymd] => 2025-03-11 07:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:33:05' and `end` < '2025-03-11 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-11 07:33:17] Production.INFO: count ==78 [2025-03-11 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:33:05 - End Time 2025-03-11 07:33:05 [2025-03-11 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655347', 'tblTempUsageDetail_20' ) start [2025-03-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655347', 'tblTempUsageDetail_20' ) end [2025-03-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655347', 'tblTempVendorCDR_20' ) start [2025-03-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655347', 'tblTempVendorCDR_20' ) end [2025-03-11 07:33:17] Production.INFO: ProcessCDR(1,14655347,1,1,2) [2025-03-11 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655347', 'tblTempUsageDetail_20' ) start [2025-03-11 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655347', 'tblTempUsageDetail_20' ) end [2025-03-11 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:33:20] Production.INFO: ==6541== Releasing lock... [2025-03-11 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:34:04 [end_date_ymd] => 2025-03-11 07:34:04 [RateCDR] => 1 ) [2025-03-11 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:34:04' and `end` < '2025-03-11 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:34:16] Production.INFO: count ==78 [2025-03-11 07:34:16] Production.ERROR: pbx CDR StartTime 2025-03-11 04:34:04 - End Time 2025-03-11 07:34:04 [2025-03-11 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655352', 'tblTempUsageDetail_20' ) start [2025-03-11 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655352', 'tblTempUsageDetail_20' ) end [2025-03-11 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655352', 'tblTempVendorCDR_20' ) start [2025-03-11 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655352', 'tblTempVendorCDR_20' ) end [2025-03-11 07:34:16] Production.INFO: ProcessCDR(1,14655352,1,1,2) [2025-03-11 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655352', 'tblTempUsageDetail_20' ) start [2025-03-11 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655352', 'tblTempUsageDetail_20' ) end [2025-03-11 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:34:20] Production.INFO: ==6613== Releasing lock... [2025-03-11 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:35:05 [end_date_ymd] => 2025-03-11 07:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:35:05' and `end` < '2025-03-11 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-11 07:35:17] Production.INFO: count ==78 [2025-03-11 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:35:05 - End Time 2025-03-11 07:35:05 [2025-03-11 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655357', 'tblTempUsageDetail_20' ) start [2025-03-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655357', 'tblTempUsageDetail_20' ) end [2025-03-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655357', 'tblTempVendorCDR_20' ) start [2025-03-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655357', 'tblTempVendorCDR_20' ) end [2025-03-11 07:35:17] Production.INFO: ProcessCDR(1,14655357,1,1,2) [2025-03-11 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655357', 'tblTempUsageDetail_20' ) start [2025-03-11 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655357', 'tblTempUsageDetail_20' ) end [2025-03-11 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:35:20] Production.INFO: ==6729== Releasing lock... [2025-03-11 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:36:05 [end_date_ymd] => 2025-03-11 07:36:05 [RateCDR] => 1 ) [2025-03-11 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:36:05' and `end` < '2025-03-11 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:36:16] Production.INFO: count ==78 [2025-03-11 07:36:16] Production.ERROR: pbx CDR StartTime 2025-03-11 04:36:05 - End Time 2025-03-11 07:36:05 [2025-03-11 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655362', 'tblTempUsageDetail_20' ) start [2025-03-11 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655362', 'tblTempUsageDetail_20' ) end [2025-03-11 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655362', 'tblTempVendorCDR_20' ) start [2025-03-11 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655362', 'tblTempVendorCDR_20' ) end [2025-03-11 07:36:16] Production.INFO: ProcessCDR(1,14655362,1,1,2) [2025-03-11 07:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655362', 'tblTempUsageDetail_20' ) start [2025-03-11 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655362', 'tblTempUsageDetail_20' ) end [2025-03-11 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:36:20] Production.INFO: ==6799== Releasing lock... [2025-03-11 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:37:05 [end_date_ymd] => 2025-03-11 07:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:37:05' and `end` < '2025-03-11 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-11 07:37:17] Production.INFO: count ==78 [2025-03-11 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:37:05 - End Time 2025-03-11 07:37:05 [2025-03-11 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655367', 'tblTempUsageDetail_20' ) start [2025-03-11 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655367', 'tblTempUsageDetail_20' ) end [2025-03-11 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655367', 'tblTempVendorCDR_20' ) start [2025-03-11 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655367', 'tblTempVendorCDR_20' ) end [2025-03-11 07:37:17] Production.INFO: ProcessCDR(1,14655367,1,1,2) [2025-03-11 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655367', 'tblTempUsageDetail_20' ) start [2025-03-11 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655367', 'tblTempUsageDetail_20' ) end [2025-03-11 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:37:21] Production.INFO: ==6871== Releasing lock... [2025-03-11 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:38:06 [end_date_ymd] => 2025-03-11 07:38:06 [RateCDR] => 1 ) [2025-03-11 07:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:38:06' and `end` < '2025-03-11 07:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:38:18] Production.INFO: count ==81 [2025-03-11 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:38:06 - End Time 2025-03-11 07:38:06 [2025-03-11 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655372', 'tblTempUsageDetail_20' ) start [2025-03-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655372', 'tblTempUsageDetail_20' ) end [2025-03-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655372', 'tblTempVendorCDR_20' ) start [2025-03-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655372', 'tblTempVendorCDR_20' ) end [2025-03-11 07:38:18] Production.INFO: ProcessCDR(1,14655372,1,1,2) [2025-03-11 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655372', 'tblTempUsageDetail_20' ) start [2025-03-11 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655372', 'tblTempUsageDetail_20' ) end [2025-03-11 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:38:21] Production.INFO: ==6944== Releasing lock... [2025-03-11 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:39:05 [end_date_ymd] => 2025-03-11 07:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:39:05' and `end` < '2025-03-11 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-11 07:39:17] Production.INFO: count ==81 [2025-03-11 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:39:05 - End Time 2025-03-11 07:39:05 [2025-03-11 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655377', 'tblTempUsageDetail_20' ) start [2025-03-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655377', 'tblTempUsageDetail_20' ) end [2025-03-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655377', 'tblTempVendorCDR_20' ) start [2025-03-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655377', 'tblTempVendorCDR_20' ) end [2025-03-11 07:39:17] Production.INFO: ProcessCDR(1,14655377,1,1,2) [2025-03-11 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655377', 'tblTempUsageDetail_20' ) start [2025-03-11 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655377', 'tblTempUsageDetail_20' ) end [2025-03-11 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:39:20] Production.INFO: ==7016== Releasing lock... [2025-03-11 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:40:06 [end_date_ymd] => 2025-03-11 07:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 04:40:06' and `end` < '2025-03-11 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-11 07:40:18] Production.INFO: count ==81 [2025-03-11 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:40:06 - End Time 2025-03-11 07:40:06 [2025-03-11 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655382', 'tblTempUsageDetail_20' ) start [2025-03-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655382', 'tblTempUsageDetail_20' ) end [2025-03-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655382', 'tblTempVendorCDR_20' ) start [2025-03-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655382', 'tblTempVendorCDR_20' ) end [2025-03-11 07:40:18] Production.INFO: ProcessCDR(1,14655382,1,1,2) [2025-03-11 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655382', 'tblTempUsageDetail_20' ) start [2025-03-11 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655382', 'tblTempUsageDetail_20' ) end [2025-03-11 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:40:21] Production.INFO: ==7088== Releasing lock... [2025-03-11 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:41:05 [end_date_ymd] => 2025-03-11 07:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:41:05' and `end` < '2025-03-11 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-11 07:41:17] Production.INFO: count ==81 [2025-03-11 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:41:05 - End Time 2025-03-11 07:41:05 [2025-03-11 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655388', 'tblTempUsageDetail_20' ) start [2025-03-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655388', 'tblTempUsageDetail_20' ) end [2025-03-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655388', 'tblTempVendorCDR_20' ) start [2025-03-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655388', 'tblTempVendorCDR_20' ) end [2025-03-11 07:41:17] Production.INFO: ProcessCDR(1,14655388,1,1,2) [2025-03-11 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655388', 'tblTempUsageDetail_20' ) start [2025-03-11 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655388', 'tblTempUsageDetail_20' ) end [2025-03-11 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:41:21] Production.INFO: ==7161== Releasing lock... [2025-03-11 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:42:05 [end_date_ymd] => 2025-03-11 07:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:42:05' and `end` < '2025-03-11 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-11 07:42:17] Production.INFO: count ==81 [2025-03-11 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:42:05 - End Time 2025-03-11 07:42:05 [2025-03-11 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655393', 'tblTempUsageDetail_20' ) start [2025-03-11 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655393', 'tblTempUsageDetail_20' ) end [2025-03-11 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655393', 'tblTempVendorCDR_20' ) start [2025-03-11 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655393', 'tblTempVendorCDR_20' ) end [2025-03-11 07:42:17] Production.INFO: ProcessCDR(1,14655393,1,1,2) [2025-03-11 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655393', 'tblTempUsageDetail_20' ) start [2025-03-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655393', 'tblTempUsageDetail_20' ) end [2025-03-11 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:42:21] Production.INFO: ==7234== Releasing lock... [2025-03-11 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:43:05 [end_date_ymd] => 2025-03-11 07:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:43:05' and `end` < '2025-03-11 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-11 07:43:17] Production.INFO: count ==81 [2025-03-11 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:43:05 - End Time 2025-03-11 07:43:05 [2025-03-11 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655398', 'tblTempUsageDetail_20' ) start [2025-03-11 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655398', 'tblTempUsageDetail_20' ) end [2025-03-11 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655398', 'tblTempVendorCDR_20' ) start [2025-03-11 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655398', 'tblTempVendorCDR_20' ) end [2025-03-11 07:43:17] Production.INFO: ProcessCDR(1,14655398,1,1,2) [2025-03-11 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655398', 'tblTempUsageDetail_20' ) start [2025-03-11 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655398', 'tblTempUsageDetail_20' ) end [2025-03-11 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:43:21] Production.INFO: ==7304== Releasing lock... [2025-03-11 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:44:05 [end_date_ymd] => 2025-03-11 07:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:44:05' and `end` < '2025-03-11 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-11 07:44:17] Production.INFO: count ==81 [2025-03-11 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:44:05 - End Time 2025-03-11 07:44:05 [2025-03-11 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655403', 'tblTempUsageDetail_20' ) start [2025-03-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655403', 'tblTempUsageDetail_20' ) end [2025-03-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655403', 'tblTempVendorCDR_20' ) start [2025-03-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655403', 'tblTempVendorCDR_20' ) end [2025-03-11 07:44:17] Production.INFO: ProcessCDR(1,14655403,1,1,2) [2025-03-11 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655403', 'tblTempUsageDetail_20' ) start [2025-03-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655403', 'tblTempUsageDetail_20' ) end [2025-03-11 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:44:21] Production.INFO: ==7375== Releasing lock... [2025-03-11 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:45:05 [end_date_ymd] => 2025-03-11 07:45:05 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:45:05' and `end` < '2025-03-11 07: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-11 07:45:17] Production.INFO: count ==81 [2025-03-11 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:45:05 - End Time 2025-03-11 07:45:05 [2025-03-11 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655408', 'tblTempUsageDetail_20' ) start [2025-03-11 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655408', 'tblTempUsageDetail_20' ) end [2025-03-11 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655408', 'tblTempVendorCDR_20' ) start [2025-03-11 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655408', 'tblTempVendorCDR_20' ) end [2025-03-11 07:45:17] Production.INFO: ProcessCDR(1,14655408,1,1,2) [2025-03-11 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655408', 'tblTempUsageDetail_20' ) start [2025-03-11 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655408', 'tblTempUsageDetail_20' ) end [2025-03-11 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:45:20] Production.INFO: ==7446== Releasing lock... [2025-03-11 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:46:05 [end_date_ymd] => 2025-03-11 07:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:46:05' and `end` < '2025-03-11 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-11 07:46:17] Production.INFO: count ==81 [2025-03-11 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:46:05 - End Time 2025-03-11 07:46:05 [2025-03-11 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655413', 'tblTempUsageDetail_20' ) start [2025-03-11 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655413', 'tblTempUsageDetail_20' ) end [2025-03-11 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655413', 'tblTempVendorCDR_20' ) start [2025-03-11 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655413', 'tblTempVendorCDR_20' ) end [2025-03-11 07:46:17] Production.INFO: ProcessCDR(1,14655413,1,1,2) [2025-03-11 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655413', 'tblTempUsageDetail_20' ) start [2025-03-11 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655413', 'tblTempUsageDetail_20' ) end [2025-03-11 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:46:20] Production.INFO: ==7518== Releasing lock... [2025-03-11 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:47:05 [end_date_ymd] => 2025-03-11 07:47:05 [RateCDR] => 1 ) [2025-03-11 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:47:05' and `end` < '2025-03-11 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:47:17] Production.INFO: count ==81 [2025-03-11 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:47:05 - End Time 2025-03-11 07:47:05 [2025-03-11 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655418', 'tblTempUsageDetail_20' ) start [2025-03-11 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655418', 'tblTempUsageDetail_20' ) end [2025-03-11 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655418', 'tblTempVendorCDR_20' ) start [2025-03-11 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655418', 'tblTempVendorCDR_20' ) end [2025-03-11 07:47:17] Production.INFO: ProcessCDR(1,14655418,1,1,2) [2025-03-11 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655418', 'tblTempUsageDetail_20' ) start [2025-03-11 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655418', 'tblTempUsageDetail_20' ) end [2025-03-11 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:47:20] Production.INFO: ==7592== Releasing lock... [2025-03-11 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:48:05 [end_date_ymd] => 2025-03-11 07:48:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:48:05' and `end` < '2025-03-11 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-11 07:48:17] Production.INFO: count ==81 [2025-03-11 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:48:05 - End Time 2025-03-11 07:48:05 [2025-03-11 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655423', 'tblTempUsageDetail_20' ) start [2025-03-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655423', 'tblTempUsageDetail_20' ) end [2025-03-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655423', 'tblTempVendorCDR_20' ) start [2025-03-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655423', 'tblTempVendorCDR_20' ) end [2025-03-11 07:48:17] Production.INFO: ProcessCDR(1,14655423,1,1,2) [2025-03-11 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655423', 'tblTempUsageDetail_20' ) start [2025-03-11 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655423', 'tblTempUsageDetail_20' ) end [2025-03-11 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:48:20] Production.INFO: ==7665== Releasing lock... [2025-03-11 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:49:05 [end_date_ymd] => 2025-03-11 07:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:49:05' and `end` < '2025-03-11 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-11 07:49:17] Production.INFO: count ==82 [2025-03-11 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:49:05 - End Time 2025-03-11 07:49:05 [2025-03-11 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655428', 'tblTempUsageDetail_20' ) start [2025-03-11 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655428', 'tblTempUsageDetail_20' ) end [2025-03-11 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655428', 'tblTempVendorCDR_20' ) start [2025-03-11 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655428', 'tblTempVendorCDR_20' ) end [2025-03-11 07:49:17] Production.INFO: ProcessCDR(1,14655428,1,1,2) [2025-03-11 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655428', 'tblTempUsageDetail_20' ) start [2025-03-11 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655428', 'tblTempUsageDetail_20' ) end [2025-03-11 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:49:20] Production.INFO: ==7737== Releasing lock... [2025-03-11 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:50:06 [end_date_ymd] => 2025-03-11 07:50:06 [RateCDR] => 1 ) [2025-03-11 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:50:06' and `end` < '2025-03-11 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 07:50:19] Production.INFO: count ==87 [2025-03-11 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-11 04:50:06 - End Time 2025-03-11 07:50:06 [2025-03-11 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655433', 'tblTempUsageDetail_20' ) start [2025-03-11 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655433', 'tblTempUsageDetail_20' ) end [2025-03-11 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655433', 'tblTempVendorCDR_20' ) start [2025-03-11 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655433', 'tblTempVendorCDR_20' ) end [2025-03-11 07:50:19] Production.INFO: ProcessCDR(1,14655433,1,1,2) [2025-03-11 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655433', 'tblTempUsageDetail_20' ) start [2025-03-11 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655433', 'tblTempUsageDetail_20' ) end [2025-03-11 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:50:22] Production.INFO: ==7850== Releasing lock... [2025-03-11 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:51:05 [end_date_ymd] => 2025-03-11 07:51:05 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:51:05' and `end` < '2025-03-11 07: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-11 07:51:17] Production.INFO: count ==90 [2025-03-11 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:51:05 - End Time 2025-03-11 07:51:05 [2025-03-11 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655439', 'tblTempUsageDetail_20' ) start [2025-03-11 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655439', 'tblTempUsageDetail_20' ) end [2025-03-11 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655439', 'tblTempVendorCDR_20' ) start [2025-03-11 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655439', 'tblTempVendorCDR_20' ) end [2025-03-11 07:51:17] Production.INFO: ProcessCDR(1,14655439,1,1,2) [2025-03-11 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655439', 'tblTempUsageDetail_20' ) start [2025-03-11 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655439', 'tblTempUsageDetail_20' ) end [2025-03-11 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:51:20] Production.INFO: ==7924== Releasing lock... [2025-03-11 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:52:06 [end_date_ymd] => 2025-03-11 07:52:06 [RateCDR] => 1 ) [2025-03-11 07: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-11 04:52:06' and `end` < '2025-03-11 07: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-11 07:52:18] Production.INFO: count ==90 [2025-03-11 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:52:06 - End Time 2025-03-11 07:52:06 [2025-03-11 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655444', 'tblTempUsageDetail_20' ) start [2025-03-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655444', 'tblTempUsageDetail_20' ) end [2025-03-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655444', 'tblTempVendorCDR_20' ) start [2025-03-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655444', 'tblTempVendorCDR_20' ) end [2025-03-11 07:52:18] Production.INFO: ProcessCDR(1,14655444,1,1,2) [2025-03-11 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655444', 'tblTempUsageDetail_20' ) start [2025-03-11 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655444', 'tblTempUsageDetail_20' ) end [2025-03-11 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:52:21] Production.INFO: ==7997== Releasing lock... [2025-03-11 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-11 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:53:04 [end_date_ymd] => 2025-03-11 07:53:04 [RateCDR] => 1 ) [2025-03-11 07:53: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-11 04:53:04' and `end` < '2025-03-11 07:53: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-11 07:53:16] Production.INFO: count ==91 [2025-03-11 07:53:16] Production.ERROR: pbx CDR StartTime 2025-03-11 04:53:04 - End Time 2025-03-11 07:53:04 [2025-03-11 07:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655449', 'tblTempUsageDetail_20' ) start [2025-03-11 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655449', 'tblTempUsageDetail_20' ) end [2025-03-11 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655449', 'tblTempVendorCDR_20' ) start [2025-03-11 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655449', 'tblTempVendorCDR_20' ) end [2025-03-11 07:53:16] Production.INFO: ProcessCDR(1,14655449,1,1,2) [2025-03-11 07:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655449', 'tblTempUsageDetail_20' ) start [2025-03-11 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655449', 'tblTempUsageDetail_20' ) end [2025-03-11 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:53:20] Production.INFO: ==8071== Releasing lock... [2025-03-11 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-11 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:54:05 [end_date_ymd] => 2025-03-11 07:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:54:05' and `end` < '2025-03-11 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-11 07:54:17] Production.INFO: count ==94 [2025-03-11 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:54:05 - End Time 2025-03-11 07:54:05 [2025-03-11 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655454', 'tblTempUsageDetail_20' ) start [2025-03-11 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655454', 'tblTempUsageDetail_20' ) end [2025-03-11 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655454', 'tblTempVendorCDR_20' ) start [2025-03-11 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655454', 'tblTempVendorCDR_20' ) end [2025-03-11 07:54:17] Production.INFO: ProcessCDR(1,14655454,1,1,2) [2025-03-11 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655454', 'tblTempUsageDetail_20' ) start [2025-03-11 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655454', 'tblTempUsageDetail_20' ) end [2025-03-11 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:54:21] Production.INFO: ==8149== Releasing lock... [2025-03-11 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:54:21] Production.INFO: 29 MB #Memory Used# [2025-03-11 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:55:05 [end_date_ymd] => 2025-03-11 07:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:55:05' and `end` < '2025-03-11 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-11 07:55:17] Production.INFO: count ==102 [2025-03-11 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:55:05 - End Time 2025-03-11 07:55:05 [2025-03-11 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655459', 'tblTempUsageDetail_20' ) start [2025-03-11 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655459', 'tblTempUsageDetail_20' ) end [2025-03-11 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655459', 'tblTempVendorCDR_20' ) start [2025-03-11 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655459', 'tblTempVendorCDR_20' ) end [2025-03-11 07:55:17] Production.INFO: ProcessCDR(1,14655459,1,1,2) [2025-03-11 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655459', 'tblTempUsageDetail_20' ) start [2025-03-11 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655459', 'tblTempUsageDetail_20' ) end [2025-03-11 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:55:20] Production.INFO: ==8226== Releasing lock... [2025-03-11 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:56:06 [end_date_ymd] => 2025-03-11 07:56:06 [RateCDR] => 1 ) [2025-03-11 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 04:56:06' and `end` < '2025-03-11 07: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-11 07:56:18] Production.INFO: count ==102 [2025-03-11 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 04:56:06 - End Time 2025-03-11 07:56:06 [2025-03-11 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655464', 'tblTempUsageDetail_20' ) start [2025-03-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655464', 'tblTempUsageDetail_20' ) end [2025-03-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655464', 'tblTempVendorCDR_20' ) start [2025-03-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655464', 'tblTempVendorCDR_20' ) end [2025-03-11 07:56:18] Production.INFO: ProcessCDR(1,14655464,1,1,2) [2025-03-11 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655464', 'tblTempUsageDetail_20' ) start [2025-03-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655464', 'tblTempUsageDetail_20' ) end [2025-03-11 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:56:21] Production.INFO: ==8297== Releasing lock... [2025-03-11 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:57:05 [end_date_ymd] => 2025-03-11 07:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:57:05' and `end` < '2025-03-11 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-11 07:57:17] Production.INFO: count ==102 [2025-03-11 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:57:05 - End Time 2025-03-11 07:57:05 [2025-03-11 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655469', 'tblTempUsageDetail_20' ) start [2025-03-11 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655469', 'tblTempUsageDetail_20' ) end [2025-03-11 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655469', 'tblTempVendorCDR_20' ) start [2025-03-11 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655469', 'tblTempVendorCDR_20' ) end [2025-03-11 07:57:17] Production.INFO: ProcessCDR(1,14655469,1,1,2) [2025-03-11 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655469', 'tblTempUsageDetail_20' ) start [2025-03-11 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655469', 'tblTempUsageDetail_20' ) end [2025-03-11 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:57:20] Production.INFO: ==8367== Releasing lock... [2025-03-11 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:58:05 [end_date_ymd] => 2025-03-11 07:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:58:05' and `end` < '2025-03-11 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-11 07:58:17] Production.INFO: count ==103 [2025-03-11 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:58:05 - End Time 2025-03-11 07:58:05 [2025-03-11 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655474', 'tblTempUsageDetail_20' ) start [2025-03-11 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655474', 'tblTempUsageDetail_20' ) end [2025-03-11 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655474', 'tblTempVendorCDR_20' ) start [2025-03-11 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655474', 'tblTempVendorCDR_20' ) end [2025-03-11 07:58:17] Production.INFO: ProcessCDR(1,14655474,1,1,2) [2025-03-11 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655474', 'tblTempUsageDetail_20' ) start [2025-03-11 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655474', 'tblTempUsageDetail_20' ) end [2025-03-11 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:58:21] Production.INFO: ==8439== Releasing lock... [2025-03-11 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 04:59:05 [end_date_ymd] => 2025-03-11 07:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 04:59:05' and `end` < '2025-03-11 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-11 07:59:17] Production.INFO: count ==108 [2025-03-11 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 04:59:05 - End Time 2025-03-11 07:59:05 [2025-03-11 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655479', 'tblTempUsageDetail_20' ) start [2025-03-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655479', 'tblTempUsageDetail_20' ) end [2025-03-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655479', 'tblTempVendorCDR_20' ) start [2025-03-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655479', 'tblTempVendorCDR_20' ) end [2025-03-11 07:59:17] Production.INFO: ProcessCDR(1,14655479,1,1,2) [2025-03-11 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655479', 'tblTempUsageDetail_20' ) start [2025-03-11 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655479', 'tblTempUsageDetail_20' ) end [2025-03-11 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 07:59:21] Production.INFO: ==8511== Releasing lock... [2025-03-11 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:00:05 [end_date_ymd] => 2025-03-11 08:00:05 [RateCDR] => 1 ) [2025-03-11 08: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-11 05:00:05' and `end` < '2025-03-11 08: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-11 08:00:17] Production.INFO: count ==114 [2025-03-11 08:00:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:00:05 - End Time 2025-03-11 08:00:05 [2025-03-11 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655484', 'tblTempUsageDetail_20' ) start [2025-03-11 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655484', 'tblTempUsageDetail_20' ) end [2025-03-11 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655484', 'tblTempVendorCDR_20' ) start [2025-03-11 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655484', 'tblTempVendorCDR_20' ) end [2025-03-11 08:00:17] Production.INFO: ProcessCDR(1,14655484,1,1,2) [2025-03-11 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655484', 'tblTempUsageDetail_20' ) start [2025-03-11 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655484', 'tblTempUsageDetail_20' ) end [2025-03-11 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:00:21] Production.INFO: ==8586== Releasing lock... [2025-03-11 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:01:05 [end_date_ymd] => 2025-03-11 08:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:01:05' and `end` < '2025-03-11 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-11 08:01:18] Production.INFO: count ==141 [2025-03-11 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:01:05 - End Time 2025-03-11 08:01:05 [2025-03-11 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655490', 'tblTempUsageDetail_20' ) start [2025-03-11 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655490', 'tblTempUsageDetail_20' ) end [2025-03-11 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655490', 'tblTempVendorCDR_20' ) start [2025-03-11 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655490', 'tblTempVendorCDR_20' ) end [2025-03-11 08:01:18] Production.INFO: ProcessCDR(1,14655490,1,1,2) [2025-03-11 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655490', 'tblTempUsageDetail_20' ) start [2025-03-11 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655490', 'tblTempUsageDetail_20' ) end [2025-03-11 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:01:22] Production.INFO: ==8679== Releasing lock... [2025-03-11 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:02:05 [end_date_ymd] => 2025-03-11 08:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:02:05' and `end` < '2025-03-11 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-11 08:02:17] Production.INFO: count ==140 [2025-03-11 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:02:05 - End Time 2025-03-11 08:02:05 [2025-03-11 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655495', 'tblTempUsageDetail_20' ) start [2025-03-11 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655495', 'tblTempUsageDetail_20' ) end [2025-03-11 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655495', 'tblTempVendorCDR_20' ) start [2025-03-11 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655495', 'tblTempVendorCDR_20' ) end [2025-03-11 08:02:17] Production.INFO: ProcessCDR(1,14655495,1,1,2) [2025-03-11 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655495', 'tblTempUsageDetail_20' ) start [2025-03-11 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655495', 'tblTempUsageDetail_20' ) end [2025-03-11 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:02:21] Production.INFO: ==8752== Releasing lock... [2025-03-11 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-11 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:03:05 [end_date_ymd] => 2025-03-11 08:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:03:05' and `end` < '2025-03-11 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-11 08:03:17] Production.INFO: count ==147 [2025-03-11 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:03:05 - End Time 2025-03-11 08:03:05 [2025-03-11 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655500', 'tblTempUsageDetail_20' ) start [2025-03-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655500', 'tblTempUsageDetail_20' ) end [2025-03-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655500', 'tblTempVendorCDR_20' ) start [2025-03-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655500', 'tblTempVendorCDR_20' ) end [2025-03-11 08:03:17] Production.INFO: ProcessCDR(1,14655500,1,1,2) [2025-03-11 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655500', 'tblTempUsageDetail_20' ) start [2025-03-11 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655500', 'tblTempUsageDetail_20' ) end [2025-03-11 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:03:22] Production.INFO: ==8828== Releasing lock... [2025-03-11 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:04:05 [end_date_ymd] => 2025-03-11 08:04:05 [RateCDR] => 1 ) [2025-03-11 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:04:05' and `end` < '2025-03-11 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:04:17] Production.INFO: count ==148 [2025-03-11 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:04:05 - End Time 2025-03-11 08:04:05 [2025-03-11 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655505', 'tblTempUsageDetail_20' ) start [2025-03-11 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655505', 'tblTempUsageDetail_20' ) end [2025-03-11 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655505', 'tblTempVendorCDR_20' ) start [2025-03-11 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655505', 'tblTempVendorCDR_20' ) end [2025-03-11 08:04:17] Production.INFO: ProcessCDR(1,14655505,1,1,2) [2025-03-11 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655505', 'tblTempUsageDetail_20' ) start [2025-03-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655505', 'tblTempUsageDetail_20' ) end [2025-03-11 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:04:22] Production.INFO: ==8898== Releasing lock... [2025-03-11 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:05:05 [end_date_ymd] => 2025-03-11 08:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:05:05' and `end` < '2025-03-11 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-11 08:05:17] Production.INFO: count ==156 [2025-03-11 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:05:05 - End Time 2025-03-11 08:05:05 [2025-03-11 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655510', 'tblTempUsageDetail_20' ) start [2025-03-11 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655510', 'tblTempUsageDetail_20' ) end [2025-03-11 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655510', 'tblTempVendorCDR_20' ) start [2025-03-11 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655510', 'tblTempVendorCDR_20' ) end [2025-03-11 08:05:17] Production.INFO: ProcessCDR(1,14655510,1,1,2) [2025-03-11 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655510', 'tblTempUsageDetail_20' ) start [2025-03-11 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655510', 'tblTempUsageDetail_20' ) end [2025-03-11 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:05:22] Production.INFO: ==8972== Releasing lock... [2025-03-11 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:06:05 [end_date_ymd] => 2025-03-11 08:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:06:05' and `end` < '2025-03-11 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-11 08:06:17] Production.INFO: count ==163 [2025-03-11 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:06:05 - End Time 2025-03-11 08:06:05 [2025-03-11 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655515', 'tblTempUsageDetail_20' ) start [2025-03-11 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655515', 'tblTempUsageDetail_20' ) end [2025-03-11 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655515', 'tblTempVendorCDR_20' ) start [2025-03-11 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655515', 'tblTempVendorCDR_20' ) end [2025-03-11 08:06:17] Production.INFO: ProcessCDR(1,14655515,1,1,2) [2025-03-11 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655515', 'tblTempUsageDetail_20' ) start [2025-03-11 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655515', 'tblTempUsageDetail_20' ) end [2025-03-11 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:06:20] Production.INFO: ==9084== Releasing lock... [2025-03-11 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:06:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:07:06 [end_date_ymd] => 2025-03-11 08:07:06 [RateCDR] => 1 ) [2025-03-11 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:07:06' and `end` < '2025-03-11 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:07:18] Production.INFO: count ==177 [2025-03-11 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:07:06 - End Time 2025-03-11 08:07:06 [2025-03-11 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655520', 'tblTempUsageDetail_20' ) start [2025-03-11 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655520', 'tblTempUsageDetail_20' ) end [2025-03-11 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655520', 'tblTempVendorCDR_20' ) start [2025-03-11 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655520', 'tblTempVendorCDR_20' ) end [2025-03-11 08:07:18] Production.INFO: ProcessCDR(1,14655520,1,1,2) [2025-03-11 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655520', 'tblTempUsageDetail_20' ) start [2025-03-11 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655520', 'tblTempUsageDetail_20' ) end [2025-03-11 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:07:23] Production.INFO: ==9157== Releasing lock... [2025-03-11 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:07:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-11 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:08:05 [end_date_ymd] => 2025-03-11 08:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:08:05' and `end` < '2025-03-11 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-11 08:08:17] Production.INFO: count ==178 [2025-03-11 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:08:05 - End Time 2025-03-11 08:08:05 [2025-03-11 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655525', 'tblTempUsageDetail_20' ) start [2025-03-11 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655525', 'tblTempUsageDetail_20' ) end [2025-03-11 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655525', 'tblTempVendorCDR_20' ) start [2025-03-11 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655525', 'tblTempVendorCDR_20' ) end [2025-03-11 08:08:17] Production.INFO: ProcessCDR(1,14655525,1,1,2) [2025-03-11 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655525', 'tblTempUsageDetail_20' ) start [2025-03-11 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655525', 'tblTempUsageDetail_20' ) end [2025-03-11 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:08:20] Production.INFO: ==9227== Releasing lock... [2025-03-11 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:08:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:09:05 [end_date_ymd] => 2025-03-11 08:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:09:05' and `end` < '2025-03-11 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-11 08:09:18] Production.INFO: count ==178 [2025-03-11 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:09:05 - End Time 2025-03-11 08:09:05 [2025-03-11 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655530', 'tblTempUsageDetail_20' ) start [2025-03-11 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655530', 'tblTempUsageDetail_20' ) end [2025-03-11 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655530', 'tblTempVendorCDR_20' ) start [2025-03-11 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655530', 'tblTempVendorCDR_20' ) end [2025-03-11 08:09:18] Production.INFO: ProcessCDR(1,14655530,1,1,2) [2025-03-11 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655530', 'tblTempUsageDetail_20' ) start [2025-03-11 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655530', 'tblTempUsageDetail_20' ) end [2025-03-11 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:09:21] Production.INFO: ==9297== Releasing lock... [2025-03-11 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:09:21] Production.INFO: 30 MB #Memory Used# [2025-03-11 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:10:06 [end_date_ymd] => 2025-03-11 08:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:10:06' and `end` < '2025-03-11 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-11 08:10:18] Production.INFO: count ==187 [2025-03-11 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:10:06 - End Time 2025-03-11 08:10:06 [2025-03-11 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655536', 'tblTempUsageDetail_20' ) start [2025-03-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655536', 'tblTempUsageDetail_20' ) end [2025-03-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655536', 'tblTempVendorCDR_20' ) start [2025-03-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655536', 'tblTempVendorCDR_20' ) end [2025-03-11 08:10:18] Production.INFO: ProcessCDR(1,14655536,1,1,2) [2025-03-11 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655536', 'tblTempUsageDetail_20' ) start [2025-03-11 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655536', 'tblTempUsageDetail_20' ) end [2025-03-11 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:10:23] Production.INFO: ==9368== Releasing lock... [2025-03-11 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-11 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:11:05 [end_date_ymd] => 2025-03-11 08:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:11:05' and `end` < '2025-03-11 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-11 08:11:17] Production.INFO: count ==206 [2025-03-11 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:11:05 - End Time 2025-03-11 08:11:05 [2025-03-11 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655541', 'tblTempUsageDetail_20' ) start [2025-03-11 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655541', 'tblTempUsageDetail_20' ) end [2025-03-11 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655541', 'tblTempVendorCDR_20' ) start [2025-03-11 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655541', 'tblTempVendorCDR_20' ) end [2025-03-11 08:11:18] Production.INFO: ProcessCDR(1,14655541,1,1,2) [2025-03-11 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655541', 'tblTempUsageDetail_20' ) start [2025-03-11 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655541', 'tblTempUsageDetail_20' ) end [2025-03-11 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:11:21] Production.INFO: ==9448== Releasing lock... [2025-03-11 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:12:05 [end_date_ymd] => 2025-03-11 08:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:12:05' and `end` < '2025-03-11 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-11 08:12:17] Production.INFO: count ==202 [2025-03-11 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:12:05 - End Time 2025-03-11 08:12:05 [2025-03-11 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655546', 'tblTempUsageDetail_20' ) start [2025-03-11 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655546', 'tblTempUsageDetail_20' ) end [2025-03-11 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655546', 'tblTempVendorCDR_20' ) start [2025-03-11 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655546', 'tblTempVendorCDR_20' ) end [2025-03-11 08:12:17] Production.INFO: ProcessCDR(1,14655546,1,1,2) [2025-03-11 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655546', 'tblTempUsageDetail_20' ) start [2025-03-11 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655546', 'tblTempUsageDetail_20' ) end [2025-03-11 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:12:20] Production.INFO: ==9518== Releasing lock... [2025-03-11 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:12:20] Production.INFO: 30 MB #Memory Used# [2025-03-11 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:13:05 [end_date_ymd] => 2025-03-11 08:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:13:05' and `end` < '2025-03-11 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-11 08:13:17] Production.INFO: count ==209 [2025-03-11 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:13:05 - End Time 2025-03-11 08:13:05 [2025-03-11 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655551', 'tblTempUsageDetail_20' ) start [2025-03-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655551', 'tblTempUsageDetail_20' ) end [2025-03-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655551', 'tblTempVendorCDR_20' ) start [2025-03-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655551', 'tblTempVendorCDR_20' ) end [2025-03-11 08:13:17] Production.INFO: ProcessCDR(1,14655551,1,1,2) [2025-03-11 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655551', 'tblTempUsageDetail_20' ) start [2025-03-11 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655551', 'tblTempUsageDetail_20' ) end [2025-03-11 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:13:22] Production.INFO: ==9591== Releasing lock... [2025-03-11 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:13:22] Production.INFO: 30 MB #Memory Used# [2025-03-11 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:14:05 [end_date_ymd] => 2025-03-11 08:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:14:05' and `end` < '2025-03-11 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-11 08:14:18] Production.INFO: count ==222 [2025-03-11 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:14:05 - End Time 2025-03-11 08:14:05 [2025-03-11 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655556', 'tblTempUsageDetail_20' ) start [2025-03-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655556', 'tblTempUsageDetail_20' ) end [2025-03-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655556', 'tblTempVendorCDR_20' ) start [2025-03-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655556', 'tblTempVendorCDR_20' ) end [2025-03-11 08:14:18] Production.INFO: ProcessCDR(1,14655556,1,1,2) [2025-03-11 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655556', 'tblTempUsageDetail_20' ) start [2025-03-11 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655556', 'tblTempUsageDetail_20' ) end [2025-03-11 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:14:23] Production.INFO: ==9669== Releasing lock... [2025-03-11 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:14:23] Production.INFO: 30 MB #Memory Used# [2025-03-11 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:15:06 [end_date_ymd] => 2025-03-11 08:15:06 [RateCDR] => 1 ) [2025-03-11 08: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-11 05:15:06' and `end` < '2025-03-11 08: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-11 08:15:18] Production.INFO: count ==226 [2025-03-11 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:15:06 - End Time 2025-03-11 08:15:06 [2025-03-11 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655561', 'tblTempUsageDetail_20' ) start [2025-03-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655561', 'tblTempUsageDetail_20' ) end [2025-03-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655561', 'tblTempVendorCDR_20' ) start [2025-03-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655561', 'tblTempVendorCDR_20' ) end [2025-03-11 08:15:18] Production.INFO: ProcessCDR(1,14655561,1,1,2) [2025-03-11 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655561', 'tblTempUsageDetail_20' ) start [2025-03-11 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655561', 'tblTempUsageDetail_20' ) end [2025-03-11 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:15:21] Production.INFO: ==9746== Releasing lock... [2025-03-11 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:16:05 [end_date_ymd] => 2025-03-11 08:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:16:05' and `end` < '2025-03-11 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-11 08:16:17] Production.INFO: count ==227 [2025-03-11 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:16:05 - End Time 2025-03-11 08:16:05 [2025-03-11 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655566', 'tblTempUsageDetail_20' ) start [2025-03-11 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655566', 'tblTempUsageDetail_20' ) end [2025-03-11 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655566', 'tblTempVendorCDR_20' ) start [2025-03-11 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655566', 'tblTempVendorCDR_20' ) end [2025-03-11 08:16:17] Production.INFO: ProcessCDR(1,14655566,1,1,2) [2025-03-11 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655566', 'tblTempUsageDetail_20' ) start [2025-03-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655566', 'tblTempUsageDetail_20' ) end [2025-03-11 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:16:21] Production.INFO: ==9816== Releasing lock... [2025-03-11 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:17:05 [end_date_ymd] => 2025-03-11 08:17:05 [RateCDR] => 1 ) [2025-03-11 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:17:05' and `end` < '2025-03-11 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:17:17] Production.INFO: count ==237 [2025-03-11 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:17:05 - End Time 2025-03-11 08:17:05 [2025-03-11 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655571', 'tblTempUsageDetail_20' ) start [2025-03-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655571', 'tblTempUsageDetail_20' ) end [2025-03-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655571', 'tblTempVendorCDR_20' ) start [2025-03-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655571', 'tblTempVendorCDR_20' ) end [2025-03-11 08:17:18] Production.INFO: ProcessCDR(1,14655571,1,1,2) [2025-03-11 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655571', 'tblTempUsageDetail_20' ) start [2025-03-11 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655571', 'tblTempUsageDetail_20' ) end [2025-03-11 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:17:22] Production.INFO: ==9891== Releasing lock... [2025-03-11 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-11 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:18:05 [end_date_ymd] => 2025-03-11 08:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:18:05' and `end` < '2025-03-11 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-11 08:18:17] Production.INFO: count ==239 [2025-03-11 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:18:05 - End Time 2025-03-11 08:18:05 [2025-03-11 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655576', 'tblTempUsageDetail_20' ) start [2025-03-11 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655576', 'tblTempUsageDetail_20' ) end [2025-03-11 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655576', 'tblTempVendorCDR_20' ) start [2025-03-11 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655576', 'tblTempVendorCDR_20' ) end [2025-03-11 08:18:17] Production.INFO: ProcessCDR(1,14655576,1,1,2) [2025-03-11 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655576', 'tblTempUsageDetail_20' ) start [2025-03-11 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655576', 'tblTempUsageDetail_20' ) end [2025-03-11 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:18:21] Production.INFO: ==9959== Releasing lock... [2025-03-11 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:19:05 [end_date_ymd] => 2025-03-11 08:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:19:05' and `end` < '2025-03-11 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-11 08:19:17] Production.INFO: count ==254 [2025-03-11 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:19:05 - End Time 2025-03-11 08:19:05 [2025-03-11 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655581', 'tblTempUsageDetail_20' ) start [2025-03-11 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655581', 'tblTempUsageDetail_20' ) end [2025-03-11 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655581', 'tblTempVendorCDR_20' ) start [2025-03-11 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655581', 'tblTempVendorCDR_20' ) end [2025-03-11 08:19:17] Production.INFO: ProcessCDR(1,14655581,1,1,2) [2025-03-11 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655581', 'tblTempUsageDetail_20' ) start [2025-03-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655581', 'tblTempUsageDetail_20' ) end [2025-03-11 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:19:22] Production.INFO: ==10042== Releasing lock... [2025-03-11 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:20:05 [end_date_ymd] => 2025-03-11 08:20:05 [RateCDR] => 1 ) [2025-03-11 08: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-11 05:20:05' and `end` < '2025-03-11 08: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-11 08:20:17] Production.INFO: count ==266 [2025-03-11 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:20:05 - End Time 2025-03-11 08:20:05 [2025-03-11 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655586', 'tblTempUsageDetail_20' ) start [2025-03-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655586', 'tblTempUsageDetail_20' ) end [2025-03-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655586', 'tblTempVendorCDR_20' ) start [2025-03-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655586', 'tblTempVendorCDR_20' ) end [2025-03-11 08:20:18] Production.INFO: ProcessCDR(1,14655586,1,1,2) [2025-03-11 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655586', 'tblTempUsageDetail_20' ) start [2025-03-11 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655586', 'tblTempUsageDetail_20' ) end [2025-03-11 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:20:22] Production.INFO: ==10114== Releasing lock... [2025-03-11 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:21:05 [end_date_ymd] => 2025-03-11 08:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:21:05' and `end` < '2025-03-11 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-11 08:21:17] Production.INFO: count ==273 [2025-03-11 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:21:05 - End Time 2025-03-11 08:21:05 [2025-03-11 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655592', 'tblTempUsageDetail_20' ) start [2025-03-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655592', 'tblTempUsageDetail_20' ) end [2025-03-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655592', 'tblTempVendorCDR_20' ) start [2025-03-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655592', 'tblTempVendorCDR_20' ) end [2025-03-11 08:21:17] Production.INFO: ProcessCDR(1,14655592,1,1,2) [2025-03-11 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655592', 'tblTempUsageDetail_20' ) start [2025-03-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655592', 'tblTempUsageDetail_20' ) end [2025-03-11 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:21:21] Production.INFO: ==10226== Releasing lock... [2025-03-11 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:22:05 [end_date_ymd] => 2025-03-11 08:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:22:05' and `end` < '2025-03-11 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-11 08:22:17] Production.INFO: count ==292 [2025-03-11 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:22:05 - End Time 2025-03-11 08:22:05 [2025-03-11 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655597', 'tblTempUsageDetail_20' ) start [2025-03-11 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655597', 'tblTempUsageDetail_20' ) end [2025-03-11 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655597', 'tblTempVendorCDR_20' ) start [2025-03-11 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655597', 'tblTempVendorCDR_20' ) end [2025-03-11 08:22:17] Production.INFO: ProcessCDR(1,14655597,1,1,2) [2025-03-11 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655597', 'tblTempUsageDetail_20' ) start [2025-03-11 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655597', 'tblTempUsageDetail_20' ) end [2025-03-11 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:22:22] Production.INFO: ==10297== Releasing lock... [2025-03-11 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:22:22] Production.INFO: 31 MB #Memory Used# [2025-03-11 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:23:05 [end_date_ymd] => 2025-03-11 08:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:23:05' and `end` < '2025-03-11 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-11 08:23:17] Production.INFO: count ==297 [2025-03-11 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:23:05 - End Time 2025-03-11 08:23:05 [2025-03-11 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655602', 'tblTempUsageDetail_20' ) start [2025-03-11 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655602', 'tblTempUsageDetail_20' ) end [2025-03-11 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655602', 'tblTempVendorCDR_20' ) start [2025-03-11 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655602', 'tblTempVendorCDR_20' ) end [2025-03-11 08:23:17] Production.INFO: ProcessCDR(1,14655602,1,1,2) [2025-03-11 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655602', 'tblTempUsageDetail_20' ) start [2025-03-11 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655602', 'tblTempUsageDetail_20' ) end [2025-03-11 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:23:21] Production.INFO: ==10371== Releasing lock... [2025-03-11 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-11 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:24:05 [end_date_ymd] => 2025-03-11 08:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:24:05' and `end` < '2025-03-11 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-11 08:24:18] Production.INFO: count ==306 [2025-03-11 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:24:05 - End Time 2025-03-11 08:24:05 [2025-03-11 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655607', 'tblTempUsageDetail_20' ) start [2025-03-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655607', 'tblTempUsageDetail_20' ) end [2025-03-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655607', 'tblTempVendorCDR_20' ) start [2025-03-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655607', 'tblTempVendorCDR_20' ) end [2025-03-11 08:24:18] Production.INFO: ProcessCDR(1,14655607,1,1,2) [2025-03-11 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655607', 'tblTempUsageDetail_20' ) start [2025-03-11 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655607', 'tblTempUsageDetail_20' ) end [2025-03-11 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:24:22] Production.INFO: ==10443== Releasing lock... [2025-03-11 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:25:05 [end_date_ymd] => 2025-03-11 08:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:25:05' and `end` < '2025-03-11 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-11 08:25:17] Production.INFO: count ==319 [2025-03-11 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:25:05 - End Time 2025-03-11 08:25:05 [2025-03-11 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655612', 'tblTempUsageDetail_20' ) start [2025-03-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655612', 'tblTempUsageDetail_20' ) end [2025-03-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655612', 'tblTempVendorCDR_20' ) start [2025-03-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655612', 'tblTempVendorCDR_20' ) end [2025-03-11 08:25:17] Production.INFO: ProcessCDR(1,14655612,1,1,2) [2025-03-11 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655612', 'tblTempUsageDetail_20' ) start [2025-03-11 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655612', 'tblTempUsageDetail_20' ) end [2025-03-11 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:25:22] Production.INFO: ==10519== Releasing lock... [2025-03-11 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:25:22] Production.INFO: 31 MB #Memory Used# [2025-03-11 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:26:05 [end_date_ymd] => 2025-03-11 08:26:05 [RateCDR] => 1 ) [2025-03-11 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:26:05' and `end` < '2025-03-11 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:26:18] Production.INFO: count ==328 [2025-03-11 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:26:05 - End Time 2025-03-11 08:26:05 [2025-03-11 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655617', 'tblTempUsageDetail_20' ) start [2025-03-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655617', 'tblTempUsageDetail_20' ) end [2025-03-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655617', 'tblTempVendorCDR_20' ) start [2025-03-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655617', 'tblTempVendorCDR_20' ) end [2025-03-11 08:26:18] Production.INFO: ProcessCDR(1,14655617,1,1,2) [2025-03-11 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655617', 'tblTempUsageDetail_20' ) start [2025-03-11 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655617', 'tblTempUsageDetail_20' ) end [2025-03-11 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:26:23] Production.INFO: ==10592== Releasing lock... [2025-03-11 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:26:23] Production.INFO: 31 MB #Memory Used# [2025-03-11 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:27:05 [end_date_ymd] => 2025-03-11 08:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:27:05' and `end` < '2025-03-11 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-11 08:27:17] Production.INFO: count ==335 [2025-03-11 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:27:05 - End Time 2025-03-11 08:27:05 [2025-03-11 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655622', 'tblTempUsageDetail_20' ) start [2025-03-11 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655622', 'tblTempUsageDetail_20' ) end [2025-03-11 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655622', 'tblTempVendorCDR_20' ) start [2025-03-11 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655622', 'tblTempVendorCDR_20' ) end [2025-03-11 08:27:17] Production.INFO: ProcessCDR(1,14655622,1,1,2) [2025-03-11 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655622', 'tblTempUsageDetail_20' ) start [2025-03-11 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655622', 'tblTempUsageDetail_20' ) end [2025-03-11 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:27:22] Production.INFO: ==10664== Releasing lock... [2025-03-11 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:28:06 [end_date_ymd] => 2025-03-11 08:28:06 [RateCDR] => 1 ) [2025-03-11 08: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-11 05:28:06' and `end` < '2025-03-11 08: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-11 08:28:18] Production.INFO: count ==345 [2025-03-11 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:28:06 - End Time 2025-03-11 08:28:06 [2025-03-11 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655627', 'tblTempUsageDetail_20' ) start [2025-03-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655627', 'tblTempUsageDetail_20' ) end [2025-03-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655627', 'tblTempVendorCDR_20' ) start [2025-03-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655627', 'tblTempVendorCDR_20' ) end [2025-03-11 08:28:18] Production.INFO: ProcessCDR(1,14655627,1,1,2) [2025-03-11 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655627', 'tblTempUsageDetail_20' ) start [2025-03-11 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655627', 'tblTempUsageDetail_20' ) end [2025-03-11 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:28:22] Production.INFO: ==10742== Releasing lock... [2025-03-11 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-11 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:29:05 [end_date_ymd] => 2025-03-11 08:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:29:05' and `end` < '2025-03-11 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-11 08:29:17] Production.INFO: count ==349 [2025-03-11 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:29:05 - End Time 2025-03-11 08:29:05 [2025-03-11 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655632', 'tblTempUsageDetail_20' ) start [2025-03-11 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655632', 'tblTempUsageDetail_20' ) end [2025-03-11 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655632', 'tblTempVendorCDR_20' ) start [2025-03-11 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655632', 'tblTempVendorCDR_20' ) end [2025-03-11 08:29:17] Production.INFO: ProcessCDR(1,14655632,1,1,2) [2025-03-11 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655632', 'tblTempUsageDetail_20' ) start [2025-03-11 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655632', 'tblTempUsageDetail_20' ) end [2025-03-11 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:29:21] Production.INFO: ==10813== Releasing lock... [2025-03-11 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-11 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:30:06 [end_date_ymd] => 2025-03-11 08:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:30:06' and `end` < '2025-03-11 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-11 08:30:19] Production.INFO: count ==381 [2025-03-11 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-11 05:30:06 - End Time 2025-03-11 08:30:06 [2025-03-11 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655638', 'tblTempUsageDetail_20' ) start [2025-03-11 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655638', 'tblTempUsageDetail_20' ) end [2025-03-11 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655638', 'tblTempVendorCDR_20' ) start [2025-03-11 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655638', 'tblTempVendorCDR_20' ) end [2025-03-11 08:30:19] Production.INFO: ProcessCDR(1,14655638,1,1,2) [2025-03-11 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655638', 'tblTempUsageDetail_20' ) start [2025-03-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655638', 'tblTempUsageDetail_20' ) end [2025-03-11 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:30:23] Production.INFO: ==10892== Releasing lock... [2025-03-11 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:30:23] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:31:05 [end_date_ymd] => 2025-03-11 08:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:31:05' and `end` < '2025-03-11 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-11 08:31:18] Production.INFO: count ==422 [2025-03-11 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:31:05 - End Time 2025-03-11 08:31:05 [2025-03-11 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655643', 'tblTempUsageDetail_20' ) start [2025-03-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655643', 'tblTempUsageDetail_20' ) end [2025-03-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655643', 'tblTempVendorCDR_20' ) start [2025-03-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655643', 'tblTempVendorCDR_20' ) end [2025-03-11 08:31:18] Production.INFO: ProcessCDR(1,14655643,1,1,2) [2025-03-11 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655643', 'tblTempUsageDetail_20' ) start [2025-03-11 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655643', 'tblTempUsageDetail_20' ) end [2025-03-11 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:31:21] Production.INFO: ==10968== Releasing lock... [2025-03-11 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:31:21] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:32:06 [end_date_ymd] => 2025-03-11 08:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:32:06' and `end` < '2025-03-11 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-11 08:32:18] Production.INFO: count ==425 [2025-03-11 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:32:06 - End Time 2025-03-11 08:32:06 [2025-03-11 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655648', 'tblTempUsageDetail_20' ) start [2025-03-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655648', 'tblTempUsageDetail_20' ) end [2025-03-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655648', 'tblTempVendorCDR_20' ) start [2025-03-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655648', 'tblTempVendorCDR_20' ) end [2025-03-11 08:32:18] Production.INFO: ProcessCDR(1,14655648,1,1,2) [2025-03-11 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655648', 'tblTempUsageDetail_20' ) start [2025-03-11 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655648', 'tblTempUsageDetail_20' ) end [2025-03-11 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:32:22] Production.INFO: ==11041== Releasing lock... [2025-03-11 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-11 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:33:05 [end_date_ymd] => 2025-03-11 08:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:33:05' and `end` < '2025-03-11 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-11 08:33:17] Production.INFO: count ==435 [2025-03-11 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:33:05 - End Time 2025-03-11 08:33:05 [2025-03-11 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655652', 'tblTempUsageDetail_20' ) start [2025-03-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655652', 'tblTempUsageDetail_20' ) end [2025-03-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655652', 'tblTempVendorCDR_20' ) start [2025-03-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655652', 'tblTempVendorCDR_20' ) end [2025-03-11 08:33:17] Production.INFO: ProcessCDR(1,14655652,1,1,2) [2025-03-11 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655652', 'tblTempUsageDetail_20' ) start [2025-03-11 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655652', 'tblTempUsageDetail_20' ) end [2025-03-11 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:33:20] Production.INFO: ==11116== Releasing lock... [2025-03-11 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:33:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-11 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:34:05 [end_date_ymd] => 2025-03-11 08:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:34:05' and `end` < '2025-03-11 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-11 08:34:18] Production.INFO: count ==441 [2025-03-11 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:34:05 - End Time 2025-03-11 08:34:05 [2025-03-11 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655658', 'tblTempUsageDetail_20' ) start [2025-03-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655658', 'tblTempUsageDetail_20' ) end [2025-03-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655658', 'tblTempVendorCDR_20' ) start [2025-03-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655658', 'tblTempVendorCDR_20' ) end [2025-03-11 08:34:18] Production.INFO: ProcessCDR(1,14655658,1,1,2) [2025-03-11 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655658', 'tblTempUsageDetail_20' ) start [2025-03-11 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655658', 'tblTempUsageDetail_20' ) end [2025-03-11 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:34:23] Production.INFO: ==11189== Releasing lock... [2025-03-11 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:34:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-11 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:35:05 [end_date_ymd] => 2025-03-11 08:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:35:05' and `end` < '2025-03-11 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-11 08:35:17] Production.INFO: count ==442 [2025-03-11 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:35:05 - End Time 2025-03-11 08:35:05 [2025-03-11 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655663', 'tblTempUsageDetail_20' ) start [2025-03-11 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655663', 'tblTempUsageDetail_20' ) end [2025-03-11 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655663', 'tblTempVendorCDR_20' ) start [2025-03-11 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655663', 'tblTempVendorCDR_20' ) end [2025-03-11 08:35:17] Production.INFO: ProcessCDR(1,14655663,1,1,2) [2025-03-11 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655663', 'tblTempUsageDetail_20' ) start [2025-03-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655663', 'tblTempUsageDetail_20' ) end [2025-03-11 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:35:21] Production.INFO: ==11262== Releasing lock... [2025-03-11 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-11 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:36:06 [end_date_ymd] => 2025-03-11 08:36:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:36:06' and `end` < '2025-03-11 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-11 08:36:18] Production.INFO: count ==449 [2025-03-11 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:36:06 - End Time 2025-03-11 08:36:06 [2025-03-11 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655668', 'tblTempUsageDetail_20' ) start [2025-03-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655668', 'tblTempUsageDetail_20' ) end [2025-03-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655668', 'tblTempVendorCDR_20' ) start [2025-03-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655668', 'tblTempVendorCDR_20' ) end [2025-03-11 08:36:18] Production.INFO: ProcessCDR(1,14655668,1,1,2) [2025-03-11 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655668', 'tblTempUsageDetail_20' ) start [2025-03-11 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655668', 'tblTempUsageDetail_20' ) end [2025-03-11 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:36:21] Production.INFO: ==11335== Releasing lock... [2025-03-11 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:37:05 [end_date_ymd] => 2025-03-11 08:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:37:05' and `end` < '2025-03-11 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-11 08:37:17] Production.INFO: count ==449 [2025-03-11 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:37:05 - End Time 2025-03-11 08:37:05 [2025-03-11 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655673', 'tblTempUsageDetail_20' ) start [2025-03-11 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655673', 'tblTempUsageDetail_20' ) end [2025-03-11 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655673', 'tblTempVendorCDR_20' ) start [2025-03-11 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655673', 'tblTempVendorCDR_20' ) end [2025-03-11 08:37:17] Production.INFO: ProcessCDR(1,14655673,1,1,2) [2025-03-11 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655673', 'tblTempUsageDetail_20' ) start [2025-03-11 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655673', 'tblTempUsageDetail_20' ) end [2025-03-11 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:37:21] Production.INFO: ==11445== Releasing lock... [2025-03-11 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:37:21] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:38:05 [end_date_ymd] => 2025-03-11 08:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:38:05' and `end` < '2025-03-11 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-11 08:38:18] Production.INFO: count ==460 [2025-03-11 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:38:05 - End Time 2025-03-11 08:38:05 [2025-03-11 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655678', 'tblTempUsageDetail_20' ) start [2025-03-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655678', 'tblTempUsageDetail_20' ) end [2025-03-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655678', 'tblTempVendorCDR_20' ) start [2025-03-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655678', 'tblTempVendorCDR_20' ) end [2025-03-11 08:38:18] Production.INFO: ProcessCDR(1,14655678,1,1,2) [2025-03-11 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655678', 'tblTempUsageDetail_20' ) start [2025-03-11 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655678', 'tblTempUsageDetail_20' ) end [2025-03-11 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:38:23] Production.INFO: ==11516== Releasing lock... [2025-03-11 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:38:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-11 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:39:05 [end_date_ymd] => 2025-03-11 08:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:39:05' and `end` < '2025-03-11 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-11 08:39:17] Production.INFO: count ==462 [2025-03-11 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:39:05 - End Time 2025-03-11 08:39:05 [2025-03-11 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655683', 'tblTempUsageDetail_20' ) start [2025-03-11 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655683', 'tblTempUsageDetail_20' ) end [2025-03-11 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655683', 'tblTempVendorCDR_20' ) start [2025-03-11 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655683', 'tblTempVendorCDR_20' ) end [2025-03-11 08:39:17] Production.INFO: ProcessCDR(1,14655683,1,1,2) [2025-03-11 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655683', 'tblTempUsageDetail_20' ) start [2025-03-11 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655683', 'tblTempUsageDetail_20' ) end [2025-03-11 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:39:22] Production.INFO: ==11589== Releasing lock... [2025-03-11 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:39:22] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:40:06 [end_date_ymd] => 2025-03-11 08:40:06 [RateCDR] => 1 ) [2025-03-11 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:40:06' and `end` < '2025-03-11 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:40:18] Production.INFO: count ==490 [2025-03-11 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-11 05:40:06 - End Time 2025-03-11 08:40:06 [2025-03-11 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655689', 'tblTempUsageDetail_20' ) start [2025-03-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655689', 'tblTempUsageDetail_20' ) end [2025-03-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655689', 'tblTempVendorCDR_20' ) start [2025-03-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655689', 'tblTempVendorCDR_20' ) end [2025-03-11 08:40:19] Production.INFO: ProcessCDR(1,14655689,1,1,2) [2025-03-11 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655689', 'tblTempUsageDetail_20' ) start [2025-03-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655689', 'tblTempUsageDetail_20' ) end [2025-03-11 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:40:23] Production.INFO: ==11663== Releasing lock... [2025-03-11 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-11 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:41:04 [end_date_ymd] => 2025-03-11 08:41:04 [RateCDR] => 1 ) [2025-03-11 08: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-11 05:41:04' and `end` < '2025-03-11 08: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-11 08:41:17] Production.INFO: count ==532 [2025-03-11 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:41:04 - End Time 2025-03-11 08:41:04 [2025-03-11 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655694', 'tblTempUsageDetail_20' ) start [2025-03-11 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655694', 'tblTempUsageDetail_20' ) end [2025-03-11 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655694', 'tblTempVendorCDR_20' ) start [2025-03-11 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655694', 'tblTempVendorCDR_20' ) end [2025-03-11 08:41:17] Production.INFO: ProcessCDR(1,14655694,1,1,2) [2025-03-11 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655694', 'tblTempUsageDetail_20' ) start [2025-03-11 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655694', 'tblTempUsageDetail_20' ) end [2025-03-11 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:41:22] Production.INFO: ==11739== Releasing lock... [2025-03-11 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-11 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:42:06 [end_date_ymd] => 2025-03-11 08:42:06 [RateCDR] => 1 ) [2025-03-11 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:42:06' and `end` < '2025-03-11 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:42:18] Production.INFO: count ==533 [2025-03-11 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:42:06 - End Time 2025-03-11 08:42:06 [2025-03-11 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655699', 'tblTempUsageDetail_20' ) start [2025-03-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655699', 'tblTempUsageDetail_20' ) end [2025-03-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655699', 'tblTempVendorCDR_20' ) start [2025-03-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655699', 'tblTempVendorCDR_20' ) end [2025-03-11 08:42:18] Production.INFO: ProcessCDR(1,14655699,1,1,2) [2025-03-11 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655699', 'tblTempUsageDetail_20' ) start [2025-03-11 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655699', 'tblTempUsageDetail_20' ) end [2025-03-11 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:42:22] Production.INFO: ==11811== Releasing lock... [2025-03-11 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-11 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:43:05 [end_date_ymd] => 2025-03-11 08:43:05 [RateCDR] => 1 ) [2025-03-11 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:43:05' and `end` < '2025-03-11 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:43:17] Production.INFO: count ==534 [2025-03-11 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:43:05 - End Time 2025-03-11 08:43:05 [2025-03-11 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655704', 'tblTempUsageDetail_20' ) start [2025-03-11 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655704', 'tblTempUsageDetail_20' ) end [2025-03-11 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655704', 'tblTempVendorCDR_20' ) start [2025-03-11 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655704', 'tblTempVendorCDR_20' ) end [2025-03-11 08:43:17] Production.INFO: ProcessCDR(1,14655704,1,1,2) [2025-03-11 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655704', 'tblTempUsageDetail_20' ) start [2025-03-11 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655704', 'tblTempUsageDetail_20' ) end [2025-03-11 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:43:22] Production.INFO: ==11882== Releasing lock... [2025-03-11 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-11 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:44:05 [end_date_ymd] => 2025-03-11 08:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:44:05' and `end` < '2025-03-11 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-11 08:44:17] Production.INFO: count ==544 [2025-03-11 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:44:05 - End Time 2025-03-11 08:44:05 [2025-03-11 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655709', 'tblTempUsageDetail_20' ) start [2025-03-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655709', 'tblTempUsageDetail_20' ) end [2025-03-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655709', 'tblTempVendorCDR_20' ) start [2025-03-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655709', 'tblTempVendorCDR_20' ) end [2025-03-11 08:44:18] Production.INFO: ProcessCDR(1,14655709,1,1,2) [2025-03-11 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655709', 'tblTempUsageDetail_20' ) start [2025-03-11 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655709', 'tblTempUsageDetail_20' ) end [2025-03-11 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:44:23] Production.INFO: ==11954== Releasing lock... [2025-03-11 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:44:23] Production.INFO: 33 MB #Memory Used# [2025-03-11 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:45:04 [end_date_ymd] => 2025-03-11 08:45:04 [RateCDR] => 1 ) [2025-03-11 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:45:04' and `end` < '2025-03-11 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:45:16] Production.INFO: count ==549 [2025-03-11 08:45:16] Production.ERROR: pbx CDR StartTime 2025-03-11 05:45:04 - End Time 2025-03-11 08:45:04 [2025-03-11 08:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655714', 'tblTempUsageDetail_20' ) start [2025-03-11 08:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655714', 'tblTempUsageDetail_20' ) end [2025-03-11 08:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655714', 'tblTempVendorCDR_20' ) start [2025-03-11 08:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655714', 'tblTempVendorCDR_20' ) end [2025-03-11 08:45:16] Production.INFO: ProcessCDR(1,14655714,1,1,2) [2025-03-11 08:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655714', 'tblTempUsageDetail_20' ) start [2025-03-11 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655714', 'tblTempUsageDetail_20' ) end [2025-03-11 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:45:20] Production.INFO: ==12030== Releasing lock... [2025-03-11 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:45:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-11 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:46:05 [end_date_ymd] => 2025-03-11 08:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:46:05' and `end` < '2025-03-11 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-11 08:46:17] Production.INFO: count ==559 [2025-03-11 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:46:05 - End Time 2025-03-11 08:46:05 [2025-03-11 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655719', 'tblTempUsageDetail_20' ) start [2025-03-11 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655719', 'tblTempUsageDetail_20' ) end [2025-03-11 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655719', 'tblTempVendorCDR_20' ) start [2025-03-11 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655719', 'tblTempVendorCDR_20' ) end [2025-03-11 08:46:17] Production.INFO: ProcessCDR(1,14655719,1,1,2) [2025-03-11 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655719', 'tblTempUsageDetail_20' ) start [2025-03-11 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655719', 'tblTempUsageDetail_20' ) end [2025-03-11 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:46:21] Production.INFO: ==12099== Releasing lock... [2025-03-11 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-11 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:47:06 [end_date_ymd] => 2025-03-11 08:47:06 [RateCDR] => 1 ) [2025-03-11 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 05:47:06' and `end` < '2025-03-11 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 08:47:18] Production.INFO: count ==561 [2025-03-11 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:47:06 - End Time 2025-03-11 08:47:06 [2025-03-11 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655724', 'tblTempUsageDetail_20' ) start [2025-03-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655724', 'tblTempUsageDetail_20' ) end [2025-03-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655724', 'tblTempVendorCDR_20' ) start [2025-03-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655724', 'tblTempVendorCDR_20' ) end [2025-03-11 08:47:18] Production.INFO: ProcessCDR(1,14655724,1,1,2) [2025-03-11 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655724', 'tblTempUsageDetail_20' ) start [2025-03-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655724', 'tblTempUsageDetail_20' ) end [2025-03-11 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:47:23] Production.INFO: ==12170== Releasing lock... [2025-03-11 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-11 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:48:05 [end_date_ymd] => 2025-03-11 08:48:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:48:05' and `end` < '2025-03-11 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-11 08:48:18] Production.INFO: count ==565 [2025-03-11 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:48:05 - End Time 2025-03-11 08:48:05 [2025-03-11 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655729', 'tblTempUsageDetail_20' ) start [2025-03-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655729', 'tblTempUsageDetail_20' ) end [2025-03-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655729', 'tblTempVendorCDR_20' ) start [2025-03-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655729', 'tblTempVendorCDR_20' ) end [2025-03-11 08:48:18] Production.INFO: ProcessCDR(1,14655729,1,1,2) [2025-03-11 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655729', 'tblTempUsageDetail_20' ) start [2025-03-11 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655729', 'tblTempUsageDetail_20' ) end [2025-03-11 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:48:22] Production.INFO: ==12241== Releasing lock... [2025-03-11 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-11 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:49:05 [end_date_ymd] => 2025-03-11 08:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:49:05' and `end` < '2025-03-11 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-11 08:49:18] Production.INFO: count ==583 [2025-03-11 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:49:05 - End Time 2025-03-11 08:49:05 [2025-03-11 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655734', 'tblTempUsageDetail_20' ) start [2025-03-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655734', 'tblTempUsageDetail_20' ) end [2025-03-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655734', 'tblTempVendorCDR_20' ) start [2025-03-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655734', 'tblTempVendorCDR_20' ) end [2025-03-11 08:49:18] Production.INFO: ProcessCDR(1,14655734,1,1,2) [2025-03-11 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655734', 'tblTempUsageDetail_20' ) start [2025-03-11 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655734', 'tblTempUsageDetail_20' ) end [2025-03-11 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:49:21] Production.INFO: ==12315== Releasing lock... [2025-03-11 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-11 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:50:06 [end_date_ymd] => 2025-03-11 08:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:50:06' and `end` < '2025-03-11 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-11 08:50:18] Production.INFO: count ==592 [2025-03-11 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:50:06 - End Time 2025-03-11 08:50:06 [2025-03-11 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655739', 'tblTempUsageDetail_20' ) start [2025-03-11 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655739', 'tblTempUsageDetail_20' ) end [2025-03-11 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655739', 'tblTempVendorCDR_20' ) start [2025-03-11 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655739', 'tblTempVendorCDR_20' ) end [2025-03-11 08:50:18] Production.INFO: ProcessCDR(1,14655739,1,1,2) [2025-03-11 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655739', 'tblTempUsageDetail_20' ) start [2025-03-11 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655739', 'tblTempUsageDetail_20' ) end [2025-03-11 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:50:22] Production.INFO: ==12389== Releasing lock... [2025-03-11 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-11 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:51:05 [end_date_ymd] => 2025-03-11 08:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:51:05' and `end` < '2025-03-11 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-11 08:51:18] Production.INFO: count ==640 [2025-03-11 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:51:05 - End Time 2025-03-11 08:51:05 [2025-03-11 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655745', 'tblTempUsageDetail_20' ) start [2025-03-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655745', 'tblTempUsageDetail_20' ) end [2025-03-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655745', 'tblTempVendorCDR_20' ) start [2025-03-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655745', 'tblTempVendorCDR_20' ) end [2025-03-11 08:51:18] Production.INFO: ProcessCDR(1,14655745,1,1,2) [2025-03-11 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655745', 'tblTempUsageDetail_20' ) start [2025-03-11 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655745', 'tblTempUsageDetail_20' ) end [2025-03-11 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:51:23] Production.INFO: ==12461== Releasing lock... [2025-03-11 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-11 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:52:05 [end_date_ymd] => 2025-03-11 08:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:52:05' and `end` < '2025-03-11 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-11 08:52:17] Production.INFO: count ==645 [2025-03-11 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:52:05 - End Time 2025-03-11 08:52:05 [2025-03-11 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655750', 'tblTempUsageDetail_20' ) start [2025-03-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655750', 'tblTempUsageDetail_20' ) end [2025-03-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655750', 'tblTempVendorCDR_20' ) start [2025-03-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655750', 'tblTempVendorCDR_20' ) end [2025-03-11 08:52:18] Production.INFO: ProcessCDR(1,14655750,1,1,2) [2025-03-11 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655750', 'tblTempUsageDetail_20' ) start [2025-03-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655750', 'tblTempUsageDetail_20' ) end [2025-03-11 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:52:23] Production.INFO: ==12570== Releasing lock... [2025-03-11 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-11 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:53:06 [end_date_ymd] => 2025-03-11 08:53:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:53:06' and `end` < '2025-03-11 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-11 08:53:18] Production.INFO: count ==646 [2025-03-11 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:53:06 - End Time 2025-03-11 08:53:06 [2025-03-11 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655755', 'tblTempUsageDetail_20' ) start [2025-03-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655755', 'tblTempUsageDetail_20' ) end [2025-03-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655755', 'tblTempVendorCDR_20' ) start [2025-03-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655755', 'tblTempVendorCDR_20' ) end [2025-03-11 08:53:18] Production.INFO: ProcessCDR(1,14655755,1,1,2) [2025-03-11 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655755', 'tblTempUsageDetail_20' ) start [2025-03-11 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655755', 'tblTempUsageDetail_20' ) end [2025-03-11 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:53:21] Production.INFO: ==12649== Releasing lock... [2025-03-11 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-11 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:54:05 [end_date_ymd] => 2025-03-11 08:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:54:05' and `end` < '2025-03-11 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-11 08:54:17] Production.INFO: count ==648 [2025-03-11 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:54:05 - End Time 2025-03-11 08:54:05 [2025-03-11 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655760', 'tblTempUsageDetail_20' ) start [2025-03-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655760', 'tblTempUsageDetail_20' ) end [2025-03-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655760', 'tblTempVendorCDR_20' ) start [2025-03-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655760', 'tblTempVendorCDR_20' ) end [2025-03-11 08:54:18] Production.INFO: ProcessCDR(1,14655760,1,1,2) [2025-03-11 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655760', 'tblTempUsageDetail_20' ) start [2025-03-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655760', 'tblTempUsageDetail_20' ) end [2025-03-11 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:54:21] Production.INFO: ==12722== Releasing lock... [2025-03-11 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-11 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:55:06 [end_date_ymd] => 2025-03-11 08:55:06 [RateCDR] => 1 ) [2025-03-11 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-11 05:55:06' and `end` < '2025-03-11 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-11 08:55:18] Production.INFO: count ==651 [2025-03-11 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:55:06 - End Time 2025-03-11 08:55:06 [2025-03-11 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655765', 'tblTempUsageDetail_20' ) start [2025-03-11 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655765', 'tblTempUsageDetail_20' ) end [2025-03-11 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655765', 'tblTempVendorCDR_20' ) start [2025-03-11 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655765', 'tblTempVendorCDR_20' ) end [2025-03-11 08:55:18] Production.INFO: ProcessCDR(1,14655765,1,1,2) [2025-03-11 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655765', 'tblTempUsageDetail_20' ) start [2025-03-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655765', 'tblTempUsageDetail_20' ) end [2025-03-11 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:55:22] Production.INFO: ==12800== Releasing lock... [2025-03-11 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-11 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:56:05 [end_date_ymd] => 2025-03-11 08:56:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:56:05' and `end` < '2025-03-11 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-11 08:56:17] Production.INFO: count ==667 [2025-03-11 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:56:05 - End Time 2025-03-11 08:56:05 [2025-03-11 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655770', 'tblTempUsageDetail_20' ) start [2025-03-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655770', 'tblTempUsageDetail_20' ) end [2025-03-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655770', 'tblTempVendorCDR_20' ) start [2025-03-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655770', 'tblTempVendorCDR_20' ) end [2025-03-11 08:56:17] Production.INFO: ProcessCDR(1,14655770,1,1,2) [2025-03-11 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655770', 'tblTempUsageDetail_20' ) start [2025-03-11 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655770', 'tblTempUsageDetail_20' ) end [2025-03-11 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:56:23] Production.INFO: ==12871== Releasing lock... [2025-03-11 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:56:23] Production.INFO: 34 MB #Memory Used# [2025-03-11 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:57:05 [end_date_ymd] => 2025-03-11 08:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:57:05' and `end` < '2025-03-11 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-11 08:57:17] Production.INFO: count ==675 [2025-03-11 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:57:05 - End Time 2025-03-11 08:57:05 [2025-03-11 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655775', 'tblTempUsageDetail_20' ) start [2025-03-11 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655775', 'tblTempUsageDetail_20' ) end [2025-03-11 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655775', 'tblTempVendorCDR_20' ) start [2025-03-11 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655775', 'tblTempVendorCDR_20' ) end [2025-03-11 08:57:18] Production.INFO: ProcessCDR(1,14655775,1,1,2) [2025-03-11 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655775', 'tblTempUsageDetail_20' ) start [2025-03-11 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655775', 'tblTempUsageDetail_20' ) end [2025-03-11 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:57:23] Production.INFO: ==12941== Releasing lock... [2025-03-11 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-11 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:58:05 [end_date_ymd] => 2025-03-11 08:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:58:05' and `end` < '2025-03-11 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-11 08:58:17] Production.INFO: count ==682 [2025-03-11 08:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 05:58:05 - End Time 2025-03-11 08:58:05 [2025-03-11 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655780', 'tblTempUsageDetail_20' ) start [2025-03-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655780', 'tblTempUsageDetail_20' ) end [2025-03-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655780', 'tblTempVendorCDR_20' ) start [2025-03-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655780', 'tblTempVendorCDR_20' ) end [2025-03-11 08:58:18] Production.INFO: ProcessCDR(1,14655780,1,1,2) [2025-03-11 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655780', 'tblTempUsageDetail_20' ) start [2025-03-11 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655780', 'tblTempUsageDetail_20' ) end [2025-03-11 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:58:22] Production.INFO: ==13011== Releasing lock... [2025-03-11 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:58:22] Production.INFO: 34 MB #Memory Used# [2025-03-11 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 05:59:05 [end_date_ymd] => 2025-03-11 08:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 05:59:05' and `end` < '2025-03-11 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-11 08:59:17] Production.INFO: count ==686 [2025-03-11 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-11 05:59:05 - End Time 2025-03-11 08:59:05 [2025-03-11 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655785', 'tblTempUsageDetail_20' ) start [2025-03-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655785', 'tblTempUsageDetail_20' ) end [2025-03-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655785', 'tblTempVendorCDR_20' ) start [2025-03-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655785', 'tblTempVendorCDR_20' ) end [2025-03-11 08:59:18] Production.INFO: ProcessCDR(1,14655785,1,1,2) [2025-03-11 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655785', 'tblTempUsageDetail_20' ) start [2025-03-11 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655785', 'tblTempUsageDetail_20' ) end [2025-03-11 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 08:59:22] Production.INFO: ==13084== Releasing lock... [2025-03-11 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 08:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-11 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:00:06 [end_date_ymd] => 2025-03-11 09:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:00:06' and `end` < '2025-03-11 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-11 09:00:18] Production.INFO: count ==712 [2025-03-11 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:00:06 - End Time 2025-03-11 09:00:06 [2025-03-11 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655791', 'tblTempUsageDetail_20' ) start [2025-03-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655791', 'tblTempUsageDetail_20' ) end [2025-03-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655791', 'tblTempVendorCDR_20' ) start [2025-03-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655791', 'tblTempVendorCDR_20' ) end [2025-03-11 09:00:18] Production.INFO: ProcessCDR(1,14655791,1,1,2) [2025-03-11 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655791', 'tblTempUsageDetail_20' ) start [2025-03-11 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655791', 'tblTempUsageDetail_20' ) end [2025-03-11 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:00:24] Production.INFO: ==13161== Releasing lock... [2025-03-11 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-11 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:01:05 [end_date_ymd] => 2025-03-11 09:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:01:05' and `end` < '2025-03-11 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-11 09:01:18] Production.INFO: count ==762 [2025-03-11 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:01:05 - End Time 2025-03-11 09:01:05 [2025-03-11 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655796', 'tblTempUsageDetail_20' ) start [2025-03-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655796', 'tblTempUsageDetail_20' ) end [2025-03-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655796', 'tblTempVendorCDR_20' ) start [2025-03-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655796', 'tblTempVendorCDR_20' ) end [2025-03-11 09:01:18] Production.INFO: ProcessCDR(1,14655796,1,1,2) [2025-03-11 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655796', 'tblTempUsageDetail_20' ) start [2025-03-11 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655796', 'tblTempUsageDetail_20' ) end [2025-03-11 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:01:23] Production.INFO: ==13248== Releasing lock... [2025-03-11 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-11 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:02:05 [end_date_ymd] => 2025-03-11 09:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:02:05' and `end` < '2025-03-11 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-11 09:02:18] Production.INFO: count ==774 [2025-03-11 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:02:05 - End Time 2025-03-11 09:02:05 [2025-03-11 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655801', 'tblTempUsageDetail_20' ) start [2025-03-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655801', 'tblTempUsageDetail_20' ) end [2025-03-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655801', 'tblTempVendorCDR_20' ) start [2025-03-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655801', 'tblTempVendorCDR_20' ) end [2025-03-11 09:02:18] Production.INFO: ProcessCDR(1,14655801,1,1,2) [2025-03-11 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655801', 'tblTempUsageDetail_20' ) start [2025-03-11 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655801', 'tblTempUsageDetail_20' ) end [2025-03-11 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:02:23] Production.INFO: ==13318== Releasing lock... [2025-03-11 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:03:06 [end_date_ymd] => 2025-03-11 09:03:06 [RateCDR] => 1 ) [2025-03-11 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:03:06' and `end` < '2025-03-11 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:03:18] Production.INFO: count ==788 [2025-03-11 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:03:06 - End Time 2025-03-11 09:03:06 [2025-03-11 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655806', 'tblTempUsageDetail_20' ) start [2025-03-11 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655806', 'tblTempUsageDetail_20' ) end [2025-03-11 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655806', 'tblTempVendorCDR_20' ) start [2025-03-11 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655806', 'tblTempVendorCDR_20' ) end [2025-03-11 09:03:18] Production.INFO: ProcessCDR(1,14655806,1,1,2) [2025-03-11 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655806', 'tblTempUsageDetail_20' ) start [2025-03-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655806', 'tblTempUsageDetail_20' ) end [2025-03-11 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:03:24] Production.INFO: ==13389== Releasing lock... [2025-03-11 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:04:06 [end_date_ymd] => 2025-03-11 09:04:06 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:04:06' and `end` < '2025-03-11 09: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-11 09:04:18] Production.INFO: count ==813 [2025-03-11 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:04:06 - End Time 2025-03-11 09:04:06 [2025-03-11 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655811', 'tblTempUsageDetail_20' ) start [2025-03-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655811', 'tblTempUsageDetail_20' ) end [2025-03-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655811', 'tblTempVendorCDR_20' ) start [2025-03-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655811', 'tblTempVendorCDR_20' ) end [2025-03-11 09:04:18] Production.INFO: ProcessCDR(1,14655811,1,1,2) [2025-03-11 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655811', 'tblTempUsageDetail_20' ) start [2025-03-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655811', 'tblTempUsageDetail_20' ) end [2025-03-11 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:04:23] Production.INFO: ==13460== Releasing lock... [2025-03-11 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:04:23] Production.INFO: 34 MB #Memory Used# [2025-03-11 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:05:05 [end_date_ymd] => 2025-03-11 09:05:05 [RateCDR] => 1 ) [2025-03-11 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:05:05' and `end` < '2025-03-11 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:05:18] Production.INFO: count ==839 [2025-03-11 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:05:05 - End Time 2025-03-11 09:05:05 [2025-03-11 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655816', 'tblTempUsageDetail_20' ) start [2025-03-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655816', 'tblTempUsageDetail_20' ) end [2025-03-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655816', 'tblTempVendorCDR_20' ) start [2025-03-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655816', 'tblTempVendorCDR_20' ) end [2025-03-11 09:05:18] Production.INFO: ProcessCDR(1,14655816,1,1,2) [2025-03-11 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655816', 'tblTempUsageDetail_20' ) start [2025-03-11 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655816', 'tblTempUsageDetail_20' ) end [2025-03-11 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:05:23] Production.INFO: ==13530== Releasing lock... [2025-03-11 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:06:05 [end_date_ymd] => 2025-03-11 09:06:05 [RateCDR] => 1 ) [2025-03-11 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:06:05' and `end` < '2025-03-11 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:06:18] Production.INFO: count ==846 [2025-03-11 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:06:05 - End Time 2025-03-11 09:06:05 [2025-03-11 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655821', 'tblTempUsageDetail_20' ) start [2025-03-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655821', 'tblTempUsageDetail_20' ) end [2025-03-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655821', 'tblTempVendorCDR_20' ) start [2025-03-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655821', 'tblTempVendorCDR_20' ) end [2025-03-11 09:06:18] Production.INFO: ProcessCDR(1,14655821,1,1,2) [2025-03-11 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655821', 'tblTempUsageDetail_20' ) start [2025-03-11 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655821', 'tblTempUsageDetail_20' ) end [2025-03-11 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:06:23] Production.INFO: ==13601== Releasing lock... [2025-03-11 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:06:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:07:06 [end_date_ymd] => 2025-03-11 09:07:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:07:06' and `end` < '2025-03-11 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-11 09:07:18] Production.INFO: count ==855 [2025-03-11 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:07:06 - End Time 2025-03-11 09:07:06 [2025-03-11 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655826', 'tblTempUsageDetail_20' ) start [2025-03-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655826', 'tblTempUsageDetail_20' ) end [2025-03-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655826', 'tblTempVendorCDR_20' ) start [2025-03-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655826', 'tblTempVendorCDR_20' ) end [2025-03-11 09:07:18] Production.INFO: ProcessCDR(1,14655826,1,1,2) [2025-03-11 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655826', 'tblTempUsageDetail_20' ) start [2025-03-11 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655826', 'tblTempUsageDetail_20' ) end [2025-03-11 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:07:24] Production.INFO: ==13712== Releasing lock... [2025-03-11 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:07:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:08:04 [end_date_ymd] => 2025-03-11 09:08:04 [RateCDR] => 1 ) [2025-03-11 09:08: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-11 06:08:04' and `end` < '2025-03-11 09:08: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-11 09:08:17] Production.INFO: count ==869 [2025-03-11 09:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 06:08:04 - End Time 2025-03-11 09:08:04 [2025-03-11 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655831', 'tblTempUsageDetail_20' ) start [2025-03-11 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655831', 'tblTempUsageDetail_20' ) end [2025-03-11 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655831', 'tblTempVendorCDR_20' ) start [2025-03-11 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655831', 'tblTempVendorCDR_20' ) end [2025-03-11 09:08:17] Production.INFO: ProcessCDR(1,14655831,1,1,2) [2025-03-11 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655831', 'tblTempUsageDetail_20' ) start [2025-03-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655831', 'tblTempUsageDetail_20' ) end [2025-03-11 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:08:22] Production.INFO: ==13784== Releasing lock... [2025-03-11 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:09:05 [end_date_ymd] => 2025-03-11 09:09:05 [RateCDR] => 1 ) [2025-03-11 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:09:05' and `end` < '2025-03-11 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:09:18] Production.INFO: count ==906 [2025-03-11 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:09:05 - End Time 2025-03-11 09:09:05 [2025-03-11 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655836', 'tblTempUsageDetail_20' ) start [2025-03-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655836', 'tblTempUsageDetail_20' ) end [2025-03-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655836', 'tblTempVendorCDR_20' ) start [2025-03-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655836', 'tblTempVendorCDR_20' ) end [2025-03-11 09:09:18] Production.INFO: ProcessCDR(1,14655836,1,1,2) [2025-03-11 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655836', 'tblTempUsageDetail_20' ) start [2025-03-11 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655836', 'tblTempUsageDetail_20' ) end [2025-03-11 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:09:24] Production.INFO: ==13858== Releasing lock... [2025-03-11 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:09:24] Production.INFO: 35 MB #Memory Used# [2025-03-11 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:10:05 [end_date_ymd] => 2025-03-11 09:10:05 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:10:05' and `end` < '2025-03-11 09: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-11 09:10:17] Production.INFO: count ==927 [2025-03-11 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:10:05 - End Time 2025-03-11 09:10:05 [2025-03-11 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655842', 'tblTempUsageDetail_20' ) start [2025-03-11 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655842', 'tblTempUsageDetail_20' ) end [2025-03-11 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655842', 'tblTempVendorCDR_20' ) start [2025-03-11 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655842', 'tblTempVendorCDR_20' ) end [2025-03-11 09:10:18] Production.INFO: ProcessCDR(1,14655842,1,1,2) [2025-03-11 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655842', 'tblTempUsageDetail_20' ) start [2025-03-11 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655842', 'tblTempUsageDetail_20' ) end [2025-03-11 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:10:23] Production.INFO: ==13932== Releasing lock... [2025-03-11 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-11 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:11:05 [end_date_ymd] => 2025-03-11 09:11:05 [RateCDR] => 1 ) [2025-03-11 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:11:05' and `end` < '2025-03-11 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:11:18] Production.INFO: count ==1031 [2025-03-11 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:11:05 - End Time 2025-03-11 09:11:05 [2025-03-11 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655847', 'tblTempUsageDetail_20' ) start [2025-03-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655847', 'tblTempUsageDetail_20' ) end [2025-03-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655847', 'tblTempVendorCDR_20' ) start [2025-03-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655847', 'tblTempVendorCDR_20' ) end [2025-03-11 09:11:18] Production.INFO: ProcessCDR(1,14655847,1,1,2) [2025-03-11 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655847', 'tblTempUsageDetail_20' ) start [2025-03-11 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655847', 'tblTempUsageDetail_20' ) end [2025-03-11 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:11:24] Production.INFO: ==14011== Releasing lock... [2025-03-11 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:11:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:12:05 [end_date_ymd] => 2025-03-11 09:12:05 [RateCDR] => 1 ) [2025-03-11 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:12:05' and `end` < '2025-03-11 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:12:18] Production.INFO: count ==1051 [2025-03-11 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:12:05 - End Time 2025-03-11 09:12:05 [2025-03-11 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655852', 'tblTempUsageDetail_20' ) start [2025-03-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655852', 'tblTempUsageDetail_20' ) end [2025-03-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655852', 'tblTempVendorCDR_20' ) start [2025-03-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655852', 'tblTempVendorCDR_20' ) end [2025-03-11 09:12:18] Production.INFO: ProcessCDR(1,14655852,1,1,2) [2025-03-11 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655852', 'tblTempUsageDetail_20' ) start [2025-03-11 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655852', 'tblTempUsageDetail_20' ) end [2025-03-11 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:12:24] Production.INFO: ==14088== Releasing lock... [2025-03-11 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:12:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:13:06 [end_date_ymd] => 2025-03-11 09:13:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:13:06' and `end` < '2025-03-11 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-11 09:13:18] Production.INFO: count ==1059 [2025-03-11 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:13:06 - End Time 2025-03-11 09:13:06 [2025-03-11 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655857', 'tblTempUsageDetail_20' ) start [2025-03-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655857', 'tblTempUsageDetail_20' ) end [2025-03-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655857', 'tblTempVendorCDR_20' ) start [2025-03-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655857', 'tblTempVendorCDR_20' ) end [2025-03-11 09:13:18] Production.INFO: ProcessCDR(1,14655857,1,1,2) [2025-03-11 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655857', 'tblTempUsageDetail_20' ) start [2025-03-11 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655857', 'tblTempUsageDetail_20' ) end [2025-03-11 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:13:23] Production.INFO: ==14159== Releasing lock... [2025-03-11 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:13:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:14:05 [end_date_ymd] => 2025-03-11 09:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:14:05' and `end` < '2025-03-11 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-11 09:14:18] Production.INFO: count ==1067 [2025-03-11 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:14:05 - End Time 2025-03-11 09:14:05 [2025-03-11 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655862', 'tblTempUsageDetail_20' ) start [2025-03-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655862', 'tblTempUsageDetail_20' ) end [2025-03-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655862', 'tblTempVendorCDR_20' ) start [2025-03-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655862', 'tblTempVendorCDR_20' ) end [2025-03-11 09:14:18] Production.INFO: ProcessCDR(1,14655862,1,1,2) [2025-03-11 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655862', 'tblTempUsageDetail_20' ) start [2025-03-11 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655862', 'tblTempUsageDetail_20' ) end [2025-03-11 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:14:22] Production.INFO: ==14230== Releasing lock... [2025-03-11 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:15:05 [end_date_ymd] => 2025-03-11 09:15:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:15:05' and `end` < '2025-03-11 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-11 09:15:18] Production.INFO: count ==1080 [2025-03-11 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:15:05 - End Time 2025-03-11 09:15:05 [2025-03-11 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655867', 'tblTempUsageDetail_20' ) start [2025-03-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655867', 'tblTempUsageDetail_20' ) end [2025-03-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655867', 'tblTempVendorCDR_20' ) start [2025-03-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655867', 'tblTempVendorCDR_20' ) end [2025-03-11 09:15:18] Production.INFO: ProcessCDR(1,14655867,1,1,2) [2025-03-11 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655867', 'tblTempUsageDetail_20' ) start [2025-03-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655867', 'tblTempUsageDetail_20' ) end [2025-03-11 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:15:23] Production.INFO: ==14302== Releasing lock... [2025-03-11 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:16:05 [end_date_ymd] => 2025-03-11 09:16:05 [RateCDR] => 1 ) [2025-03-11 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:16:05' and `end` < '2025-03-11 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:16:17] Production.INFO: count ==1099 [2025-03-11 09:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 06:16:05 - End Time 2025-03-11 09:16:05 [2025-03-11 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655872', 'tblTempUsageDetail_20' ) start [2025-03-11 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655872', 'tblTempUsageDetail_20' ) end [2025-03-11 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655872', 'tblTempVendorCDR_20' ) start [2025-03-11 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655872', 'tblTempVendorCDR_20' ) end [2025-03-11 09:16:17] Production.INFO: ProcessCDR(1,14655872,1,1,2) [2025-03-11 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655872', 'tblTempUsageDetail_20' ) start [2025-03-11 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655872', 'tblTempUsageDetail_20' ) end [2025-03-11 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:16:21] Production.INFO: ==14371== Releasing lock... [2025-03-11 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:16:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:17:05 [end_date_ymd] => 2025-03-11 09:17:05 [RateCDR] => 1 ) [2025-03-11 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:17:05' and `end` < '2025-03-11 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:17:18] Production.INFO: count ==1114 [2025-03-11 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:17:05 - End Time 2025-03-11 09:17:05 [2025-03-11 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655877', 'tblTempUsageDetail_20' ) start [2025-03-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655877', 'tblTempUsageDetail_20' ) end [2025-03-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655877', 'tblTempVendorCDR_20' ) start [2025-03-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655877', 'tblTempVendorCDR_20' ) end [2025-03-11 09:17:18] Production.INFO: ProcessCDR(1,14655877,1,1,2) [2025-03-11 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655877', 'tblTempUsageDetail_20' ) start [2025-03-11 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655877', 'tblTempUsageDetail_20' ) end [2025-03-11 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:17:23] Production.INFO: ==14442== Releasing lock... [2025-03-11 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:17:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:18:05 [end_date_ymd] => 2025-03-11 09:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:18:05' and `end` < '2025-03-11 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-11 09:18:17] Production.INFO: count ==1119 [2025-03-11 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:18:05 - End Time 2025-03-11 09:18:05 [2025-03-11 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655882', 'tblTempUsageDetail_20' ) start [2025-03-11 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655882', 'tblTempUsageDetail_20' ) end [2025-03-11 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655882', 'tblTempVendorCDR_20' ) start [2025-03-11 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655882', 'tblTempVendorCDR_20' ) end [2025-03-11 09:18:18] Production.INFO: ProcessCDR(1,14655882,1,1,2) [2025-03-11 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655882', 'tblTempUsageDetail_20' ) start [2025-03-11 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655882', 'tblTempUsageDetail_20' ) end [2025-03-11 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:18:23] Production.INFO: ==14525== Releasing lock... [2025-03-11 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:18:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:19:05 [end_date_ymd] => 2025-03-11 09:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:19:05' and `end` < '2025-03-11 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-11 09:19:17] Production.INFO: count ==1142 [2025-03-11 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:19:05 - End Time 2025-03-11 09:19:05 [2025-03-11 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655887', 'tblTempUsageDetail_20' ) start [2025-03-11 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655887', 'tblTempUsageDetail_20' ) end [2025-03-11 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655887', 'tblTempVendorCDR_20' ) start [2025-03-11 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655887', 'tblTempVendorCDR_20' ) end [2025-03-11 09:19:18] Production.INFO: ProcessCDR(1,14655887,1,1,2) [2025-03-11 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655887', 'tblTempUsageDetail_20' ) start [2025-03-11 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655887', 'tblTempUsageDetail_20' ) end [2025-03-11 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:19:21] Production.INFO: ==14599== Releasing lock... [2025-03-11 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:20:07 [end_date_ymd] => 2025-03-11 09:20:07 [RateCDR] => 1 ) [2025-03-11 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:20:07' and `end` < '2025-03-11 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:20:19] Production.INFO: count ==1179 [2025-03-11 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:20:07 - End Time 2025-03-11 09:20:07 [2025-03-11 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655893', 'tblTempUsageDetail_20' ) start [2025-03-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655893', 'tblTempUsageDetail_20' ) end [2025-03-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655893', 'tblTempVendorCDR_20' ) start [2025-03-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655893', 'tblTempVendorCDR_20' ) end [2025-03-11 09:20:19] Production.INFO: ProcessCDR(1,14655893,1,1,2) [2025-03-11 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655893', 'tblTempUsageDetail_20' ) start [2025-03-11 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655893', 'tblTempUsageDetail_20' ) end [2025-03-11 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:20:25] Production.INFO: ==14674== Releasing lock... [2025-03-11 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:21:05 [end_date_ymd] => 2025-03-11 09:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:21:05' and `end` < '2025-03-11 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-11 09:21:17] Production.INFO: count ==1260 [2025-03-11 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:21:05 - End Time 2025-03-11 09:21:05 [2025-03-11 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655898', 'tblTempUsageDetail_20' ) start [2025-03-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655898', 'tblTempUsageDetail_20' ) end [2025-03-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655898', 'tblTempVendorCDR_20' ) start [2025-03-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655898', 'tblTempVendorCDR_20' ) end [2025-03-11 09:21:18] Production.INFO: ProcessCDR(1,14655898,1,1,2) [2025-03-11 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655898', 'tblTempUsageDetail_20' ) start [2025-03-11 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655898', 'tblTempUsageDetail_20' ) end [2025-03-11 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:21:23] Production.INFO: ==14749== Releasing lock... [2025-03-11 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:22:06 [end_date_ymd] => 2025-03-11 09:22:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:22:06' and `end` < '2025-03-11 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-11 09:22:18] Production.INFO: count ==1273 [2025-03-11 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:22:06 - End Time 2025-03-11 09:22:06 [2025-03-11 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655903', 'tblTempUsageDetail_20' ) start [2025-03-11 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655903', 'tblTempUsageDetail_20' ) end [2025-03-11 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655903', 'tblTempVendorCDR_20' ) start [2025-03-11 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655903', 'tblTempVendorCDR_20' ) end [2025-03-11 09:22:19] Production.INFO: ProcessCDR(1,14655903,1,1,2) [2025-03-11 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655903', 'tblTempUsageDetail_20' ) start [2025-03-11 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655903', 'tblTempUsageDetail_20' ) end [2025-03-11 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:22:24] Production.INFO: ==14821== Releasing lock... [2025-03-11 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:23:05 [end_date_ymd] => 2025-03-11 09:23:05 [RateCDR] => 1 ) [2025-03-11 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:23:05' and `end` < '2025-03-11 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:23:17] Production.INFO: count ==1291 [2025-03-11 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 06:23:05 - End Time 2025-03-11 09:23:05 [2025-03-11 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655908', 'tblTempUsageDetail_20' ) start [2025-03-11 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655908', 'tblTempUsageDetail_20' ) end [2025-03-11 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655908', 'tblTempVendorCDR_20' ) start [2025-03-11 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655908', 'tblTempVendorCDR_20' ) end [2025-03-11 09:23:17] Production.INFO: ProcessCDR(1,14655908,1,1,2) [2025-03-11 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655908', 'tblTempUsageDetail_20' ) start [2025-03-11 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655908', 'tblTempUsageDetail_20' ) end [2025-03-11 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:23:22] Production.INFO: ==14932== Releasing lock... [2025-03-11 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:23:22] Production.INFO: 38 MB #Memory Used# [2025-03-11 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:24:05 [end_date_ymd] => 2025-03-11 09:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:24:05' and `end` < '2025-03-11 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:24:18] Production.INFO: count ==1302 [2025-03-11 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:24:05 - End Time 2025-03-11 09:24:05 [2025-03-11 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655913', 'tblTempUsageDetail_20' ) start [2025-03-11 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655913', 'tblTempUsageDetail_20' ) end [2025-03-11 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655913', 'tblTempVendorCDR_20' ) start [2025-03-11 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655913', 'tblTempVendorCDR_20' ) end [2025-03-11 09:24:18] Production.INFO: ProcessCDR(1,14655913,1,1,2) [2025-03-11 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655913', 'tblTempUsageDetail_20' ) start [2025-03-11 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655913', 'tblTempUsageDetail_20' ) end [2025-03-11 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:24:23] Production.INFO: ==15004== Releasing lock... [2025-03-11 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:24:23] Production.INFO: 38 MB #Memory Used# [2025-03-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:25:05 [end_date_ymd] => 2025-03-11 09:25:05 [RateCDR] => 1 ) [2025-03-11 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:25:05' and `end` < '2025-03-11 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:25:18] Production.INFO: count ==1308 [2025-03-11 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:25:05 - End Time 2025-03-11 09:25:05 [2025-03-11 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655918', 'tblTempUsageDetail_20' ) start [2025-03-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655918', 'tblTempUsageDetail_20' ) end [2025-03-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655918', 'tblTempVendorCDR_20' ) start [2025-03-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655918', 'tblTempVendorCDR_20' ) end [2025-03-11 09:25:18] Production.INFO: ProcessCDR(1,14655918,1,1,2) [2025-03-11 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655918', 'tblTempUsageDetail_20' ) start [2025-03-11 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655918', 'tblTempUsageDetail_20' ) end [2025-03-11 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:25:24] Production.INFO: ==15076== Releasing lock... [2025-03-11 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:25:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:26:06 [end_date_ymd] => 2025-03-11 09:26:06 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:26:06' and `end` < '2025-03-11 09: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-11 09:26:18] Production.INFO: count ==1314 [2025-03-11 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:26:06 - End Time 2025-03-11 09:26:06 [2025-03-11 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655923', 'tblTempUsageDetail_20' ) start [2025-03-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655923', 'tblTempUsageDetail_20' ) end [2025-03-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655923', 'tblTempVendorCDR_20' ) start [2025-03-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655923', 'tblTempVendorCDR_20' ) end [2025-03-11 09:26:19] Production.INFO: ProcessCDR(1,14655923,1,1,2) [2025-03-11 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655923', 'tblTempUsageDetail_20' ) start [2025-03-11 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655923', 'tblTempUsageDetail_20' ) end [2025-03-11 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:26:23] Production.INFO: ==15148== Releasing lock... [2025-03-11 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:26:23] Production.INFO: 38 MB #Memory Used# [2025-03-11 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:27:05 [end_date_ymd] => 2025-03-11 09:27:05 [RateCDR] => 1 ) [2025-03-11 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:27:05' and `end` < '2025-03-11 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:27:18] Production.INFO: count ==1336 [2025-03-11 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:27:05 - End Time 2025-03-11 09:27:05 [2025-03-11 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655928', 'tblTempUsageDetail_20' ) start [2025-03-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655928', 'tblTempUsageDetail_20' ) end [2025-03-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655928', 'tblTempVendorCDR_20' ) start [2025-03-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655928', 'tblTempVendorCDR_20' ) end [2025-03-11 09:27:18] Production.INFO: ProcessCDR(1,14655928,1,1,2) [2025-03-11 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655928', 'tblTempUsageDetail_20' ) start [2025-03-11 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655928', 'tblTempUsageDetail_20' ) end [2025-03-11 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:27:24] Production.INFO: ==15219== Releasing lock... [2025-03-11 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:27:24] Production.INFO: 38 MB #Memory Used# [2025-03-11 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:28:05 [end_date_ymd] => 2025-03-11 09:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:28:05' and `end` < '2025-03-11 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-11 09:28:18] Production.INFO: count ==1341 [2025-03-11 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:28:05 - End Time 2025-03-11 09:28:05 [2025-03-11 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655933', 'tblTempUsageDetail_20' ) start [2025-03-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655933', 'tblTempUsageDetail_20' ) end [2025-03-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655933', 'tblTempVendorCDR_20' ) start [2025-03-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655933', 'tblTempVendorCDR_20' ) end [2025-03-11 09:28:18] Production.INFO: ProcessCDR(1,14655933,1,1,2) [2025-03-11 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655933', 'tblTempUsageDetail_20' ) start [2025-03-11 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655933', 'tblTempUsageDetail_20' ) end [2025-03-11 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:28:24] Production.INFO: ==15293== Releasing lock... [2025-03-11 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-03-11 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:29:05 [end_date_ymd] => 2025-03-11 09:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:29:05' and `end` < '2025-03-11 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-11 09:29:18] Production.INFO: count ==1377 [2025-03-11 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:29:05 - End Time 2025-03-11 09:29:05 [2025-03-11 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655938', 'tblTempUsageDetail_20' ) start [2025-03-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655938', 'tblTempUsageDetail_20' ) end [2025-03-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655938', 'tblTempVendorCDR_20' ) start [2025-03-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655938', 'tblTempVendorCDR_20' ) end [2025-03-11 09:29:18] Production.INFO: ProcessCDR(1,14655938,1,1,2) [2025-03-11 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655938', 'tblTempUsageDetail_20' ) start [2025-03-11 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655938', 'tblTempUsageDetail_20' ) end [2025-03-11 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:29:22] Production.INFO: ==15365== Releasing lock... [2025-03-11 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-11 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:30:06 [end_date_ymd] => 2025-03-11 09:30:06 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:30:06' and `end` < '2025-03-11 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-11 09:30:19] Production.INFO: count ==1414 [2025-03-11 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-11 06:30:06 - End Time 2025-03-11 09:30:06 [2025-03-11 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655944', 'tblTempUsageDetail_20' ) start [2025-03-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655944', 'tblTempUsageDetail_20' ) end [2025-03-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655944', 'tblTempVendorCDR_20' ) start [2025-03-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655944', 'tblTempVendorCDR_20' ) end [2025-03-11 09:30:20] Production.INFO: ProcessCDR(1,14655944,1,1,2) [2025-03-11 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655944', 'tblTempUsageDetail_20' ) start [2025-03-11 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655944', 'tblTempUsageDetail_20' ) end [2025-03-11 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:30:25] Production.INFO: ==15438== Releasing lock... [2025-03-11 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:30:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:31:04 [end_date_ymd] => 2025-03-11 09:31:04 [RateCDR] => 1 ) [2025-03-11 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:31:04' and `end` < '2025-03-11 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:31:17] Production.INFO: count ==1518 [2025-03-11 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 06:31:04 - End Time 2025-03-11 09:31:04 [2025-03-11 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655949', 'tblTempUsageDetail_20' ) start [2025-03-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655949', 'tblTempUsageDetail_20' ) end [2025-03-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655949', 'tblTempVendorCDR_20' ) start [2025-03-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655949', 'tblTempVendorCDR_20' ) end [2025-03-11 09:31:18] Production.INFO: ProcessCDR(1,14655949,1,1,2) [2025-03-11 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655949', 'tblTempUsageDetail_20' ) start [2025-03-11 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655949', 'tblTempUsageDetail_20' ) end [2025-03-11 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:31:23] Production.INFO: ==15517== Releasing lock... [2025-03-11 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:31:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:32:06 [end_date_ymd] => 2025-03-11 09:32:06 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:32:06' and `end` < '2025-03-11 09: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-11 09:32:18] Production.INFO: count ==1525 [2025-03-11 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:32:06 - End Time 2025-03-11 09:32:06 [2025-03-11 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655954', 'tblTempUsageDetail_20' ) start [2025-03-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655954', 'tblTempUsageDetail_20' ) end [2025-03-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655954', 'tblTempVendorCDR_20' ) start [2025-03-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655954', 'tblTempVendorCDR_20' ) end [2025-03-11 09:32:19] Production.INFO: ProcessCDR(1,14655954,1,1,2) [2025-03-11 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655954', 'tblTempUsageDetail_20' ) start [2025-03-11 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655954', 'tblTempUsageDetail_20' ) end [2025-03-11 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:32:24] Production.INFO: ==15588== Releasing lock... [2025-03-11 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:32:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-11 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:33:05 [end_date_ymd] => 2025-03-11 09:33:05 [RateCDR] => 1 ) [2025-03-11 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:33:05' and `end` < '2025-03-11 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:33:17] Production.INFO: count ==1545 [2025-03-11 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:33:05 - End Time 2025-03-11 09:33:05 [2025-03-11 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655958', 'tblTempUsageDetail_20' ) start [2025-03-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655958', 'tblTempUsageDetail_20' ) end [2025-03-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655958', 'tblTempVendorCDR_20' ) start [2025-03-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655958', 'tblTempVendorCDR_20' ) end [2025-03-11 09:33:18] Production.INFO: ProcessCDR(1,14655958,1,1,2) [2025-03-11 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655958', 'tblTempUsageDetail_20' ) start [2025-03-11 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655958', 'tblTempUsageDetail_20' ) end [2025-03-11 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:33:24] Production.INFO: ==15659== Releasing lock... [2025-03-11 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:33:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:34:06 [end_date_ymd] => 2025-03-11 09:34:06 [RateCDR] => 1 ) [2025-03-11 09: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-11 06:34:06' and `end` < '2025-03-11 09: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-11 09:34:18] Production.INFO: count ==1566 [2025-03-11 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:34:06 - End Time 2025-03-11 09:34:06 [2025-03-11 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655964', 'tblTempUsageDetail_20' ) start [2025-03-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655964', 'tblTempUsageDetail_20' ) end [2025-03-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655964', 'tblTempVendorCDR_20' ) start [2025-03-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655964', 'tblTempVendorCDR_20' ) end [2025-03-11 09:34:19] Production.INFO: ProcessCDR(1,14655964,1,1,2) [2025-03-11 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655964', 'tblTempUsageDetail_20' ) start [2025-03-11 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655964', 'tblTempUsageDetail_20' ) end [2025-03-11 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:34:25] Production.INFO: ==15736== Releasing lock... [2025-03-11 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:34:25] Production.INFO: 40 MB #Memory Used# [2025-03-11 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:35:05 [end_date_ymd] => 2025-03-11 09:35:05 [RateCDR] => 1 ) [2025-03-11 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:35:05' and `end` < '2025-03-11 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:35:17] Production.INFO: count ==1589 [2025-03-11 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:35:05 - End Time 2025-03-11 09:35:05 [2025-03-11 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655969', 'tblTempUsageDetail_20' ) start [2025-03-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655969', 'tblTempUsageDetail_20' ) end [2025-03-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655969', 'tblTempVendorCDR_20' ) start [2025-03-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655969', 'tblTempVendorCDR_20' ) end [2025-03-11 09:35:18] Production.INFO: ProcessCDR(1,14655969,1,1,2) [2025-03-11 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655969', 'tblTempUsageDetail_20' ) start [2025-03-11 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655969', 'tblTempUsageDetail_20' ) end [2025-03-11 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:35:23] Production.INFO: ==15805== Releasing lock... [2025-03-11 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:35:23] Production.INFO: 40 MB #Memory Used# [2025-03-11 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:36:06 [end_date_ymd] => 2025-03-11 09:36:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:36:06' and `end` < '2025-03-11 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-11 09:36:18] Production.INFO: count ==1623 [2025-03-11 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:36:06 - End Time 2025-03-11 09:36:06 [2025-03-11 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655974', 'tblTempUsageDetail_20' ) start [2025-03-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655974', 'tblTempUsageDetail_20' ) end [2025-03-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655974', 'tblTempVendorCDR_20' ) start [2025-03-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655974', 'tblTempVendorCDR_20' ) end [2025-03-11 09:36:19] Production.INFO: ProcessCDR(1,14655974,1,1,2) [2025-03-11 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655974', 'tblTempUsageDetail_20' ) start [2025-03-11 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655974', 'tblTempUsageDetail_20' ) end [2025-03-11 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:36:25] Production.INFO: ==15876== Releasing lock... [2025-03-11 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:36:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:37:05 [end_date_ymd] => 2025-03-11 09:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:37:05' and `end` < '2025-03-11 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-11 09:37:18] Production.INFO: count ==1630 [2025-03-11 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:37:05 - End Time 2025-03-11 09:37:05 [2025-03-11 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655979', 'tblTempUsageDetail_20' ) start [2025-03-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655979', 'tblTempUsageDetail_20' ) end [2025-03-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655979', 'tblTempVendorCDR_20' ) start [2025-03-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655979', 'tblTempVendorCDR_20' ) end [2025-03-11 09:37:19] Production.INFO: ProcessCDR(1,14655979,1,1,2) [2025-03-11 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655979', 'tblTempUsageDetail_20' ) start [2025-03-11 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655979', 'tblTempUsageDetail_20' ) end [2025-03-11 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:37:24] Production.INFO: ==15949== Releasing lock... [2025-03-11 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:37:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:38:05 [end_date_ymd] => 2025-03-11 09:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:38:05' and `end` < '2025-03-11 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-11 09:38:17] Production.INFO: count ==1636 [2025-03-11 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:38:05 - End Time 2025-03-11 09:38:05 [2025-03-11 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655984', 'tblTempUsageDetail_20' ) start [2025-03-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655984', 'tblTempUsageDetail_20' ) end [2025-03-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655984', 'tblTempVendorCDR_20' ) start [2025-03-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655984', 'tblTempVendorCDR_20' ) end [2025-03-11 09:38:18] Production.INFO: ProcessCDR(1,14655984,1,1,2) [2025-03-11 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655984', 'tblTempUsageDetail_20' ) start [2025-03-11 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655984', 'tblTempUsageDetail_20' ) end [2025-03-11 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:38:23] Production.INFO: ==16058== Releasing lock... [2025-03-11 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:39:05 [end_date_ymd] => 2025-03-11 09:39:05 [RateCDR] => 1 ) [2025-03-11 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:39:05' and `end` < '2025-03-11 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:39:18] Production.INFO: count ==1639 [2025-03-11 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:39:05 - End Time 2025-03-11 09:39:05 [2025-03-11 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655989', 'tblTempUsageDetail_20' ) start [2025-03-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655989', 'tblTempUsageDetail_20' ) end [2025-03-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655989', 'tblTempVendorCDR_20' ) start [2025-03-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655989', 'tblTempVendorCDR_20' ) end [2025-03-11 09:39:18] Production.INFO: ProcessCDR(1,14655989,1,1,2) [2025-03-11 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655989', 'tblTempUsageDetail_20' ) start [2025-03-11 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655989', 'tblTempUsageDetail_20' ) end [2025-03-11 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:39:23] Production.INFO: ==16130== Releasing lock... [2025-03-11 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:39:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:40:06 [end_date_ymd] => 2025-03-11 09:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:40:06' and `end` < '2025-03-11 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-11 09:40:19] Production.INFO: count ==1668 [2025-03-11 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:40:06 - End Time 2025-03-11 09:40:06 [2025-03-11 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655995', 'tblTempUsageDetail_20' ) start [2025-03-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14655995', 'tblTempUsageDetail_20' ) end [2025-03-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655995', 'tblTempVendorCDR_20' ) start [2025-03-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14655995', 'tblTempVendorCDR_20' ) end [2025-03-11 09:40:19] Production.INFO: ProcessCDR(1,14655995,1,1,2) [2025-03-11 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14655995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14655995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14655995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14655995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655995', 'tblTempUsageDetail_20' ) start [2025-03-11 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14655995', 'tblTempUsageDetail_20' ) end [2025-03-11 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:40:24] Production.INFO: ==16203== Releasing lock... [2025-03-11 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:40:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-11 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:41:05 [end_date_ymd] => 2025-03-11 09:41:05 [RateCDR] => 1 ) [2025-03-11 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:41:05' and `end` < '2025-03-11 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:41:18] Production.INFO: count ==1713 [2025-03-11 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:41:05 - End Time 2025-03-11 09:41:05 [2025-03-11 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656000', 'tblTempUsageDetail_20' ) start [2025-03-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656000', 'tblTempUsageDetail_20' ) end [2025-03-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656000', 'tblTempVendorCDR_20' ) start [2025-03-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656000', 'tblTempVendorCDR_20' ) end [2025-03-11 09:41:18] Production.INFO: ProcessCDR(1,14656000,1,1,2) [2025-03-11 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656000', 'tblTempUsageDetail_20' ) start [2025-03-11 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656000', 'tblTempUsageDetail_20' ) end [2025-03-11 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:41:24] Production.INFO: ==16275== Releasing lock... [2025-03-11 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:41:24] Production.INFO: 41 MB #Memory Used# [2025-03-11 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:42:05 [end_date_ymd] => 2025-03-11 09:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:42:05' and `end` < '2025-03-11 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-11 09:42:18] Production.INFO: count ==1713 [2025-03-11 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:42:05 - End Time 2025-03-11 09:42:05 [2025-03-11 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656005', 'tblTempUsageDetail_20' ) start [2025-03-11 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656005', 'tblTempUsageDetail_20' ) end [2025-03-11 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656005', 'tblTempVendorCDR_20' ) start [2025-03-11 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656005', 'tblTempVendorCDR_20' ) end [2025-03-11 09:42:18] Production.INFO: ProcessCDR(1,14656005,1,1,2) [2025-03-11 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656005', 'tblTempUsageDetail_20' ) start [2025-03-11 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656005', 'tblTempUsageDetail_20' ) end [2025-03-11 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:42:22] Production.INFO: ==16348== Releasing lock... [2025-03-11 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:42:22] Production.INFO: 41 MB #Memory Used# [2025-03-11 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:43:05 [end_date_ymd] => 2025-03-11 09:43:05 [RateCDR] => 1 ) [2025-03-11 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:43:05' and `end` < '2025-03-11 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:43:18] Production.INFO: count ==1726 [2025-03-11 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:43:05 - End Time 2025-03-11 09:43:05 [2025-03-11 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656010', 'tblTempUsageDetail_20' ) start [2025-03-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656010', 'tblTempUsageDetail_20' ) end [2025-03-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656010', 'tblTempVendorCDR_20' ) start [2025-03-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656010', 'tblTempVendorCDR_20' ) end [2025-03-11 09:43:19] Production.INFO: ProcessCDR(1,14656010,1,1,2) [2025-03-11 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656010', 'tblTempUsageDetail_20' ) start [2025-03-11 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656010', 'tblTempUsageDetail_20' ) end [2025-03-11 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:43:24] Production.INFO: ==16419== Releasing lock... [2025-03-11 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:44:05 [end_date_ymd] => 2025-03-11 09:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:44:05' and `end` < '2025-03-11 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-11 09:44:18] Production.INFO: count ==1734 [2025-03-11 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:44:05 - End Time 2025-03-11 09:44:05 [2025-03-11 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656015', 'tblTempUsageDetail_20' ) start [2025-03-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656015', 'tblTempUsageDetail_20' ) end [2025-03-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656015', 'tblTempVendorCDR_20' ) start [2025-03-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656015', 'tblTempVendorCDR_20' ) end [2025-03-11 09:44:18] Production.INFO: ProcessCDR(1,14656015,1,1,2) [2025-03-11 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656015', 'tblTempUsageDetail_20' ) start [2025-03-11 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656015', 'tblTempUsageDetail_20' ) end [2025-03-11 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:44:24] Production.INFO: ==16489== Releasing lock... [2025-03-11 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:44:24] Production.INFO: 41 MB #Memory Used# [2025-03-11 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:45:05 [end_date_ymd] => 2025-03-11 09:45:05 [RateCDR] => 1 ) [2025-03-11 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:45:05' and `end` < '2025-03-11 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:45:17] Production.INFO: count ==1741 [2025-03-11 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:45:05 - End Time 2025-03-11 09:45:05 [2025-03-11 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656020', 'tblTempUsageDetail_20' ) start [2025-03-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656020', 'tblTempUsageDetail_20' ) end [2025-03-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656020', 'tblTempVendorCDR_20' ) start [2025-03-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656020', 'tblTempVendorCDR_20' ) end [2025-03-11 09:45:18] Production.INFO: ProcessCDR(1,14656020,1,1,2) [2025-03-11 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656020', 'tblTempUsageDetail_20' ) start [2025-03-11 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656020', 'tblTempUsageDetail_20' ) end [2025-03-11 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:45:22] Production.INFO: ==16561== Releasing lock... [2025-03-11 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:45:22] Production.INFO: 41 MB #Memory Used# [2025-03-11 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:46:05 [end_date_ymd] => 2025-03-11 09:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:46:05' and `end` < '2025-03-11 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-11 09:46:18] Production.INFO: count ==1755 [2025-03-11 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:46:05 - End Time 2025-03-11 09:46:05 [2025-03-11 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656025', 'tblTempUsageDetail_20' ) start [2025-03-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656025', 'tblTempUsageDetail_20' ) end [2025-03-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656025', 'tblTempVendorCDR_20' ) start [2025-03-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656025', 'tblTempVendorCDR_20' ) end [2025-03-11 09:46:18] Production.INFO: ProcessCDR(1,14656025,1,1,2) [2025-03-11 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656025', 'tblTempUsageDetail_20' ) start [2025-03-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656025', 'tblTempUsageDetail_20' ) end [2025-03-11 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:46:23] Production.INFO: ==16631== Releasing lock... [2025-03-11 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:46:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:47:05 [end_date_ymd] => 2025-03-11 09:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:47:05' and `end` < '2025-03-11 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-11 09:47:17] Production.INFO: count ==1770 [2025-03-11 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:47:05 - End Time 2025-03-11 09:47:05 [2025-03-11 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656030', 'tblTempUsageDetail_20' ) start [2025-03-11 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656030', 'tblTempUsageDetail_20' ) end [2025-03-11 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656030', 'tblTempVendorCDR_20' ) start [2025-03-11 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656030', 'tblTempVendorCDR_20' ) end [2025-03-11 09:47:18] Production.INFO: ProcessCDR(1,14656030,1,1,2) [2025-03-11 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656030', 'tblTempUsageDetail_20' ) start [2025-03-11 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656030', 'tblTempUsageDetail_20' ) end [2025-03-11 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:47:23] Production.INFO: ==16701== Releasing lock... [2025-03-11 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:47:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:48:05 [end_date_ymd] => 2025-03-11 09:48:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:48:05' and `end` < '2025-03-11 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-11 09:48:17] Production.INFO: count ==1781 [2025-03-11 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:48:05 - End Time 2025-03-11 09:48:05 [2025-03-11 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656035', 'tblTempUsageDetail_20' ) start [2025-03-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656035', 'tblTempUsageDetail_20' ) end [2025-03-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656035', 'tblTempVendorCDR_20' ) start [2025-03-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656035', 'tblTempVendorCDR_20' ) end [2025-03-11 09:48:18] Production.INFO: ProcessCDR(1,14656035,1,1,2) [2025-03-11 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656035', 'tblTempUsageDetail_20' ) start [2025-03-11 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656035', 'tblTempUsageDetail_20' ) end [2025-03-11 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:48:23] Production.INFO: ==16772== Releasing lock... [2025-03-11 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:49:05 [end_date_ymd] => 2025-03-11 09:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:49:05' and `end` < '2025-03-11 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-11 09:49:17] Production.INFO: count ==1805 [2025-03-11 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:49:05 - End Time 2025-03-11 09:49:05 [2025-03-11 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656040', 'tblTempUsageDetail_20' ) start [2025-03-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656040', 'tblTempUsageDetail_20' ) end [2025-03-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656040', 'tblTempVendorCDR_20' ) start [2025-03-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656040', 'tblTempVendorCDR_20' ) end [2025-03-11 09:49:18] Production.INFO: ProcessCDR(1,14656040,1,1,2) [2025-03-11 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656040', 'tblTempUsageDetail_20' ) start [2025-03-11 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656040', 'tblTempUsageDetail_20' ) end [2025-03-11 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:49:23] Production.INFO: ==16844== Releasing lock... [2025-03-11 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:49:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-11 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:50:06 [end_date_ymd] => 2025-03-11 09:50:06 [RateCDR] => 1 ) [2025-03-11 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:50:06' and `end` < '2025-03-11 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:50:19] Production.INFO: count ==1837 [2025-03-11 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:50:06 - End Time 2025-03-11 09:50:06 [2025-03-11 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656046', 'tblTempUsageDetail_20' ) start [2025-03-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656046', 'tblTempUsageDetail_20' ) end [2025-03-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656046', 'tblTempVendorCDR_20' ) start [2025-03-11 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656046', 'tblTempVendorCDR_20' ) end [2025-03-11 09:50:20] Production.INFO: ProcessCDR(1,14656046,1,1,2) [2025-03-11 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656046', 'tblTempUsageDetail_20' ) start [2025-03-11 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656046', 'tblTempUsageDetail_20' ) end [2025-03-11 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:50:23] Production.INFO: ==16920== Releasing lock... [2025-03-11 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:50:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-11 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:51:05 [end_date_ymd] => 2025-03-11 09:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:51:05' and `end` < '2025-03-11 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-11 09:51:17] Production.INFO: count ==1914 [2025-03-11 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:51:05 - End Time 2025-03-11 09:51:05 [2025-03-11 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656051', 'tblTempUsageDetail_20' ) start [2025-03-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656051', 'tblTempUsageDetail_20' ) end [2025-03-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656051', 'tblTempVendorCDR_20' ) start [2025-03-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656051', 'tblTempVendorCDR_20' ) end [2025-03-11 09:51:18] Production.INFO: ProcessCDR(1,14656051,1,1,2) [2025-03-11 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656051', 'tblTempUsageDetail_20' ) start [2025-03-11 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656051', 'tblTempUsageDetail_20' ) end [2025-03-11 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:51:24] Production.INFO: ==16998== Releasing lock... [2025-03-11 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:51:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:52:06 [end_date_ymd] => 2025-03-11 09:52:06 [RateCDR] => 1 ) [2025-03-11 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:52:06' and `end` < '2025-03-11 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:52:18] Production.INFO: count ==1950 [2025-03-11 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:52:06 - End Time 2025-03-11 09:52:06 [2025-03-11 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656056', 'tblTempUsageDetail_20' ) start [2025-03-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656056', 'tblTempUsageDetail_20' ) end [2025-03-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656056', 'tblTempVendorCDR_20' ) start [2025-03-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656056', 'tblTempVendorCDR_20' ) end [2025-03-11 09:52:19] Production.INFO: ProcessCDR(1,14656056,1,1,2) [2025-03-11 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656056', 'tblTempUsageDetail_20' ) start [2025-03-11 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656056', 'tblTempUsageDetail_20' ) end [2025-03-11 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:52:24] Production.INFO: ==17069== Releasing lock... [2025-03-11 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:52:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:53:05 [end_date_ymd] => 2025-03-11 09:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:53:05' and `end` < '2025-03-11 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-11 09:53:18] Production.INFO: count ==1952 [2025-03-11 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:53:05 - End Time 2025-03-11 09:53:05 [2025-03-11 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656061', 'tblTempUsageDetail_20' ) start [2025-03-11 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656061', 'tblTempUsageDetail_20' ) end [2025-03-11 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656061', 'tblTempVendorCDR_20' ) start [2025-03-11 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656061', 'tblTempVendorCDR_20' ) end [2025-03-11 09:53:18] Production.INFO: ProcessCDR(1,14656061,1,1,2) [2025-03-11 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656061', 'tblTempUsageDetail_20' ) start [2025-03-11 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656061', 'tblTempUsageDetail_20' ) end [2025-03-11 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:53:23] Production.INFO: ==17139== Releasing lock... [2025-03-11 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:53:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:54:05 [end_date_ymd] => 2025-03-11 09:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:54:05' and `end` < '2025-03-11 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-11 09:54:18] Production.INFO: count ==1968 [2025-03-11 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:54:05 - End Time 2025-03-11 09:54:05 [2025-03-11 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656066', 'tblTempUsageDetail_20' ) start [2025-03-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656066', 'tblTempUsageDetail_20' ) end [2025-03-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656066', 'tblTempVendorCDR_20' ) start [2025-03-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656066', 'tblTempVendorCDR_20' ) end [2025-03-11 09:54:19] Production.INFO: ProcessCDR(1,14656066,1,1,2) [2025-03-11 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656066', 'tblTempUsageDetail_20' ) start [2025-03-11 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656066', 'tblTempUsageDetail_20' ) end [2025-03-11 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:54:24] Production.INFO: ==17249== Releasing lock... [2025-03-11 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:54:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:55:05 [end_date_ymd] => 2025-03-11 09:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 06:55:05' and `end` < '2025-03-11 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-11 09:55:18] Production.INFO: count ==1987 [2025-03-11 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:55:05 - End Time 2025-03-11 09:55:05 [2025-03-11 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656071', 'tblTempUsageDetail_20' ) start [2025-03-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656071', 'tblTempUsageDetail_20' ) end [2025-03-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656071', 'tblTempVendorCDR_20' ) start [2025-03-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656071', 'tblTempVendorCDR_20' ) end [2025-03-11 09:55:19] Production.INFO: ProcessCDR(1,14656071,1,1,2) [2025-03-11 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656071', 'tblTempUsageDetail_20' ) start [2025-03-11 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656071', 'tblTempUsageDetail_20' ) end [2025-03-11 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:55:22] Production.INFO: ==17320== Releasing lock... [2025-03-11 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:55:22] Production.INFO: 43 MB #Memory Used# [2025-03-11 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:56:05 [end_date_ymd] => 2025-03-11 09:56:05 [RateCDR] => 1 ) [2025-03-11 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:56:05' and `end` < '2025-03-11 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:56:18] Production.INFO: count ==1990 [2025-03-11 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:56:05 - End Time 2025-03-11 09:56:05 [2025-03-11 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656076', 'tblTempUsageDetail_20' ) start [2025-03-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656076', 'tblTempUsageDetail_20' ) end [2025-03-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656076', 'tblTempVendorCDR_20' ) start [2025-03-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656076', 'tblTempVendorCDR_20' ) end [2025-03-11 09:56:19] Production.INFO: ProcessCDR(1,14656076,1,1,2) [2025-03-11 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656076', 'tblTempUsageDetail_20' ) start [2025-03-11 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656076', 'tblTempUsageDetail_20' ) end [2025-03-11 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:56:24] Production.INFO: ==17392== Releasing lock... [2025-03-11 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:56:24] Production.INFO: 43 MB #Memory Used# [2025-03-11 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:57:04 [end_date_ymd] => 2025-03-11 09:57:04 [RateCDR] => 1 ) [2025-03-11 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:57:04' and `end` < '2025-03-11 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:57:17] Production.INFO: count ==2035 [2025-03-11 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:57:04 - End Time 2025-03-11 09:57:04 [2025-03-11 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656081', 'tblTempUsageDetail_20' ) start [2025-03-11 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656081', 'tblTempUsageDetail_20' ) end [2025-03-11 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656081', 'tblTempVendorCDR_20' ) start [2025-03-11 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656081', 'tblTempVendorCDR_20' ) end [2025-03-11 09:57:18] Production.INFO: ProcessCDR(1,14656081,1,1,2) [2025-03-11 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656081', 'tblTempUsageDetail_20' ) start [2025-03-11 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656081', 'tblTempUsageDetail_20' ) end [2025-03-11 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:57:23] Production.INFO: ==17462== Releasing lock... [2025-03-11 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:57:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:58:06 [end_date_ymd] => 2025-03-11 09:58:06 [RateCDR] => 1 ) [2025-03-11 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-11 06:58:06' and `end` < '2025-03-11 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-11 09:58:18] Production.INFO: count ==2061 [2025-03-11 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-11 06:58:06 - End Time 2025-03-11 09:58:06 [2025-03-11 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656086', 'tblTempUsageDetail_20' ) start [2025-03-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656086', 'tblTempUsageDetail_20' ) end [2025-03-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656086', 'tblTempVendorCDR_20' ) start [2025-03-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656086', 'tblTempVendorCDR_20' ) end [2025-03-11 09:58:19] Production.INFO: ProcessCDR(1,14656086,1,1,2) [2025-03-11 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656086', 'tblTempUsageDetail_20' ) start [2025-03-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656086', 'tblTempUsageDetail_20' ) end [2025-03-11 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:58:24] Production.INFO: ==17533== Releasing lock... [2025-03-11 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:58:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-11 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 06:59:04 [end_date_ymd] => 2025-03-11 09:59:04 [RateCDR] => 1 ) [2025-03-11 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 06:59:04' and `end` < '2025-03-11 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 09:59:17] Production.INFO: count ==2077 [2025-03-11 09:59:18] Production.ERROR: pbx CDR StartTime 2025-03-11 06:59:04 - End Time 2025-03-11 09:59:04 [2025-03-11 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656091', 'tblTempUsageDetail_20' ) start [2025-03-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656091', 'tblTempUsageDetail_20' ) end [2025-03-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656091', 'tblTempVendorCDR_20' ) start [2025-03-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656091', 'tblTempVendorCDR_20' ) end [2025-03-11 09:59:18] Production.INFO: ProcessCDR(1,14656091,1,1,2) [2025-03-11 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656091', 'tblTempUsageDetail_20' ) start [2025-03-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656091', 'tblTempUsageDetail_20' ) end [2025-03-11 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 09:59:23] Production.INFO: ==17604== Releasing lock... [2025-03-11 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 09:59:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-11 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:00:06 [end_date_ymd] => 2025-03-11 10:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:00:06' and `end` < '2025-03-11 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-11 10:00:18] Production.INFO: count ==2100 [2025-03-11 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:00:06 - End Time 2025-03-11 10:00:06 [2025-03-11 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656097', 'tblTempUsageDetail_20' ) start [2025-03-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656097', 'tblTempUsageDetail_20' ) end [2025-03-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656097', 'tblTempVendorCDR_20' ) start [2025-03-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656097', 'tblTempVendorCDR_20' ) end [2025-03-11 10:00:19] Production.INFO: ProcessCDR(1,14656097,1,1,2) [2025-03-11 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656097', 'tblTempUsageDetail_20' ) start [2025-03-11 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656097', 'tblTempUsageDetail_20' ) end [2025-03-11 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:00:25] Production.INFO: ==17679== Releasing lock... [2025-03-11 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:00:25] Production.INFO: 44 MB #Memory Used# [2025-03-11 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:01:06 [end_date_ymd] => 2025-03-11 10:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:01:06' and `end` < '2025-03-11 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-11 10:01:18] Production.INFO: count ==2172 [2025-03-11 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:01:06 - End Time 2025-03-11 10:01:06 [2025-03-11 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656102', 'tblTempUsageDetail_20' ) start [2025-03-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656102', 'tblTempUsageDetail_20' ) end [2025-03-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656102', 'tblTempVendorCDR_20' ) start [2025-03-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656102', 'tblTempVendorCDR_20' ) end [2025-03-11 10:01:19] Production.INFO: ProcessCDR(1,14656102,1,1,2) [2025-03-11 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656102', 'tblTempUsageDetail_20' ) start [2025-03-11 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656102', 'tblTempUsageDetail_20' ) end [2025-03-11 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:01:24] Production.INFO: ==17767== Releasing lock... [2025-03-11 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:01:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-11 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:02:05 [end_date_ymd] => 2025-03-11 10:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:02:05' and `end` < '2025-03-11 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-11 10:02:18] Production.INFO: count ==2188 [2025-03-11 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:02:05 - End Time 2025-03-11 10:02:05 [2025-03-11 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656107', 'tblTempUsageDetail_20' ) start [2025-03-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656107', 'tblTempUsageDetail_20' ) end [2025-03-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656107', 'tblTempVendorCDR_20' ) start [2025-03-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656107', 'tblTempVendorCDR_20' ) end [2025-03-11 10:02:19] Production.INFO: ProcessCDR(1,14656107,1,1,2) [2025-03-11 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656107', 'tblTempUsageDetail_20' ) start [2025-03-11 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656107', 'tblTempUsageDetail_20' ) end [2025-03-11 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:02:25] Production.INFO: ==17842== Releasing lock... [2025-03-11 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:02:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-11 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:03:06 [end_date_ymd] => 2025-03-11 10:03:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:03:06' and `end` < '2025-03-11 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-11 10:03:19] Production.INFO: count ==2202 [2025-03-11 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:03:06 - End Time 2025-03-11 10:03:06 [2025-03-11 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656112', 'tblTempUsageDetail_20' ) start [2025-03-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656112', 'tblTempUsageDetail_20' ) end [2025-03-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656112', 'tblTempVendorCDR_20' ) start [2025-03-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656112', 'tblTempVendorCDR_20' ) end [2025-03-11 10:03:20] Production.INFO: ProcessCDR(1,14656112,1,1,2) [2025-03-11 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656112', 'tblTempUsageDetail_20' ) start [2025-03-11 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656112', 'tblTempUsageDetail_20' ) end [2025-03-11 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:03:25] Production.INFO: ==17912== Releasing lock... [2025-03-11 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:03:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-11 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:04:05 [end_date_ymd] => 2025-03-11 10:04:05 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:04:05' and `end` < '2025-03-11 10: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-11 10:04:18] Production.INFO: count ==2217 [2025-03-11 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:04:05 - End Time 2025-03-11 10:04:05 [2025-03-11 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656117', 'tblTempUsageDetail_20' ) start [2025-03-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656117', 'tblTempUsageDetail_20' ) end [2025-03-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656117', 'tblTempVendorCDR_20' ) start [2025-03-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656117', 'tblTempVendorCDR_20' ) end [2025-03-11 10:04:19] Production.INFO: ProcessCDR(1,14656117,1,1,2) [2025-03-11 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656117', 'tblTempUsageDetail_20' ) start [2025-03-11 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656117', 'tblTempUsageDetail_20' ) end [2025-03-11 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:04:24] Production.INFO: ==17986== Releasing lock... [2025-03-11 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-11 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:05:06 [end_date_ymd] => 2025-03-11 10:05:06 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:05:06' and `end` < '2025-03-11 10: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-11 10:05:19] Production.INFO: count ==2228 [2025-03-11 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:05:06 - End Time 2025-03-11 10:05:06 [2025-03-11 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656122', 'tblTempUsageDetail_20' ) start [2025-03-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656122', 'tblTempUsageDetail_20' ) end [2025-03-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656122', 'tblTempVendorCDR_20' ) start [2025-03-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656122', 'tblTempVendorCDR_20' ) end [2025-03-11 10:05:20] Production.INFO: ProcessCDR(1,14656122,1,1,2) [2025-03-11 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656122', 'tblTempUsageDetail_20' ) start [2025-03-11 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656122', 'tblTempUsageDetail_20' ) end [2025-03-11 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:05:26] Production.INFO: ==18056== Releasing lock... [2025-03-11 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:05:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-11 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:06:05 [end_date_ymd] => 2025-03-11 10:06:05 [RateCDR] => 1 ) [2025-03-11 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:06:05' and `end` < '2025-03-11 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:06:18] Production.INFO: count ==2239 [2025-03-11 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:06:05 - End Time 2025-03-11 10:06:05 [2025-03-11 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656127', 'tblTempUsageDetail_20' ) start [2025-03-11 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656127', 'tblTempUsageDetail_20' ) end [2025-03-11 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656127', 'tblTempVendorCDR_20' ) start [2025-03-11 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656127', 'tblTempVendorCDR_20' ) end [2025-03-11 10:06:19] Production.INFO: ProcessCDR(1,14656127,1,1,2) [2025-03-11 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656127', 'tblTempUsageDetail_20' ) start [2025-03-11 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656127', 'tblTempUsageDetail_20' ) end [2025-03-11 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:06:23] Production.INFO: ==18127== Releasing lock... [2025-03-11 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:06:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-11 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:07:05 [end_date_ymd] => 2025-03-11 10:07:05 [RateCDR] => 1 ) [2025-03-11 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:07:05' and `end` < '2025-03-11 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:07:18] Production.INFO: count ==2256 [2025-03-11 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:07:05 - End Time 2025-03-11 10:07:05 [2025-03-11 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656132', 'tblTempUsageDetail_20' ) start [2025-03-11 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656132', 'tblTempUsageDetail_20' ) end [2025-03-11 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656132', 'tblTempVendorCDR_20' ) start [2025-03-11 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656132', 'tblTempVendorCDR_20' ) end [2025-03-11 10:07:19] Production.INFO: ProcessCDR(1,14656132,1,1,2) [2025-03-11 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656132', 'tblTempUsageDetail_20' ) start [2025-03-11 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656132', 'tblTempUsageDetail_20' ) end [2025-03-11 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:07:25] Production.INFO: ==18195== Releasing lock... [2025-03-11 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:07:25] Production.INFO: 45 MB #Memory Used# [2025-03-11 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:08:06 [end_date_ymd] => 2025-03-11 10:08:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:08:06' and `end` < '2025-03-11 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-11 10:08:18] Production.INFO: count ==2268 [2025-03-11 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:08:06 - End Time 2025-03-11 10:08:06 [2025-03-11 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656137', 'tblTempUsageDetail_20' ) start [2025-03-11 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656137', 'tblTempUsageDetail_20' ) end [2025-03-11 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656137', 'tblTempVendorCDR_20' ) start [2025-03-11 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656137', 'tblTempVendorCDR_20' ) end [2025-03-11 10:08:20] Production.INFO: ProcessCDR(1,14656137,1,1,2) [2025-03-11 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656137', 'tblTempUsageDetail_20' ) start [2025-03-11 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656137', 'tblTempUsageDetail_20' ) end [2025-03-11 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:08:26] Production.INFO: ==18271== Releasing lock... [2025-03-11 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:08:26] Production.INFO: 45 MB #Memory Used# [2025-03-11 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:09:05 [end_date_ymd] => 2025-03-11 10:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:09:05' and `end` < '2025-03-11 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-11 10:09:17] Production.INFO: count ==2284 [2025-03-11 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-11 07:09:05 - End Time 2025-03-11 10:09:05 [2025-03-11 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656142', 'tblTempUsageDetail_20' ) start [2025-03-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656142', 'tblTempUsageDetail_20' ) end [2025-03-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656142', 'tblTempVendorCDR_20' ) start [2025-03-11 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656142', 'tblTempVendorCDR_20' ) end [2025-03-11 10:09:19] Production.INFO: ProcessCDR(1,14656142,1,1,2) [2025-03-11 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656142', 'tblTempUsageDetail_20' ) start [2025-03-11 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656142', 'tblTempUsageDetail_20' ) end [2025-03-11 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:09:24] Production.INFO: ==18378== Releasing lock... [2025-03-11 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:09:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-11 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:10:07 [end_date_ymd] => 2025-03-11 10:10:07 [RateCDR] => 1 ) [2025-03-11 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-11 07:10:07' and `end` < '2025-03-11 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-11 10:10:19] Production.INFO: count ==2325 [2025-03-11 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:10:07 - End Time 2025-03-11 10:10:07 [2025-03-11 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656147', 'tblTempUsageDetail_20' ) start [2025-03-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656147', 'tblTempUsageDetail_20' ) end [2025-03-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656147', 'tblTempVendorCDR_20' ) start [2025-03-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656147', 'tblTempVendorCDR_20' ) end [2025-03-11 10:10:20] Production.INFO: ProcessCDR(1,14656147,1,1,2) [2025-03-11 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656147', 'tblTempUsageDetail_20' ) start [2025-03-11 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656147', 'tblTempUsageDetail_20' ) end [2025-03-11 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:10:26] Production.INFO: ==18458== Releasing lock... [2025-03-11 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:10:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-11 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:11:05 [end_date_ymd] => 2025-03-11 10:11:05 [RateCDR] => 1 ) [2025-03-11 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:11:05' and `end` < '2025-03-11 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:11:18] Production.INFO: count ==2410 [2025-03-11 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:11:05 - End Time 2025-03-11 10:11:05 [2025-03-11 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656153', 'tblTempUsageDetail_20' ) start [2025-03-11 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656153', 'tblTempUsageDetail_20' ) end [2025-03-11 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656153', 'tblTempVendorCDR_20' ) start [2025-03-11 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656153', 'tblTempVendorCDR_20' ) end [2025-03-11 10:11:19] Production.INFO: ProcessCDR(1,14656153,1,1,2) [2025-03-11 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656153', 'tblTempUsageDetail_20' ) start [2025-03-11 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656153', 'tblTempUsageDetail_20' ) end [2025-03-11 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:11:24] Production.INFO: ==18531== Releasing lock... [2025-03-11 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:11:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-11 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:12:06 [end_date_ymd] => 2025-03-11 10:12:06 [RateCDR] => 1 ) [2025-03-11 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:12:06' and `end` < '2025-03-11 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:12:19] Production.INFO: count ==2428 [2025-03-11 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:12:06 - End Time 2025-03-11 10:12:06 [2025-03-11 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656158', 'tblTempUsageDetail_20' ) start [2025-03-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656158', 'tblTempUsageDetail_20' ) end [2025-03-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656158', 'tblTempVendorCDR_20' ) start [2025-03-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656158', 'tblTempVendorCDR_20' ) end [2025-03-11 10:12:20] Production.INFO: ProcessCDR(1,14656158,1,1,2) [2025-03-11 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656158', 'tblTempUsageDetail_20' ) start [2025-03-11 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656158', 'tblTempUsageDetail_20' ) end [2025-03-11 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:12:23] Production.INFO: ==18601== Releasing lock... [2025-03-11 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-11 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:13:05 [end_date_ymd] => 2025-03-11 10:13:05 [RateCDR] => 1 ) [2025-03-11 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:13:05' and `end` < '2025-03-11 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:13:18] Production.INFO: count ==2455 [2025-03-11 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:13:05 - End Time 2025-03-11 10:13:05 [2025-03-11 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656163', 'tblTempUsageDetail_20' ) start [2025-03-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656163', 'tblTempUsageDetail_20' ) end [2025-03-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656163', 'tblTempVendorCDR_20' ) start [2025-03-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656163', 'tblTempVendorCDR_20' ) end [2025-03-11 10:13:19] Production.INFO: ProcessCDR(1,14656163,1,1,2) [2025-03-11 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656163', 'tblTempUsageDetail_20' ) start [2025-03-11 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656163', 'tblTempUsageDetail_20' ) end [2025-03-11 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:13:25] Production.INFO: ==18674== Releasing lock... [2025-03-11 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:13:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-11 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:14:06 [end_date_ymd] => 2025-03-11 10:14:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:14:06' and `end` < '2025-03-11 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-11 10:14:19] Production.INFO: count ==2480 [2025-03-11 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:14:06 - End Time 2025-03-11 10:14:06 [2025-03-11 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656168', 'tblTempUsageDetail_20' ) start [2025-03-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656168', 'tblTempUsageDetail_20' ) end [2025-03-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656168', 'tblTempVendorCDR_20' ) start [2025-03-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656168', 'tblTempVendorCDR_20' ) end [2025-03-11 10:14:20] Production.INFO: ProcessCDR(1,14656168,1,1,2) [2025-03-11 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656168', 'tblTempUsageDetail_20' ) start [2025-03-11 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656168', 'tblTempUsageDetail_20' ) end [2025-03-11 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:14:25] Production.INFO: ==18746== Releasing lock... [2025-03-11 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:14:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-11 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:15:05 [end_date_ymd] => 2025-03-11 10:15:05 [RateCDR] => 1 ) [2025-03-11 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:15:05' and `end` < '2025-03-11 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:15:18] Production.INFO: count ==2491 [2025-03-11 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:15:05 - End Time 2025-03-11 10:15:05 [2025-03-11 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656173', 'tblTempUsageDetail_20' ) start [2025-03-11 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656173', 'tblTempUsageDetail_20' ) end [2025-03-11 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656173', 'tblTempVendorCDR_20' ) start [2025-03-11 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656173', 'tblTempVendorCDR_20' ) end [2025-03-11 10:15:19] Production.INFO: ProcessCDR(1,14656173,1,1,2) [2025-03-11 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656173', 'tblTempUsageDetail_20' ) start [2025-03-11 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656173', 'tblTempUsageDetail_20' ) end [2025-03-11 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:15:25] Production.INFO: ==18821== Releasing lock... [2025-03-11 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:15:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-11 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:16:06 [end_date_ymd] => 2025-03-11 10:16:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:16:06' and `end` < '2025-03-11 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-11 10:16:19] Production.INFO: count ==2523 [2025-03-11 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:16:06 - End Time 2025-03-11 10:16:06 [2025-03-11 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656178', 'tblTempUsageDetail_20' ) start [2025-03-11 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656178', 'tblTempUsageDetail_20' ) end [2025-03-11 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656178', 'tblTempVendorCDR_20' ) start [2025-03-11 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656178', 'tblTempVendorCDR_20' ) end [2025-03-11 10:16:20] Production.INFO: ProcessCDR(1,14656178,1,1,2) [2025-03-11 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656178', 'tblTempUsageDetail_20' ) start [2025-03-11 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656178', 'tblTempUsageDetail_20' ) end [2025-03-11 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:16:26] Production.INFO: ==18897== Releasing lock... [2025-03-11 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:16:26] Production.INFO: 47 MB #Memory Used# [2025-03-11 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:17:05 [end_date_ymd] => 2025-03-11 10:17:05 [RateCDR] => 1 ) [2025-03-11 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:17:05' and `end` < '2025-03-11 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:17:18] Production.INFO: count ==2526 [2025-03-11 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:17:05 - End Time 2025-03-11 10:17:05 [2025-03-11 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656183', 'tblTempUsageDetail_20' ) start [2025-03-11 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656183', 'tblTempUsageDetail_20' ) end [2025-03-11 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656183', 'tblTempVendorCDR_20' ) start [2025-03-11 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656183', 'tblTempVendorCDR_20' ) end [2025-03-11 10:17:19] Production.INFO: ProcessCDR(1,14656183,1,1,2) [2025-03-11 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656183', 'tblTempUsageDetail_20' ) start [2025-03-11 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656183', 'tblTempUsageDetail_20' ) end [2025-03-11 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:17:25] Production.INFO: ==18967== Releasing lock... [2025-03-11 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:17:25] Production.INFO: 47 MB #Memory Used# [2025-03-11 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:18:06 [end_date_ymd] => 2025-03-11 10:18:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:18:06' and `end` < '2025-03-11 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-11 10:18:18] Production.INFO: count ==2559 [2025-03-11 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:18:06 - End Time 2025-03-11 10:18:06 [2025-03-11 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656188', 'tblTempUsageDetail_20' ) start [2025-03-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656188', 'tblTempUsageDetail_20' ) end [2025-03-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656188', 'tblTempVendorCDR_20' ) start [2025-03-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656188', 'tblTempVendorCDR_20' ) end [2025-03-11 10:18:19] Production.INFO: ProcessCDR(1,14656188,1,1,2) [2025-03-11 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656188', 'tblTempUsageDetail_20' ) start [2025-03-11 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656188', 'tblTempUsageDetail_20' ) end [2025-03-11 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:18:25] Production.INFO: ==19037== Releasing lock... [2025-03-11 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:18:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-11 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:19:05 [end_date_ymd] => 2025-03-11 10:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:19:05' and `end` < '2025-03-11 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-11 10:19:18] Production.INFO: count ==2577 [2025-03-11 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:19:05 - End Time 2025-03-11 10:19:05 [2025-03-11 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656193', 'tblTempUsageDetail_20' ) start [2025-03-11 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656193', 'tblTempUsageDetail_20' ) end [2025-03-11 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656193', 'tblTempVendorCDR_20' ) start [2025-03-11 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656193', 'tblTempVendorCDR_20' ) end [2025-03-11 10:19:19] Production.INFO: ProcessCDR(1,14656193,1,1,2) [2025-03-11 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656193', 'tblTempUsageDetail_20' ) start [2025-03-11 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656193', 'tblTempUsageDetail_20' ) end [2025-03-11 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:19:24] Production.INFO: ==19112== Releasing lock... [2025-03-11 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:19:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-11 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:20:07 [end_date_ymd] => 2025-03-11 10:20:07 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:20:07' and `end` < '2025-03-11 10: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-11 10:20:20] Production.INFO: count ==2626 [2025-03-11 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 07:20:07 - End Time 2025-03-11 10:20:07 [2025-03-11 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656198', 'tblTempUsageDetail_20' ) start [2025-03-11 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656198', 'tblTempUsageDetail_20' ) end [2025-03-11 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656198', 'tblTempVendorCDR_20' ) start [2025-03-11 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656198', 'tblTempVendorCDR_20' ) end [2025-03-11 10:20:21] Production.INFO: ProcessCDR(1,14656198,1,1,2) [2025-03-11 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656198', 'tblTempUsageDetail_20' ) start [2025-03-11 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656198', 'tblTempUsageDetail_20' ) end [2025-03-11 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:20:26] Production.INFO: ==19185== Releasing lock... [2025-03-11 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:20:26] Production.INFO: 47.75 MB #Memory Used# [2025-03-11 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:21:05 [end_date_ymd] => 2025-03-11 10:21:05 [RateCDR] => 1 ) [2025-03-11 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:21:05' and `end` < '2025-03-11 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:21:18] Production.INFO: count ==2760 [2025-03-11 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:21:05 - End Time 2025-03-11 10:21:05 [2025-03-11 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656204', 'tblTempUsageDetail_20' ) start [2025-03-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656204', 'tblTempUsageDetail_20' ) end [2025-03-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656204', 'tblTempVendorCDR_20' ) start [2025-03-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656204', 'tblTempVendorCDR_20' ) end [2025-03-11 10:21:19] Production.INFO: ProcessCDR(1,14656204,1,1,2) [2025-03-11 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656204', 'tblTempUsageDetail_20' ) start [2025-03-11 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656204', 'tblTempUsageDetail_20' ) end [2025-03-11 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:21:25] Production.INFO: ==19258== Releasing lock... [2025-03-11 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:21:25] Production.INFO: 49 MB #Memory Used# [2025-03-11 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:22:06 [end_date_ymd] => 2025-03-11 10:22:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:22:06' and `end` < '2025-03-11 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-11 10:22:18] Production.INFO: count ==2799 [2025-03-11 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:22:06 - End Time 2025-03-11 10:22:06 [2025-03-11 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656209', 'tblTempUsageDetail_20' ) start [2025-03-11 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656209', 'tblTempUsageDetail_20' ) end [2025-03-11 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656209', 'tblTempVendorCDR_20' ) start [2025-03-11 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656209', 'tblTempVendorCDR_20' ) end [2025-03-11 10:22:20] Production.INFO: ProcessCDR(1,14656209,1,1,2) [2025-03-11 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656209', 'tblTempUsageDetail_20' ) start [2025-03-11 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656209', 'tblTempUsageDetail_20' ) end [2025-03-11 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:22:25] Production.INFO: ==19328== Releasing lock... [2025-03-11 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:22:25] Production.INFO: 49 MB #Memory Used# [2025-03-11 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:23:05 [end_date_ymd] => 2025-03-11 10:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:23:05' and `end` < '2025-03-11 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-11 10:23:18] Production.INFO: count ==2812 [2025-03-11 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:23:05 - End Time 2025-03-11 10:23:05 [2025-03-11 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656214', 'tblTempUsageDetail_20' ) start [2025-03-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656214', 'tblTempUsageDetail_20' ) end [2025-03-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656214', 'tblTempVendorCDR_20' ) start [2025-03-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656214', 'tblTempVendorCDR_20' ) end [2025-03-11 10:23:19] Production.INFO: ProcessCDR(1,14656214,1,1,2) [2025-03-11 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656214', 'tblTempUsageDetail_20' ) start [2025-03-11 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656214', 'tblTempUsageDetail_20' ) end [2025-03-11 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:23:24] Production.INFO: ==19400== Releasing lock... [2025-03-11 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:23:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-11 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:24:05 [end_date_ymd] => 2025-03-11 10:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:24:05' and `end` < '2025-03-11 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-11 10:24:18] Production.INFO: count ==2882 [2025-03-11 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:24:05 - End Time 2025-03-11 10:24:05 [2025-03-11 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656219', 'tblTempUsageDetail_20' ) start [2025-03-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656219', 'tblTempUsageDetail_20' ) end [2025-03-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656219', 'tblTempVendorCDR_20' ) start [2025-03-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656219', 'tblTempVendorCDR_20' ) end [2025-03-11 10:24:19] Production.INFO: ProcessCDR(1,14656219,1,1,2) [2025-03-11 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656219', 'tblTempUsageDetail_20' ) start [2025-03-11 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656219', 'tblTempUsageDetail_20' ) end [2025-03-11 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:24:25] Production.INFO: ==19473== Releasing lock... [2025-03-11 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:24:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:25:05 [end_date_ymd] => 2025-03-11 10:25:05 [RateCDR] => 1 ) [2025-03-11 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:25:05' and `end` < '2025-03-11 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:25:18] Production.INFO: count ==2902 [2025-03-11 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:25:05 - End Time 2025-03-11 10:25:05 [2025-03-11 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656224', 'tblTempUsageDetail_20' ) start [2025-03-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656224', 'tblTempUsageDetail_20' ) end [2025-03-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656224', 'tblTempVendorCDR_20' ) start [2025-03-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656224', 'tblTempVendorCDR_20' ) end [2025-03-11 10:25:19] Production.INFO: ProcessCDR(1,14656224,1,1,2) [2025-03-11 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656224', 'tblTempUsageDetail_20' ) start [2025-03-11 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656224', 'tblTempUsageDetail_20' ) end [2025-03-11 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:25:25] Production.INFO: ==19584== Releasing lock... [2025-03-11 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:25:25] Production.INFO: 50 MB #Memory Used# [2025-03-11 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:26:06 [end_date_ymd] => 2025-03-11 10:26:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:26:06' and `end` < '2025-03-11 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-11 10:26:18] Production.INFO: count ==2937 [2025-03-11 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:26:06 - End Time 2025-03-11 10:26:06 [2025-03-11 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656229', 'tblTempUsageDetail_20' ) start [2025-03-11 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656229', 'tblTempUsageDetail_20' ) end [2025-03-11 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656229', 'tblTempVendorCDR_20' ) start [2025-03-11 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656229', 'tblTempVendorCDR_20' ) end [2025-03-11 10:26:20] Production.INFO: ProcessCDR(1,14656229,1,1,2) [2025-03-11 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656229', 'tblTempUsageDetail_20' ) start [2025-03-11 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656229', 'tblTempUsageDetail_20' ) end [2025-03-11 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:26:25] Production.INFO: ==19665== Releasing lock... [2025-03-11 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:26:25] Production.INFO: 50 MB #Memory Used# [2025-03-11 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:27:05 [end_date_ymd] => 2025-03-11 10:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:27:05' and `end` < '2025-03-11 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-11 10:27:18] Production.INFO: count ==2944 [2025-03-11 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:27:05 - End Time 2025-03-11 10:27:05 [2025-03-11 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656234', 'tblTempUsageDetail_20' ) start [2025-03-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656234', 'tblTempUsageDetail_20' ) end [2025-03-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656234', 'tblTempVendorCDR_20' ) start [2025-03-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656234', 'tblTempVendorCDR_20' ) end [2025-03-11 10:27:19] Production.INFO: ProcessCDR(1,14656234,1,1,2) [2025-03-11 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656234', 'tblTempUsageDetail_20' ) start [2025-03-11 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656234', 'tblTempUsageDetail_20' ) end [2025-03-11 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:27:24] Production.INFO: ==19734== Releasing lock... [2025-03-11 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:27:24] Production.INFO: 50 MB #Memory Used# [2025-03-11 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:28:05 [end_date_ymd] => 2025-03-11 10:28:05 [RateCDR] => 1 ) [2025-03-11 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:28:05' and `end` < '2025-03-11 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:28:18] Production.INFO: count ==2950 [2025-03-11 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:28:05 - End Time 2025-03-11 10:28:05 [2025-03-11 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656239', 'tblTempUsageDetail_20' ) start [2025-03-11 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656239', 'tblTempUsageDetail_20' ) end [2025-03-11 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656239', 'tblTempVendorCDR_20' ) start [2025-03-11 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656239', 'tblTempVendorCDR_20' ) end [2025-03-11 10:28:20] Production.INFO: ProcessCDR(1,14656239,1,1,2) [2025-03-11 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656239', 'tblTempUsageDetail_20' ) start [2025-03-11 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656239', 'tblTempUsageDetail_20' ) end [2025-03-11 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:28:23] Production.INFO: ==19811== Releasing lock... [2025-03-11 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:28:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-11 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:29:05 [end_date_ymd] => 2025-03-11 10:29:05 [RateCDR] => 1 ) [2025-03-11 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:29:05' and `end` < '2025-03-11 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:29:18] Production.INFO: count ==2967 [2025-03-11 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:29:05 - End Time 2025-03-11 10:29:05 [2025-03-11 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656244', 'tblTempUsageDetail_20' ) start [2025-03-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656244', 'tblTempUsageDetail_20' ) end [2025-03-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656244', 'tblTempVendorCDR_20' ) start [2025-03-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656244', 'tblTempVendorCDR_20' ) end [2025-03-11 10:29:19] Production.INFO: ProcessCDR(1,14656244,1,1,2) [2025-03-11 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656244', 'tblTempUsageDetail_20' ) start [2025-03-11 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656244', 'tblTempUsageDetail_20' ) end [2025-03-11 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:29:23] Production.INFO: ==19889== Releasing lock... [2025-03-11 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:29:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-11 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:30:06 [end_date_ymd] => 2025-03-11 10:30:06 [RateCDR] => 1 ) [2025-03-11 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:30:06' and `end` < '2025-03-11 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:30:19] Production.INFO: count ==3011 [2025-03-11 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:30:06 - End Time 2025-03-11 10:30:06 [2025-03-11 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656249', 'tblTempUsageDetail_20' ) start [2025-03-11 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656249', 'tblTempUsageDetail_20' ) end [2025-03-11 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656249', 'tblTempVendorCDR_20' ) start [2025-03-11 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656249', 'tblTempVendorCDR_20' ) end [2025-03-11 10:30:21] Production.INFO: ProcessCDR(1,14656249,1,1,2) [2025-03-11 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656249', 'tblTempUsageDetail_20' ) start [2025-03-11 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656249', 'tblTempUsageDetail_20' ) end [2025-03-11 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:30:26] Production.INFO: ==19967== Releasing lock... [2025-03-11 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:30:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-11 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:31:05 [end_date_ymd] => 2025-03-11 10:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:31:05' and `end` < '2025-03-11 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-11 10:31:17] Production.INFO: count ==3120 [2025-03-11 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:31:05 - End Time 2025-03-11 10:31:05 [2025-03-11 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656255', 'tblTempUsageDetail_20' ) start [2025-03-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656255', 'tblTempUsageDetail_20' ) end [2025-03-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656255', 'tblTempVendorCDR_20' ) start [2025-03-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656255', 'tblTempVendorCDR_20' ) end [2025-03-11 10:31:19] Production.INFO: ProcessCDR(1,14656255,1,1,2) [2025-03-11 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656255', 'tblTempUsageDetail_20' ) start [2025-03-11 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656255', 'tblTempUsageDetail_20' ) end [2025-03-11 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:31:24] Production.INFO: ==20038== Releasing lock... [2025-03-11 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:31:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-11 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:32:05 [end_date_ymd] => 2025-03-11 10:32:05 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:32:05' and `end` < '2025-03-11 10: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-11 10:32:18] Production.INFO: count ==3128 [2025-03-11 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:32:05 - End Time 2025-03-11 10:32:05 [2025-03-11 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656260', 'tblTempUsageDetail_20' ) start [2025-03-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656260', 'tblTempUsageDetail_20' ) end [2025-03-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656260', 'tblTempVendorCDR_20' ) start [2025-03-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656260', 'tblTempVendorCDR_20' ) end [2025-03-11 10:32:19] Production.INFO: ProcessCDR(1,14656260,1,1,2) [2025-03-11 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656260', 'tblTempUsageDetail_20' ) start [2025-03-11 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656260', 'tblTempUsageDetail_20' ) end [2025-03-11 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:32:24] Production.INFO: ==20109== Releasing lock... [2025-03-11 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:32:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-11 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:33:05 [end_date_ymd] => 2025-03-11 10:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:33:05' and `end` < '2025-03-11 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-11 10:33:18] Production.INFO: count ==3157 [2025-03-11 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:33:05 - End Time 2025-03-11 10:33:05 [2025-03-11 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656265', 'tblTempUsageDetail_20' ) start [2025-03-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656265', 'tblTempUsageDetail_20' ) end [2025-03-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656265', 'tblTempVendorCDR_20' ) start [2025-03-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656265', 'tblTempVendorCDR_20' ) end [2025-03-11 10:33:19] Production.INFO: ProcessCDR(1,14656265,1,1,2) [2025-03-11 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656265', 'tblTempUsageDetail_20' ) start [2025-03-11 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656265', 'tblTempUsageDetail_20' ) end [2025-03-11 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:33:25] Production.INFO: ==20182== Releasing lock... [2025-03-11 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:33:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-11 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:34:05 [end_date_ymd] => 2025-03-11 10:34:05 [RateCDR] => 1 ) [2025-03-11 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:34:05' and `end` < '2025-03-11 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:34:18] Production.INFO: count ==3189 [2025-03-11 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:34:05 - End Time 2025-03-11 10:34:05 [2025-03-11 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656270', 'tblTempUsageDetail_20' ) start [2025-03-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656270', 'tblTempUsageDetail_20' ) end [2025-03-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656270', 'tblTempVendorCDR_20' ) start [2025-03-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656270', 'tblTempVendorCDR_20' ) end [2025-03-11 10:34:19] Production.INFO: ProcessCDR(1,14656270,1,1,2) [2025-03-11 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656270', 'tblTempUsageDetail_20' ) start [2025-03-11 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656270', 'tblTempUsageDetail_20' ) end [2025-03-11 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:34:24] Production.INFO: ==20255== Releasing lock... [2025-03-11 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:34:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-11 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:35:05 [end_date_ymd] => 2025-03-11 10:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:35:05' and `end` < '2025-03-11 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-11 10:35:18] Production.INFO: count ==3195 [2025-03-11 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:35:05 - End Time 2025-03-11 10:35:05 [2025-03-11 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656275', 'tblTempUsageDetail_20' ) start [2025-03-11 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656275', 'tblTempUsageDetail_20' ) end [2025-03-11 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656275', 'tblTempVendorCDR_20' ) start [2025-03-11 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656275', 'tblTempVendorCDR_20' ) end [2025-03-11 10:35:20] Production.INFO: ProcessCDR(1,14656275,1,1,2) [2025-03-11 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656275', 'tblTempUsageDetail_20' ) start [2025-03-11 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656275', 'tblTempUsageDetail_20' ) end [2025-03-11 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:35:24] Production.INFO: ==20328== Releasing lock... [2025-03-11 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:35:24] Production.INFO: 52 MB #Memory Used# [2025-03-11 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:36:06 [end_date_ymd] => 2025-03-11 10:36:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:36:06' and `end` < '2025-03-11 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-11 10:36:19] Production.INFO: count ==3202 [2025-03-11 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:36:06 - End Time 2025-03-11 10:36:06 [2025-03-11 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656280', 'tblTempUsageDetail_20' ) start [2025-03-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656280', 'tblTempUsageDetail_20' ) end [2025-03-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656280', 'tblTempVendorCDR_20' ) start [2025-03-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656280', 'tblTempVendorCDR_20' ) end [2025-03-11 10:36:20] Production.INFO: ProcessCDR(1,14656280,1,1,2) [2025-03-11 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656280', 'tblTempUsageDetail_20' ) start [2025-03-11 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656280', 'tblTempUsageDetail_20' ) end [2025-03-11 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:36:25] Production.INFO: ==20397== Releasing lock... [2025-03-11 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:36:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-11 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:37:05 [end_date_ymd] => 2025-03-11 10:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:37:05' and `end` < '2025-03-11 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-11 10:37:18] Production.INFO: count ==3222 [2025-03-11 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:37:05 - End Time 2025-03-11 10:37:05 [2025-03-11 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656285', 'tblTempUsageDetail_20' ) start [2025-03-11 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656285', 'tblTempUsageDetail_20' ) end [2025-03-11 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656285', 'tblTempVendorCDR_20' ) start [2025-03-11 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656285', 'tblTempVendorCDR_20' ) end [2025-03-11 10:37:19] Production.INFO: ProcessCDR(1,14656285,1,1,2) [2025-03-11 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656285', 'tblTempUsageDetail_20' ) start [2025-03-11 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656285', 'tblTempUsageDetail_20' ) end [2025-03-11 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:37:24] Production.INFO: ==20467== Releasing lock... [2025-03-11 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:37:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-11 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:38:06 [end_date_ymd] => 2025-03-11 10:38:06 [RateCDR] => 1 ) [2025-03-11 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:38:06' and `end` < '2025-03-11 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:38:18] Production.INFO: count ==3242 [2025-03-11 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:38:06 - End Time 2025-03-11 10:38:06 [2025-03-11 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656290', 'tblTempUsageDetail_20' ) start [2025-03-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656290', 'tblTempUsageDetail_20' ) end [2025-03-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656290', 'tblTempVendorCDR_20' ) start [2025-03-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656290', 'tblTempVendorCDR_20' ) end [2025-03-11 10:38:20] Production.INFO: ProcessCDR(1,14656290,1,1,2) [2025-03-11 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656290', 'tblTempUsageDetail_20' ) start [2025-03-11 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656290', 'tblTempUsageDetail_20' ) end [2025-03-11 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:38:24] Production.INFO: ==20542== Releasing lock... [2025-03-11 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:38:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-11 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:39:05 [end_date_ymd] => 2025-03-11 10:39:05 [RateCDR] => 1 ) [2025-03-11 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:39:05' and `end` < '2025-03-11 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:39:17] Production.INFO: count ==3245 [2025-03-11 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:39:05 - End Time 2025-03-11 10:39:05 [2025-03-11 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656295', 'tblTempUsageDetail_20' ) start [2025-03-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656295', 'tblTempUsageDetail_20' ) end [2025-03-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656295', 'tblTempVendorCDR_20' ) start [2025-03-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656295', 'tblTempVendorCDR_20' ) end [2025-03-11 10:39:19] Production.INFO: ProcessCDR(1,14656295,1,1,2) [2025-03-11 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656295', 'tblTempUsageDetail_20' ) start [2025-03-11 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656295', 'tblTempUsageDetail_20' ) end [2025-03-11 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:39:24] Production.INFO: ==20611== Releasing lock... [2025-03-11 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:39:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-11 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:40:06 [end_date_ymd] => 2025-03-11 10:40:06 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:40:06' and `end` < '2025-03-11 10: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-11 10:40:19] Production.INFO: count ==3265 [2025-03-11 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:40:06 - End Time 2025-03-11 10:40:06 [2025-03-11 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656300', 'tblTempUsageDetail_20' ) start [2025-03-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656300', 'tblTempUsageDetail_20' ) end [2025-03-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656300', 'tblTempVendorCDR_20' ) start [2025-03-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656300', 'tblTempVendorCDR_20' ) end [2025-03-11 10:40:20] Production.INFO: ProcessCDR(1,14656300,1,1,2) [2025-03-11 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656300', 'tblTempUsageDetail_20' ) start [2025-03-11 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656300', 'tblTempUsageDetail_20' ) end [2025-03-11 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:40:25] Production.INFO: ==20725== Releasing lock... [2025-03-11 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:40:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-11 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:41:05 [end_date_ymd] => 2025-03-11 10:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:41:05' and `end` < '2025-03-11 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-11 10:41:17] Production.INFO: count ==3383 [2025-03-11 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:41:05 - End Time 2025-03-11 10:41:05 [2025-03-11 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656306', 'tblTempUsageDetail_20' ) start [2025-03-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656306', 'tblTempUsageDetail_20' ) end [2025-03-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656306', 'tblTempVendorCDR_20' ) start [2025-03-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656306', 'tblTempVendorCDR_20' ) end [2025-03-11 10:41:19] Production.INFO: ProcessCDR(1,14656306,1,1,2) [2025-03-11 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656306', 'tblTempUsageDetail_20' ) start [2025-03-11 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656306', 'tblTempUsageDetail_20' ) end [2025-03-11 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:41:24] Production.INFO: ==20804== Releasing lock... [2025-03-11 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:41:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-11 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:42:05 [end_date_ymd] => 2025-03-11 10:42:05 [RateCDR] => 1 ) [2025-03-11 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:42:05' and `end` < '2025-03-11 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:42:18] Production.INFO: count ==3411 [2025-03-11 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:42:05 - End Time 2025-03-11 10:42:05 [2025-03-11 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656311', 'tblTempUsageDetail_20' ) start [2025-03-11 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656311', 'tblTempUsageDetail_20' ) end [2025-03-11 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656311', 'tblTempVendorCDR_20' ) start [2025-03-11 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656311', 'tblTempVendorCDR_20' ) end [2025-03-11 10:42:19] Production.INFO: ProcessCDR(1,14656311,1,1,2) [2025-03-11 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656311', 'tblTempUsageDetail_20' ) start [2025-03-11 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656311', 'tblTempUsageDetail_20' ) end [2025-03-11 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:42:25] Production.INFO: ==20885== Releasing lock... [2025-03-11 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:42:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-11 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:43:06 [end_date_ymd] => 2025-03-11 10:43:06 [RateCDR] => 1 ) [2025-03-11 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:43:06' and `end` < '2025-03-11 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:43:19] Production.INFO: count ==3443 [2025-03-11 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:43:06 - End Time 2025-03-11 10:43:06 [2025-03-11 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656316', 'tblTempUsageDetail_20' ) start [2025-03-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656316', 'tblTempUsageDetail_20' ) end [2025-03-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656316', 'tblTempVendorCDR_20' ) start [2025-03-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656316', 'tblTempVendorCDR_20' ) end [2025-03-11 10:43:20] Production.INFO: ProcessCDR(1,14656316,1,1,2) [2025-03-11 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656316', 'tblTempUsageDetail_20' ) start [2025-03-11 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656316', 'tblTempUsageDetail_20' ) end [2025-03-11 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:43:26] Production.INFO: ==20962== Releasing lock... [2025-03-11 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:43:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-11 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:44:05 [end_date_ymd] => 2025-03-11 10:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:44:05' and `end` < '2025-03-11 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-11 10:44:18] Production.INFO: count ==3461 [2025-03-11 10:44:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:44:05 - End Time 2025-03-11 10:44:05 [2025-03-11 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656321', 'tblTempUsageDetail_20' ) start [2025-03-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656321', 'tblTempUsageDetail_20' ) end [2025-03-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656321', 'tblTempVendorCDR_20' ) start [2025-03-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656321', 'tblTempVendorCDR_20' ) end [2025-03-11 10:44:19] Production.INFO: ProcessCDR(1,14656321,1,1,2) [2025-03-11 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656321', 'tblTempUsageDetail_20' ) start [2025-03-11 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656321', 'tblTempUsageDetail_20' ) end [2025-03-11 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:44:24] Production.INFO: ==21042== Releasing lock... [2025-03-11 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:44:24] Production.INFO: 54 MB #Memory Used# [2025-03-11 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:45:06 [end_date_ymd] => 2025-03-11 10:45:06 [RateCDR] => 1 ) [2025-03-11 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:45:06' and `end` < '2025-03-11 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:45:18] Production.INFO: count ==3468 [2025-03-11 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:45:06 - End Time 2025-03-11 10:45:06 [2025-03-11 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656326', 'tblTempUsageDetail_20' ) start [2025-03-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656326', 'tblTempUsageDetail_20' ) end [2025-03-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656326', 'tblTempVendorCDR_20' ) start [2025-03-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656326', 'tblTempVendorCDR_20' ) end [2025-03-11 10:45:20] Production.INFO: ProcessCDR(1,14656326,1,1,2) [2025-03-11 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656326', 'tblTempUsageDetail_20' ) start [2025-03-11 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656326', 'tblTempUsageDetail_20' ) end [2025-03-11 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:45:23] Production.INFO: ==21122== Releasing lock... [2025-03-11 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:45:23] Production.INFO: 54 MB #Memory Used# [2025-03-11 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:46:05 [end_date_ymd] => 2025-03-11 10:46:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:46:05' and `end` < '2025-03-11 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-11 10:46:18] Production.INFO: count ==3475 [2025-03-11 10:46:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:46:05 - End Time 2025-03-11 10:46:05 [2025-03-11 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656331', 'tblTempUsageDetail_20' ) start [2025-03-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656331', 'tblTempUsageDetail_20' ) end [2025-03-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656331', 'tblTempVendorCDR_20' ) start [2025-03-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656331', 'tblTempVendorCDR_20' ) end [2025-03-11 10:46:20] Production.INFO: ProcessCDR(1,14656331,1,1,2) [2025-03-11 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656331', 'tblTempUsageDetail_20' ) start [2025-03-11 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656331', 'tblTempUsageDetail_20' ) end [2025-03-11 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:46:24] Production.INFO: ==21201== Releasing lock... [2025-03-11 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:46:24] Production.INFO: 54 MB #Memory Used# [2025-03-11 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:47:05 [end_date_ymd] => 2025-03-11 10:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:47:05' and `end` < '2025-03-11 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-11 10:47:18] Production.INFO: count ==3492 [2025-03-11 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:47:05 - End Time 2025-03-11 10:47:05 [2025-03-11 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656336', 'tblTempUsageDetail_20' ) start [2025-03-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656336', 'tblTempUsageDetail_20' ) end [2025-03-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656336', 'tblTempVendorCDR_20' ) start [2025-03-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656336', 'tblTempVendorCDR_20' ) end [2025-03-11 10:47:20] Production.INFO: ProcessCDR(1,14656336,1,1,2) [2025-03-11 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656336', 'tblTempUsageDetail_20' ) start [2025-03-11 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656336', 'tblTempUsageDetail_20' ) end [2025-03-11 10:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:47:24] Production.INFO: ==21282== Releasing lock... [2025-03-11 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:47:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-11 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:48:05 [end_date_ymd] => 2025-03-11 10:48:05 [RateCDR] => 1 ) [2025-03-11 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:48:05' and `end` < '2025-03-11 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:48:18] Production.INFO: count ==3511 [2025-03-11 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:48:05 - End Time 2025-03-11 10:48:05 [2025-03-11 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656341', 'tblTempUsageDetail_20' ) start [2025-03-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656341', 'tblTempUsageDetail_20' ) end [2025-03-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656341', 'tblTempVendorCDR_20' ) start [2025-03-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656341', 'tblTempVendorCDR_20' ) end [2025-03-11 10:48:20] Production.INFO: ProcessCDR(1,14656341,1,1,2) [2025-03-11 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656341', 'tblTempUsageDetail_20' ) start [2025-03-11 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656341', 'tblTempUsageDetail_20' ) end [2025-03-11 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:48:25] Production.INFO: ==21360== Releasing lock... [2025-03-11 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:48:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-11 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:49:05 [end_date_ymd] => 2025-03-11 10:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:49:05' and `end` < '2025-03-11 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-11 10:49:18] Production.INFO: count ==3527 [2025-03-11 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:49:05 - End Time 2025-03-11 10:49:05 [2025-03-11 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656346', 'tblTempUsageDetail_20' ) start [2025-03-11 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656346', 'tblTempUsageDetail_20' ) end [2025-03-11 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656346', 'tblTempVendorCDR_20' ) start [2025-03-11 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656346', 'tblTempVendorCDR_20' ) end [2025-03-11 10:49:20] Production.INFO: ProcessCDR(1,14656346,1,1,2) [2025-03-11 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656346', 'tblTempUsageDetail_20' ) start [2025-03-11 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656346', 'tblTempUsageDetail_20' ) end [2025-03-11 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:49:25] Production.INFO: ==21451== Releasing lock... [2025-03-11 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:49:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-11 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:50:06 [end_date_ymd] => 2025-03-11 10:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 07:50:06' and `end` < '2025-03-11 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-11 10:50:18] Production.INFO: count ==3563 [2025-03-11 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:50:06 - End Time 2025-03-11 10:50:06 [2025-03-11 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656352', 'tblTempUsageDetail_20' ) start [2025-03-11 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656352', 'tblTempUsageDetail_20' ) end [2025-03-11 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656352', 'tblTempVendorCDR_20' ) start [2025-03-11 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656352', 'tblTempVendorCDR_20' ) end [2025-03-11 10:50:20] Production.INFO: ProcessCDR(1,14656352,1,1,2) [2025-03-11 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656352', 'tblTempUsageDetail_20' ) start [2025-03-11 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656352', 'tblTempUsageDetail_20' ) end [2025-03-11 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:50:26] Production.INFO: ==21529== Releasing lock... [2025-03-11 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:50:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-11 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:51:05 [end_date_ymd] => 2025-03-11 10:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:51:05' and `end` < '2025-03-11 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-11 10:51:18] Production.INFO: count ==3669 [2025-03-11 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:51:05 - End Time 2025-03-11 10:51:05 [2025-03-11 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656357', 'tblTempUsageDetail_20' ) start [2025-03-11 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656357', 'tblTempUsageDetail_20' ) end [2025-03-11 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656357', 'tblTempVendorCDR_20' ) start [2025-03-11 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656357', 'tblTempVendorCDR_20' ) end [2025-03-11 10:51:20] Production.INFO: ProcessCDR(1,14656357,1,1,2) [2025-03-11 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656357', 'tblTempUsageDetail_20' ) start [2025-03-11 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656357', 'tblTempUsageDetail_20' ) end [2025-03-11 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:51:25] Production.INFO: ==21608== Releasing lock... [2025-03-11 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:51:25] Production.INFO: 56 MB #Memory Used# [2025-03-11 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:52:05 [end_date_ymd] => 2025-03-11 10:52:05 [RateCDR] => 1 ) [2025-03-11 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:52:05' and `end` < '2025-03-11 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:52:18] Production.INFO: count ==3685 [2025-03-11 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:52:05 - End Time 2025-03-11 10:52:05 [2025-03-11 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656362', 'tblTempUsageDetail_20' ) start [2025-03-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656362', 'tblTempUsageDetail_20' ) end [2025-03-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656362', 'tblTempVendorCDR_20' ) start [2025-03-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656362', 'tblTempVendorCDR_20' ) end [2025-03-11 10:52:20] Production.INFO: ProcessCDR(1,14656362,1,1,2) [2025-03-11 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656362', 'tblTempUsageDetail_20' ) start [2025-03-11 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656362', 'tblTempUsageDetail_20' ) end [2025-03-11 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:52:25] Production.INFO: ==21680== Releasing lock... [2025-03-11 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:52:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-11 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:53:05 [end_date_ymd] => 2025-03-11 10:53:05 [RateCDR] => 1 ) [2025-03-11 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:53:05' and `end` < '2025-03-11 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:53:18] Production.INFO: count ==3686 [2025-03-11 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:53:05 - End Time 2025-03-11 10:53:05 [2025-03-11 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656367', 'tblTempUsageDetail_20' ) start [2025-03-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656367', 'tblTempUsageDetail_20' ) end [2025-03-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656367', 'tblTempVendorCDR_20' ) start [2025-03-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656367', 'tblTempVendorCDR_20' ) end [2025-03-11 10:53:19] Production.INFO: ProcessCDR(1,14656367,1,1,2) [2025-03-11 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656367', 'tblTempUsageDetail_20' ) start [2025-03-11 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656367', 'tblTempUsageDetail_20' ) end [2025-03-11 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:53:24] Production.INFO: ==21780== Releasing lock... [2025-03-11 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:53:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-11 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:54:05 [end_date_ymd] => 2025-03-11 10:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:54:05' and `end` < '2025-03-11 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-11 10:54:18] Production.INFO: count ==3693 [2025-03-11 10:54:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:54:05 - End Time 2025-03-11 10:54:05 [2025-03-11 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656372', 'tblTempUsageDetail_20' ) start [2025-03-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656372', 'tblTempUsageDetail_20' ) end [2025-03-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656372', 'tblTempVendorCDR_20' ) start [2025-03-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656372', 'tblTempVendorCDR_20' ) end [2025-03-11 10:54:19] Production.INFO: ProcessCDR(1,14656372,1,1,2) [2025-03-11 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656372', 'tblTempUsageDetail_20' ) start [2025-03-11 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656372', 'tblTempUsageDetail_20' ) end [2025-03-11 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:54:24] Production.INFO: ==21854== Releasing lock... [2025-03-11 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:54:24] Production.INFO: 56 MB #Memory Used# [2025-03-11 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:55:05 [end_date_ymd] => 2025-03-11 10:55:05 [RateCDR] => 1 ) [2025-03-11 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:55:05' and `end` < '2025-03-11 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:55:18] Production.INFO: count ==3702 [2025-03-11 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:55:05 - End Time 2025-03-11 10:55:05 [2025-03-11 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656377', 'tblTempUsageDetail_20' ) start [2025-03-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656377', 'tblTempUsageDetail_20' ) end [2025-03-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656377', 'tblTempVendorCDR_20' ) start [2025-03-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656377', 'tblTempVendorCDR_20' ) end [2025-03-11 10:55:20] Production.INFO: ProcessCDR(1,14656377,1,1,2) [2025-03-11 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656377', 'tblTempUsageDetail_20' ) start [2025-03-11 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656377', 'tblTempUsageDetail_20' ) end [2025-03-11 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:55:25] Production.INFO: ==21926== Releasing lock... [2025-03-11 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:55:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:56:05 [end_date_ymd] => 2025-03-11 10:56:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:56:05' and `end` < '2025-03-11 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-11 10:56:18] Production.INFO: count ==3728 [2025-03-11 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:56:05 - End Time 2025-03-11 10:56:05 [2025-03-11 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656382', 'tblTempUsageDetail_20' ) start [2025-03-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656382', 'tblTempUsageDetail_20' ) end [2025-03-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656382', 'tblTempVendorCDR_20' ) start [2025-03-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656382', 'tblTempVendorCDR_20' ) end [2025-03-11 10:56:20] Production.INFO: ProcessCDR(1,14656382,1,1,2) [2025-03-11 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656382', 'tblTempUsageDetail_20' ) start [2025-03-11 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656382', 'tblTempUsageDetail_20' ) end [2025-03-11 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:56:26] Production.INFO: ==22036== Releasing lock... [2025-03-11 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:56:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:57:05 [end_date_ymd] => 2025-03-11 10:57:05 [RateCDR] => 1 ) [2025-03-11 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 07:57:05' and `end` < '2025-03-11 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 10:57:18] Production.INFO: count ==3743 [2025-03-11 10:57:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:57:05 - End Time 2025-03-11 10:57:05 [2025-03-11 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656387', 'tblTempUsageDetail_20' ) start [2025-03-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656387', 'tblTempUsageDetail_20' ) end [2025-03-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656387', 'tblTempVendorCDR_20' ) start [2025-03-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656387', 'tblTempVendorCDR_20' ) end [2025-03-11 10:57:19] Production.INFO: ProcessCDR(1,14656387,1,1,2) [2025-03-11 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656387', 'tblTempUsageDetail_20' ) start [2025-03-11 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656387', 'tblTempUsageDetail_20' ) end [2025-03-11 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:57:24] Production.INFO: ==22113== Releasing lock... [2025-03-11 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:57:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:58:05 [end_date_ymd] => 2025-03-11 10:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 07:58:05' and `end` < '2025-03-11 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-11 10:58:18] Production.INFO: count ==3749 [2025-03-11 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-11 07:58:05 - End Time 2025-03-11 10:58:05 [2025-03-11 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656392', 'tblTempUsageDetail_20' ) start [2025-03-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656392', 'tblTempUsageDetail_20' ) end [2025-03-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656392', 'tblTempVendorCDR_20' ) start [2025-03-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656392', 'tblTempVendorCDR_20' ) end [2025-03-11 10:58:20] Production.INFO: ProcessCDR(1,14656392,1,1,2) [2025-03-11 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656392', 'tblTempUsageDetail_20' ) start [2025-03-11 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656392', 'tblTempUsageDetail_20' ) end [2025-03-11 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:58:24] Production.INFO: ==22190== Releasing lock... [2025-03-11 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:58:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 07:59:05 [end_date_ymd] => 2025-03-11 10:59:05 [RateCDR] => 1 ) [2025-03-11 10: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-11 07:59:05' and `end` < '2025-03-11 10: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-11 10:59:18] Production.INFO: count ==3756 [2025-03-11 10:59:19] Production.ERROR: pbx CDR StartTime 2025-03-11 07:59:05 - End Time 2025-03-11 10:59:05 [2025-03-11 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656397', 'tblTempUsageDetail_20' ) start [2025-03-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656397', 'tblTempUsageDetail_20' ) end [2025-03-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656397', 'tblTempVendorCDR_20' ) start [2025-03-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656397', 'tblTempVendorCDR_20' ) end [2025-03-11 10:59:19] Production.INFO: ProcessCDR(1,14656397,1,1,2) [2025-03-11 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656397', 'tblTempUsageDetail_20' ) start [2025-03-11 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656397', 'tblTempUsageDetail_20' ) end [2025-03-11 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 10:59:24] Production.INFO: ==22263== Releasing lock... [2025-03-11 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 10:59:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:00:06 [end_date_ymd] => 2025-03-11 11:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:00:06' and `end` < '2025-03-11 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-11 11:00:19] Production.INFO: count ==3770 [2025-03-11 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:00:06 - End Time 2025-03-11 11:00:06 [2025-03-11 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656402', 'tblTempUsageDetail_20' ) start [2025-03-11 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656402', 'tblTempUsageDetail_20' ) end [2025-03-11 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656402', 'tblTempVendorCDR_20' ) start [2025-03-11 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656402', 'tblTempVendorCDR_20' ) end [2025-03-11 11:00:21] Production.INFO: ProcessCDR(1,14656402,1,1,2) [2025-03-11 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656402', 'tblTempUsageDetail_20' ) start [2025-03-11 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656402', 'tblTempUsageDetail_20' ) end [2025-03-11 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:00:27] Production.INFO: ==22340== Releasing lock... [2025-03-11 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:00:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-11 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:01:06 [end_date_ymd] => 2025-03-11 11:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:01:06' and `end` < '2025-03-11 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-11 11:01:19] Production.INFO: count ==3863 [2025-03-11 11:01:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:01:06 - End Time 2025-03-11 11:01:06 [2025-03-11 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656408', 'tblTempUsageDetail_20' ) start [2025-03-11 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656408', 'tblTempUsageDetail_20' ) end [2025-03-11 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656408', 'tblTempVendorCDR_20' ) start [2025-03-11 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656408', 'tblTempVendorCDR_20' ) end [2025-03-11 11:01:21] Production.INFO: ProcessCDR(1,14656408,1,1,2) [2025-03-11 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656408', 'tblTempUsageDetail_20' ) start [2025-03-11 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656408', 'tblTempUsageDetail_20' ) end [2025-03-11 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:01:27] Production.INFO: ==22511== Releasing lock... [2025-03-11 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:01:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-11 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:02:04 [end_date_ymd] => 2025-03-11 11:02:04 [RateCDR] => 1 ) [2025-03-11 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:02:04' and `end` < '2025-03-11 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:02:20] Production.INFO: count ==3895 [2025-03-11 11:02:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:02:04 - End Time 2025-03-11 11:02:04 [2025-03-11 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656413', 'tblTempUsageDetail_20' ) start [2025-03-11 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656413', 'tblTempUsageDetail_20' ) end [2025-03-11 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656413', 'tblTempVendorCDR_20' ) start [2025-03-11 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656413', 'tblTempVendorCDR_20' ) end [2025-03-11 11:02:21] Production.INFO: ProcessCDR(1,14656413,1,1,2) [2025-03-11 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656413', 'tblTempUsageDetail_20' ) start [2025-03-11 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656413', 'tblTempUsageDetail_20' ) end [2025-03-11 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:02:27] Production.INFO: ==22581== Releasing lock... [2025-03-11 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:02:27] Production.INFO: 57 MB #Memory Used# [2025-03-11 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:03:05 [end_date_ymd] => 2025-03-11 11:03:05 [RateCDR] => 1 ) [2025-03-11 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:03:05' and `end` < '2025-03-11 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:03:23] Production.INFO: count ==3908 [2025-03-11 11:03:25] Production.ERROR: pbx CDR StartTime 2025-03-11 08:03:05 - End Time 2025-03-11 11:03:05 [2025-03-11 11:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656418', 'tblTempUsageDetail_20' ) start [2025-03-11 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656418', 'tblTempUsageDetail_20' ) end [2025-03-11 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656418', 'tblTempVendorCDR_20' ) start [2025-03-11 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656418', 'tblTempVendorCDR_20' ) end [2025-03-11 11:03:25] Production.INFO: ProcessCDR(1,14656418,1,1,2) [2025-03-11 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656418', 'tblTempUsageDetail_20' ) start [2025-03-11 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656418', 'tblTempUsageDetail_20' ) end [2025-03-11 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:03:31] Production.INFO: ==22656== Releasing lock... [2025-03-11 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:03:31] Production.INFO: 57.25 MB #Memory Used# [2025-03-11 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:04:05 [end_date_ymd] => 2025-03-11 11:04:05 [RateCDR] => 1 ) [2025-03-11 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:04:05' and `end` < '2025-03-11 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:04:19] Production.INFO: count ==3917 [2025-03-11 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:04:05 - End Time 2025-03-11 11:04:05 [2025-03-11 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656423', 'tblTempUsageDetail_20' ) start [2025-03-11 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656423', 'tblTempUsageDetail_20' ) end [2025-03-11 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656423', 'tblTempVendorCDR_20' ) start [2025-03-11 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656423', 'tblTempVendorCDR_20' ) end [2025-03-11 11:04:21] Production.INFO: ProcessCDR(1,14656423,1,1,2) [2025-03-11 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656423', 'tblTempUsageDetail_20' ) start [2025-03-11 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656423', 'tblTempUsageDetail_20' ) end [2025-03-11 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:04:25] Production.INFO: ==22732== Releasing lock... [2025-03-11 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:04:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-11 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:05:06 [end_date_ymd] => 2025-03-11 11:05:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:05:06' and `end` < '2025-03-11 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-11 11:05:19] Production.INFO: count ==3929 [2025-03-11 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:05:06 - End Time 2025-03-11 11:05:06 [2025-03-11 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656428', 'tblTempUsageDetail_20' ) start [2025-03-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656428', 'tblTempUsageDetail_20' ) end [2025-03-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656428', 'tblTempVendorCDR_20' ) start [2025-03-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656428', 'tblTempVendorCDR_20' ) end [2025-03-11 11:05:21] Production.INFO: ProcessCDR(1,14656428,1,1,2) [2025-03-11 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656428', 'tblTempUsageDetail_20' ) start [2025-03-11 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656428', 'tblTempUsageDetail_20' ) end [2025-03-11 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:05:26] Production.INFO: ==22887== Releasing lock... [2025-03-11 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:05:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-11 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:06:05 [end_date_ymd] => 2025-03-11 11:06:05 [RateCDR] => 1 ) [2025-03-11 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:06:05' and `end` < '2025-03-11 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:06:18] Production.INFO: count ==3917 [2025-03-11 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:06:05 - End Time 2025-03-11 11:06:05 [2025-03-11 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656433', 'tblTempUsageDetail_20' ) start [2025-03-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656433', 'tblTempUsageDetail_20' ) end [2025-03-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656433', 'tblTempVendorCDR_20' ) start [2025-03-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656433', 'tblTempVendorCDR_20' ) end [2025-03-11 11:06:20] Production.INFO: ProcessCDR(1,14656433,1,1,2) [2025-03-11 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656433', 'tblTempUsageDetail_20' ) start [2025-03-11 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656433', 'tblTempUsageDetail_20' ) end [2025-03-11 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:06:26] Production.INFO: ==22961== Releasing lock... [2025-03-11 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:06:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-11 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:07:06 [end_date_ymd] => 2025-03-11 11:07:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:07:06' and `end` < '2025-03-11 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-11 11:07:19] Production.INFO: count ==3944 [2025-03-11 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:07:06 - End Time 2025-03-11 11:07:06 [2025-03-11 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656438', 'tblTempUsageDetail_20' ) start [2025-03-11 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656438', 'tblTempUsageDetail_20' ) end [2025-03-11 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656438', 'tblTempVendorCDR_20' ) start [2025-03-11 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656438', 'tblTempVendorCDR_20' ) end [2025-03-11 11:07:21] Production.INFO: ProcessCDR(1,14656438,1,1,2) [2025-03-11 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656438', 'tblTempUsageDetail_20' ) start [2025-03-11 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656438', 'tblTempUsageDetail_20' ) end [2025-03-11 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:07:27] Production.INFO: ==23038== Releasing lock... [2025-03-11 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:07:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-11 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:08:05 [end_date_ymd] => 2025-03-11 11:08:05 [RateCDR] => 1 ) [2025-03-11 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:08:05' and `end` < '2025-03-11 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:08:18] Production.INFO: count ==3963 [2025-03-11 11:08:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:08:05 - End Time 2025-03-11 11:08:05 [2025-03-11 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656443', 'tblTempUsageDetail_20' ) start [2025-03-11 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656443', 'tblTempUsageDetail_20' ) end [2025-03-11 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656443', 'tblTempVendorCDR_20' ) start [2025-03-11 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656443', 'tblTempVendorCDR_20' ) end [2025-03-11 11:08:20] Production.INFO: ProcessCDR(1,14656443,1,1,2) [2025-03-11 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656443', 'tblTempUsageDetail_20' ) start [2025-03-11 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656443', 'tblTempUsageDetail_20' ) end [2025-03-11 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:08:26] Production.INFO: ==23195== Releasing lock... [2025-03-11 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:08:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-11 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:09:05 [end_date_ymd] => 2025-03-11 11:09:05 [RateCDR] => 1 ) [2025-03-11 11: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-11 08:09:05' and `end` < '2025-03-11 11: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-11 11:09:18] Production.INFO: count ==4013 [2025-03-11 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:09:05 - End Time 2025-03-11 11:09:05 [2025-03-11 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656448', 'tblTempUsageDetail_20' ) start [2025-03-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656448', 'tblTempUsageDetail_20' ) end [2025-03-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656448', 'tblTempVendorCDR_20' ) start [2025-03-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656448', 'tblTempVendorCDR_20' ) end [2025-03-11 11:09:20] Production.INFO: ProcessCDR(1,14656448,1,1,2) [2025-03-11 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656448', 'tblTempUsageDetail_20' ) start [2025-03-11 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656448', 'tblTempUsageDetail_20' ) end [2025-03-11 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:09:26] Production.INFO: ==23272== Releasing lock... [2025-03-11 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:09:26] Production.INFO: 58 MB #Memory Used# [2025-03-11 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:10:06 [end_date_ymd] => 2025-03-11 11:10:06 [RateCDR] => 1 ) [2025-03-11 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:10:06' and `end` < '2025-03-11 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:10:19] Production.INFO: count ==4050 [2025-03-11 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:10:06 - End Time 2025-03-11 11:10:06 [2025-03-11 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656454', 'tblTempUsageDetail_20' ) start [2025-03-11 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656454', 'tblTempUsageDetail_20' ) end [2025-03-11 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656454', 'tblTempVendorCDR_20' ) start [2025-03-11 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656454', 'tblTempVendorCDR_20' ) end [2025-03-11 11:10:21] Production.INFO: ProcessCDR(1,14656454,1,1,2) [2025-03-11 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656454', 'tblTempUsageDetail_20' ) start [2025-03-11 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656454', 'tblTempUsageDetail_20' ) end [2025-03-11 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:10:27] Production.INFO: ==23356== Releasing lock... [2025-03-11 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:10:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-11 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:11:05 [end_date_ymd] => 2025-03-11 11:11:05 [RateCDR] => 1 ) [2025-03-11 11: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-11 08:11:05' and `end` < '2025-03-11 11: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-11 11:11:18] Production.INFO: count ==4135 [2025-03-11 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:11:05 - End Time 2025-03-11 11:11:05 [2025-03-11 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656459', 'tblTempUsageDetail_20' ) start [2025-03-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656459', 'tblTempUsageDetail_20' ) end [2025-03-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656459', 'tblTempVendorCDR_20' ) start [2025-03-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656459', 'tblTempVendorCDR_20' ) end [2025-03-11 11:11:20] Production.INFO: ProcessCDR(1,14656459,1,1,2) [2025-03-11 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656459', 'tblTempUsageDetail_20' ) start [2025-03-11 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656459', 'tblTempUsageDetail_20' ) end [2025-03-11 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:11:26] Production.INFO: ==23476== Releasing lock... [2025-03-11 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:11:26] Production.INFO: 59 MB #Memory Used# [2025-03-11 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:12:05 [end_date_ymd] => 2025-03-11 11:12:05 [RateCDR] => 1 ) [2025-03-11 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:12:05' and `end` < '2025-03-11 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:12:18] Production.INFO: count ==4132 [2025-03-11 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:12:05 - End Time 2025-03-11 11:12:05 [2025-03-11 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656464', 'tblTempUsageDetail_20' ) start [2025-03-11 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656464', 'tblTempUsageDetail_20' ) end [2025-03-11 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656464', 'tblTempVendorCDR_20' ) start [2025-03-11 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656464', 'tblTempVendorCDR_20' ) end [2025-03-11 11:12:20] Production.INFO: ProcessCDR(1,14656464,1,1,2) [2025-03-11 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656464', 'tblTempUsageDetail_20' ) start [2025-03-11 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656464', 'tblTempUsageDetail_20' ) end [2025-03-11 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:12:26] Production.INFO: ==23631== Releasing lock... [2025-03-11 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:12:26] Production.INFO: 59 MB #Memory Used# [2025-03-11 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:13:06 [end_date_ymd] => 2025-03-11 11:13:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:13:06' and `end` < '2025-03-11 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-11 11:13:19] Production.INFO: count ==4139 [2025-03-11 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:13:06 - End Time 2025-03-11 11:13:06 [2025-03-11 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656469', 'tblTempUsageDetail_20' ) start [2025-03-11 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656469', 'tblTempUsageDetail_20' ) end [2025-03-11 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656469', 'tblTempVendorCDR_20' ) start [2025-03-11 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656469', 'tblTempVendorCDR_20' ) end [2025-03-11 11:13:21] Production.INFO: ProcessCDR(1,14656469,1,1,2) [2025-03-11 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656469', 'tblTempUsageDetail_20' ) start [2025-03-11 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656469', 'tblTempUsageDetail_20' ) end [2025-03-11 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:13:26] Production.INFO: ==23708== Releasing lock... [2025-03-11 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:13:26] Production.INFO: 59 MB #Memory Used# [2025-03-11 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:14:05 [end_date_ymd] => 2025-03-11 11:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:14:05' and `end` < '2025-03-11 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-11 11:14:18] Production.INFO: count ==4133 [2025-03-11 11:14:19] Production.ERROR: pbx CDR StartTime 2025-03-11 08:14:05 - End Time 2025-03-11 11:14:05 [2025-03-11 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656474', 'tblTempUsageDetail_20' ) start [2025-03-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656474', 'tblTempUsageDetail_20' ) end [2025-03-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656474', 'tblTempVendorCDR_20' ) start [2025-03-11 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656474', 'tblTempVendorCDR_20' ) end [2025-03-11 11:14:20] Production.INFO: ProcessCDR(1,14656474,1,1,2) [2025-03-11 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656474', 'tblTempUsageDetail_20' ) start [2025-03-11 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656474', 'tblTempUsageDetail_20' ) end [2025-03-11 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:14:25] Production.INFO: ==23784== Releasing lock... [2025-03-11 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:14:25] Production.INFO: 59 MB #Memory Used# [2025-03-11 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:15:05 [end_date_ymd] => 2025-03-11 11:15:05 [RateCDR] => 1 ) [2025-03-11 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:15:05' and `end` < '2025-03-11 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:15:18] Production.INFO: count ==4140 [2025-03-11 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:15:05 - End Time 2025-03-11 11:15:05 [2025-03-11 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656479', 'tblTempUsageDetail_20' ) start [2025-03-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656479', 'tblTempUsageDetail_20' ) end [2025-03-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656479', 'tblTempVendorCDR_20' ) start [2025-03-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656479', 'tblTempVendorCDR_20' ) end [2025-03-11 11:15:20] Production.INFO: ProcessCDR(1,14656479,1,1,2) [2025-03-11 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656479', 'tblTempUsageDetail_20' ) start [2025-03-11 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656479', 'tblTempUsageDetail_20' ) end [2025-03-11 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:15:25] Production.INFO: ==23938== Releasing lock... [2025-03-11 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:15:25] Production.INFO: 59 MB #Memory Used# [2025-03-11 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:16:05 [end_date_ymd] => 2025-03-11 11:16:05 [RateCDR] => 1 ) [2025-03-11 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:16:05' and `end` < '2025-03-11 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:16:18] Production.INFO: count ==4160 [2025-03-11 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:16:05 - End Time 2025-03-11 11:16:05 [2025-03-11 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656484', 'tblTempUsageDetail_20' ) start [2025-03-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656484', 'tblTempUsageDetail_20' ) end [2025-03-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656484', 'tblTempVendorCDR_20' ) start [2025-03-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656484', 'tblTempVendorCDR_20' ) end [2025-03-11 11:16:20] Production.INFO: ProcessCDR(1,14656484,1,1,2) [2025-03-11 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656484', 'tblTempUsageDetail_20' ) start [2025-03-11 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656484', 'tblTempUsageDetail_20' ) end [2025-03-11 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:16:26] Production.INFO: ==24012== Releasing lock... [2025-03-11 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:16:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-11 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:17:05 [end_date_ymd] => 2025-03-11 11:17:05 [RateCDR] => 1 ) [2025-03-11 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:17:05' and `end` < '2025-03-11 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:17:18] Production.INFO: count ==4175 [2025-03-11 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:17:05 - End Time 2025-03-11 11:17:05 [2025-03-11 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656489', 'tblTempUsageDetail_20' ) start [2025-03-11 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656489', 'tblTempUsageDetail_20' ) end [2025-03-11 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656489', 'tblTempVendorCDR_20' ) start [2025-03-11 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656489', 'tblTempVendorCDR_20' ) end [2025-03-11 11:17:20] Production.INFO: ProcessCDR(1,14656489,1,1,2) [2025-03-11 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656489', 'tblTempUsageDetail_20' ) start [2025-03-11 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656489', 'tblTempUsageDetail_20' ) end [2025-03-11 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:17:26] Production.INFO: ==24087== Releasing lock... [2025-03-11 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:17:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-11 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:18:04 [end_date_ymd] => 2025-03-11 11:18:04 [RateCDR] => 1 ) [2025-03-11 11:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:18:04' and `end` < '2025-03-11 11:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:18:17] Production.INFO: count ==4178 [2025-03-11 11:18:19] Production.ERROR: pbx CDR StartTime 2025-03-11 08:18:04 - End Time 2025-03-11 11:18:04 [2025-03-11 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656493', 'tblTempUsageDetail_20' ) start [2025-03-11 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656493', 'tblTempUsageDetail_20' ) end [2025-03-11 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656493', 'tblTempVendorCDR_20' ) start [2025-03-11 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656493', 'tblTempVendorCDR_20' ) end [2025-03-11 11:18:19] Production.INFO: ProcessCDR(1,14656493,1,1,2) [2025-03-11 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656493', 'tblTempUsageDetail_20' ) start [2025-03-11 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656493', 'tblTempUsageDetail_20' ) end [2025-03-11 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:18:24] Production.INFO: ==24158== Releasing lock... [2025-03-11 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:18:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-11 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:19:05 [end_date_ymd] => 2025-03-11 11:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:19:05' and `end` < '2025-03-11 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-11 11:19:18] Production.INFO: count ==4174 [2025-03-11 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:19:05 - End Time 2025-03-11 11:19:05 [2025-03-11 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656499', 'tblTempUsageDetail_20' ) start [2025-03-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656499', 'tblTempUsageDetail_20' ) end [2025-03-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656499', 'tblTempVendorCDR_20' ) start [2025-03-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656499', 'tblTempVendorCDR_20' ) end [2025-03-11 11:19:20] Production.INFO: ProcessCDR(1,14656499,1,1,2) [2025-03-11 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656499', 'tblTempUsageDetail_20' ) start [2025-03-11 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656499', 'tblTempUsageDetail_20' ) end [2025-03-11 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:19:25] Production.INFO: ==24234== Releasing lock... [2025-03-11 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:19:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-11 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:20:07 [end_date_ymd] => 2025-03-11 11:20:07 [RateCDR] => 1 ) [2025-03-11 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-11 08:20:07' and `end` < '2025-03-11 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-11 11:20:20] Production.INFO: count ==4181 [2025-03-11 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:20:07 - End Time 2025-03-11 11:20:07 [2025-03-11 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656505', 'tblTempUsageDetail_20' ) start [2025-03-11 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656505', 'tblTempUsageDetail_20' ) end [2025-03-11 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656505', 'tblTempVendorCDR_20' ) start [2025-03-11 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656505', 'tblTempVendorCDR_20' ) end [2025-03-11 11:20:22] Production.INFO: ProcessCDR(1,14656505,1,1,2) [2025-03-11 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656505', 'tblTempUsageDetail_20' ) start [2025-03-11 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656505', 'tblTempUsageDetail_20' ) end [2025-03-11 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:20:26] Production.INFO: ==24311== Releasing lock... [2025-03-11 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:20:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-11 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:21:05 [end_date_ymd] => 2025-03-11 11:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:21:05' and `end` < '2025-03-11 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-11 11:21:18] Production.INFO: count ==4304 [2025-03-11 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:21:05 - End Time 2025-03-11 11:21:05 [2025-03-11 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656510', 'tblTempUsageDetail_20' ) start [2025-03-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656510', 'tblTempUsageDetail_20' ) end [2025-03-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656510', 'tblTempVendorCDR_20' ) start [2025-03-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656510', 'tblTempVendorCDR_20' ) end [2025-03-11 11:21:20] Production.INFO: ProcessCDR(1,14656510,1,1,2) [2025-03-11 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656510', 'tblTempUsageDetail_20' ) start [2025-03-11 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656510', 'tblTempUsageDetail_20' ) end [2025-03-11 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:21:25] Production.INFO: ==24392== Releasing lock... [2025-03-11 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:21:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-11 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:22:06 [end_date_ymd] => 2025-03-11 11:22:06 [RateCDR] => 1 ) [2025-03-11 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:22:06' and `end` < '2025-03-11 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:22:19] Production.INFO: count ==4319 [2025-03-11 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:22:06 - End Time 2025-03-11 11:22:06 [2025-03-11 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656515', 'tblTempUsageDetail_20' ) start [2025-03-11 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656515', 'tblTempUsageDetail_20' ) end [2025-03-11 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656515', 'tblTempVendorCDR_20' ) start [2025-03-11 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656515', 'tblTempVendorCDR_20' ) end [2025-03-11 11:22:21] Production.INFO: ProcessCDR(1,14656515,1,1,2) [2025-03-11 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656515', 'tblTempUsageDetail_20' ) start [2025-03-11 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656515', 'tblTempUsageDetail_20' ) end [2025-03-11 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:22:26] Production.INFO: ==24478== Releasing lock... [2025-03-11 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:22:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-11 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:23:05 [end_date_ymd] => 2025-03-11 11:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:23:05' and `end` < '2025-03-11 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-11 11:23:18] Production.INFO: count ==4332 [2025-03-11 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:23:05 - End Time 2025-03-11 11:23:05 [2025-03-11 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656520', 'tblTempUsageDetail_20' ) start [2025-03-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656520', 'tblTempUsageDetail_20' ) end [2025-03-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656520', 'tblTempVendorCDR_20' ) start [2025-03-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656520', 'tblTempVendorCDR_20' ) end [2025-03-11 11:23:20] Production.INFO: ProcessCDR(1,14656520,1,1,2) [2025-03-11 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656520', 'tblTempUsageDetail_20' ) start [2025-03-11 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656520', 'tblTempUsageDetail_20' ) end [2025-03-11 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:23:25] Production.INFO: ==24561== Releasing lock... [2025-03-11 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:23:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-11 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:24:06 [end_date_ymd] => 2025-03-11 11:24:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:24:06' and `end` < '2025-03-11 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-11 11:24:19] Production.INFO: count ==4347 [2025-03-11 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:24:06 - End Time 2025-03-11 11:24:06 [2025-03-11 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656525', 'tblTempUsageDetail_20' ) start [2025-03-11 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656525', 'tblTempUsageDetail_20' ) end [2025-03-11 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656525', 'tblTempVendorCDR_20' ) start [2025-03-11 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656525', 'tblTempVendorCDR_20' ) end [2025-03-11 11:24:21] Production.INFO: ProcessCDR(1,14656525,1,1,2) [2025-03-11 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656525', 'tblTempUsageDetail_20' ) start [2025-03-11 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656525', 'tblTempUsageDetail_20' ) end [2025-03-11 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:24:26] Production.INFO: ==24636== Releasing lock... [2025-03-11 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:24:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-11 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:25:05 [end_date_ymd] => 2025-03-11 11:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:25:05' and `end` < '2025-03-11 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-11 11:25:18] Production.INFO: count ==4364 [2025-03-11 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:25:05 - End Time 2025-03-11 11:25:05 [2025-03-11 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656530', 'tblTempUsageDetail_20' ) start [2025-03-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656530', 'tblTempUsageDetail_20' ) end [2025-03-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656530', 'tblTempVendorCDR_20' ) start [2025-03-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656530', 'tblTempVendorCDR_20' ) end [2025-03-11 11:25:21] Production.INFO: ProcessCDR(1,14656530,1,1,2) [2025-03-11 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656530', 'tblTempUsageDetail_20' ) start [2025-03-11 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656530', 'tblTempUsageDetail_20' ) end [2025-03-11 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:25:26] Production.INFO: ==24710== Releasing lock... [2025-03-11 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:25:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-11 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:26:06 [end_date_ymd] => 2025-03-11 11:26:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:26:06' and `end` < '2025-03-11 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-11 11:26:19] Production.INFO: count ==4376 [2025-03-11 11:26:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:26:06 - End Time 2025-03-11 11:26:06 [2025-03-11 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656535', 'tblTempUsageDetail_20' ) start [2025-03-11 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656535', 'tblTempUsageDetail_20' ) end [2025-03-11 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656535', 'tblTempVendorCDR_20' ) start [2025-03-11 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656535', 'tblTempVendorCDR_20' ) end [2025-03-11 11:26:21] Production.INFO: ProcessCDR(1,14656535,1,1,2) [2025-03-11 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656535', 'tblTempUsageDetail_20' ) start [2025-03-11 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656535', 'tblTempUsageDetail_20' ) end [2025-03-11 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:26:26] Production.INFO: ==24825== Releasing lock... [2025-03-11 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:26:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-11 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:27:05 [end_date_ymd] => 2025-03-11 11:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:27:05' and `end` < '2025-03-11 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-11 11:27:18] Production.INFO: count ==4382 [2025-03-11 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:27:05 - End Time 2025-03-11 11:27:05 [2025-03-11 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656540', 'tblTempUsageDetail_20' ) start [2025-03-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656540', 'tblTempUsageDetail_20' ) end [2025-03-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656540', 'tblTempVendorCDR_20' ) start [2025-03-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656540', 'tblTempVendorCDR_20' ) end [2025-03-11 11:27:20] Production.INFO: ProcessCDR(1,14656540,1,1,2) [2025-03-11 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656540', 'tblTempUsageDetail_20' ) start [2025-03-11 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656540', 'tblTempUsageDetail_20' ) end [2025-03-11 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:27:26] Production.INFO: ==24897== Releasing lock... [2025-03-11 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:27:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-11 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:28:05 [end_date_ymd] => 2025-03-11 11:28:05 [RateCDR] => 1 ) [2025-03-11 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:28:05' and `end` < '2025-03-11 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:28:19] Production.INFO: count ==4412 [2025-03-11 11:28:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:28:05 - End Time 2025-03-11 11:28:05 [2025-03-11 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656545', 'tblTempUsageDetail_20' ) start [2025-03-11 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656545', 'tblTempUsageDetail_20' ) end [2025-03-11 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656545', 'tblTempVendorCDR_20' ) start [2025-03-11 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656545', 'tblTempVendorCDR_20' ) end [2025-03-11 11:28:21] Production.INFO: ProcessCDR(1,14656545,1,1,2) [2025-03-11 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656545', 'tblTempUsageDetail_20' ) start [2025-03-11 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656545', 'tblTempUsageDetail_20' ) end [2025-03-11 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:28:28] Production.INFO: ==24980== Releasing lock... [2025-03-11 11:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:28:28] Production.INFO: 61 MB #Memory Used# [2025-03-11 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:29:05 [end_date_ymd] => 2025-03-11 11:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:29:05' and `end` < '2025-03-11 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-11 11:29:18] Production.INFO: count ==4414 [2025-03-11 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:29:05 - End Time 2025-03-11 11:29:05 [2025-03-11 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656550', 'tblTempUsageDetail_20' ) start [2025-03-11 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656550', 'tblTempUsageDetail_20' ) end [2025-03-11 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656550', 'tblTempVendorCDR_20' ) start [2025-03-11 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656550', 'tblTempVendorCDR_20' ) end [2025-03-11 11:29:20] Production.INFO: ProcessCDR(1,14656550,1,1,2) [2025-03-11 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656550', 'tblTempUsageDetail_20' ) start [2025-03-11 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656550', 'tblTempUsageDetail_20' ) end [2025-03-11 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:29:25] Production.INFO: ==25054== Releasing lock... [2025-03-11 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:29:25] Production.INFO: 61 MB #Memory Used# [2025-03-11 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:30:06 [end_date_ymd] => 2025-03-11 11:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:30:06' and `end` < '2025-03-11 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-11 11:30:19] Production.INFO: count ==4423 [2025-03-11 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:30:06 - End Time 2025-03-11 11:30:06 [2025-03-11 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656554', 'tblTempUsageDetail_20' ) start [2025-03-11 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656554', 'tblTempUsageDetail_20' ) end [2025-03-11 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656554', 'tblTempVendorCDR_20' ) start [2025-03-11 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656554', 'tblTempVendorCDR_20' ) end [2025-03-11 11:30:21] Production.INFO: ProcessCDR(1,14656554,1,1,2) [2025-03-11 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656554', 'tblTempUsageDetail_20' ) start [2025-03-11 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656554', 'tblTempUsageDetail_20' ) end [2025-03-11 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:30:26] Production.INFO: ==25131== Releasing lock... [2025-03-11 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:30:26] Production.INFO: 61 MB #Memory Used# [2025-03-11 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:31:05 [end_date_ymd] => 2025-03-11 11:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:31:05' and `end` < '2025-03-11 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-11 11:31:19] Production.INFO: count ==4505 [2025-03-11 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:31:05 - End Time 2025-03-11 11:31:05 [2025-03-11 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656561', 'tblTempUsageDetail_20' ) start [2025-03-11 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656561', 'tblTempUsageDetail_20' ) end [2025-03-11 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656561', 'tblTempVendorCDR_20' ) start [2025-03-11 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656561', 'tblTempVendorCDR_20' ) end [2025-03-11 11:31:21] Production.INFO: ProcessCDR(1,14656561,1,1,2) [2025-03-11 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656561', 'tblTempUsageDetail_20' ) start [2025-03-11 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656561', 'tblTempUsageDetail_20' ) end [2025-03-11 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:31:26] Production.INFO: ==25209== Releasing lock... [2025-03-11 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:31:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-11 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:32:05 [end_date_ymd] => 2025-03-11 11:32:05 [RateCDR] => 1 ) [2025-03-11 11: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-11 08:32:05' and `end` < '2025-03-11 11: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-11 11:32:18] Production.INFO: count ==4523 [2025-03-11 11:32:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:32:05 - End Time 2025-03-11 11:32:05 [2025-03-11 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656566', 'tblTempUsageDetail_20' ) start [2025-03-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656566', 'tblTempUsageDetail_20' ) end [2025-03-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656566', 'tblTempVendorCDR_20' ) start [2025-03-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656566', 'tblTempVendorCDR_20' ) end [2025-03-11 11:32:21] Production.INFO: ProcessCDR(1,14656566,1,1,2) [2025-03-11 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656566', 'tblTempUsageDetail_20' ) start [2025-03-11 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656566', 'tblTempUsageDetail_20' ) end [2025-03-11 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:32:26] Production.INFO: ==25284== Releasing lock... [2025-03-11 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:32:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-11 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:33:05 [end_date_ymd] => 2025-03-11 11:33:05 [RateCDR] => 1 ) [2025-03-11 11: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-11 08:33:05' and `end` < '2025-03-11 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-11 11:33:19] Production.INFO: count ==4533 [2025-03-11 11:33:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:33:05 - End Time 2025-03-11 11:33:05 [2025-03-11 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656571', 'tblTempUsageDetail_20' ) start [2025-03-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656571', 'tblTempUsageDetail_20' ) end [2025-03-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656571', 'tblTempVendorCDR_20' ) start [2025-03-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656571', 'tblTempVendorCDR_20' ) end [2025-03-11 11:33:21] Production.INFO: ProcessCDR(1,14656571,1,1,2) [2025-03-11 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656571', 'tblTempUsageDetail_20' ) start [2025-03-11 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656571', 'tblTempUsageDetail_20' ) end [2025-03-11 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:33:26] Production.INFO: ==25358== Releasing lock... [2025-03-11 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:33:26] Production.INFO: 62 MB #Memory Used# [2025-03-11 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:34:06 [end_date_ymd] => 2025-03-11 11:34:06 [RateCDR] => 1 ) [2025-03-11 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:34:06' and `end` < '2025-03-11 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:34:19] Production.INFO: count ==4556 [2025-03-11 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:34:06 - End Time 2025-03-11 11:34:06 [2025-03-11 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656576', 'tblTempUsageDetail_20' ) start [2025-03-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656576', 'tblTempUsageDetail_20' ) end [2025-03-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656576', 'tblTempVendorCDR_20' ) start [2025-03-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656576', 'tblTempVendorCDR_20' ) end [2025-03-11 11:34:21] Production.INFO: ProcessCDR(1,14656576,1,1,2) [2025-03-11 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656576', 'tblTempUsageDetail_20' ) start [2025-03-11 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656576', 'tblTempUsageDetail_20' ) end [2025-03-11 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:34:26] Production.INFO: ==25434== Releasing lock... [2025-03-11 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:34:26] Production.INFO: 62 MB #Memory Used# [2025-03-11 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:35:05 [end_date_ymd] => 2025-03-11 11:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:35:05' and `end` < '2025-03-11 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-11 11:35:18] Production.INFO: count ==4584 [2025-03-11 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:35:05 - End Time 2025-03-11 11:35:05 [2025-03-11 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656581', 'tblTempUsageDetail_20' ) start [2025-03-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656581', 'tblTempUsageDetail_20' ) end [2025-03-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656581', 'tblTempVendorCDR_20' ) start [2025-03-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656581', 'tblTempVendorCDR_20' ) end [2025-03-11 11:35:20] Production.INFO: ProcessCDR(1,14656581,1,1,2) [2025-03-11 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656581', 'tblTempUsageDetail_20' ) start [2025-03-11 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656581', 'tblTempUsageDetail_20' ) end [2025-03-11 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:35:25] Production.INFO: ==25508== Releasing lock... [2025-03-11 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:35:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-11 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:36:06 [end_date_ymd] => 2025-03-11 11:36:06 [RateCDR] => 1 ) [2025-03-11 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:36:06' and `end` < '2025-03-11 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:36:19] Production.INFO: count ==4601 [2025-03-11 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:36:06 - End Time 2025-03-11 11:36:06 [2025-03-11 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656586', 'tblTempUsageDetail_20' ) start [2025-03-11 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656586', 'tblTempUsageDetail_20' ) end [2025-03-11 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656586', 'tblTempVendorCDR_20' ) start [2025-03-11 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656586', 'tblTempVendorCDR_20' ) end [2025-03-11 11:36:22] Production.INFO: ProcessCDR(1,14656586,1,1,2) [2025-03-11 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656586', 'tblTempUsageDetail_20' ) start [2025-03-11 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656586', 'tblTempUsageDetail_20' ) end [2025-03-11 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:36:27] Production.INFO: ==25587== Releasing lock... [2025-03-11 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:36:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-11 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:37:05 [end_date_ymd] => 2025-03-11 11:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:37:05' and `end` < '2025-03-11 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-11 11:37:18] Production.INFO: count ==4639 [2025-03-11 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:37:05 - End Time 2025-03-11 11:37:05 [2025-03-11 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656591', 'tblTempUsageDetail_20' ) start [2025-03-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656591', 'tblTempUsageDetail_20' ) end [2025-03-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656591', 'tblTempVendorCDR_20' ) start [2025-03-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656591', 'tblTempVendorCDR_20' ) end [2025-03-11 11:37:20] Production.INFO: ProcessCDR(1,14656591,1,1,2) [2025-03-11 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656591', 'tblTempUsageDetail_20' ) start [2025-03-11 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656591', 'tblTempUsageDetail_20' ) end [2025-03-11 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:37:26] Production.INFO: ==25682== Releasing lock... [2025-03-11 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:37:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-11 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:38:05 [end_date_ymd] => 2025-03-11 11:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:38:05' and `end` < '2025-03-11 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-11 11:38:18] Production.INFO: count ==4641 [2025-03-11 11:38:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:38:05 - End Time 2025-03-11 11:38:05 [2025-03-11 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656596', 'tblTempUsageDetail_20' ) start [2025-03-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656596', 'tblTempUsageDetail_20' ) end [2025-03-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656596', 'tblTempVendorCDR_20' ) start [2025-03-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656596', 'tblTempVendorCDR_20' ) end [2025-03-11 11:38:20] Production.INFO: ProcessCDR(1,14656596,1,1,2) [2025-03-11 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656596', 'tblTempUsageDetail_20' ) start [2025-03-11 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656596', 'tblTempUsageDetail_20' ) end [2025-03-11 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:38:26] Production.INFO: ==25757== Releasing lock... [2025-03-11 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:38:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-11 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:39:05 [end_date_ymd] => 2025-03-11 11:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:39:05' and `end` < '2025-03-11 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-11 11:39:18] Production.INFO: count ==4655 [2025-03-11 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:39:05 - End Time 2025-03-11 11:39:05 [2025-03-11 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656601', 'tblTempUsageDetail_20' ) start [2025-03-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656601', 'tblTempUsageDetail_20' ) end [2025-03-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656601', 'tblTempVendorCDR_20' ) start [2025-03-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656601', 'tblTempVendorCDR_20' ) end [2025-03-11 11:39:20] Production.INFO: ProcessCDR(1,14656601,1,1,2) [2025-03-11 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656601', 'tblTempUsageDetail_20' ) start [2025-03-11 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656601', 'tblTempUsageDetail_20' ) end [2025-03-11 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:39:25] Production.INFO: ==25836== Releasing lock... [2025-03-11 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:39:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-11 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:40:06 [end_date_ymd] => 2025-03-11 11:40:06 [RateCDR] => 1 ) [2025-03-11 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:40:06' and `end` < '2025-03-11 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:40:19] Production.INFO: count ==4659 [2025-03-11 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:40:06 - End Time 2025-03-11 11:40:06 [2025-03-11 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656606', 'tblTempUsageDetail_20' ) start [2025-03-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656606', 'tblTempUsageDetail_20' ) end [2025-03-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656606', 'tblTempVendorCDR_20' ) start [2025-03-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656606', 'tblTempVendorCDR_20' ) end [2025-03-11 11:40:21] Production.INFO: ProcessCDR(1,14656606,1,1,2) [2025-03-11 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656606', 'tblTempUsageDetail_20' ) start [2025-03-11 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656606', 'tblTempUsageDetail_20' ) end [2025-03-11 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:40:26] Production.INFO: ==25912== Releasing lock... [2025-03-11 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:40:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-11 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:41:05 [end_date_ymd] => 2025-03-11 11:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:41:05' and `end` < '2025-03-11 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-11 11:41:18] Production.INFO: count ==4770 [2025-03-11 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:41:05 - End Time 2025-03-11 11:41:05 [2025-03-11 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656612', 'tblTempUsageDetail_20' ) start [2025-03-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656612', 'tblTempUsageDetail_20' ) end [2025-03-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656612', 'tblTempVendorCDR_20' ) start [2025-03-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656612', 'tblTempVendorCDR_20' ) end [2025-03-11 11:41:20] Production.INFO: ProcessCDR(1,14656612,1,1,2) [2025-03-11 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656612', 'tblTempUsageDetail_20' ) start [2025-03-11 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656612', 'tblTempUsageDetail_20' ) end [2025-03-11 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:41:25] Production.INFO: ==25988== Releasing lock... [2025-03-11 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:41:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-11 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:42:06 [end_date_ymd] => 2025-03-11 11:42:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:42:06' and `end` < '2025-03-11 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-11 11:42:19] Production.INFO: count ==4787 [2025-03-11 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:42:06 - End Time 2025-03-11 11:42:06 [2025-03-11 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656617', 'tblTempUsageDetail_20' ) start [2025-03-11 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656617', 'tblTempUsageDetail_20' ) end [2025-03-11 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656617', 'tblTempVendorCDR_20' ) start [2025-03-11 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656617', 'tblTempVendorCDR_20' ) end [2025-03-11 11:42:21] Production.INFO: ProcessCDR(1,14656617,1,1,2) [2025-03-11 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656617', 'tblTempUsageDetail_20' ) start [2025-03-11 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656617', 'tblTempUsageDetail_20' ) end [2025-03-11 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:42:26] Production.INFO: ==26101== Releasing lock... [2025-03-11 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-11 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:43:05 [end_date_ymd] => 2025-03-11 11:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:43:05' and `end` < '2025-03-11 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-11 11:43:19] Production.INFO: count ==4809 [2025-03-11 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:43:05 - End Time 2025-03-11 11:43:05 [2025-03-11 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656622', 'tblTempUsageDetail_20' ) start [2025-03-11 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656622', 'tblTempUsageDetail_20' ) end [2025-03-11 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656622', 'tblTempVendorCDR_20' ) start [2025-03-11 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656622', 'tblTempVendorCDR_20' ) end [2025-03-11 11:43:21] Production.INFO: ProcessCDR(1,14656622,1,1,2) [2025-03-11 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656622', 'tblTempUsageDetail_20' ) start [2025-03-11 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656622', 'tblTempUsageDetail_20' ) end [2025-03-11 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:43:26] Production.INFO: ==26171== Releasing lock... [2025-03-11 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:43:26] Production.INFO: 64 MB #Memory Used# [2025-03-11 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:44:06 [end_date_ymd] => 2025-03-11 11:44:06 [RateCDR] => 1 ) [2025-03-11 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:44:06' and `end` < '2025-03-11 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:44:19] Production.INFO: count ==4820 [2025-03-11 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:44:06 - End Time 2025-03-11 11:44:06 [2025-03-11 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656627', 'tblTempUsageDetail_20' ) start [2025-03-11 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656627', 'tblTempUsageDetail_20' ) end [2025-03-11 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656627', 'tblTempVendorCDR_20' ) start [2025-03-11 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656627', 'tblTempVendorCDR_20' ) end [2025-03-11 11:44:21] Production.INFO: ProcessCDR(1,14656627,1,1,2) [2025-03-11 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656627', 'tblTempUsageDetail_20' ) start [2025-03-11 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656627', 'tblTempUsageDetail_20' ) end [2025-03-11 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:44:26] Production.INFO: ==26243== Releasing lock... [2025-03-11 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:44:26] Production.INFO: 64 MB #Memory Used# [2025-03-11 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:45:05 [end_date_ymd] => 2025-03-11 11:45:05 [RateCDR] => 1 ) [2025-03-11 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:45:05' and `end` < '2025-03-11 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:45:18] Production.INFO: count ==4830 [2025-03-11 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:45:05 - End Time 2025-03-11 11:45:05 [2025-03-11 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656632', 'tblTempUsageDetail_20' ) start [2025-03-11 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656632', 'tblTempUsageDetail_20' ) end [2025-03-11 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656632', 'tblTempVendorCDR_20' ) start [2025-03-11 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656632', 'tblTempVendorCDR_20' ) end [2025-03-11 11:45:21] Production.INFO: ProcessCDR(1,14656632,1,1,2) [2025-03-11 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656632', 'tblTempUsageDetail_20' ) start [2025-03-11 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656632', 'tblTempUsageDetail_20' ) end [2025-03-11 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:45:26] Production.INFO: ==26321== Releasing lock... [2025-03-11 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:45:26] Production.INFO: 64 MB #Memory Used# [2025-03-11 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:46:06 [end_date_ymd] => 2025-03-11 11:46:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:46:06' and `end` < '2025-03-11 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-11 11:46:19] Production.INFO: count ==4857 [2025-03-11 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:46:06 - End Time 2025-03-11 11:46:06 [2025-03-11 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656637', 'tblTempUsageDetail_20' ) start [2025-03-11 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656637', 'tblTempUsageDetail_20' ) end [2025-03-11 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656637', 'tblTempVendorCDR_20' ) start [2025-03-11 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656637', 'tblTempVendorCDR_20' ) end [2025-03-11 11:46:21] Production.INFO: ProcessCDR(1,14656637,1,1,2) [2025-03-11 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656637', 'tblTempUsageDetail_20' ) start [2025-03-11 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656637', 'tblTempUsageDetail_20' ) end [2025-03-11 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:46:26] Production.INFO: ==26392== Releasing lock... [2025-03-11 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:46:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-11 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:47:05 [end_date_ymd] => 2025-03-11 11:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:47:05' and `end` < '2025-03-11 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-11 11:47:18] Production.INFO: count ==4881 [2025-03-11 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:47:05 - End Time 2025-03-11 11:47:05 [2025-03-11 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656642', 'tblTempUsageDetail_20' ) start [2025-03-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656642', 'tblTempUsageDetail_20' ) end [2025-03-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656642', 'tblTempVendorCDR_20' ) start [2025-03-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656642', 'tblTempVendorCDR_20' ) end [2025-03-11 11:47:21] Production.INFO: ProcessCDR(1,14656642,1,1,2) [2025-03-11 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656642', 'tblTempUsageDetail_20' ) start [2025-03-11 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656642', 'tblTempUsageDetail_20' ) end [2025-03-11 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:47:26] Production.INFO: ==26470== Releasing lock... [2025-03-11 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-11 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:48:05 [end_date_ymd] => 2025-03-11 11:48:05 [RateCDR] => 1 ) [2025-03-11 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:48:05' and `end` < '2025-03-11 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:48:18] Production.INFO: count ==4896 [2025-03-11 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:48:05 - End Time 2025-03-11 11:48:05 [2025-03-11 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656647', 'tblTempUsageDetail_20' ) start [2025-03-11 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656647', 'tblTempUsageDetail_20' ) end [2025-03-11 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656647', 'tblTempVendorCDR_20' ) start [2025-03-11 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656647', 'tblTempVendorCDR_20' ) end [2025-03-11 11:48:21] Production.INFO: ProcessCDR(1,14656647,1,1,2) [2025-03-11 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656647', 'tblTempUsageDetail_20' ) start [2025-03-11 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656647', 'tblTempUsageDetail_20' ) end [2025-03-11 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:48:26] Production.INFO: ==26551== Releasing lock... [2025-03-11 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:48:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-11 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:49:05 [end_date_ymd] => 2025-03-11 11:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:49:05' and `end` < '2025-03-11 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-11 11:49:18] Production.INFO: count ==4899 [2025-03-11 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:49:05 - End Time 2025-03-11 11:49:05 [2025-03-11 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656652', 'tblTempUsageDetail_20' ) start [2025-03-11 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656652', 'tblTempUsageDetail_20' ) end [2025-03-11 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656652', 'tblTempVendorCDR_20' ) start [2025-03-11 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656652', 'tblTempVendorCDR_20' ) end [2025-03-11 11:49:20] Production.INFO: ProcessCDR(1,14656652,1,1,2) [2025-03-11 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656652', 'tblTempUsageDetail_20' ) start [2025-03-11 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656652', 'tblTempUsageDetail_20' ) end [2025-03-11 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:49:24] Production.INFO: ==26627== Releasing lock... [2025-03-11 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:49:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-11 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:50:06 [end_date_ymd] => 2025-03-11 11:50:06 [RateCDR] => 1 ) [2025-03-11 11: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-11 08:50:06' and `end` < '2025-03-11 11: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-11 11:50:19] Production.INFO: count ==4924 [2025-03-11 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:50:06 - End Time 2025-03-11 11:50:06 [2025-03-11 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656658', 'tblTempUsageDetail_20' ) start [2025-03-11 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656658', 'tblTempUsageDetail_20' ) end [2025-03-11 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656658', 'tblTempVendorCDR_20' ) start [2025-03-11 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656658', 'tblTempVendorCDR_20' ) end [2025-03-11 11:50:21] Production.INFO: ProcessCDR(1,14656658,1,1,2) [2025-03-11 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656658', 'tblTempUsageDetail_20' ) start [2025-03-11 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656658', 'tblTempUsageDetail_20' ) end [2025-03-11 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:50:27] Production.INFO: ==26706== Releasing lock... [2025-03-11 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:50:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-11 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:51:05 [end_date_ymd] => 2025-03-11 11:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:51:05' and `end` < '2025-03-11 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-11 11:51:18] Production.INFO: count ==4975 [2025-03-11 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:51:05 - End Time 2025-03-11 11:51:05 [2025-03-11 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656663', 'tblTempUsageDetail_20' ) start [2025-03-11 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656663', 'tblTempUsageDetail_20' ) end [2025-03-11 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656663', 'tblTempVendorCDR_20' ) start [2025-03-11 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656663', 'tblTempVendorCDR_20' ) end [2025-03-11 11:51:21] Production.INFO: ProcessCDR(1,14656663,1,1,2) [2025-03-11 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656663', 'tblTempUsageDetail_20' ) start [2025-03-11 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656663', 'tblTempUsageDetail_20' ) end [2025-03-11 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:51:26] Production.INFO: ==26781== Releasing lock... [2025-03-11 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:51:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:52:06 [end_date_ymd] => 2025-03-11 11:52:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:52:06' and `end` < '2025-03-11 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-11 11:52:19] Production.INFO: count ==4975 [2025-03-11 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:52:06 - End Time 2025-03-11 11:52:06 [2025-03-11 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656668', 'tblTempUsageDetail_20' ) start [2025-03-11 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656668', 'tblTempUsageDetail_20' ) end [2025-03-11 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656668', 'tblTempVendorCDR_20' ) start [2025-03-11 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656668', 'tblTempVendorCDR_20' ) end [2025-03-11 11:52:21] Production.INFO: ProcessCDR(1,14656668,1,1,2) [2025-03-11 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656668', 'tblTempUsageDetail_20' ) start [2025-03-11 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656668', 'tblTempUsageDetail_20' ) end [2025-03-11 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:52:26] Production.INFO: ==26857== Releasing lock... [2025-03-11 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:52:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:53:05 [end_date_ymd] => 2025-03-11 11:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:53:05' and `end` < '2025-03-11 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-11 11:53:18] Production.INFO: count ==4979 [2025-03-11 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:53:05 - End Time 2025-03-11 11:53:05 [2025-03-11 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656673', 'tblTempUsageDetail_20' ) start [2025-03-11 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656673', 'tblTempUsageDetail_20' ) end [2025-03-11 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656673', 'tblTempVendorCDR_20' ) start [2025-03-11 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656673', 'tblTempVendorCDR_20' ) end [2025-03-11 11:53:21] Production.INFO: ProcessCDR(1,14656673,1,1,2) [2025-03-11 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656673', 'tblTempUsageDetail_20' ) start [2025-03-11 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656673', 'tblTempUsageDetail_20' ) end [2025-03-11 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:53:26] Production.INFO: ==26936== Releasing lock... [2025-03-11 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:53:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:54:05 [end_date_ymd] => 2025-03-11 11:54:05 [RateCDR] => 1 ) [2025-03-11 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 08:54:05' and `end` < '2025-03-11 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 11:54:18] Production.INFO: count ==4991 [2025-03-11 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:54:05 - End Time 2025-03-11 11:54:05 [2025-03-11 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656678', 'tblTempUsageDetail_20' ) start [2025-03-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656678', 'tblTempUsageDetail_20' ) end [2025-03-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656678', 'tblTempVendorCDR_20' ) start [2025-03-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656678', 'tblTempVendorCDR_20' ) end [2025-03-11 11:54:21] Production.INFO: ProcessCDR(1,14656678,1,1,2) [2025-03-11 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656678', 'tblTempUsageDetail_20' ) start [2025-03-11 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656678', 'tblTempUsageDetail_20' ) end [2025-03-11 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:54:26] Production.INFO: ==27009== Releasing lock... [2025-03-11 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:54:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:55:05 [end_date_ymd] => 2025-03-11 11:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:55:05' and `end` < '2025-03-11 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-11 11:55:18] Production.INFO: count ==5006 [2025-03-11 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-11 08:55:05 - End Time 2025-03-11 11:55:05 [2025-03-11 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656683', 'tblTempUsageDetail_20' ) start [2025-03-11 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656683', 'tblTempUsageDetail_20' ) end [2025-03-11 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656683', 'tblTempVendorCDR_20' ) start [2025-03-11 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656683', 'tblTempVendorCDR_20' ) end [2025-03-11 11:55:20] Production.INFO: ProcessCDR(1,14656683,1,1,2) [2025-03-11 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656683', 'tblTempUsageDetail_20' ) start [2025-03-11 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656683', 'tblTempUsageDetail_20' ) end [2025-03-11 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:55:25] Production.INFO: ==27087== Releasing lock... [2025-03-11 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:55:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:56:06 [end_date_ymd] => 2025-03-11 11:56:06 [RateCDR] => 1 ) [2025-03-11 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-11 08:56:06' and `end` < '2025-03-11 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-11 11:56:19] Production.INFO: count ==5005 [2025-03-11 11:56:22] Production.ERROR: pbx CDR StartTime 2025-03-11 08:56:06 - End Time 2025-03-11 11:56:06 [2025-03-11 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656688', 'tblTempUsageDetail_20' ) start [2025-03-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656688', 'tblTempUsageDetail_20' ) end [2025-03-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656688', 'tblTempVendorCDR_20' ) start [2025-03-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656688', 'tblTempVendorCDR_20' ) end [2025-03-11 11:56:22] Production.INFO: ProcessCDR(1,14656688,1,1,2) [2025-03-11 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656688', 'tblTempUsageDetail_20' ) start [2025-03-11 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656688', 'tblTempUsageDetail_20' ) end [2025-03-11 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:56:27] Production.INFO: ==27171== Releasing lock... [2025-03-11 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:56:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:57:05 [end_date_ymd] => 2025-03-11 11:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:57:05' and `end` < '2025-03-11 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-11 11:57:18] Production.INFO: count ==5010 [2025-03-11 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:57:05 - End Time 2025-03-11 11:57:05 [2025-03-11 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656693', 'tblTempUsageDetail_20' ) start [2025-03-11 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656693', 'tblTempUsageDetail_20' ) end [2025-03-11 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656693', 'tblTempVendorCDR_20' ) start [2025-03-11 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656693', 'tblTempVendorCDR_20' ) end [2025-03-11 11:57:21] Production.INFO: ProcessCDR(1,14656693,1,1,2) [2025-03-11 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656693', 'tblTempUsageDetail_20' ) start [2025-03-11 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656693', 'tblTempUsageDetail_20' ) end [2025-03-11 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:57:26] Production.INFO: ==27287== Releasing lock... [2025-03-11 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:57:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:58:05 [end_date_ymd] => 2025-03-11 11:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:58:05' and `end` < '2025-03-11 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-11 11:58:18] Production.INFO: count ==5024 [2025-03-11 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:58:05 - End Time 2025-03-11 11:58:05 [2025-03-11 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656698', 'tblTempUsageDetail_20' ) start [2025-03-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656698', 'tblTempUsageDetail_20' ) end [2025-03-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656698', 'tblTempVendorCDR_20' ) start [2025-03-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656698', 'tblTempVendorCDR_20' ) end [2025-03-11 11:58:21] Production.INFO: ProcessCDR(1,14656698,1,1,2) [2025-03-11 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656698', 'tblTempUsageDetail_20' ) start [2025-03-11 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656698', 'tblTempUsageDetail_20' ) end [2025-03-11 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:58:27] Production.INFO: ==27363== Releasing lock... [2025-03-11 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:58:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 08:59:05 [end_date_ymd] => 2025-03-11 11:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 08:59:05' and `end` < '2025-03-11 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-11 11:59:18] Production.INFO: count ==5026 [2025-03-11 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-11 08:59:05 - End Time 2025-03-11 11:59:05 [2025-03-11 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656703', 'tblTempUsageDetail_20' ) start [2025-03-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656703', 'tblTempUsageDetail_20' ) end [2025-03-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656703', 'tblTempVendorCDR_20' ) start [2025-03-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656703', 'tblTempVendorCDR_20' ) end [2025-03-11 11:59:21] Production.INFO: ProcessCDR(1,14656703,1,1,2) [2025-03-11 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656703', 'tblTempUsageDetail_20' ) start [2025-03-11 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656703', 'tblTempUsageDetail_20' ) end [2025-03-11 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 11:59:26] Production.INFO: ==27439== Releasing lock... [2025-03-11 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 11:59:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:00:07 [end_date_ymd] => 2025-03-11 12:00:07 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:00:07' and `end` < '2025-03-11 12: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-11 12:00:20] Production.INFO: count ==5026 [2025-03-11 12:00:23] Production.ERROR: pbx CDR StartTime 2025-03-11 09:00:07 - End Time 2025-03-11 12:00:07 [2025-03-11 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656709', 'tblTempUsageDetail_20' ) start [2025-03-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656709', 'tblTempUsageDetail_20' ) end [2025-03-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656709', 'tblTempVendorCDR_20' ) start [2025-03-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656709', 'tblTempVendorCDR_20' ) end [2025-03-11 12:00:23] Production.INFO: ProcessCDR(1,14656709,1,1,2) [2025-03-11 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656709', 'tblTempUsageDetail_20' ) start [2025-03-11 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656709', 'tblTempUsageDetail_20' ) end [2025-03-11 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:00:29] Production.INFO: ==27521== Releasing lock... [2025-03-11 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:00:29] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:01:06 [end_date_ymd] => 2025-03-11 12:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:01:06' and `end` < '2025-03-11 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-11 12:01:19] Production.INFO: count ==5105 [2025-03-11 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:01:06 - End Time 2025-03-11 12:01:06 [2025-03-11 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656714', 'tblTempUsageDetail_20' ) start [2025-03-11 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656714', 'tblTempUsageDetail_20' ) end [2025-03-11 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656714', 'tblTempVendorCDR_20' ) start [2025-03-11 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656714', 'tblTempVendorCDR_20' ) end [2025-03-11 12:01:21] Production.INFO: ProcessCDR(1,14656714,1,1,2) [2025-03-11 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656714', 'tblTempUsageDetail_20' ) start [2025-03-11 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656714', 'tblTempUsageDetail_20' ) end [2025-03-11 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:01:27] Production.INFO: ==27622== Releasing lock... [2025-03-11 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:01:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:02:06 [end_date_ymd] => 2025-03-11 12:02:06 [RateCDR] => 1 ) [2025-03-11 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:02:06' and `end` < '2025-03-11 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:02:19] Production.INFO: count ==5109 [2025-03-11 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:02:06 - End Time 2025-03-11 12:02:06 [2025-03-11 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656719', 'tblTempUsageDetail_20' ) start [2025-03-11 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656719', 'tblTempUsageDetail_20' ) end [2025-03-11 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656719', 'tblTempVendorCDR_20' ) start [2025-03-11 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656719', 'tblTempVendorCDR_20' ) end [2025-03-11 12:02:22] Production.INFO: ProcessCDR(1,14656719,1,1,2) [2025-03-11 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656719', 'tblTempUsageDetail_20' ) start [2025-03-11 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656719', 'tblTempUsageDetail_20' ) end [2025-03-11 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:02:28] Production.INFO: ==27700== Releasing lock... [2025-03-11 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:02:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:03:05 [end_date_ymd] => 2025-03-11 12:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:03:05' and `end` < '2025-03-11 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-11 12:03:18] Production.INFO: count ==5104 [2025-03-11 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:03:05 - End Time 2025-03-11 12:03:05 [2025-03-11 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656724', 'tblTempUsageDetail_20' ) start [2025-03-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656724', 'tblTempUsageDetail_20' ) end [2025-03-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656724', 'tblTempVendorCDR_20' ) start [2025-03-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656724', 'tblTempVendorCDR_20' ) end [2025-03-11 12:03:21] Production.INFO: ProcessCDR(1,14656724,1,1,2) [2025-03-11 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656724', 'tblTempUsageDetail_20' ) start [2025-03-11 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656724', 'tblTempUsageDetail_20' ) end [2025-03-11 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:03:26] Production.INFO: ==27779== Releasing lock... [2025-03-11 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:03:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:04:06 [end_date_ymd] => 2025-03-11 12:04:06 [RateCDR] => 1 ) [2025-03-11 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:04:06' and `end` < '2025-03-11 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:04:19] Production.INFO: count ==5099 [2025-03-11 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:04:06 - End Time 2025-03-11 12:04:06 [2025-03-11 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656729', 'tblTempUsageDetail_20' ) start [2025-03-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656729', 'tblTempUsageDetail_20' ) end [2025-03-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656729', 'tblTempVendorCDR_20' ) start [2025-03-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656729', 'tblTempVendorCDR_20' ) end [2025-03-11 12:04:22] Production.INFO: ProcessCDR(1,14656729,1,1,2) [2025-03-11 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656729', 'tblTempUsageDetail_20' ) start [2025-03-11 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656729', 'tblTempUsageDetail_20' ) end [2025-03-11 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:04:27] Production.INFO: ==27859== Releasing lock... [2025-03-11 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:05:06 [end_date_ymd] => 2025-03-11 12:05:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:05:06' and `end` < '2025-03-11 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-11 12:05:19] Production.INFO: count ==5107 [2025-03-11 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:05:06 - End Time 2025-03-11 12:05:06 [2025-03-11 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656734', 'tblTempUsageDetail_20' ) start [2025-03-11 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656734', 'tblTempUsageDetail_20' ) end [2025-03-11 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656734', 'tblTempVendorCDR_20' ) start [2025-03-11 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656734', 'tblTempVendorCDR_20' ) end [2025-03-11 12:05:22] Production.INFO: ProcessCDR(1,14656734,1,1,2) [2025-03-11 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656734', 'tblTempUsageDetail_20' ) start [2025-03-11 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656734', 'tblTempUsageDetail_20' ) end [2025-03-11 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:05:27] Production.INFO: ==27937== Releasing lock... [2025-03-11 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:05:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:06:06 [end_date_ymd] => 2025-03-11 12:06:06 [RateCDR] => 1 ) [2025-03-11 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:06:06' and `end` < '2025-03-11 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:06:19] Production.INFO: count ==5105 [2025-03-11 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:06:06 - End Time 2025-03-11 12:06:06 [2025-03-11 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656739', 'tblTempUsageDetail_20' ) start [2025-03-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656739', 'tblTempUsageDetail_20' ) end [2025-03-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656739', 'tblTempVendorCDR_20' ) start [2025-03-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656739', 'tblTempVendorCDR_20' ) end [2025-03-11 12:06:21] Production.INFO: ProcessCDR(1,14656739,1,1,2) [2025-03-11 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656739', 'tblTempUsageDetail_20' ) start [2025-03-11 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656739', 'tblTempUsageDetail_20' ) end [2025-03-11 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:06:27] Production.INFO: ==28018== Releasing lock... [2025-03-11 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:06:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:07:06 [end_date_ymd] => 2025-03-11 12:07:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:07:06' and `end` < '2025-03-11 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-11 12:07:19] Production.INFO: count ==5106 [2025-03-11 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:07:06 - End Time 2025-03-11 12:07:06 [2025-03-11 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656744', 'tblTempUsageDetail_20' ) start [2025-03-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656744', 'tblTempUsageDetail_20' ) end [2025-03-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656744', 'tblTempVendorCDR_20' ) start [2025-03-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656744', 'tblTempVendorCDR_20' ) end [2025-03-11 12:07:21] Production.INFO: ProcessCDR(1,14656744,1,1,2) [2025-03-11 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656744', 'tblTempUsageDetail_20' ) start [2025-03-11 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656744', 'tblTempUsageDetail_20' ) end [2025-03-11 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:07:26] Production.INFO: ==28098== Releasing lock... [2025-03-11 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:07:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:08:06 [end_date_ymd] => 2025-03-11 12:08:06 [RateCDR] => 1 ) [2025-03-11 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:08:06' and `end` < '2025-03-11 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:08:19] Production.INFO: count ==5085 [2025-03-11 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:08:06 - End Time 2025-03-11 12:08:06 [2025-03-11 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656749', 'tblTempUsageDetail_20' ) start [2025-03-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656749', 'tblTempUsageDetail_20' ) end [2025-03-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656749', 'tblTempVendorCDR_20' ) start [2025-03-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656749', 'tblTempVendorCDR_20' ) end [2025-03-11 12:08:22] Production.INFO: ProcessCDR(1,14656749,1,1,2) [2025-03-11 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656749', 'tblTempUsageDetail_20' ) start [2025-03-11 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656749', 'tblTempUsageDetail_20' ) end [2025-03-11 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:08:28] Production.INFO: ==28180== Releasing lock... [2025-03-11 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:08:28] Production.INFO: 66 MB #Memory Used# [2025-03-11 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:09:05 [end_date_ymd] => 2025-03-11 12:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:09:05' and `end` < '2025-03-11 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-11 12:09:18] Production.INFO: count ==5088 [2025-03-11 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:09:05 - End Time 2025-03-11 12:09:05 [2025-03-11 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656754', 'tblTempUsageDetail_20' ) start [2025-03-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656754', 'tblTempUsageDetail_20' ) end [2025-03-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656754', 'tblTempVendorCDR_20' ) start [2025-03-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656754', 'tblTempVendorCDR_20' ) end [2025-03-11 12:09:21] Production.INFO: ProcessCDR(1,14656754,1,1,2) [2025-03-11 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656754', 'tblTempUsageDetail_20' ) start [2025-03-11 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656754', 'tblTempUsageDetail_20' ) end [2025-03-11 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:09:27] Production.INFO: ==28256== Releasing lock... [2025-03-11 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:09:27] Production.INFO: 66 MB #Memory Used# [2025-03-11 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:10:06 [end_date_ymd] => 2025-03-11 12:10:06 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:10:06' and `end` < '2025-03-11 12: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-11 12:10:19] Production.INFO: count ==5091 [2025-03-11 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:10:06 - End Time 2025-03-11 12:10:06 [2025-03-11 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656760', 'tblTempUsageDetail_20' ) start [2025-03-11 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656760', 'tblTempUsageDetail_20' ) end [2025-03-11 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656760', 'tblTempVendorCDR_20' ) start [2025-03-11 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656760', 'tblTempVendorCDR_20' ) end [2025-03-11 12:10:22] Production.INFO: ProcessCDR(1,14656760,1,1,2) [2025-03-11 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656760', 'tblTempUsageDetail_20' ) start [2025-03-11 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656760', 'tblTempUsageDetail_20' ) end [2025-03-11 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:10:27] Production.INFO: ==28335== Releasing lock... [2025-03-11 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:10:27] Production.INFO: 66 MB #Memory Used# [2025-03-11 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:11:05 [end_date_ymd] => 2025-03-11 12:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:11:05' and `end` < '2025-03-11 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-11 12:11:19] Production.INFO: count ==5120 [2025-03-11 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:11:05 - End Time 2025-03-11 12:11:05 [2025-03-11 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656765', 'tblTempUsageDetail_20' ) start [2025-03-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656765', 'tblTempUsageDetail_20' ) end [2025-03-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656765', 'tblTempVendorCDR_20' ) start [2025-03-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656765', 'tblTempVendorCDR_20' ) end [2025-03-11 12:11:21] Production.INFO: ProcessCDR(1,14656765,1,1,2) [2025-03-11 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656765', 'tblTempUsageDetail_20' ) start [2025-03-11 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656765', 'tblTempUsageDetail_20' ) end [2025-03-11 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:11:27] Production.INFO: ==28415== Releasing lock... [2025-03-11 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:11:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:12:05 [end_date_ymd] => 2025-03-11 12:12:05 [RateCDR] => 1 ) [2025-03-11 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:12:05' and `end` < '2025-03-11 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:12:18] Production.INFO: count ==5134 [2025-03-11 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:12:05 - End Time 2025-03-11 12:12:05 [2025-03-11 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656770', 'tblTempUsageDetail_20' ) start [2025-03-11 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656770', 'tblTempUsageDetail_20' ) end [2025-03-11 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656770', 'tblTempVendorCDR_20' ) start [2025-03-11 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656770', 'tblTempVendorCDR_20' ) end [2025-03-11 12:12:21] Production.INFO: ProcessCDR(1,14656770,1,1,2) [2025-03-11 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656770', 'tblTempUsageDetail_20' ) start [2025-03-11 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656770', 'tblTempUsageDetail_20' ) end [2025-03-11 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:12:26] Production.INFO: ==28495== Releasing lock... [2025-03-11 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:13:05 [end_date_ymd] => 2025-03-11 12:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:13:05' and `end` < '2025-03-11 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-11 12:13:19] Production.INFO: count ==5135 [2025-03-11 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:13:05 - End Time 2025-03-11 12:13:05 [2025-03-11 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656775', 'tblTempUsageDetail_20' ) start [2025-03-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656775', 'tblTempUsageDetail_20' ) end [2025-03-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656775', 'tblTempVendorCDR_20' ) start [2025-03-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656775', 'tblTempVendorCDR_20' ) end [2025-03-11 12:13:21] Production.INFO: ProcessCDR(1,14656775,1,1,2) [2025-03-11 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656775', 'tblTempUsageDetail_20' ) start [2025-03-11 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656775', 'tblTempUsageDetail_20' ) end [2025-03-11 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:13:27] Production.INFO: ==28612== Releasing lock... [2025-03-11 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:13:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:14:05 [end_date_ymd] => 2025-03-11 12:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:14:05' and `end` < '2025-03-11 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-11 12:14:19] Production.INFO: count ==5146 [2025-03-11 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:14:05 - End Time 2025-03-11 12:14:05 [2025-03-11 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656780', 'tblTempUsageDetail_20' ) start [2025-03-11 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656780', 'tblTempUsageDetail_20' ) end [2025-03-11 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656780', 'tblTempVendorCDR_20' ) start [2025-03-11 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656780', 'tblTempVendorCDR_20' ) end [2025-03-11 12:14:21] Production.INFO: ProcessCDR(1,14656780,1,1,2) [2025-03-11 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656780', 'tblTempUsageDetail_20' ) start [2025-03-11 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656780', 'tblTempUsageDetail_20' ) end [2025-03-11 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:14:27] Production.INFO: ==28691== Releasing lock... [2025-03-11 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:15:06 [end_date_ymd] => 2025-03-11 12:15:06 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:15:06' and `end` < '2025-03-11 12: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-11 12:15:19] Production.INFO: count ==5157 [2025-03-11 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:15:06 - End Time 2025-03-11 12:15:06 [2025-03-11 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656785', 'tblTempUsageDetail_20' ) start [2025-03-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656785', 'tblTempUsageDetail_20' ) end [2025-03-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656785', 'tblTempVendorCDR_20' ) start [2025-03-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656785', 'tblTempVendorCDR_20' ) end [2025-03-11 12:15:21] Production.INFO: ProcessCDR(1,14656785,1,1,2) [2025-03-11 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656785', 'tblTempUsageDetail_20' ) start [2025-03-11 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656785', 'tblTempUsageDetail_20' ) end [2025-03-11 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:15:27] Production.INFO: ==28775== Releasing lock... [2025-03-11 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:15:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:16:05 [end_date_ymd] => 2025-03-11 12:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:16:05' and `end` < '2025-03-11 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-11 12:16:18] Production.INFO: count ==5166 [2025-03-11 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:16:05 - End Time 2025-03-11 12:16:05 [2025-03-11 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656790', 'tblTempUsageDetail_20' ) start [2025-03-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656790', 'tblTempUsageDetail_20' ) end [2025-03-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656790', 'tblTempVendorCDR_20' ) start [2025-03-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656790', 'tblTempVendorCDR_20' ) end [2025-03-11 12:16:21] Production.INFO: ProcessCDR(1,14656790,1,1,2) [2025-03-11 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656790', 'tblTempUsageDetail_20' ) start [2025-03-11 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656790', 'tblTempUsageDetail_20' ) end [2025-03-11 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:16:25] Production.INFO: ==28851== Releasing lock... [2025-03-11 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:16:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:17:06 [end_date_ymd] => 2025-03-11 12:17:06 [RateCDR] => 1 ) [2025-03-11 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:17:06' and `end` < '2025-03-11 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:17:19] Production.INFO: count ==5169 [2025-03-11 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:17:06 - End Time 2025-03-11 12:17:06 [2025-03-11 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656795', 'tblTempUsageDetail_20' ) start [2025-03-11 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656795', 'tblTempUsageDetail_20' ) end [2025-03-11 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656795', 'tblTempVendorCDR_20' ) start [2025-03-11 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656795', 'tblTempVendorCDR_20' ) end [2025-03-11 12:17:22] Production.INFO: ProcessCDR(1,14656795,1,1,2) [2025-03-11 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656795', 'tblTempUsageDetail_20' ) start [2025-03-11 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656795', 'tblTempUsageDetail_20' ) end [2025-03-11 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:17:27] Production.INFO: ==28933== Releasing lock... [2025-03-11 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:17:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:18:05 [end_date_ymd] => 2025-03-11 12:18:05 [RateCDR] => 1 ) [2025-03-11 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:18:05' and `end` < '2025-03-11 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:18:18] Production.INFO: count ==5184 [2025-03-11 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:18:05 - End Time 2025-03-11 12:18:05 [2025-03-11 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656800', 'tblTempUsageDetail_20' ) start [2025-03-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656800', 'tblTempUsageDetail_20' ) end [2025-03-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656800', 'tblTempVendorCDR_20' ) start [2025-03-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656800', 'tblTempVendorCDR_20' ) end [2025-03-11 12:18:21] Production.INFO: ProcessCDR(1,14656800,1,1,2) [2025-03-11 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656800', 'tblTempUsageDetail_20' ) start [2025-03-11 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656800', 'tblTempUsageDetail_20' ) end [2025-03-11 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:18:27] Production.INFO: ==29015== Releasing lock... [2025-03-11 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:18:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:19:06 [end_date_ymd] => 2025-03-11 12:19:06 [RateCDR] => 1 ) [2025-03-11 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:19:06' and `end` < '2025-03-11 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:19:19] Production.INFO: count ==5152 [2025-03-11 12:19:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:19:06 - End Time 2025-03-11 12:19:06 [2025-03-11 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656805', 'tblTempUsageDetail_20' ) start [2025-03-11 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656805', 'tblTempUsageDetail_20' ) end [2025-03-11 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656805', 'tblTempVendorCDR_20' ) start [2025-03-11 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656805', 'tblTempVendorCDR_20' ) end [2025-03-11 12:19:22] Production.INFO: ProcessCDR(1,14656805,1,1,2) [2025-03-11 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656805', 'tblTempUsageDetail_20' ) start [2025-03-11 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656805', 'tblTempUsageDetail_20' ) end [2025-03-11 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:19:27] Production.INFO: ==29094== Releasing lock... [2025-03-11 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:19:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:20:06 [end_date_ymd] => 2025-03-11 12:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:20:06' and `end` < '2025-03-11 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-11 12:20:19] Production.INFO: count ==5143 [2025-03-11 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:20:06 - End Time 2025-03-11 12:20:06 [2025-03-11 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656811', 'tblTempUsageDetail_20' ) start [2025-03-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656811', 'tblTempUsageDetail_20' ) end [2025-03-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656811', 'tblTempVendorCDR_20' ) start [2025-03-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656811', 'tblTempVendorCDR_20' ) end [2025-03-11 12:20:22] Production.INFO: ProcessCDR(1,14656811,1,1,2) [2025-03-11 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656811', 'tblTempUsageDetail_20' ) start [2025-03-11 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656811', 'tblTempUsageDetail_20' ) end [2025-03-11 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:20:28] Production.INFO: ==29173== Releasing lock... [2025-03-11 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:20:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:21:06 [end_date_ymd] => 2025-03-11 12:21:06 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:21:06' and `end` < '2025-03-11 12: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-11 12:21:19] Production.INFO: count ==5172 [2025-03-11 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:21:06 - End Time 2025-03-11 12:21:06 [2025-03-11 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656816', 'tblTempUsageDetail_20' ) start [2025-03-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656816', 'tblTempUsageDetail_20' ) end [2025-03-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656816', 'tblTempVendorCDR_20' ) start [2025-03-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656816', 'tblTempVendorCDR_20' ) end [2025-03-11 12:21:21] Production.INFO: ProcessCDR(1,14656816,1,1,2) [2025-03-11 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656816', 'tblTempUsageDetail_20' ) start [2025-03-11 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656816', 'tblTempUsageDetail_20' ) end [2025-03-11 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:21:27] Production.INFO: ==29252== Releasing lock... [2025-03-11 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:21:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:22:06 [end_date_ymd] => 2025-03-11 12:22:06 [RateCDR] => 1 ) [2025-03-11 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:22:06' and `end` < '2025-03-11 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:22:20] Production.INFO: count ==5173 [2025-03-11 12:22:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:22:06 - End Time 2025-03-11 12:22:06 [2025-03-11 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656821', 'tblTempUsageDetail_20' ) start [2025-03-11 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656821', 'tblTempUsageDetail_20' ) end [2025-03-11 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656821', 'tblTempVendorCDR_20' ) start [2025-03-11 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656821', 'tblTempVendorCDR_20' ) end [2025-03-11 12:22:22] Production.INFO: ProcessCDR(1,14656821,1,1,2) [2025-03-11 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656821', 'tblTempUsageDetail_20' ) start [2025-03-11 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656821', 'tblTempUsageDetail_20' ) end [2025-03-11 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:22:27] Production.INFO: ==29331== Releasing lock... [2025-03-11 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:22:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:23:05 [end_date_ymd] => 2025-03-11 12:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:23:05' and `end` < '2025-03-11 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-11 12:23:18] Production.INFO: count ==5182 [2025-03-11 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:23:05 - End Time 2025-03-11 12:23:05 [2025-03-11 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656826', 'tblTempUsageDetail_20' ) start [2025-03-11 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656826', 'tblTempUsageDetail_20' ) end [2025-03-11 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656826', 'tblTempVendorCDR_20' ) start [2025-03-11 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656826', 'tblTempVendorCDR_20' ) end [2025-03-11 12:23:21] Production.INFO: ProcessCDR(1,14656826,1,1,2) [2025-03-11 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656826', 'tblTempUsageDetail_20' ) start [2025-03-11 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656826', 'tblTempUsageDetail_20' ) end [2025-03-11 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:23:26] Production.INFO: ==29406== Releasing lock... [2025-03-11 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:23:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:24:06 [end_date_ymd] => 2025-03-11 12:24:06 [RateCDR] => 1 ) [2025-03-11 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:24:06' and `end` < '2025-03-11 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:24:19] Production.INFO: count ==5189 [2025-03-11 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:24:06 - End Time 2025-03-11 12:24:06 [2025-03-11 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656831', 'tblTempUsageDetail_20' ) start [2025-03-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656831', 'tblTempUsageDetail_20' ) end [2025-03-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656831', 'tblTempVendorCDR_20' ) start [2025-03-11 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656831', 'tblTempVendorCDR_20' ) end [2025-03-11 12:24:22] Production.INFO: ProcessCDR(1,14656831,1,1,2) [2025-03-11 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656831', 'tblTempUsageDetail_20' ) start [2025-03-11 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656831', 'tblTempUsageDetail_20' ) end [2025-03-11 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:24:27] Production.INFO: ==29480== Releasing lock... [2025-03-11 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:24:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:25:06 [end_date_ymd] => 2025-03-11 12:25:06 [RateCDR] => 1 ) [2025-03-11 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:25:06' and `end` < '2025-03-11 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:25:19] Production.INFO: count ==5198 [2025-03-11 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:25:06 - End Time 2025-03-11 12:25:06 [2025-03-11 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656836', 'tblTempUsageDetail_20' ) start [2025-03-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656836', 'tblTempUsageDetail_20' ) end [2025-03-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656836', 'tblTempVendorCDR_20' ) start [2025-03-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656836', 'tblTempVendorCDR_20' ) end [2025-03-11 12:25:22] Production.INFO: ProcessCDR(1,14656836,1,1,2) [2025-03-11 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656836', 'tblTempUsageDetail_20' ) start [2025-03-11 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656836', 'tblTempUsageDetail_20' ) end [2025-03-11 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:25:26] Production.INFO: ==29554== Releasing lock... [2025-03-11 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:25:26] Production.INFO: 67 MB #Memory Used# [2025-03-11 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:26:06 [end_date_ymd] => 2025-03-11 12:26:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:26:06' and `end` < '2025-03-11 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-11 12:26:20] Production.INFO: count ==5214 [2025-03-11 12:26:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:26:06 - End Time 2025-03-11 12:26:06 [2025-03-11 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656841', 'tblTempUsageDetail_20' ) start [2025-03-11 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656841', 'tblTempUsageDetail_20' ) end [2025-03-11 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656841', 'tblTempVendorCDR_20' ) start [2025-03-11 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656841', 'tblTempVendorCDR_20' ) end [2025-03-11 12:26:22] Production.INFO: ProcessCDR(1,14656841,1,1,2) [2025-03-11 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656841', 'tblTempUsageDetail_20' ) start [2025-03-11 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656841', 'tblTempUsageDetail_20' ) end [2025-03-11 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:26:28] Production.INFO: ==29636== Releasing lock... [2025-03-11 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:26:28] Production.INFO: 67 MB #Memory Used# [2025-03-11 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:27:05 [end_date_ymd] => 2025-03-11 12:27:05 [RateCDR] => 1 ) [2025-03-11 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:27:05' and `end` < '2025-03-11 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:27:18] Production.INFO: count ==5219 [2025-03-11 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:27:05 - End Time 2025-03-11 12:27:05 [2025-03-11 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656846', 'tblTempUsageDetail_20' ) start [2025-03-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656846', 'tblTempUsageDetail_20' ) end [2025-03-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656846', 'tblTempVendorCDR_20' ) start [2025-03-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656846', 'tblTempVendorCDR_20' ) end [2025-03-11 12:27:21] Production.INFO: ProcessCDR(1,14656846,1,1,2) [2025-03-11 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656846', 'tblTempUsageDetail_20' ) start [2025-03-11 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656846', 'tblTempUsageDetail_20' ) end [2025-03-11 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:27:26] Production.INFO: ==29709== Releasing lock... [2025-03-11 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:27:26] Production.INFO: 67 MB #Memory Used# [2025-03-11 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:28:06 [end_date_ymd] => 2025-03-11 12:28:06 [RateCDR] => 1 ) [2025-03-11 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:28:06' and `end` < '2025-03-11 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:28:19] Production.INFO: count ==5199 [2025-03-11 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:28:06 - End Time 2025-03-11 12:28:06 [2025-03-11 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656851', 'tblTempUsageDetail_20' ) start [2025-03-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656851', 'tblTempUsageDetail_20' ) end [2025-03-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656851', 'tblTempVendorCDR_20' ) start [2025-03-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656851', 'tblTempVendorCDR_20' ) end [2025-03-11 12:28:21] Production.INFO: ProcessCDR(1,14656851,1,1,2) [2025-03-11 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656851', 'tblTempUsageDetail_20' ) start [2025-03-11 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656851', 'tblTempUsageDetail_20' ) end [2025-03-11 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:28:28] Production.INFO: ==29822== Releasing lock... [2025-03-11 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:28:28] Production.INFO: 67 MB #Memory Used# [2025-03-11 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:29:05 [end_date_ymd] => 2025-03-11 12:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:29:05' and `end` < '2025-03-11 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-11 12:29:19] Production.INFO: count ==5179 [2025-03-11 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:29:05 - End Time 2025-03-11 12:29:05 [2025-03-11 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656856', 'tblTempUsageDetail_20' ) start [2025-03-11 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656856', 'tblTempUsageDetail_20' ) end [2025-03-11 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656856', 'tblTempVendorCDR_20' ) start [2025-03-11 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656856', 'tblTempVendorCDR_20' ) end [2025-03-11 12:29:21] Production.INFO: ProcessCDR(1,14656856,1,1,2) [2025-03-11 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656856', 'tblTempUsageDetail_20' ) start [2025-03-11 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656856', 'tblTempUsageDetail_20' ) end [2025-03-11 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:29:26] Production.INFO: ==29899== Releasing lock... [2025-03-11 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:29:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:30:07 [end_date_ymd] => 2025-03-11 12:30:07 [RateCDR] => 1 ) [2025-03-11 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-11 09:30:07' and `end` < '2025-03-11 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-11 12:30:20] Production.INFO: count ==5167 [2025-03-11 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:30:07 - End Time 2025-03-11 12:30:07 [2025-03-11 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656862', 'tblTempUsageDetail_20' ) start [2025-03-11 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656862', 'tblTempUsageDetail_20' ) end [2025-03-11 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656862', 'tblTempVendorCDR_20' ) start [2025-03-11 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656862', 'tblTempVendorCDR_20' ) end [2025-03-11 12:30:22] Production.INFO: ProcessCDR(1,14656862,1,1,2) [2025-03-11 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656862', 'tblTempUsageDetail_20' ) start [2025-03-11 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656862', 'tblTempUsageDetail_20' ) end [2025-03-11 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:30:28] Production.INFO: ==29972== Releasing lock... [2025-03-11 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:30:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:31:05 [end_date_ymd] => 2025-03-11 12:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:31:05' and `end` < '2025-03-11 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-11 12:31:18] Production.INFO: count ==5184 [2025-03-11 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-11 09:31:05 - End Time 2025-03-11 12:31:05 [2025-03-11 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656867', 'tblTempUsageDetail_20' ) start [2025-03-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656867', 'tblTempUsageDetail_20' ) end [2025-03-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656867', 'tblTempVendorCDR_20' ) start [2025-03-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656867', 'tblTempVendorCDR_20' ) end [2025-03-11 12:31:21] Production.INFO: ProcessCDR(1,14656867,1,1,2) [2025-03-11 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656867', 'tblTempUsageDetail_20' ) start [2025-03-11 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656867', 'tblTempUsageDetail_20' ) end [2025-03-11 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:31:26] Production.INFO: ==30049== Releasing lock... [2025-03-11 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:31:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:32:06 [end_date_ymd] => 2025-03-11 12:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:32:06' and `end` < '2025-03-11 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-11 12:32:19] Production.INFO: count ==5200 [2025-03-11 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:32:06 - End Time 2025-03-11 12:32:06 [2025-03-11 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656872', 'tblTempUsageDetail_20' ) start [2025-03-11 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656872', 'tblTempUsageDetail_20' ) end [2025-03-11 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656872', 'tblTempVendorCDR_20' ) start [2025-03-11 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656872', 'tblTempVendorCDR_20' ) end [2025-03-11 12:32:22] Production.INFO: ProcessCDR(1,14656872,1,1,2) [2025-03-11 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656872', 'tblTempUsageDetail_20' ) start [2025-03-11 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656872', 'tblTempUsageDetail_20' ) end [2025-03-11 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:32:28] Production.INFO: ==30122== Releasing lock... [2025-03-11 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:32:28] Production.INFO: 67 MB #Memory Used# [2025-03-11 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:33:05 [end_date_ymd] => 2025-03-11 12:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:33:05' and `end` < '2025-03-11 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-11 12:33:19] Production.INFO: count ==5192 [2025-03-11 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:33:05 - End Time 2025-03-11 12:33:05 [2025-03-11 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656877', 'tblTempUsageDetail_20' ) start [2025-03-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656877', 'tblTempUsageDetail_20' ) end [2025-03-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656877', 'tblTempVendorCDR_20' ) start [2025-03-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656877', 'tblTempVendorCDR_20' ) end [2025-03-11 12:33:21] Production.INFO: ProcessCDR(1,14656877,1,1,2) [2025-03-11 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656877', 'tblTempUsageDetail_20' ) start [2025-03-11 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656877', 'tblTempUsageDetail_20' ) end [2025-03-11 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:33:26] Production.INFO: ==30198== Releasing lock... [2025-03-11 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:33:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-11 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:34:06 [end_date_ymd] => 2025-03-11 12:34:06 [RateCDR] => 1 ) [2025-03-11 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:34:06' and `end` < '2025-03-11 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:34:20] Production.INFO: count ==5253 [2025-03-11 12:34:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:34:06 - End Time 2025-03-11 12:34:06 [2025-03-11 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656882', 'tblTempUsageDetail_20' ) start [2025-03-11 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656882', 'tblTempUsageDetail_20' ) end [2025-03-11 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656882', 'tblTempVendorCDR_20' ) start [2025-03-11 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656882', 'tblTempVendorCDR_20' ) end [2025-03-11 12:34:22] Production.INFO: ProcessCDR(1,14656882,1,1,2) [2025-03-11 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656882', 'tblTempUsageDetail_20' ) start [2025-03-11 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656882', 'tblTempUsageDetail_20' ) end [2025-03-11 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:34:28] Production.INFO: ==30275== Releasing lock... [2025-03-11 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:34:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-11 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:35:05 [end_date_ymd] => 2025-03-11 12:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:35:05' and `end` < '2025-03-11 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-11 12:35:19] Production.INFO: count ==5245 [2025-03-11 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:35:05 - End Time 2025-03-11 12:35:05 [2025-03-11 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656887', 'tblTempUsageDetail_20' ) start [2025-03-11 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656887', 'tblTempUsageDetail_20' ) end [2025-03-11 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656887', 'tblTempVendorCDR_20' ) start [2025-03-11 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656887', 'tblTempVendorCDR_20' ) end [2025-03-11 12:35:21] Production.INFO: ProcessCDR(1,14656887,1,1,2) [2025-03-11 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656887', 'tblTempUsageDetail_20' ) start [2025-03-11 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656887', 'tblTempUsageDetail_20' ) end [2025-03-11 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:35:26] Production.INFO: ==30348== Releasing lock... [2025-03-11 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:35:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-11 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:36:05 [end_date_ymd] => 2025-03-11 12:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:36:05' and `end` < '2025-03-11 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-11 12:36:19] Production.INFO: count ==5246 [2025-03-11 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:36:05 - End Time 2025-03-11 12:36:05 [2025-03-11 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656892', 'tblTempUsageDetail_20' ) start [2025-03-11 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656892', 'tblTempUsageDetail_20' ) end [2025-03-11 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656892', 'tblTempVendorCDR_20' ) start [2025-03-11 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656892', 'tblTempVendorCDR_20' ) end [2025-03-11 12:36:21] Production.INFO: ProcessCDR(1,14656892,1,1,2) [2025-03-11 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656892', 'tblTempUsageDetail_20' ) start [2025-03-11 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656892', 'tblTempUsageDetail_20' ) end [2025-03-11 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:36:26] Production.INFO: ==30420== Releasing lock... [2025-03-11 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-11 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:37:05 [end_date_ymd] => 2025-03-11 12:37:05 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:37:05' and `end` < '2025-03-11 12: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-11 12:37:18] Production.INFO: count ==5244 [2025-03-11 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:37:05 - End Time 2025-03-11 12:37:05 [2025-03-11 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656897', 'tblTempUsageDetail_20' ) start [2025-03-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656897', 'tblTempUsageDetail_20' ) end [2025-03-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656897', 'tblTempVendorCDR_20' ) start [2025-03-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656897', 'tblTempVendorCDR_20' ) end [2025-03-11 12:37:21] Production.INFO: ProcessCDR(1,14656897,1,1,2) [2025-03-11 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656897', 'tblTempUsageDetail_20' ) start [2025-03-11 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656897', 'tblTempUsageDetail_20' ) end [2025-03-11 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:37:26] Production.INFO: ==30493== Releasing lock... [2025-03-11 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-11 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:38:05 [end_date_ymd] => 2025-03-11 12:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:38:05' and `end` < '2025-03-11 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-11 12:38:18] Production.INFO: count ==5251 [2025-03-11 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:38:05 - End Time 2025-03-11 12:38:05 [2025-03-11 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656902', 'tblTempUsageDetail_20' ) start [2025-03-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656902', 'tblTempUsageDetail_20' ) end [2025-03-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656902', 'tblTempVendorCDR_20' ) start [2025-03-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656902', 'tblTempVendorCDR_20' ) end [2025-03-11 12:38:21] Production.INFO: ProcessCDR(1,14656902,1,1,2) [2025-03-11 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656902', 'tblTempUsageDetail_20' ) start [2025-03-11 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656902', 'tblTempUsageDetail_20' ) end [2025-03-11 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:38:26] Production.INFO: ==30570== Releasing lock... [2025-03-11 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:38:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-11 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:39:05 [end_date_ymd] => 2025-03-11 12:39:05 [RateCDR] => 1 ) [2025-03-11 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:39:05' and `end` < '2025-03-11 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:39:18] Production.INFO: count ==5270 [2025-03-11 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:39:05 - End Time 2025-03-11 12:39:05 [2025-03-11 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656907', 'tblTempUsageDetail_20' ) start [2025-03-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656907', 'tblTempUsageDetail_20' ) end [2025-03-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656907', 'tblTempVendorCDR_20' ) start [2025-03-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656907', 'tblTempVendorCDR_20' ) end [2025-03-11 12:39:21] Production.INFO: ProcessCDR(1,14656907,1,1,2) [2025-03-11 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656907', 'tblTempUsageDetail_20' ) start [2025-03-11 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656907', 'tblTempUsageDetail_20' ) end [2025-03-11 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:39:26] Production.INFO: ==30639== Releasing lock... [2025-03-11 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:39:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-11 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:40:06 [end_date_ymd] => 2025-03-11 12:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:40:06' and `end` < '2025-03-11 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-11 12:40:19] Production.INFO: count ==5293 [2025-03-11 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:40:06 - End Time 2025-03-11 12:40:06 [2025-03-11 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656912', 'tblTempUsageDetail_20' ) start [2025-03-11 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656912', 'tblTempUsageDetail_20' ) end [2025-03-11 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656912', 'tblTempVendorCDR_20' ) start [2025-03-11 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656912', 'tblTempVendorCDR_20' ) end [2025-03-11 12:40:21] Production.INFO: ProcessCDR(1,14656912,1,1,2) [2025-03-11 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656912', 'tblTempUsageDetail_20' ) start [2025-03-11 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656912', 'tblTempUsageDetail_20' ) end [2025-03-11 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:40:27] Production.INFO: ==30716== Releasing lock... [2025-03-11 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:40:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-11 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:41:04 [end_date_ymd] => 2025-03-11 12:41:04 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:41:04' and `end` < '2025-03-11 12: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-11 12:41:18] Production.INFO: count ==5384 [2025-03-11 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-11 09:41:04 - End Time 2025-03-11 12:41:04 [2025-03-11 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656918', 'tblTempUsageDetail_20' ) start [2025-03-11 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656918', 'tblTempUsageDetail_20' ) end [2025-03-11 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656918', 'tblTempVendorCDR_20' ) start [2025-03-11 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656918', 'tblTempVendorCDR_20' ) end [2025-03-11 12:41:20] Production.INFO: ProcessCDR(1,14656918,1,1,2) [2025-03-11 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656918', 'tblTempUsageDetail_20' ) start [2025-03-11 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656918', 'tblTempUsageDetail_20' ) end [2025-03-11 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:41:25] Production.INFO: ==30793== Releasing lock... [2025-03-11 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:41:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-11 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:42:05 [end_date_ymd] => 2025-03-11 12:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:42:05' and `end` < '2025-03-11 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-11 12:42:19] Production.INFO: count ==5437 [2025-03-11 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:42:05 - End Time 2025-03-11 12:42:05 [2025-03-11 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656923', 'tblTempUsageDetail_20' ) start [2025-03-11 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656923', 'tblTempUsageDetail_20' ) end [2025-03-11 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656923', 'tblTempVendorCDR_20' ) start [2025-03-11 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656923', 'tblTempVendorCDR_20' ) end [2025-03-11 12:42:21] Production.INFO: ProcessCDR(1,14656923,1,1,2) [2025-03-11 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656923', 'tblTempUsageDetail_20' ) start [2025-03-11 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656923', 'tblTempUsageDetail_20' ) end [2025-03-11 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:42:26] Production.INFO: ==30865== Releasing lock... [2025-03-11 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:42:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:43:04 [end_date_ymd] => 2025-03-11 12:43:04 [RateCDR] => 1 ) [2025-03-11 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 09:43:04' and `end` < '2025-03-11 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 12:43:18] Production.INFO: count ==5437 [2025-03-11 12:43:20] Production.ERROR: pbx CDR StartTime 2025-03-11 09:43:04 - End Time 2025-03-11 12:43:04 [2025-03-11 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656928', 'tblTempUsageDetail_20' ) start [2025-03-11 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656928', 'tblTempUsageDetail_20' ) end [2025-03-11 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656928', 'tblTempVendorCDR_20' ) start [2025-03-11 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656928', 'tblTempVendorCDR_20' ) end [2025-03-11 12:43:20] Production.INFO: ProcessCDR(1,14656928,1,1,2) [2025-03-11 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656928', 'tblTempUsageDetail_20' ) start [2025-03-11 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656928', 'tblTempUsageDetail_20' ) end [2025-03-11 12:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:43:25] Production.INFO: ==30938== Releasing lock... [2025-03-11 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:43:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:44:05 [end_date_ymd] => 2025-03-11 12:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:44:05' and `end` < '2025-03-11 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-11 12:44:19] Production.INFO: count ==5446 [2025-03-11 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:44:05 - End Time 2025-03-11 12:44:05 [2025-03-11 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656933', 'tblTempUsageDetail_20' ) start [2025-03-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656933', 'tblTempUsageDetail_20' ) end [2025-03-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656933', 'tblTempVendorCDR_20' ) start [2025-03-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656933', 'tblTempVendorCDR_20' ) end [2025-03-11 12:44:22] Production.INFO: ProcessCDR(1,14656933,1,1,2) [2025-03-11 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656933', 'tblTempUsageDetail_20' ) start [2025-03-11 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656933', 'tblTempUsageDetail_20' ) end [2025-03-11 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:44:27] Production.INFO: ==31047== Releasing lock... [2025-03-11 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:44:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:45:05 [end_date_ymd] => 2025-03-11 12:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:45:05' and `end` < '2025-03-11 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-11 12:45:19] Production.INFO: count ==5451 [2025-03-11 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:45:05 - End Time 2025-03-11 12:45:05 [2025-03-11 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656938', 'tblTempUsageDetail_20' ) start [2025-03-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656938', 'tblTempUsageDetail_20' ) end [2025-03-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656938', 'tblTempVendorCDR_20' ) start [2025-03-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656938', 'tblTempVendorCDR_20' ) end [2025-03-11 12:45:21] Production.INFO: ProcessCDR(1,14656938,1,1,2) [2025-03-11 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656938', 'tblTempUsageDetail_20' ) start [2025-03-11 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656938', 'tblTempUsageDetail_20' ) end [2025-03-11 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:45:26] Production.INFO: ==31126== Releasing lock... [2025-03-11 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:45:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:46:06 [end_date_ymd] => 2025-03-11 12:46:06 [RateCDR] => 1 ) [2025-03-11 12: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-11 09:46:06' and `end` < '2025-03-11 12: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-11 12:46:21] Production.INFO: count ==5477 [2025-03-11 12:46:23] Production.ERROR: pbx CDR StartTime 2025-03-11 09:46:06 - End Time 2025-03-11 12:46:06 [2025-03-11 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656943', 'tblTempUsageDetail_20' ) start [2025-03-11 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656943', 'tblTempUsageDetail_20' ) end [2025-03-11 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656943', 'tblTempVendorCDR_20' ) start [2025-03-11 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656943', 'tblTempVendorCDR_20' ) end [2025-03-11 12:46:23] Production.INFO: ProcessCDR(1,14656943,1,1,2) [2025-03-11 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656943', 'tblTempUsageDetail_20' ) start [2025-03-11 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656943', 'tblTempUsageDetail_20' ) end [2025-03-11 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:46:29] Production.INFO: ==31203== Releasing lock... [2025-03-11 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:46:29] Production.INFO: 69 MB #Memory Used# [2025-03-11 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:47:05 [end_date_ymd] => 2025-03-11 12:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:47:05' and `end` < '2025-03-11 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-11 12:47:18] Production.INFO: count ==5461 [2025-03-11 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:47:05 - End Time 2025-03-11 12:47:05 [2025-03-11 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656948', 'tblTempUsageDetail_20' ) start [2025-03-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656948', 'tblTempUsageDetail_20' ) end [2025-03-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656948', 'tblTempVendorCDR_20' ) start [2025-03-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656948', 'tblTempVendorCDR_20' ) end [2025-03-11 12:47:21] Production.INFO: ProcessCDR(1,14656948,1,1,2) [2025-03-11 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656948', 'tblTempUsageDetail_20' ) start [2025-03-11 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656948', 'tblTempUsageDetail_20' ) end [2025-03-11 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:47:26] Production.INFO: ==31276== Releasing lock... [2025-03-11 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:47:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:48:05 [end_date_ymd] => 2025-03-11 12:48:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:48:05' and `end` < '2025-03-11 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-11 12:48:23] Production.INFO: count ==5453 [2025-03-11 12:48:26] Production.ERROR: pbx CDR StartTime 2025-03-11 09:48:05 - End Time 2025-03-11 12:48:05 [2025-03-11 12:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656953', 'tblTempUsageDetail_20' ) start [2025-03-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656953', 'tblTempUsageDetail_20' ) end [2025-03-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656953', 'tblTempVendorCDR_20' ) start [2025-03-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656953', 'tblTempVendorCDR_20' ) end [2025-03-11 12:48:26] Production.INFO: ProcessCDR(1,14656953,1,1,2) [2025-03-11 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656953', 'tblTempUsageDetail_20' ) start [2025-03-11 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656953', 'tblTempUsageDetail_20' ) end [2025-03-11 12:48:31] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:48:31] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:48:31] Production.INFO: ==31346== Releasing lock... [2025-03-11 12:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:48:31] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:49:05 [end_date_ymd] => 2025-03-11 12:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:49:05' and `end` < '2025-03-11 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-11 12:49:18] Production.INFO: count ==5487 [2025-03-11 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:49:05 - End Time 2025-03-11 12:49:05 [2025-03-11 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656958', 'tblTempUsageDetail_20' ) start [2025-03-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656958', 'tblTempUsageDetail_20' ) end [2025-03-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656958', 'tblTempVendorCDR_20' ) start [2025-03-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656958', 'tblTempVendorCDR_20' ) end [2025-03-11 12:49:21] Production.INFO: ProcessCDR(1,14656958,1,1,2) [2025-03-11 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656958', 'tblTempUsageDetail_20' ) start [2025-03-11 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656958', 'tblTempUsageDetail_20' ) end [2025-03-11 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:49:26] Production.INFO: ==31420== Releasing lock... [2025-03-11 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:49:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:50:06 [end_date_ymd] => 2025-03-11 12:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:50:06' and `end` < '2025-03-11 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-11 12:50:19] Production.INFO: count ==5494 [2025-03-11 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:50:06 - End Time 2025-03-11 12:50:06 [2025-03-11 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656964', 'tblTempUsageDetail_20' ) start [2025-03-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656964', 'tblTempUsageDetail_20' ) end [2025-03-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656964', 'tblTempVendorCDR_20' ) start [2025-03-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656964', 'tblTempVendorCDR_20' ) end [2025-03-11 12:50:22] Production.INFO: ProcessCDR(1,14656964,1,1,2) [2025-03-11 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656964', 'tblTempUsageDetail_20' ) start [2025-03-11 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656964', 'tblTempUsageDetail_20' ) end [2025-03-11 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:50:27] Production.INFO: ==31492== Releasing lock... [2025-03-11 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:50:27] Production.INFO: 69 MB #Memory Used# [2025-03-11 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:51:05 [end_date_ymd] => 2025-03-11 12:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:51:05' and `end` < '2025-03-11 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-11 12:51:19] Production.INFO: count ==5535 [2025-03-11 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:51:05 - End Time 2025-03-11 12:51:05 [2025-03-11 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656969', 'tblTempUsageDetail_20' ) start [2025-03-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656969', 'tblTempUsageDetail_20' ) end [2025-03-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656969', 'tblTempVendorCDR_20' ) start [2025-03-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656969', 'tblTempVendorCDR_20' ) end [2025-03-11 12:51:21] Production.INFO: ProcessCDR(1,14656969,1,1,2) [2025-03-11 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656969', 'tblTempUsageDetail_20' ) start [2025-03-11 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656969', 'tblTempUsageDetail_20' ) end [2025-03-11 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:51:27] Production.INFO: ==31564== Releasing lock... [2025-03-11 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:51:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:52:05 [end_date_ymd] => 2025-03-11 12:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:52:05' and `end` < '2025-03-11 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-11 12:52:19] Production.INFO: count ==5538 [2025-03-11 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:52:05 - End Time 2025-03-11 12:52:05 [2025-03-11 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656974', 'tblTempUsageDetail_20' ) start [2025-03-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656974', 'tblTempUsageDetail_20' ) end [2025-03-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656974', 'tblTempVendorCDR_20' ) start [2025-03-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656974', 'tblTempVendorCDR_20' ) end [2025-03-11 12:52:21] Production.INFO: ProcessCDR(1,14656974,1,1,2) [2025-03-11 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656974', 'tblTempUsageDetail_20' ) start [2025-03-11 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656974', 'tblTempUsageDetail_20' ) end [2025-03-11 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:52:26] Production.INFO: ==31636== Releasing lock... [2025-03-11 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:52:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:53:05 [end_date_ymd] => 2025-03-11 12:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:53:05' and `end` < '2025-03-11 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-11 12:53:18] Production.INFO: count ==5599 [2025-03-11 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:53:05 - End Time 2025-03-11 12:53:05 [2025-03-11 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656979', 'tblTempUsageDetail_20' ) start [2025-03-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656979', 'tblTempUsageDetail_20' ) end [2025-03-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656979', 'tblTempVendorCDR_20' ) start [2025-03-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656979', 'tblTempVendorCDR_20' ) end [2025-03-11 12:53:21] Production.INFO: ProcessCDR(1,14656979,1,1,2) [2025-03-11 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656979', 'tblTempUsageDetail_20' ) start [2025-03-11 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656979', 'tblTempUsageDetail_20' ) end [2025-03-11 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:53:26] Production.INFO: ==31710== Releasing lock... [2025-03-11 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:53:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:54:05 [end_date_ymd] => 2025-03-11 12:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:54:05' and `end` < '2025-03-11 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-11 12:54:19] Production.INFO: count ==5607 [2025-03-11 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:54:05 - End Time 2025-03-11 12:54:05 [2025-03-11 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656984', 'tblTempUsageDetail_20' ) start [2025-03-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656984', 'tblTempUsageDetail_20' ) end [2025-03-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656984', 'tblTempVendorCDR_20' ) start [2025-03-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656984', 'tblTempVendorCDR_20' ) end [2025-03-11 12:54:21] Production.INFO: ProcessCDR(1,14656984,1,1,2) [2025-03-11 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656984', 'tblTempUsageDetail_20' ) start [2025-03-11 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656984', 'tblTempUsageDetail_20' ) end [2025-03-11 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:54:25] Production.INFO: ==31783== Releasing lock... [2025-03-11 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:54:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:55:06 [end_date_ymd] => 2025-03-11 12:55:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:55:06' and `end` < '2025-03-11 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-11 12:55:19] Production.INFO: count ==5793 [2025-03-11 12:55:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:55:06 - End Time 2025-03-11 12:55:06 [2025-03-11 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656989', 'tblTempUsageDetail_20' ) start [2025-03-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656989', 'tblTempUsageDetail_20' ) end [2025-03-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656989', 'tblTempVendorCDR_20' ) start [2025-03-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656989', 'tblTempVendorCDR_20' ) end [2025-03-11 12:55:22] Production.INFO: ProcessCDR(1,14656989,1,1,2) [2025-03-11 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656989', 'tblTempUsageDetail_20' ) start [2025-03-11 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656989', 'tblTempUsageDetail_20' ) end [2025-03-11 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:55:27] Production.INFO: ==31855== Releasing lock... [2025-03-11 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:55:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:56:06 [end_date_ymd] => 2025-03-11 12:56:06 [RateCDR] => 1 ) [2025-03-11 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-11 09:56:06' and `end` < '2025-03-11 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-11 12:56:20] Production.INFO: count ==5787 [2025-03-11 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-11 09:56:06 - End Time 2025-03-11 12:56:06 [2025-03-11 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656994', 'tblTempUsageDetail_20' ) start [2025-03-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656994', 'tblTempUsageDetail_20' ) end [2025-03-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656994', 'tblTempVendorCDR_20' ) start [2025-03-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656994', 'tblTempVendorCDR_20' ) end [2025-03-11 12:56:22] Production.INFO: ProcessCDR(1,14656994,1,1,2) [2025-03-11 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656994', 'tblTempUsageDetail_20' ) start [2025-03-11 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656994', 'tblTempUsageDetail_20' ) end [2025-03-11 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:56:27] Production.INFO: ==31928== Releasing lock... [2025-03-11 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:56:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:57:05 [end_date_ymd] => 2025-03-11 12:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:57:05' and `end` < '2025-03-11 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-11 12:57:18] Production.INFO: count ==5766 [2025-03-11 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-11 09:57:05 - End Time 2025-03-11 12:57:05 [2025-03-11 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656999', 'tblTempUsageDetail_20' ) start [2025-03-11 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14656999', 'tblTempUsageDetail_20' ) end [2025-03-11 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656999', 'tblTempVendorCDR_20' ) start [2025-03-11 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14656999', 'tblTempVendorCDR_20' ) end [2025-03-11 12:57:21] Production.INFO: ProcessCDR(1,14656999,1,1,2) [2025-03-11 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14656999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14656999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14656999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14656999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656999', 'tblTempUsageDetail_20' ) start [2025-03-11 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14656999', 'tblTempUsageDetail_20' ) end [2025-03-11 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:57:26] Production.INFO: ==31999== Releasing lock... [2025-03-11 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:57:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:58:05 [end_date_ymd] => 2025-03-11 12:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:58:05' and `end` < '2025-03-11 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-11 12:58:19] Production.INFO: count ==5762 [2025-03-11 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 09:58:05 - End Time 2025-03-11 12:58:05 [2025-03-11 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657004', 'tblTempUsageDetail_20' ) start [2025-03-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657004', 'tblTempUsageDetail_20' ) end [2025-03-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657004', 'tblTempVendorCDR_20' ) start [2025-03-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657004', 'tblTempVendorCDR_20' ) end [2025-03-11 12:58:21] Production.INFO: ProcessCDR(1,14657004,1,1,2) [2025-03-11 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657004', 'tblTempUsageDetail_20' ) start [2025-03-11 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657004', 'tblTempUsageDetail_20' ) end [2025-03-11 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:58:26] Production.INFO: ==32071== Releasing lock... [2025-03-11 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:58:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 09:59:05 [end_date_ymd] => 2025-03-11 12:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 09:59:05' and `end` < '2025-03-11 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-11 12:59:18] Production.INFO: count ==5754 [2025-03-11 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-11 09:59:05 - End Time 2025-03-11 12:59:05 [2025-03-11 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657009', 'tblTempUsageDetail_20' ) start [2025-03-11 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657009', 'tblTempUsageDetail_20' ) end [2025-03-11 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657009', 'tblTempVendorCDR_20' ) start [2025-03-11 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657009', 'tblTempVendorCDR_20' ) end [2025-03-11 12:59:21] Production.INFO: ProcessCDR(1,14657009,1,1,2) [2025-03-11 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657009', 'tblTempUsageDetail_20' ) start [2025-03-11 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657009', 'tblTempUsageDetail_20' ) end [2025-03-11 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 12:59:26] Production.INFO: ==32186== Releasing lock... [2025-03-11 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 12:59:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:00:07 [end_date_ymd] => 2025-03-11 13:00:07 [RateCDR] => 1 ) [2025-03-11 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:00:07' and `end` < '2025-03-11 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:00:20] Production.INFO: count ==5765 [2025-03-11 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-11 10:00:07 - End Time 2025-03-11 13:00:07 [2025-03-11 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657015', 'tblTempUsageDetail_20' ) start [2025-03-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657015', 'tblTempUsageDetail_20' ) end [2025-03-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657015', 'tblTempVendorCDR_20' ) start [2025-03-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657015', 'tblTempVendorCDR_20' ) end [2025-03-11 13:00:23] Production.INFO: ProcessCDR(1,14657015,1,1,2) [2025-03-11 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657015', 'tblTempUsageDetail_20' ) start [2025-03-11 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657015', 'tblTempUsageDetail_20' ) end [2025-03-11 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:00:28] Production.INFO: ==32259== Releasing lock... [2025-03-11 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:00:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:01:06 [end_date_ymd] => 2025-03-11 13:01:06 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:01:06' and `end` < '2025-03-11 13: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-11 13:01:19] Production.INFO: count ==5819 [2025-03-11 13:01:22] Production.ERROR: pbx CDR StartTime 2025-03-11 10:01:06 - End Time 2025-03-11 13:01:06 [2025-03-11 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657020', 'tblTempUsageDetail_20' ) start [2025-03-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657020', 'tblTempUsageDetail_20' ) end [2025-03-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657020', 'tblTempVendorCDR_20' ) start [2025-03-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657020', 'tblTempVendorCDR_20' ) end [2025-03-11 13:01:22] Production.INFO: ProcessCDR(1,14657020,1,1,2) [2025-03-11 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657020', 'tblTempUsageDetail_20' ) start [2025-03-11 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657020', 'tblTempUsageDetail_20' ) end [2025-03-11 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:01:27] Production.INFO: ==32343== Releasing lock... [2025-03-11 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:01:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:02:05 [end_date_ymd] => 2025-03-11 13:02:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:02:05' and `end` < '2025-03-11 13: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-11 13:02:18] Production.INFO: count ==5829 [2025-03-11 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:02:05 - End Time 2025-03-11 13:02:05 [2025-03-11 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657025', 'tblTempUsageDetail_20' ) start [2025-03-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657025', 'tblTempUsageDetail_20' ) end [2025-03-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657025', 'tblTempVendorCDR_20' ) start [2025-03-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657025', 'tblTempVendorCDR_20' ) end [2025-03-11 13:02:21] Production.INFO: ProcessCDR(1,14657025,1,1,2) [2025-03-11 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657025', 'tblTempUsageDetail_20' ) start [2025-03-11 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657025', 'tblTempUsageDetail_20' ) end [2025-03-11 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:02:27] Production.INFO: ==32418== Releasing lock... [2025-03-11 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:02:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:03:06 [end_date_ymd] => 2025-03-11 13:03:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:03:06' and `end` < '2025-03-11 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-11 13:03:19] Production.INFO: count ==5828 [2025-03-11 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-11 10:03:06 - End Time 2025-03-11 13:03:06 [2025-03-11 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657030', 'tblTempUsageDetail_20' ) start [2025-03-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657030', 'tblTempUsageDetail_20' ) end [2025-03-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657030', 'tblTempVendorCDR_20' ) start [2025-03-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657030', 'tblTempVendorCDR_20' ) end [2025-03-11 13:03:22] Production.INFO: ProcessCDR(1,14657030,1,1,2) [2025-03-11 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657030', 'tblTempUsageDetail_20' ) start [2025-03-11 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657030', 'tblTempUsageDetail_20' ) end [2025-03-11 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:03:27] Production.INFO: ==32489== Releasing lock... [2025-03-11 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:03:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:04:05 [end_date_ymd] => 2025-03-11 13:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:04:05' and `end` < '2025-03-11 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-11 13:04:18] Production.INFO: count ==5832 [2025-03-11 13:04:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:04:05 - End Time 2025-03-11 13:04:05 [2025-03-11 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657035', 'tblTempUsageDetail_20' ) start [2025-03-11 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657035', 'tblTempUsageDetail_20' ) end [2025-03-11 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657035', 'tblTempVendorCDR_20' ) start [2025-03-11 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657035', 'tblTempVendorCDR_20' ) end [2025-03-11 13:04:20] Production.INFO: ProcessCDR(1,14657035,1,1,2) [2025-03-11 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657035', 'tblTempUsageDetail_20' ) start [2025-03-11 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657035', 'tblTempUsageDetail_20' ) end [2025-03-11 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:04:25] Production.INFO: ==32565== Releasing lock... [2025-03-11 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:04:25] Production.INFO: 72 MB #Memory Used# [2025-03-11 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:05:05 [end_date_ymd] => 2025-03-11 13:05:05 [RateCDR] => 1 ) [2025-03-11 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:05:05' and `end` < '2025-03-11 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:05:18] Production.INFO: count ==5850 [2025-03-11 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:05:05 - End Time 2025-03-11 13:05:05 [2025-03-11 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657040', 'tblTempUsageDetail_20' ) start [2025-03-11 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657040', 'tblTempUsageDetail_20' ) end [2025-03-11 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657040', 'tblTempVendorCDR_20' ) start [2025-03-11 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657040', 'tblTempVendorCDR_20' ) end [2025-03-11 13:05:21] Production.INFO: ProcessCDR(1,14657040,1,1,2) [2025-03-11 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657040', 'tblTempUsageDetail_20' ) start [2025-03-11 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657040', 'tblTempUsageDetail_20' ) end [2025-03-11 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:05:25] Production.INFO: ==32638== Releasing lock... [2025-03-11 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:05:25] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:06:05 [end_date_ymd] => 2025-03-11 13:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:06:05' and `end` < '2025-03-11 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-11 13:06:18] Production.INFO: count ==5846 [2025-03-11 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:06:05 - End Time 2025-03-11 13:06:05 [2025-03-11 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657045', 'tblTempUsageDetail_20' ) start [2025-03-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657045', 'tblTempUsageDetail_20' ) end [2025-03-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657045', 'tblTempVendorCDR_20' ) start [2025-03-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657045', 'tblTempVendorCDR_20' ) end [2025-03-11 13:06:21] Production.INFO: ProcessCDR(1,14657045,1,1,2) [2025-03-11 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657045', 'tblTempUsageDetail_20' ) start [2025-03-11 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657045', 'tblTempUsageDetail_20' ) end [2025-03-11 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:06:26] Production.INFO: ==32710== Releasing lock... [2025-03-11 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:06:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:07:05 [end_date_ymd] => 2025-03-11 13:07:05 [RateCDR] => 1 ) [2025-03-11 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:07:05' and `end` < '2025-03-11 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:07:18] Production.INFO: count ==5847 [2025-03-11 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:07:05 - End Time 2025-03-11 13:07:05 [2025-03-11 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657050', 'tblTempUsageDetail_20' ) start [2025-03-11 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657050', 'tblTempUsageDetail_20' ) end [2025-03-11 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657050', 'tblTempVendorCDR_20' ) start [2025-03-11 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657050', 'tblTempVendorCDR_20' ) end [2025-03-11 13:07:21] Production.INFO: ProcessCDR(1,14657050,1,1,2) [2025-03-11 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657050', 'tblTempUsageDetail_20' ) start [2025-03-11 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657050', 'tblTempUsageDetail_20' ) end [2025-03-11 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:07:26] Production.INFO: ==322== Releasing lock... [2025-03-11 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:07:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:08:05 [end_date_ymd] => 2025-03-11 13:08:05 [RateCDR] => 1 ) [2025-03-11 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:08:05' and `end` < '2025-03-11 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-11 13:08:18] Production.INFO: count ==5840 [2025-03-11 13:08:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:08:05 - End Time 2025-03-11 13:08:05 [2025-03-11 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657055', 'tblTempUsageDetail_20' ) start [2025-03-11 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657055', 'tblTempUsageDetail_20' ) end [2025-03-11 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657055', 'tblTempVendorCDR_20' ) start [2025-03-11 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657055', 'tblTempVendorCDR_20' ) end [2025-03-11 13:08:21] Production.INFO: ProcessCDR(1,14657055,1,1,2) [2025-03-11 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657055', 'tblTempUsageDetail_20' ) start [2025-03-11 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657055', 'tblTempUsageDetail_20' ) end [2025-03-11 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:08:25] Production.INFO: ==407== Releasing lock... [2025-03-11 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:08:25] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:09:05 [end_date_ymd] => 2025-03-11 13:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:09:05' and `end` < '2025-03-11 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-11 13:09:19] Production.INFO: count ==5802 [2025-03-11 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:09:05 - End Time 2025-03-11 13:09:05 [2025-03-11 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657060', 'tblTempUsageDetail_20' ) start [2025-03-11 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657060', 'tblTempUsageDetail_20' ) end [2025-03-11 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657060', 'tblTempVendorCDR_20' ) start [2025-03-11 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657060', 'tblTempVendorCDR_20' ) end [2025-03-11 13:09:21] Production.INFO: ProcessCDR(1,14657060,1,1,2) [2025-03-11 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657060', 'tblTempUsageDetail_20' ) start [2025-03-11 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657060', 'tblTempUsageDetail_20' ) end [2025-03-11 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:09:26] Production.INFO: ==480== Releasing lock... [2025-03-11 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:09:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:10:06 [end_date_ymd] => 2025-03-11 13:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:10:06' and `end` < '2025-03-11 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-11 13:10:20] Production.INFO: count ==5820 [2025-03-11 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 10:10:06 - End Time 2025-03-11 13:10:06 [2025-03-11 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657066', 'tblTempUsageDetail_20' ) start [2025-03-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657066', 'tblTempUsageDetail_20' ) end [2025-03-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657066', 'tblTempVendorCDR_20' ) start [2025-03-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657066', 'tblTempVendorCDR_20' ) end [2025-03-11 13:10:22] Production.INFO: ProcessCDR(1,14657066,1,1,2) [2025-03-11 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657066', 'tblTempUsageDetail_20' ) start [2025-03-11 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657066', 'tblTempUsageDetail_20' ) end [2025-03-11 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:10:28] Production.INFO: ==556== Releasing lock... [2025-03-11 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:10:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:11:05 [end_date_ymd] => 2025-03-11 13:11:05 [RateCDR] => 1 ) [2025-03-11 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:11:05' and `end` < '2025-03-11 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:11:18] Production.INFO: count ==5809 [2025-03-11 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:11:05 - End Time 2025-03-11 13:11:05 [2025-03-11 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657071', 'tblTempUsageDetail_20' ) start [2025-03-11 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657071', 'tblTempUsageDetail_20' ) end [2025-03-11 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657071', 'tblTempVendorCDR_20' ) start [2025-03-11 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657071', 'tblTempVendorCDR_20' ) end [2025-03-11 13:11:21] Production.INFO: ProcessCDR(1,14657071,1,1,2) [2025-03-11 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657071', 'tblTempUsageDetail_20' ) start [2025-03-11 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657071', 'tblTempUsageDetail_20' ) end [2025-03-11 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:11:26] Production.INFO: ==651== Releasing lock... [2025-03-11 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:11:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:12:05 [end_date_ymd] => 2025-03-11 13:12:05 [RateCDR] => 1 ) [2025-03-11 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:12:05' and `end` < '2025-03-11 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:12:18] Production.INFO: count ==5804 [2025-03-11 13:12:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:12:05 - End Time 2025-03-11 13:12:05 [2025-03-11 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657076', 'tblTempUsageDetail_20' ) start [2025-03-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657076', 'tblTempUsageDetail_20' ) end [2025-03-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657076', 'tblTempVendorCDR_20' ) start [2025-03-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657076', 'tblTempVendorCDR_20' ) end [2025-03-11 13:12:21] Production.INFO: ProcessCDR(1,14657076,1,1,2) [2025-03-11 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657076', 'tblTempUsageDetail_20' ) start [2025-03-11 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657076', 'tblTempUsageDetail_20' ) end [2025-03-11 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:12:25] Production.INFO: ==757== Releasing lock... [2025-03-11 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:12:25] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:13:05 [end_date_ymd] => 2025-03-11 13:13:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:13:05' and `end` < '2025-03-11 13: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-11 13:13:19] Production.INFO: count ==5788 [2025-03-11 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:13:05 - End Time 2025-03-11 13:13:05 [2025-03-11 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657081', 'tblTempUsageDetail_20' ) start [2025-03-11 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657081', 'tblTempUsageDetail_20' ) end [2025-03-11 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657081', 'tblTempVendorCDR_20' ) start [2025-03-11 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657081', 'tblTempVendorCDR_20' ) end [2025-03-11 13:13:21] Production.INFO: ProcessCDR(1,14657081,1,1,2) [2025-03-11 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657081', 'tblTempUsageDetail_20' ) start [2025-03-11 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657081', 'tblTempUsageDetail_20' ) end [2025-03-11 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:13:26] Production.INFO: ==827== Releasing lock... [2025-03-11 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:13:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:14:05 [end_date_ymd] => 2025-03-11 13:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:14:05' and `end` < '2025-03-11 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-11 13:14:18] Production.INFO: count ==5782 [2025-03-11 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:14:05 - End Time 2025-03-11 13:14:05 [2025-03-11 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657086', 'tblTempUsageDetail_20' ) start [2025-03-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657086', 'tblTempUsageDetail_20' ) end [2025-03-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657086', 'tblTempVendorCDR_20' ) start [2025-03-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657086', 'tblTempVendorCDR_20' ) end [2025-03-11 13:14:21] Production.INFO: ProcessCDR(1,14657086,1,1,2) [2025-03-11 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657086', 'tblTempUsageDetail_20' ) start [2025-03-11 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657086', 'tblTempUsageDetail_20' ) end [2025-03-11 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:14:26] Production.INFO: ==936== Releasing lock... [2025-03-11 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:14:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:15:05 [end_date_ymd] => 2025-03-11 13:15:05 [RateCDR] => 1 ) [2025-03-11 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:15:05' and `end` < '2025-03-11 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:15:18] Production.INFO: count ==5787 [2025-03-11 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:15:05 - End Time 2025-03-11 13:15:05 [2025-03-11 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657091', 'tblTempUsageDetail_20' ) start [2025-03-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657091', 'tblTempUsageDetail_20' ) end [2025-03-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657091', 'tblTempVendorCDR_20' ) start [2025-03-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657091', 'tblTempVendorCDR_20' ) end [2025-03-11 13:15:21] Production.INFO: ProcessCDR(1,14657091,1,1,2) [2025-03-11 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657091', 'tblTempUsageDetail_20' ) start [2025-03-11 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657091', 'tblTempUsageDetail_20' ) end [2025-03-11 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:15:26] Production.INFO: ==1013== Releasing lock... [2025-03-11 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:15:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:16:05 [end_date_ymd] => 2025-03-11 13:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:16:05' and `end` < '2025-03-11 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-11 13:16:18] Production.INFO: count ==5756 [2025-03-11 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:16:05 - End Time 2025-03-11 13:16:05 [2025-03-11 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657096', 'tblTempUsageDetail_20' ) start [2025-03-11 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657096', 'tblTempUsageDetail_20' ) end [2025-03-11 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657096', 'tblTempVendorCDR_20' ) start [2025-03-11 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657096', 'tblTempVendorCDR_20' ) end [2025-03-11 13:16:21] Production.INFO: ProcessCDR(1,14657096,1,1,2) [2025-03-11 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657096', 'tblTempUsageDetail_20' ) start [2025-03-11 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657096', 'tblTempUsageDetail_20' ) end [2025-03-11 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:16:26] Production.INFO: ==1083== Releasing lock... [2025-03-11 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:16:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:17:05 [end_date_ymd] => 2025-03-11 13:17:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:17:05' and `end` < '2025-03-11 13: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-11 13:17:18] Production.INFO: count ==5761 [2025-03-11 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:17:05 - End Time 2025-03-11 13:17:05 [2025-03-11 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657101', 'tblTempUsageDetail_20' ) start [2025-03-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657101', 'tblTempUsageDetail_20' ) end [2025-03-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657101', 'tblTempVendorCDR_20' ) start [2025-03-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657101', 'tblTempVendorCDR_20' ) end [2025-03-11 13:17:21] Production.INFO: ProcessCDR(1,14657101,1,1,2) [2025-03-11 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657101', 'tblTempUsageDetail_20' ) start [2025-03-11 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657101', 'tblTempUsageDetail_20' ) end [2025-03-11 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:17:24] Production.INFO: ==1157== Releasing lock... [2025-03-11 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:17:24] Production.INFO: 71 MB #Memory Used# [2025-03-11 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:18:05 [end_date_ymd] => 2025-03-11 13:18:05 [RateCDR] => 1 ) [2025-03-11 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:18:05' and `end` < '2025-03-11 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:18:18] Production.INFO: count ==5750 [2025-03-11 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:18:05 - End Time 2025-03-11 13:18:05 [2025-03-11 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657106', 'tblTempUsageDetail_20' ) start [2025-03-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657106', 'tblTempUsageDetail_20' ) end [2025-03-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657106', 'tblTempVendorCDR_20' ) start [2025-03-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657106', 'tblTempVendorCDR_20' ) end [2025-03-11 13:18:21] Production.INFO: ProcessCDR(1,14657106,1,1,2) [2025-03-11 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657106', 'tblTempUsageDetail_20' ) start [2025-03-11 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657106', 'tblTempUsageDetail_20' ) end [2025-03-11 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:18:26] Production.INFO: ==1255== Releasing lock... [2025-03-11 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:18:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:19:05 [end_date_ymd] => 2025-03-11 13:19:05 [RateCDR] => 1 ) [2025-03-11 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:19:05' and `end` < '2025-03-11 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:19:18] Production.INFO: count ==5746 [2025-03-11 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:19:05 - End Time 2025-03-11 13:19:05 [2025-03-11 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657111', 'tblTempUsageDetail_20' ) start [2025-03-11 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657111', 'tblTempUsageDetail_20' ) end [2025-03-11 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657111', 'tblTempVendorCDR_20' ) start [2025-03-11 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657111', 'tblTempVendorCDR_20' ) end [2025-03-11 13:19:21] Production.INFO: ProcessCDR(1,14657111,1,1,2) [2025-03-11 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657111', 'tblTempUsageDetail_20' ) start [2025-03-11 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657111', 'tblTempUsageDetail_20' ) end [2025-03-11 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:19:26] Production.INFO: ==1329== Releasing lock... [2025-03-11 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:19:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:20:05 [end_date_ymd] => 2025-03-11 13:20:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:20:05' and `end` < '2025-03-11 13: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-11 13:20:19] Production.INFO: count ==5716 [2025-03-11 13:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:20:05 - End Time 2025-03-11 13:20:05 [2025-03-11 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657117', 'tblTempUsageDetail_20' ) start [2025-03-11 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657117', 'tblTempUsageDetail_20' ) end [2025-03-11 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657117', 'tblTempVendorCDR_20' ) start [2025-03-11 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657117', 'tblTempVendorCDR_20' ) end [2025-03-11 13:20:21] Production.INFO: ProcessCDR(1,14657117,1,1,2) [2025-03-11 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657117', 'tblTempUsageDetail_20' ) start [2025-03-11 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657117', 'tblTempUsageDetail_20' ) end [2025-03-11 13:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:20:26] Production.INFO: ==1401== Releasing lock... [2025-03-11 13:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:20:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-11 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:21:06 [end_date_ymd] => 2025-03-11 13:21:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:21:06' and `end` < '2025-03-11 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-11 13:21:19] Production.INFO: count ==5668 [2025-03-11 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:21:06 - End Time 2025-03-11 13:21:06 [2025-03-11 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657122', 'tblTempUsageDetail_20' ) start [2025-03-11 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657122', 'tblTempUsageDetail_20' ) end [2025-03-11 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657122', 'tblTempVendorCDR_20' ) start [2025-03-11 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657122', 'tblTempVendorCDR_20' ) end [2025-03-11 13:21:21] Production.INFO: ProcessCDR(1,14657122,1,1,2) [2025-03-11 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657122', 'tblTempUsageDetail_20' ) start [2025-03-11 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657122', 'tblTempUsageDetail_20' ) end [2025-03-11 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:21:26] Production.INFO: ==1475== Releasing lock... [2025-03-11 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:21:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:22:05 [end_date_ymd] => 2025-03-11 13:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:22:05' and `end` < '2025-03-11 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-11 13:22:18] Production.INFO: count ==5641 [2025-03-11 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:22:05 - End Time 2025-03-11 13:22:05 [2025-03-11 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657127', 'tblTempUsageDetail_20' ) start [2025-03-11 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657127', 'tblTempUsageDetail_20' ) end [2025-03-11 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657127', 'tblTempVendorCDR_20' ) start [2025-03-11 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657127', 'tblTempVendorCDR_20' ) end [2025-03-11 13:22:21] Production.INFO: ProcessCDR(1,14657127,1,1,2) [2025-03-11 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657127', 'tblTempUsageDetail_20' ) start [2025-03-11 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657127', 'tblTempUsageDetail_20' ) end [2025-03-11 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:22:26] Production.INFO: ==1581== Releasing lock... [2025-03-11 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:22:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:23:05 [end_date_ymd] => 2025-03-11 13:23:05 [RateCDR] => 1 ) [2025-03-11 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:23:05' and `end` < '2025-03-11 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:23:18] Production.INFO: count ==5622 [2025-03-11 13:23:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:23:05 - End Time 2025-03-11 13:23:05 [2025-03-11 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657128', 'tblTempUsageDetail_20' ) start [2025-03-11 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657128', 'tblTempUsageDetail_20' ) end [2025-03-11 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657128', 'tblTempVendorCDR_20' ) start [2025-03-11 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657128', 'tblTempVendorCDR_20' ) end [2025-03-11 13:23:21] Production.INFO: ProcessCDR(1,14657128,1,1,2) [2025-03-11 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657128', 'tblTempUsageDetail_20' ) start [2025-03-11 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657128', 'tblTempUsageDetail_20' ) end [2025-03-11 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:23:25] Production.INFO: ==1653== Releasing lock... [2025-03-11 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:23:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:24:05 [end_date_ymd] => 2025-03-11 13:24:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:24:05' and `end` < '2025-03-11 13: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-11 13:24:18] Production.INFO: count ==5602 [2025-03-11 13:24:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:24:05 - End Time 2025-03-11 13:24:05 [2025-03-11 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657137', 'tblTempUsageDetail_20' ) start [2025-03-11 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657137', 'tblTempUsageDetail_20' ) end [2025-03-11 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657137', 'tblTempVendorCDR_20' ) start [2025-03-11 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657137', 'tblTempVendorCDR_20' ) end [2025-03-11 13:24:20] Production.INFO: ProcessCDR(1,14657137,1,1,2) [2025-03-11 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657137', 'tblTempUsageDetail_20' ) start [2025-03-11 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657137', 'tblTempUsageDetail_20' ) end [2025-03-11 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:24:25] Production.INFO: ==1736== Releasing lock... [2025-03-11 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:24:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:25:05 [end_date_ymd] => 2025-03-11 13:25:05 [RateCDR] => 1 ) [2025-03-11 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:25:05' and `end` < '2025-03-11 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:25:19] Production.INFO: count ==5585 [2025-03-11 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:25:05 - End Time 2025-03-11 13:25:05 [2025-03-11 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657142', 'tblTempUsageDetail_20' ) start [2025-03-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657142', 'tblTempUsageDetail_20' ) end [2025-03-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657142', 'tblTempVendorCDR_20' ) start [2025-03-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657142', 'tblTempVendorCDR_20' ) end [2025-03-11 13:25:21] Production.INFO: ProcessCDR(1,14657142,1,1,2) [2025-03-11 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657142', 'tblTempUsageDetail_20' ) start [2025-03-11 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657142', 'tblTempUsageDetail_20' ) end [2025-03-11 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:25:26] Production.INFO: ==1810== Releasing lock... [2025-03-11 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:25:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:26:05 [end_date_ymd] => 2025-03-11 13:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:26:05' and `end` < '2025-03-11 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-11 13:26:18] Production.INFO: count ==5543 [2025-03-11 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:26:05 - End Time 2025-03-11 13:26:05 [2025-03-11 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657147', 'tblTempUsageDetail_20' ) start [2025-03-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657147', 'tblTempUsageDetail_20' ) end [2025-03-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657147', 'tblTempVendorCDR_20' ) start [2025-03-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657147', 'tblTempVendorCDR_20' ) end [2025-03-11 13:26:21] Production.INFO: ProcessCDR(1,14657147,1,1,2) [2025-03-11 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657147', 'tblTempUsageDetail_20' ) start [2025-03-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657147', 'tblTempUsageDetail_20' ) end [2025-03-11 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:26:26] Production.INFO: ==1886== Releasing lock... [2025-03-11 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:26:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:27:05 [end_date_ymd] => 2025-03-11 13:27:05 [RateCDR] => 1 ) [2025-03-11 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:27:05' and `end` < '2025-03-11 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-11 13:27:19] Production.INFO: count ==5543 [2025-03-11 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:27:05 - End Time 2025-03-11 13:27:05 [2025-03-11 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657152', 'tblTempUsageDetail_20' ) start [2025-03-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657152', 'tblTempUsageDetail_20' ) end [2025-03-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657152', 'tblTempVendorCDR_20' ) start [2025-03-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657152', 'tblTempVendorCDR_20' ) end [2025-03-11 13:27:21] Production.INFO: ProcessCDR(1,14657152,1,1,2) [2025-03-11 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657152', 'tblTempUsageDetail_20' ) start [2025-03-11 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657152', 'tblTempUsageDetail_20' ) end [2025-03-11 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:27:26] Production.INFO: ==1960== Releasing lock... [2025-03-11 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:27:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:28:06 [end_date_ymd] => 2025-03-11 13:28:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:28:06' and `end` < '2025-03-11 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-11 13:28:19] Production.INFO: count ==5551 [2025-03-11 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:28:06 - End Time 2025-03-11 13:28:06 [2025-03-11 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657157', 'tblTempUsageDetail_20' ) start [2025-03-11 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657157', 'tblTempUsageDetail_20' ) end [2025-03-11 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657157', 'tblTempVendorCDR_20' ) start [2025-03-11 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657157', 'tblTempVendorCDR_20' ) end [2025-03-11 13:28:21] Production.INFO: ProcessCDR(1,14657157,1,1,2) [2025-03-11 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657157', 'tblTempUsageDetail_20' ) start [2025-03-11 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657157', 'tblTempUsageDetail_20' ) end [2025-03-11 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:28:27] Production.INFO: ==2036== Releasing lock... [2025-03-11 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:28:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:29:05 [end_date_ymd] => 2025-03-11 13:29:05 [RateCDR] => 1 ) [2025-03-11 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:29:05' and `end` < '2025-03-11 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:29:18] Production.INFO: count ==5544 [2025-03-11 13:29:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:29:05 - End Time 2025-03-11 13:29:05 [2025-03-11 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657162', 'tblTempUsageDetail_20' ) start [2025-03-11 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657162', 'tblTempUsageDetail_20' ) end [2025-03-11 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657162', 'tblTempVendorCDR_20' ) start [2025-03-11 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657162', 'tblTempVendorCDR_20' ) end [2025-03-11 13:29:20] Production.INFO: ProcessCDR(1,14657162,1,1,2) [2025-03-11 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657162', 'tblTempUsageDetail_20' ) start [2025-03-11 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657162', 'tblTempUsageDetail_20' ) end [2025-03-11 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:29:26] Production.INFO: ==2107== Releasing lock... [2025-03-11 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:29:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:30:06 [end_date_ymd] => 2025-03-11 13:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:30:06' and `end` < '2025-03-11 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-11 13:30:19] Production.INFO: count ==5538 [2025-03-11 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-11 10:30:06 - End Time 2025-03-11 13:30:06 [2025-03-11 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657168', 'tblTempUsageDetail_20' ) start [2025-03-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657168', 'tblTempUsageDetail_20' ) end [2025-03-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657168', 'tblTempVendorCDR_20' ) start [2025-03-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657168', 'tblTempVendorCDR_20' ) end [2025-03-11 13:30:22] Production.INFO: ProcessCDR(1,14657168,1,1,2) [2025-03-11 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657168', 'tblTempUsageDetail_20' ) start [2025-03-11 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657168', 'tblTempUsageDetail_20' ) end [2025-03-11 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:30:27] Production.INFO: ==2223== Releasing lock... [2025-03-11 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:30:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:31:05 [end_date_ymd] => 2025-03-11 13:31:05 [RateCDR] => 1 ) [2025-03-11 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:31:05' and `end` < '2025-03-11 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:31:18] Production.INFO: count ==5524 [2025-03-11 13:31:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:31:05 - End Time 2025-03-11 13:31:05 [2025-03-11 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657173', 'tblTempUsageDetail_20' ) start [2025-03-11 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657173', 'tblTempUsageDetail_20' ) end [2025-03-11 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657173', 'tblTempVendorCDR_20' ) start [2025-03-11 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657173', 'tblTempVendorCDR_20' ) end [2025-03-11 13:31:21] Production.INFO: ProcessCDR(1,14657173,1,1,2) [2025-03-11 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657173', 'tblTempUsageDetail_20' ) start [2025-03-11 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657173', 'tblTempUsageDetail_20' ) end [2025-03-11 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:31:26] Production.INFO: ==2297== Releasing lock... [2025-03-11 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:31:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:32:05 [end_date_ymd] => 2025-03-11 13:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:32:05' and `end` < '2025-03-11 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-11 13:32:19] Production.INFO: count ==5514 [2025-03-11 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:32:05 - End Time 2025-03-11 13:32:05 [2025-03-11 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657178', 'tblTempUsageDetail_20' ) start [2025-03-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657178', 'tblTempUsageDetail_20' ) end [2025-03-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657178', 'tblTempVendorCDR_20' ) start [2025-03-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657178', 'tblTempVendorCDR_20' ) end [2025-03-11 13:32:21] Production.INFO: ProcessCDR(1,14657178,1,1,2) [2025-03-11 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657178', 'tblTempUsageDetail_20' ) start [2025-03-11 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657178', 'tblTempUsageDetail_20' ) end [2025-03-11 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:32:26] Production.INFO: ==2369== Releasing lock... [2025-03-11 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:32:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:33:05 [end_date_ymd] => 2025-03-11 13:33:05 [RateCDR] => 1 ) [2025-03-11 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:33:05' and `end` < '2025-03-11 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:33:19] Production.INFO: count ==5511 [2025-03-11 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:33:05 - End Time 2025-03-11 13:33:05 [2025-03-11 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657183', 'tblTempUsageDetail_20' ) start [2025-03-11 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657183', 'tblTempUsageDetail_20' ) end [2025-03-11 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657183', 'tblTempVendorCDR_20' ) start [2025-03-11 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657183', 'tblTempVendorCDR_20' ) end [2025-03-11 13:33:21] Production.INFO: ProcessCDR(1,14657183,1,1,2) [2025-03-11 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657183', 'tblTempUsageDetail_20' ) start [2025-03-11 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657183', 'tblTempUsageDetail_20' ) end [2025-03-11 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:33:26] Production.INFO: ==2440== Releasing lock... [2025-03-11 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:33:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:34:05 [end_date_ymd] => 2025-03-11 13:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:34:05' and `end` < '2025-03-11 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-11 13:34:18] Production.INFO: count ==5525 [2025-03-11 13:34:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:34:05 - End Time 2025-03-11 13:34:05 [2025-03-11 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657188', 'tblTempUsageDetail_20' ) start [2025-03-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657188', 'tblTempUsageDetail_20' ) end [2025-03-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657188', 'tblTempVendorCDR_20' ) start [2025-03-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657188', 'tblTempVendorCDR_20' ) end [2025-03-11 13:34:21] Production.INFO: ProcessCDR(1,14657188,1,1,2) [2025-03-11 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657188', 'tblTempUsageDetail_20' ) start [2025-03-11 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657188', 'tblTempUsageDetail_20' ) end [2025-03-11 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:34:26] Production.INFO: ==2510== Releasing lock... [2025-03-11 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:34:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:35:04 [end_date_ymd] => 2025-03-11 13:35:04 [RateCDR] => 1 ) [2025-03-11 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:35:04' and `end` < '2025-03-11 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:35:18] Production.INFO: count ==5526 [2025-03-11 13:35:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:35:04 - End Time 2025-03-11 13:35:04 [2025-03-11 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657193', 'tblTempUsageDetail_20' ) start [2025-03-11 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657193', 'tblTempUsageDetail_20' ) end [2025-03-11 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657193', 'tblTempVendorCDR_20' ) start [2025-03-11 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657193', 'tblTempVendorCDR_20' ) end [2025-03-11 13:35:20] Production.INFO: ProcessCDR(1,14657193,1,1,2) [2025-03-11 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657193', 'tblTempUsageDetail_20' ) start [2025-03-11 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657193', 'tblTempUsageDetail_20' ) end [2025-03-11 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:35:25] Production.INFO: ==2586== Releasing lock... [2025-03-11 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:35:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:36:05 [end_date_ymd] => 2025-03-11 13:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:36:05' and `end` < '2025-03-11 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-11 13:36:19] Production.INFO: count ==5540 [2025-03-11 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:36:05 - End Time 2025-03-11 13:36:05 [2025-03-11 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657198', 'tblTempUsageDetail_20' ) start [2025-03-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657198', 'tblTempUsageDetail_20' ) end [2025-03-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657198', 'tblTempVendorCDR_20' ) start [2025-03-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657198', 'tblTempVendorCDR_20' ) end [2025-03-11 13:36:21] Production.INFO: ProcessCDR(1,14657198,1,1,2) [2025-03-11 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657198', 'tblTempUsageDetail_20' ) start [2025-03-11 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657198', 'tblTempUsageDetail_20' ) end [2025-03-11 13:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:36:25] Production.INFO: ==2655== Releasing lock... [2025-03-11 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:36:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:37:04 [end_date_ymd] => 2025-03-11 13:37:04 [RateCDR] => 1 ) [2025-03-11 13:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:37:04' and `end` < '2025-03-11 13:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:37:18] Production.INFO: count ==5564 [2025-03-11 13:37:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:37:04 - End Time 2025-03-11 13:37:04 [2025-03-11 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657203', 'tblTempUsageDetail_20' ) start [2025-03-11 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657203', 'tblTempUsageDetail_20' ) end [2025-03-11 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657203', 'tblTempVendorCDR_20' ) start [2025-03-11 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657203', 'tblTempVendorCDR_20' ) end [2025-03-11 13:37:20] Production.INFO: ProcessCDR(1,14657203,1,1,2) [2025-03-11 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657203', 'tblTempUsageDetail_20' ) start [2025-03-11 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657203', 'tblTempUsageDetail_20' ) end [2025-03-11 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:37:26] Production.INFO: ==2728== Releasing lock... [2025-03-11 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:37:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:38:06 [end_date_ymd] => 2025-03-11 13:38:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:38:06' and `end` < '2025-03-11 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-11 13:38:19] Production.INFO: count ==5589 [2025-03-11 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:38:06 - End Time 2025-03-11 13:38:06 [2025-03-11 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657208', 'tblTempUsageDetail_20' ) start [2025-03-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657208', 'tblTempUsageDetail_20' ) end [2025-03-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657208', 'tblTempVendorCDR_20' ) start [2025-03-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657208', 'tblTempVendorCDR_20' ) end [2025-03-11 13:38:21] Production.INFO: ProcessCDR(1,14657208,1,1,2) [2025-03-11 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657208', 'tblTempUsageDetail_20' ) start [2025-03-11 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657208', 'tblTempUsageDetail_20' ) end [2025-03-11 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:38:26] Production.INFO: ==2799== Releasing lock... [2025-03-11 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:38:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:39:05 [end_date_ymd] => 2025-03-11 13:39:05 [RateCDR] => 1 ) [2025-03-11 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:39:05' and `end` < '2025-03-11 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:39:18] Production.INFO: count ==5607 [2025-03-11 13:39:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:39:05 - End Time 2025-03-11 13:39:05 [2025-03-11 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657213', 'tblTempUsageDetail_20' ) start [2025-03-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657213', 'tblTempUsageDetail_20' ) end [2025-03-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657213', 'tblTempVendorCDR_20' ) start [2025-03-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657213', 'tblTempVendorCDR_20' ) end [2025-03-11 13:39:21] Production.INFO: ProcessCDR(1,14657213,1,1,2) [2025-03-11 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657213', 'tblTempUsageDetail_20' ) start [2025-03-11 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657213', 'tblTempUsageDetail_20' ) end [2025-03-11 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:39:26] Production.INFO: ==2869== Releasing lock... [2025-03-11 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:39:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:40:06 [end_date_ymd] => 2025-03-11 13:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:40:06' and `end` < '2025-03-11 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-11 13:40:19] Production.INFO: count ==5606 [2025-03-11 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:40:06 - End Time 2025-03-11 13:40:06 [2025-03-11 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657219', 'tblTempUsageDetail_20' ) start [2025-03-11 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657219', 'tblTempUsageDetail_20' ) end [2025-03-11 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657219', 'tblTempVendorCDR_20' ) start [2025-03-11 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657219', 'tblTempVendorCDR_20' ) end [2025-03-11 13:40:21] Production.INFO: ProcessCDR(1,14657219,1,1,2) [2025-03-11 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657219', 'tblTempUsageDetail_20' ) start [2025-03-11 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657219', 'tblTempUsageDetail_20' ) end [2025-03-11 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:40:26] Production.INFO: ==2947== Releasing lock... [2025-03-11 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:40:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:41:06 [end_date_ymd] => 2025-03-11 13:41:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:41:06' and `end` < '2025-03-11 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-11 13:41:19] Production.INFO: count ==5586 [2025-03-11 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:41:06 - End Time 2025-03-11 13:41:06 [2025-03-11 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657224', 'tblTempUsageDetail_20' ) start [2025-03-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657224', 'tblTempUsageDetail_20' ) end [2025-03-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657224', 'tblTempVendorCDR_20' ) start [2025-03-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657224', 'tblTempVendorCDR_20' ) end [2025-03-11 13:41:21] Production.INFO: ProcessCDR(1,14657224,1,1,2) [2025-03-11 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657224', 'tblTempUsageDetail_20' ) start [2025-03-11 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657224', 'tblTempUsageDetail_20' ) end [2025-03-11 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:41:27] Production.INFO: ==3021== Releasing lock... [2025-03-11 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:41:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:42:05 [end_date_ymd] => 2025-03-11 13:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:42:05' and `end` < '2025-03-11 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-11 13:42:18] Production.INFO: count ==5563 [2025-03-11 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:42:05 - End Time 2025-03-11 13:42:05 [2025-03-11 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657229', 'tblTempUsageDetail_20' ) start [2025-03-11 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657229', 'tblTempUsageDetail_20' ) end [2025-03-11 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657229', 'tblTempVendorCDR_20' ) start [2025-03-11 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657229', 'tblTempVendorCDR_20' ) end [2025-03-11 13:42:21] Production.INFO: ProcessCDR(1,14657229,1,1,2) [2025-03-11 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657229', 'tblTempUsageDetail_20' ) start [2025-03-11 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657229', 'tblTempUsageDetail_20' ) end [2025-03-11 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:42:26] Production.INFO: ==3094== Releasing lock... [2025-03-11 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:42:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:43:05 [end_date_ymd] => 2025-03-11 13:43:05 [RateCDR] => 1 ) [2025-03-11 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:43:05' and `end` < '2025-03-11 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:43:19] Production.INFO: count ==5561 [2025-03-11 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:43:05 - End Time 2025-03-11 13:43:05 [2025-03-11 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657234', 'tblTempUsageDetail_20' ) start [2025-03-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657234', 'tblTempUsageDetail_20' ) end [2025-03-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657234', 'tblTempVendorCDR_20' ) start [2025-03-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657234', 'tblTempVendorCDR_20' ) end [2025-03-11 13:43:21] Production.INFO: ProcessCDR(1,14657234,1,1,2) [2025-03-11 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657234', 'tblTempUsageDetail_20' ) start [2025-03-11 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657234', 'tblTempUsageDetail_20' ) end [2025-03-11 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:43:27] Production.INFO: ==3175== Releasing lock... [2025-03-11 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:43:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:44:05 [end_date_ymd] => 2025-03-11 13:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:44:05' and `end` < '2025-03-11 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-11 13:44:19] Production.INFO: count ==5573 [2025-03-11 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:44:05 - End Time 2025-03-11 13:44:05 [2025-03-11 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657239', 'tblTempUsageDetail_20' ) start [2025-03-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657239', 'tblTempUsageDetail_20' ) end [2025-03-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657239', 'tblTempVendorCDR_20' ) start [2025-03-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657239', 'tblTempVendorCDR_20' ) end [2025-03-11 13:44:21] Production.INFO: ProcessCDR(1,14657239,1,1,2) [2025-03-11 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657239', 'tblTempUsageDetail_20' ) start [2025-03-11 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657239', 'tblTempUsageDetail_20' ) end [2025-03-11 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:44:26] Production.INFO: ==3245== Releasing lock... [2025-03-11 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:44:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:45:05 [end_date_ymd] => 2025-03-11 13:45:05 [RateCDR] => 1 ) [2025-03-11 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:45:05' and `end` < '2025-03-11 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:45:19] Production.INFO: count ==5598 [2025-03-11 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:45:05 - End Time 2025-03-11 13:45:05 [2025-03-11 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657244', 'tblTempUsageDetail_20' ) start [2025-03-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657244', 'tblTempUsageDetail_20' ) end [2025-03-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657244', 'tblTempVendorCDR_20' ) start [2025-03-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657244', 'tblTempVendorCDR_20' ) end [2025-03-11 13:45:21] Production.INFO: ProcessCDR(1,14657244,1,1,2) [2025-03-11 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657244', 'tblTempUsageDetail_20' ) start [2025-03-11 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657244', 'tblTempUsageDetail_20' ) end [2025-03-11 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:45:26] Production.INFO: ==3362== Releasing lock... [2025-03-11 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:45:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:46:05 [end_date_ymd] => 2025-03-11 13:46:05 [RateCDR] => 1 ) [2025-03-11 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:46:05' and `end` < '2025-03-11 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:46:18] Production.INFO: count ==5599 [2025-03-11 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:46:05 - End Time 2025-03-11 13:46:05 [2025-03-11 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657249', 'tblTempUsageDetail_20' ) start [2025-03-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657249', 'tblTempUsageDetail_20' ) end [2025-03-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657249', 'tblTempVendorCDR_20' ) start [2025-03-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657249', 'tblTempVendorCDR_20' ) end [2025-03-11 13:46:21] Production.INFO: ProcessCDR(1,14657249,1,1,2) [2025-03-11 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657249', 'tblTempUsageDetail_20' ) start [2025-03-11 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657249', 'tblTempUsageDetail_20' ) end [2025-03-11 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:46:26] Production.INFO: ==3431== Releasing lock... [2025-03-11 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:46:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:47:06 [end_date_ymd] => 2025-03-11 13:47:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:47:06' and `end` < '2025-03-11 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-11 13:47:19] Production.INFO: count ==5607 [2025-03-11 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:47:06 - End Time 2025-03-11 13:47:06 [2025-03-11 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657254', 'tblTempUsageDetail_20' ) start [2025-03-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657254', 'tblTempUsageDetail_20' ) end [2025-03-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657254', 'tblTempVendorCDR_20' ) start [2025-03-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657254', 'tblTempVendorCDR_20' ) end [2025-03-11 13:47:21] Production.INFO: ProcessCDR(1,14657254,1,1,2) [2025-03-11 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657254', 'tblTempUsageDetail_20' ) start [2025-03-11 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657254', 'tblTempUsageDetail_20' ) end [2025-03-11 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:47:26] Production.INFO: ==3501== Releasing lock... [2025-03-11 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:47:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:48:05 [end_date_ymd] => 2025-03-11 13:48:05 [RateCDR] => 1 ) [2025-03-11 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:48:05' and `end` < '2025-03-11 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:48:18] Production.INFO: count ==5602 [2025-03-11 13:48:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:48:05 - End Time 2025-03-11 13:48:05 [2025-03-11 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657259', 'tblTempUsageDetail_20' ) start [2025-03-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657259', 'tblTempUsageDetail_20' ) end [2025-03-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657259', 'tblTempVendorCDR_20' ) start [2025-03-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657259', 'tblTempVendorCDR_20' ) end [2025-03-11 13:48:21] Production.INFO: ProcessCDR(1,14657259,1,1,2) [2025-03-11 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657259', 'tblTempUsageDetail_20' ) start [2025-03-11 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657259', 'tblTempUsageDetail_20' ) end [2025-03-11 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:48:26] Production.INFO: ==3576== Releasing lock... [2025-03-11 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:48:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:49:05 [end_date_ymd] => 2025-03-11 13:49:05 [RateCDR] => 1 ) [2025-03-11 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:49:05' and `end` < '2025-03-11 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:49:18] Production.INFO: count ==5592 [2025-03-11 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:49:05 - End Time 2025-03-11 13:49:05 [2025-03-11 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657264', 'tblTempUsageDetail_20' ) start [2025-03-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657264', 'tblTempUsageDetail_20' ) end [2025-03-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657264', 'tblTempVendorCDR_20' ) start [2025-03-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657264', 'tblTempVendorCDR_20' ) end [2025-03-11 13:49:20] Production.INFO: ProcessCDR(1,14657264,1,1,2) [2025-03-11 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657264', 'tblTempUsageDetail_20' ) start [2025-03-11 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657264', 'tblTempUsageDetail_20' ) end [2025-03-11 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:49:25] Production.INFO: ==3654== Releasing lock... [2025-03-11 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:49:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:50:05 [end_date_ymd] => 2025-03-11 13:50:05 [RateCDR] => 1 ) [2025-03-11 13: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-11 10:50:05' and `end` < '2025-03-11 13: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-11 13:50:18] Production.INFO: count ==5578 [2025-03-11 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:50:05 - End Time 2025-03-11 13:50:05 [2025-03-11 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657270', 'tblTempUsageDetail_20' ) start [2025-03-11 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657270', 'tblTempUsageDetail_20' ) end [2025-03-11 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657270', 'tblTempVendorCDR_20' ) start [2025-03-11 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657270', 'tblTempVendorCDR_20' ) end [2025-03-11 13:50:21] Production.INFO: ProcessCDR(1,14657270,1,1,2) [2025-03-11 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657270', 'tblTempUsageDetail_20' ) start [2025-03-11 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657270', 'tblTempUsageDetail_20' ) end [2025-03-11 13:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:50:25] Production.INFO: ==3733== Releasing lock... [2025-03-11 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:50:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:51:05 [end_date_ymd] => 2025-03-11 13:51:05 [RateCDR] => 1 ) [2025-03-11 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:51:05' and `end` < '2025-03-11 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:51:18] Production.INFO: count ==5600 [2025-03-11 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:51:05 - End Time 2025-03-11 13:51:05 [2025-03-11 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657275', 'tblTempUsageDetail_20' ) start [2025-03-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657275', 'tblTempUsageDetail_20' ) end [2025-03-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657275', 'tblTempVendorCDR_20' ) start [2025-03-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657275', 'tblTempVendorCDR_20' ) end [2025-03-11 13:51:21] Production.INFO: ProcessCDR(1,14657275,1,1,2) [2025-03-11 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657275', 'tblTempUsageDetail_20' ) start [2025-03-11 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657275', 'tblTempUsageDetail_20' ) end [2025-03-11 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:51:25] Production.INFO: ==3813== Releasing lock... [2025-03-11 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:51:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:52:05 [end_date_ymd] => 2025-03-11 13:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:52:05' and `end` < '2025-03-11 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-11 13:52:18] Production.INFO: count ==5588 [2025-03-11 13:52:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:52:05 - End Time 2025-03-11 13:52:05 [2025-03-11 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657280', 'tblTempUsageDetail_20' ) start [2025-03-11 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657280', 'tblTempUsageDetail_20' ) end [2025-03-11 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657280', 'tblTempVendorCDR_20' ) start [2025-03-11 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657280', 'tblTempVendorCDR_20' ) end [2025-03-11 13:52:21] Production.INFO: ProcessCDR(1,14657280,1,1,2) [2025-03-11 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657280', 'tblTempUsageDetail_20' ) start [2025-03-11 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657280', 'tblTempUsageDetail_20' ) end [2025-03-11 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:52:25] Production.INFO: ==3889== Releasing lock... [2025-03-11 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:52:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:53:05 [end_date_ymd] => 2025-03-11 13:53:05 [RateCDR] => 1 ) [2025-03-11 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:53:05' and `end` < '2025-03-11 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:53:18] Production.INFO: count ==5606 [2025-03-11 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:53:05 - End Time 2025-03-11 13:53:05 [2025-03-11 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657285', 'tblTempUsageDetail_20' ) start [2025-03-11 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657285', 'tblTempUsageDetail_20' ) end [2025-03-11 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657285', 'tblTempVendorCDR_20' ) start [2025-03-11 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657285', 'tblTempVendorCDR_20' ) end [2025-03-11 13:53:21] Production.INFO: ProcessCDR(1,14657285,1,1,2) [2025-03-11 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657285', 'tblTempUsageDetail_20' ) start [2025-03-11 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657285', 'tblTempUsageDetail_20' ) end [2025-03-11 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:53:26] Production.INFO: ==3966== Releasing lock... [2025-03-11 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:53:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:54:05 [end_date_ymd] => 2025-03-11 13:54:05 [RateCDR] => 1 ) [2025-03-11 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:54:05' and `end` < '2025-03-11 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:54:18] Production.INFO: count ==5596 [2025-03-11 13:54:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:54:05 - End Time 2025-03-11 13:54:05 [2025-03-11 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657290', 'tblTempUsageDetail_20' ) start [2025-03-11 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657290', 'tblTempUsageDetail_20' ) end [2025-03-11 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657290', 'tblTempVendorCDR_20' ) start [2025-03-11 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657290', 'tblTempVendorCDR_20' ) end [2025-03-11 13:54:20] Production.INFO: ProcessCDR(1,14657290,1,1,2) [2025-03-11 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657290', 'tblTempUsageDetail_20' ) start [2025-03-11 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657290', 'tblTempUsageDetail_20' ) end [2025-03-11 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:54:25] Production.INFO: ==4048== Releasing lock... [2025-03-11 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:54:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:55:05 [end_date_ymd] => 2025-03-11 13:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:55:05' and `end` < '2025-03-11 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-11 13:55:18] Production.INFO: count ==5595 [2025-03-11 13:55:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:55:05 - End Time 2025-03-11 13:55:05 [2025-03-11 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657295', 'tblTempUsageDetail_20' ) start [2025-03-11 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657295', 'tblTempUsageDetail_20' ) end [2025-03-11 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657295', 'tblTempVendorCDR_20' ) start [2025-03-11 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657295', 'tblTempVendorCDR_20' ) end [2025-03-11 13:55:21] Production.INFO: ProcessCDR(1,14657295,1,1,2) [2025-03-11 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657295', 'tblTempUsageDetail_20' ) start [2025-03-11 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657295', 'tblTempUsageDetail_20' ) end [2025-03-11 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:55:25] Production.INFO: ==4127== Releasing lock... [2025-03-11 13:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:55:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:56:05 [end_date_ymd] => 2025-03-11 13:56:05 [RateCDR] => 1 ) [2025-03-11 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:56:05' and `end` < '2025-03-11 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:56:19] Production.INFO: count ==5590 [2025-03-11 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:56:05 - End Time 2025-03-11 13:56:05 [2025-03-11 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657300', 'tblTempUsageDetail_20' ) start [2025-03-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657300', 'tblTempUsageDetail_20' ) end [2025-03-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657300', 'tblTempVendorCDR_20' ) start [2025-03-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657300', 'tblTempVendorCDR_20' ) end [2025-03-11 13:56:21] Production.INFO: ProcessCDR(1,14657300,1,1,2) [2025-03-11 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657300', 'tblTempUsageDetail_20' ) start [2025-03-11 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657300', 'tblTempUsageDetail_20' ) end [2025-03-11 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:56:26] Production.INFO: ==4201== Releasing lock... [2025-03-11 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:56:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:57:05 [end_date_ymd] => 2025-03-11 13:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 10:57:05' and `end` < '2025-03-11 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-11 13:57:18] Production.INFO: count ==5602 [2025-03-11 13:57:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:57:05 - End Time 2025-03-11 13:57:05 [2025-03-11 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657305', 'tblTempUsageDetail_20' ) start [2025-03-11 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657305', 'tblTempUsageDetail_20' ) end [2025-03-11 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657305', 'tblTempVendorCDR_20' ) start [2025-03-11 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657305', 'tblTempVendorCDR_20' ) end [2025-03-11 13:57:20] Production.INFO: ProcessCDR(1,14657305,1,1,2) [2025-03-11 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657305', 'tblTempUsageDetail_20' ) start [2025-03-11 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657305', 'tblTempUsageDetail_20' ) end [2025-03-11 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:57:25] Production.INFO: ==4278== Releasing lock... [2025-03-11 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:57:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:58:06 [end_date_ymd] => 2025-03-11 13:58:06 [RateCDR] => 1 ) [2025-03-11 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-11 10:58:06' and `end` < '2025-03-11 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-11 13:58:19] Production.INFO: count ==5608 [2025-03-11 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 10:58:06 - End Time 2025-03-11 13:58:06 [2025-03-11 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657310', 'tblTempUsageDetail_20' ) start [2025-03-11 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657310', 'tblTempUsageDetail_20' ) end [2025-03-11 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657310', 'tblTempVendorCDR_20' ) start [2025-03-11 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657310', 'tblTempVendorCDR_20' ) end [2025-03-11 13:58:21] Production.INFO: ProcessCDR(1,14657310,1,1,2) [2025-03-11 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657310', 'tblTempUsageDetail_20' ) start [2025-03-11 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657310', 'tblTempUsageDetail_20' ) end [2025-03-11 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:58:26] Production.INFO: ==4356== Releasing lock... [2025-03-11 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:58:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 10:59:05 [end_date_ymd] => 2025-03-11 13:59:05 [RateCDR] => 1 ) [2025-03-11 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 10:59:05' and `end` < '2025-03-11 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 13:59:18] Production.INFO: count ==5609 [2025-03-11 13:59:20] Production.ERROR: pbx CDR StartTime 2025-03-11 10:59:05 - End Time 2025-03-11 13:59:05 [2025-03-11 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657315', 'tblTempUsageDetail_20' ) start [2025-03-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657315', 'tblTempUsageDetail_20' ) end [2025-03-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657315', 'tblTempVendorCDR_20' ) start [2025-03-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657315', 'tblTempVendorCDR_20' ) end [2025-03-11 13:59:21] Production.INFO: ProcessCDR(1,14657315,1,1,2) [2025-03-11 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657315', 'tblTempUsageDetail_20' ) start [2025-03-11 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657315', 'tblTempUsageDetail_20' ) end [2025-03-11 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 13:59:26] Production.INFO: ==4433== Releasing lock... [2025-03-11 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 13:59:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:00:06 [end_date_ymd] => 2025-03-11 14:00:06 [RateCDR] => 1 ) [2025-03-11 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:00:06' and `end` < '2025-03-11 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:00:20] Production.INFO: count ==5612 [2025-03-11 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:00:06 - End Time 2025-03-11 14:00:06 [2025-03-11 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657321', 'tblTempUsageDetail_20' ) start [2025-03-11 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657321', 'tblTempUsageDetail_20' ) end [2025-03-11 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657321', 'tblTempVendorCDR_20' ) start [2025-03-11 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657321', 'tblTempVendorCDR_20' ) end [2025-03-11 14:00:22] Production.INFO: ProcessCDR(1,14657321,1,1,2) [2025-03-11 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657321', 'tblTempUsageDetail_20' ) start [2025-03-11 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657321', 'tblTempUsageDetail_20' ) end [2025-03-11 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:00:28] Production.INFO: ==4512== Releasing lock... [2025-03-11 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:00:28] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:01:05 [end_date_ymd] => 2025-03-11 14:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:01:05' and `end` < '2025-03-11 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-11 14:01:18] Production.INFO: count ==5540 [2025-03-11 14:01:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:01:05 - End Time 2025-03-11 14:01:05 [2025-03-11 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657326', 'tblTempUsageDetail_20' ) start [2025-03-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657326', 'tblTempUsageDetail_20' ) end [2025-03-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657326', 'tblTempVendorCDR_20' ) start [2025-03-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657326', 'tblTempVendorCDR_20' ) end [2025-03-11 14:01:21] Production.INFO: ProcessCDR(1,14657326,1,1,2) [2025-03-11 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657326', 'tblTempUsageDetail_20' ) start [2025-03-11 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657326', 'tblTempUsageDetail_20' ) end [2025-03-11 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:01:26] Production.INFO: ==4649== Releasing lock... [2025-03-11 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:01:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:02:05 [end_date_ymd] => 2025-03-11 14:02:05 [RateCDR] => 1 ) [2025-03-11 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:02:05' and `end` < '2025-03-11 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:02:19] Production.INFO: count ==5547 [2025-03-11 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:02:05 - End Time 2025-03-11 14:02:05 [2025-03-11 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657331', 'tblTempUsageDetail_20' ) start [2025-03-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657331', 'tblTempUsageDetail_20' ) end [2025-03-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657331', 'tblTempVendorCDR_20' ) start [2025-03-11 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657331', 'tblTempVendorCDR_20' ) end [2025-03-11 14:02:22] Production.INFO: ProcessCDR(1,14657331,1,1,2) [2025-03-11 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657331', 'tblTempUsageDetail_20' ) start [2025-03-11 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657331', 'tblTempUsageDetail_20' ) end [2025-03-11 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:02:27] Production.INFO: ==4734== Releasing lock... [2025-03-11 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:02:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:03:04 [end_date_ymd] => 2025-03-11 14:03:04 [RateCDR] => 1 ) [2025-03-11 14:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:03:04' and `end` < '2025-03-11 14:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:03:18] Production.INFO: count ==5550 [2025-03-11 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:03:04 - End Time 2025-03-11 14:03:04 [2025-03-11 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657336', 'tblTempUsageDetail_20' ) start [2025-03-11 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657336', 'tblTempUsageDetail_20' ) end [2025-03-11 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657336', 'tblTempVendorCDR_20' ) start [2025-03-11 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657336', 'tblTempVendorCDR_20' ) end [2025-03-11 14:03:20] Production.INFO: ProcessCDR(1,14657336,1,1,2) [2025-03-11 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657336', 'tblTempUsageDetail_20' ) start [2025-03-11 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657336', 'tblTempUsageDetail_20' ) end [2025-03-11 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:03:25] Production.INFO: ==4812== Releasing lock... [2025-03-11 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:03:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:04:06 [end_date_ymd] => 2025-03-11 14:04:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:04:06' and `end` < '2025-03-11 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-11 14:04:19] Production.INFO: count ==5557 [2025-03-11 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:04:06 - End Time 2025-03-11 14:04:06 [2025-03-11 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657341', 'tblTempUsageDetail_20' ) start [2025-03-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657341', 'tblTempUsageDetail_20' ) end [2025-03-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657341', 'tblTempVendorCDR_20' ) start [2025-03-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657341', 'tblTempVendorCDR_20' ) end [2025-03-11 14:04:21] Production.INFO: ProcessCDR(1,14657341,1,1,2) [2025-03-11 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657341', 'tblTempUsageDetail_20' ) start [2025-03-11 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657341', 'tblTempUsageDetail_20' ) end [2025-03-11 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:04:27] Production.INFO: ==4899== Releasing lock... [2025-03-11 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:04:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:05:05 [end_date_ymd] => 2025-03-11 14:05:05 [RateCDR] => 1 ) [2025-03-11 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:05:05' and `end` < '2025-03-11 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:05:18] Production.INFO: count ==5567 [2025-03-11 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:05:05 - End Time 2025-03-11 14:05:05 [2025-03-11 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657346', 'tblTempUsageDetail_20' ) start [2025-03-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657346', 'tblTempUsageDetail_20' ) end [2025-03-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657346', 'tblTempVendorCDR_20' ) start [2025-03-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657346', 'tblTempVendorCDR_20' ) end [2025-03-11 14:05:20] Production.INFO: ProcessCDR(1,14657346,1,1,2) [2025-03-11 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657346', 'tblTempUsageDetail_20' ) start [2025-03-11 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657346', 'tblTempUsageDetail_20' ) end [2025-03-11 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:05:25] Production.INFO: ==4981== Releasing lock... [2025-03-11 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:05:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:06:05 [end_date_ymd] => 2025-03-11 14:06:05 [RateCDR] => 1 ) [2025-03-11 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:06:05' and `end` < '2025-03-11 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-11 14:06:18] Production.INFO: count ==5560 [2025-03-11 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:06:05 - End Time 2025-03-11 14:06:05 [2025-03-11 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657351', 'tblTempUsageDetail_20' ) start [2025-03-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657351', 'tblTempUsageDetail_20' ) end [2025-03-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657351', 'tblTempVendorCDR_20' ) start [2025-03-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657351', 'tblTempVendorCDR_20' ) end [2025-03-11 14:06:21] Production.INFO: ProcessCDR(1,14657351,1,1,2) [2025-03-11 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657351', 'tblTempUsageDetail_20' ) start [2025-03-11 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657351', 'tblTempUsageDetail_20' ) end [2025-03-11 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:06:26] Production.INFO: ==5058== Releasing lock... [2025-03-11 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:06:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:07:06 [end_date_ymd] => 2025-03-11 14:07:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:07:06' and `end` < '2025-03-11 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-11 14:07:19] Production.INFO: count ==5567 [2025-03-11 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:07:06 - End Time 2025-03-11 14:07:06 [2025-03-11 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657356', 'tblTempUsageDetail_20' ) start [2025-03-11 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657356', 'tblTempUsageDetail_20' ) end [2025-03-11 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657356', 'tblTempVendorCDR_20' ) start [2025-03-11 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657356', 'tblTempVendorCDR_20' ) end [2025-03-11 14:07:22] Production.INFO: ProcessCDR(1,14657356,1,1,2) [2025-03-11 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657356', 'tblTempUsageDetail_20' ) start [2025-03-11 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657356', 'tblTempUsageDetail_20' ) end [2025-03-11 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:07:27] Production.INFO: ==5134== Releasing lock... [2025-03-11 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:07:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:08:05 [end_date_ymd] => 2025-03-11 14:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:08:05' and `end` < '2025-03-11 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-11 14:08:19] Production.INFO: count ==5524 [2025-03-11 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:08:05 - End Time 2025-03-11 14:08:05 [2025-03-11 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657361', 'tblTempUsageDetail_20' ) start [2025-03-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657361', 'tblTempUsageDetail_20' ) end [2025-03-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657361', 'tblTempVendorCDR_20' ) start [2025-03-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657361', 'tblTempVendorCDR_20' ) end [2025-03-11 14:08:21] Production.INFO: ProcessCDR(1,14657361,1,1,2) [2025-03-11 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657361', 'tblTempUsageDetail_20' ) start [2025-03-11 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657361', 'tblTempUsageDetail_20' ) end [2025-03-11 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:08:26] Production.INFO: ==5214== Releasing lock... [2025-03-11 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:08:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:09:06 [end_date_ymd] => 2025-03-11 14:09:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:09:06' and `end` < '2025-03-11 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-11 14:09:19] Production.INFO: count ==5479 [2025-03-11 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:09:06 - End Time 2025-03-11 14:09:06 [2025-03-11 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657366', 'tblTempUsageDetail_20' ) start [2025-03-11 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657366', 'tblTempUsageDetail_20' ) end [2025-03-11 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657366', 'tblTempVendorCDR_20' ) start [2025-03-11 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657366', 'tblTempVendorCDR_20' ) end [2025-03-11 14:09:21] Production.INFO: ProcessCDR(1,14657366,1,1,2) [2025-03-11 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657366', 'tblTempUsageDetail_20' ) start [2025-03-11 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657366', 'tblTempUsageDetail_20' ) end [2025-03-11 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:09:26] Production.INFO: ==5294== Releasing lock... [2025-03-11 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:09:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:10:06 [end_date_ymd] => 2025-03-11 14:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:10:06' and `end` < '2025-03-11 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-11 14:10:20] Production.INFO: count ==5498 [2025-03-11 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:10:06 - End Time 2025-03-11 14:10:06 [2025-03-11 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657372', 'tblTempUsageDetail_20' ) start [2025-03-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657372', 'tblTempUsageDetail_20' ) end [2025-03-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657372', 'tblTempVendorCDR_20' ) start [2025-03-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657372', 'tblTempVendorCDR_20' ) end [2025-03-11 14:10:22] Production.INFO: ProcessCDR(1,14657372,1,1,2) [2025-03-11 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657372', 'tblTempUsageDetail_20' ) start [2025-03-11 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657372', 'tblTempUsageDetail_20' ) end [2025-03-11 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:10:27] Production.INFO: ==5372== Releasing lock... [2025-03-11 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:10:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:11:04 [end_date_ymd] => 2025-03-11 14:11:04 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:11:04' and `end` < '2025-03-11 14: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-11 14:11:18] Production.INFO: count ==5513 [2025-03-11 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:11:04 - End Time 2025-03-11 14:11:04 [2025-03-11 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657377', 'tblTempUsageDetail_20' ) start [2025-03-11 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657377', 'tblTempUsageDetail_20' ) end [2025-03-11 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657377', 'tblTempVendorCDR_20' ) start [2025-03-11 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657377', 'tblTempVendorCDR_20' ) end [2025-03-11 14:11:20] Production.INFO: ProcessCDR(1,14657377,1,1,2) [2025-03-11 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657377', 'tblTempUsageDetail_20' ) start [2025-03-11 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657377', 'tblTempUsageDetail_20' ) end [2025-03-11 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:11:25] Production.INFO: ==5456== Releasing lock... [2025-03-11 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:11:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:12:05 [end_date_ymd] => 2025-03-11 14:12:05 [RateCDR] => 1 ) [2025-03-11 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:12:05' and `end` < '2025-03-11 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:12:18] Production.INFO: count ==5523 [2025-03-11 14:12:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:12:05 - End Time 2025-03-11 14:12:05 [2025-03-11 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657382', 'tblTempUsageDetail_20' ) start [2025-03-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657382', 'tblTempUsageDetail_20' ) end [2025-03-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657382', 'tblTempVendorCDR_20' ) start [2025-03-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657382', 'tblTempVendorCDR_20' ) end [2025-03-11 14:12:21] Production.INFO: ProcessCDR(1,14657382,1,1,2) [2025-03-11 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657382', 'tblTempUsageDetail_20' ) start [2025-03-11 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657382', 'tblTempUsageDetail_20' ) end [2025-03-11 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:12:26] Production.INFO: ==5536== Releasing lock... [2025-03-11 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:12:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:13:05 [end_date_ymd] => 2025-03-11 14:13:05 [RateCDR] => 1 ) [2025-03-11 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:13:05' and `end` < '2025-03-11 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:13:18] Production.INFO: count ==5521 [2025-03-11 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:13:05 - End Time 2025-03-11 14:13:05 [2025-03-11 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657387', 'tblTempUsageDetail_20' ) start [2025-03-11 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657387', 'tblTempUsageDetail_20' ) end [2025-03-11 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657387', 'tblTempVendorCDR_20' ) start [2025-03-11 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657387', 'tblTempVendorCDR_20' ) end [2025-03-11 14:13:20] Production.INFO: ProcessCDR(1,14657387,1,1,2) [2025-03-11 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657387', 'tblTempUsageDetail_20' ) start [2025-03-11 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657387', 'tblTempUsageDetail_20' ) end [2025-03-11 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:13:25] Production.INFO: ==5616== Releasing lock... [2025-03-11 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:13:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:14:05 [end_date_ymd] => 2025-03-11 14:14:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:14:05' and `end` < '2025-03-11 14: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-11 14:14:18] Production.INFO: count ==5527 [2025-03-11 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:14:05 - End Time 2025-03-11 14:14:05 [2025-03-11 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657392', 'tblTempUsageDetail_20' ) start [2025-03-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657392', 'tblTempUsageDetail_20' ) end [2025-03-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657392', 'tblTempVendorCDR_20' ) start [2025-03-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657392', 'tblTempVendorCDR_20' ) end [2025-03-11 14:14:21] Production.INFO: ProcessCDR(1,14657392,1,1,2) [2025-03-11 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657392', 'tblTempUsageDetail_20' ) start [2025-03-11 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657392', 'tblTempUsageDetail_20' ) end [2025-03-11 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:14:26] Production.INFO: ==5697== Releasing lock... [2025-03-11 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:14:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:15:06 [end_date_ymd] => 2025-03-11 14:15:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:15:06' and `end` < '2025-03-11 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-11 14:15:19] Production.INFO: count ==5505 [2025-03-11 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:15:06 - End Time 2025-03-11 14:15:06 [2025-03-11 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657397', 'tblTempUsageDetail_20' ) start [2025-03-11 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657397', 'tblTempUsageDetail_20' ) end [2025-03-11 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657397', 'tblTempVendorCDR_20' ) start [2025-03-11 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657397', 'tblTempVendorCDR_20' ) end [2025-03-11 14:15:22] Production.INFO: ProcessCDR(1,14657397,1,1,2) [2025-03-11 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657397', 'tblTempUsageDetail_20' ) start [2025-03-11 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657397', 'tblTempUsageDetail_20' ) end [2025-03-11 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:15:27] Production.INFO: ==5778== Releasing lock... [2025-03-11 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:15:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:16:05 [end_date_ymd] => 2025-03-11 14:16:05 [RateCDR] => 1 ) [2025-03-11 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:16:05' and `end` < '2025-03-11 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:16:19] Production.INFO: count ==5507 [2025-03-11 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:16:05 - End Time 2025-03-11 14:16:05 [2025-03-11 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657402', 'tblTempUsageDetail_20' ) start [2025-03-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657402', 'tblTempUsageDetail_20' ) end [2025-03-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657402', 'tblTempVendorCDR_20' ) start [2025-03-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657402', 'tblTempVendorCDR_20' ) end [2025-03-11 14:16:21] Production.INFO: ProcessCDR(1,14657402,1,1,2) [2025-03-11 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657402', 'tblTempUsageDetail_20' ) start [2025-03-11 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657402', 'tblTempUsageDetail_20' ) end [2025-03-11 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:16:26] Production.INFO: ==5905== Releasing lock... [2025-03-11 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:16:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:17:06 [end_date_ymd] => 2025-03-11 14:17:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:17:06' and `end` < '2025-03-11 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-11 14:17:19] Production.INFO: count ==5486 [2025-03-11 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:17:06 - End Time 2025-03-11 14:17:06 [2025-03-11 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657407', 'tblTempUsageDetail_20' ) start [2025-03-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657407', 'tblTempUsageDetail_20' ) end [2025-03-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657407', 'tblTempVendorCDR_20' ) start [2025-03-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657407', 'tblTempVendorCDR_20' ) end [2025-03-11 14:17:21] Production.INFO: ProcessCDR(1,14657407,1,1,2) [2025-03-11 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657407', 'tblTempUsageDetail_20' ) start [2025-03-11 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657407', 'tblTempUsageDetail_20' ) end [2025-03-11 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:17:26] Production.INFO: ==5990== Releasing lock... [2025-03-11 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:17:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:18:05 [end_date_ymd] => 2025-03-11 14:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:18:05' and `end` < '2025-03-11 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-11 14:18:18] Production.INFO: count ==5487 [2025-03-11 14:18:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:18:05 - End Time 2025-03-11 14:18:05 [2025-03-11 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657412', 'tblTempUsageDetail_20' ) start [2025-03-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657412', 'tblTempUsageDetail_20' ) end [2025-03-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657412', 'tblTempVendorCDR_20' ) start [2025-03-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657412', 'tblTempVendorCDR_20' ) end [2025-03-11 14:18:21] Production.INFO: ProcessCDR(1,14657412,1,1,2) [2025-03-11 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657412', 'tblTempUsageDetail_20' ) start [2025-03-11 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657412', 'tblTempUsageDetail_20' ) end [2025-03-11 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:18:25] Production.INFO: ==6068== Releasing lock... [2025-03-11 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:18:25] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:19:06 [end_date_ymd] => 2025-03-11 14:19:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:19:06' and `end` < '2025-03-11 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-11 14:19:19] Production.INFO: count ==5469 [2025-03-11 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:19:06 - End Time 2025-03-11 14:19:06 [2025-03-11 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657417', 'tblTempUsageDetail_20' ) start [2025-03-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657417', 'tblTempUsageDetail_20' ) end [2025-03-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657417', 'tblTempVendorCDR_20' ) start [2025-03-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657417', 'tblTempVendorCDR_20' ) end [2025-03-11 14:19:21] Production.INFO: ProcessCDR(1,14657417,1,1,2) [2025-03-11 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657417', 'tblTempUsageDetail_20' ) start [2025-03-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657417', 'tblTempUsageDetail_20' ) end [2025-03-11 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:19:26] Production.INFO: ==6148== Releasing lock... [2025-03-11 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:19:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:20:05 [end_date_ymd] => 2025-03-11 14:20:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:20:05' and `end` < '2025-03-11 14: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-11 14:20:18] Production.INFO: count ==5471 [2025-03-11 14:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:20:05 - End Time 2025-03-11 14:20:05 [2025-03-11 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657423', 'tblTempUsageDetail_20' ) start [2025-03-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657423', 'tblTempUsageDetail_20' ) end [2025-03-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657423', 'tblTempVendorCDR_20' ) start [2025-03-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657423', 'tblTempVendorCDR_20' ) end [2025-03-11 14:20:21] Production.INFO: ProcessCDR(1,14657423,1,1,2) [2025-03-11 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657423', 'tblTempUsageDetail_20' ) start [2025-03-11 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657423', 'tblTempUsageDetail_20' ) end [2025-03-11 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:20:26] Production.INFO: ==6228== Releasing lock... [2025-03-11 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:20:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:21:06 [end_date_ymd] => 2025-03-11 14:21:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:21:06' and `end` < '2025-03-11 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-11 14:21:19] Production.INFO: count ==5450 [2025-03-11 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:21:06 - End Time 2025-03-11 14:21:06 [2025-03-11 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657428', 'tblTempUsageDetail_20' ) start [2025-03-11 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657428', 'tblTempUsageDetail_20' ) end [2025-03-11 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657428', 'tblTempVendorCDR_20' ) start [2025-03-11 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657428', 'tblTempVendorCDR_20' ) end [2025-03-11 14:21:22] Production.INFO: ProcessCDR(1,14657428,1,1,2) [2025-03-11 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657428', 'tblTempUsageDetail_20' ) start [2025-03-11 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657428', 'tblTempUsageDetail_20' ) end [2025-03-11 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:21:27] Production.INFO: ==6307== Releasing lock... [2025-03-11 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:21:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:22:05 [end_date_ymd] => 2025-03-11 14:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:22:05' and `end` < '2025-03-11 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-11 14:22:19] Production.INFO: count ==5446 [2025-03-11 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:22:05 - End Time 2025-03-11 14:22:05 [2025-03-11 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657433', 'tblTempUsageDetail_20' ) start [2025-03-11 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657433', 'tblTempUsageDetail_20' ) end [2025-03-11 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657433', 'tblTempVendorCDR_20' ) start [2025-03-11 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657433', 'tblTempVendorCDR_20' ) end [2025-03-11 14:22:21] Production.INFO: ProcessCDR(1,14657433,1,1,2) [2025-03-11 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657433', 'tblTempUsageDetail_20' ) start [2025-03-11 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657433', 'tblTempUsageDetail_20' ) end [2025-03-11 14:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:22:25] Production.INFO: ==6390== Releasing lock... [2025-03-11 14:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:22:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:23:05 [end_date_ymd] => 2025-03-11 14:23:05 [RateCDR] => 1 ) [2025-03-11 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:23:05' and `end` < '2025-03-11 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:23:18] Production.INFO: count ==5464 [2025-03-11 14:23:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:23:05 - End Time 2025-03-11 14:23:05 [2025-03-11 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657438', 'tblTempUsageDetail_20' ) start [2025-03-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657438', 'tblTempUsageDetail_20' ) end [2025-03-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657438', 'tblTempVendorCDR_20' ) start [2025-03-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657438', 'tblTempVendorCDR_20' ) end [2025-03-11 14:23:21] Production.INFO: ProcessCDR(1,14657438,1,1,2) [2025-03-11 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657438', 'tblTempUsageDetail_20' ) start [2025-03-11 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657438', 'tblTempUsageDetail_20' ) end [2025-03-11 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:23:26] Production.INFO: ==6468== Releasing lock... [2025-03-11 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:23:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:24:05 [end_date_ymd] => 2025-03-11 14:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:24:05' and `end` < '2025-03-11 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-11 14:24:18] Production.INFO: count ==5488 [2025-03-11 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:24:05 - End Time 2025-03-11 14:24:05 [2025-03-11 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657443', 'tblTempUsageDetail_20' ) start [2025-03-11 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657443', 'tblTempUsageDetail_20' ) end [2025-03-11 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657443', 'tblTempVendorCDR_20' ) start [2025-03-11 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657443', 'tblTempVendorCDR_20' ) end [2025-03-11 14:24:21] Production.INFO: ProcessCDR(1,14657443,1,1,2) [2025-03-11 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657443', 'tblTempUsageDetail_20' ) start [2025-03-11 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657443', 'tblTempUsageDetail_20' ) end [2025-03-11 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:24:27] Production.INFO: ==6548== Releasing lock... [2025-03-11 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:24:27] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:25:06 [end_date_ymd] => 2025-03-11 14:25:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:25:06' and `end` < '2025-03-11 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-11 14:25:20] Production.INFO: count ==5505 [2025-03-11 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:25:06 - End Time 2025-03-11 14:25:06 [2025-03-11 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657448', 'tblTempUsageDetail_20' ) start [2025-03-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657448', 'tblTempUsageDetail_20' ) end [2025-03-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657448', 'tblTempVendorCDR_20' ) start [2025-03-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657448', 'tblTempVendorCDR_20' ) end [2025-03-11 14:25:22] Production.INFO: ProcessCDR(1,14657448,1,1,2) [2025-03-11 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657448', 'tblTempUsageDetail_20' ) start [2025-03-11 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657448', 'tblTempUsageDetail_20' ) end [2025-03-11 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:25:27] Production.INFO: ==6625== Releasing lock... [2025-03-11 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:25:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:26:05 [end_date_ymd] => 2025-03-11 14:26:05 [RateCDR] => 1 ) [2025-03-11 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:26:05' and `end` < '2025-03-11 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:26:18] Production.INFO: count ==5516 [2025-03-11 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:26:05 - End Time 2025-03-11 14:26:05 [2025-03-11 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657453', 'tblTempUsageDetail_20' ) start [2025-03-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657453', 'tblTempUsageDetail_20' ) end [2025-03-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657453', 'tblTempVendorCDR_20' ) start [2025-03-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657453', 'tblTempVendorCDR_20' ) end [2025-03-11 14:26:21] Production.INFO: ProcessCDR(1,14657453,1,1,2) [2025-03-11 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657453', 'tblTempUsageDetail_20' ) start [2025-03-11 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657453', 'tblTempUsageDetail_20' ) end [2025-03-11 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:26:26] Production.INFO: ==6702== Releasing lock... [2025-03-11 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:26:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:27:05 [end_date_ymd] => 2025-03-11 14:27:05 [RateCDR] => 1 ) [2025-03-11 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:27:05' and `end` < '2025-03-11 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:27:19] Production.INFO: count ==5596 [2025-03-11 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:27:05 - End Time 2025-03-11 14:27:05 [2025-03-11 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657458', 'tblTempUsageDetail_20' ) start [2025-03-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657458', 'tblTempUsageDetail_20' ) end [2025-03-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657458', 'tblTempVendorCDR_20' ) start [2025-03-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657458', 'tblTempVendorCDR_20' ) end [2025-03-11 14:27:21] Production.INFO: ProcessCDR(1,14657458,1,1,2) [2025-03-11 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657458', 'tblTempUsageDetail_20' ) start [2025-03-11 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657458', 'tblTempUsageDetail_20' ) end [2025-03-11 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:27:27] Production.INFO: ==6779== Releasing lock... [2025-03-11 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:27:27] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:28:05 [end_date_ymd] => 2025-03-11 14:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:28:05' and `end` < '2025-03-11 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-11 14:28:18] Production.INFO: count ==5611 [2025-03-11 14:28:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:28:05 - End Time 2025-03-11 14:28:05 [2025-03-11 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657463', 'tblTempUsageDetail_20' ) start [2025-03-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657463', 'tblTempUsageDetail_20' ) end [2025-03-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657463', 'tblTempVendorCDR_20' ) start [2025-03-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657463', 'tblTempVendorCDR_20' ) end [2025-03-11 14:28:21] Production.INFO: ProcessCDR(1,14657463,1,1,2) [2025-03-11 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657463', 'tblTempUsageDetail_20' ) start [2025-03-11 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657463', 'tblTempUsageDetail_20' ) end [2025-03-11 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:28:26] Production.INFO: ==6857== Releasing lock... [2025-03-11 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:28:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:29:05 [end_date_ymd] => 2025-03-11 14:29:05 [RateCDR] => 1 ) [2025-03-11 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:29:05' and `end` < '2025-03-11 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:29:19] Production.INFO: count ==5594 [2025-03-11 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:29:05 - End Time 2025-03-11 14:29:05 [2025-03-11 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657468', 'tblTempUsageDetail_20' ) start [2025-03-11 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657468', 'tblTempUsageDetail_20' ) end [2025-03-11 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657468', 'tblTempVendorCDR_20' ) start [2025-03-11 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657468', 'tblTempVendorCDR_20' ) end [2025-03-11 14:29:21] Production.INFO: ProcessCDR(1,14657468,1,1,2) [2025-03-11 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657468', 'tblTempUsageDetail_20' ) start [2025-03-11 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657468', 'tblTempUsageDetail_20' ) end [2025-03-11 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:29:25] Production.INFO: ==6931== Releasing lock... [2025-03-11 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:29:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:30:06 [end_date_ymd] => 2025-03-11 14:30:06 [RateCDR] => 1 ) [2025-03-11 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:30:06' and `end` < '2025-03-11 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:30:20] Production.INFO: count ==5594 [2025-03-11 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:30:06 - End Time 2025-03-11 14:30:06 [2025-03-11 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657474', 'tblTempUsageDetail_20' ) start [2025-03-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657474', 'tblTempUsageDetail_20' ) end [2025-03-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657474', 'tblTempVendorCDR_20' ) start [2025-03-11 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657474', 'tblTempVendorCDR_20' ) end [2025-03-11 14:30:23] Production.INFO: ProcessCDR(1,14657474,1,1,2) [2025-03-11 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657474', 'tblTempUsageDetail_20' ) start [2025-03-11 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657474', 'tblTempUsageDetail_20' ) end [2025-03-11 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:30:28] Production.INFO: ==7010== Releasing lock... [2025-03-11 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:30:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:31:05 [end_date_ymd] => 2025-03-11 14:31:05 [RateCDR] => 1 ) [2025-03-11 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:31:05' and `end` < '2025-03-11 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:31:19] Production.INFO: count ==5599 [2025-03-11 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:31:05 - End Time 2025-03-11 14:31:05 [2025-03-11 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657479', 'tblTempUsageDetail_20' ) start [2025-03-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657479', 'tblTempUsageDetail_20' ) end [2025-03-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657479', 'tblTempVendorCDR_20' ) start [2025-03-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657479', 'tblTempVendorCDR_20' ) end [2025-03-11 14:31:22] Production.INFO: ProcessCDR(1,14657479,1,1,2) [2025-03-11 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657479', 'tblTempUsageDetail_20' ) start [2025-03-11 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657479', 'tblTempUsageDetail_20' ) end [2025-03-11 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:31:27] Production.INFO: ==7092== Releasing lock... [2025-03-11 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:31:27] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:32:05 [end_date_ymd] => 2025-03-11 14:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:32:05' and `end` < '2025-03-11 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-11 14:32:18] Production.INFO: count ==5585 [2025-03-11 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:32:05 - End Time 2025-03-11 14:32:05 [2025-03-11 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657484', 'tblTempUsageDetail_20' ) start [2025-03-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657484', 'tblTempUsageDetail_20' ) end [2025-03-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657484', 'tblTempVendorCDR_20' ) start [2025-03-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657484', 'tblTempVendorCDR_20' ) end [2025-03-11 14:32:21] Production.INFO: ProcessCDR(1,14657484,1,1,2) [2025-03-11 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657484', 'tblTempUsageDetail_20' ) start [2025-03-11 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657484', 'tblTempUsageDetail_20' ) end [2025-03-11 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:32:27] Production.INFO: ==7201== Releasing lock... [2025-03-11 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:32:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:33:06 [end_date_ymd] => 2025-03-11 14:33:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:33:06' and `end` < '2025-03-11 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-11 14:33:19] Production.INFO: count ==5570 [2025-03-11 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:33:06 - End Time 2025-03-11 14:33:06 [2025-03-11 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657489', 'tblTempUsageDetail_20' ) start [2025-03-11 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657489', 'tblTempUsageDetail_20' ) end [2025-03-11 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657489', 'tblTempVendorCDR_20' ) start [2025-03-11 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657489', 'tblTempVendorCDR_20' ) end [2025-03-11 14:33:22] Production.INFO: ProcessCDR(1,14657489,1,1,2) [2025-03-11 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657489', 'tblTempUsageDetail_20' ) start [2025-03-11 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657489', 'tblTempUsageDetail_20' ) end [2025-03-11 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:33:28] Production.INFO: ==7277== Releasing lock... [2025-03-11 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:33:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:34:05 [end_date_ymd] => 2025-03-11 14:34:05 [RateCDR] => 1 ) [2025-03-11 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:34:05' and `end` < '2025-03-11 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:34:18] Production.INFO: count ==5557 [2025-03-11 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:34:05 - End Time 2025-03-11 14:34:05 [2025-03-11 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657494', 'tblTempUsageDetail_20' ) start [2025-03-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657494', 'tblTempUsageDetail_20' ) end [2025-03-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657494', 'tblTempVendorCDR_20' ) start [2025-03-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657494', 'tblTempVendorCDR_20' ) end [2025-03-11 14:34:21] Production.INFO: ProcessCDR(1,14657494,1,1,2) [2025-03-11 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657494', 'tblTempUsageDetail_20' ) start [2025-03-11 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657494', 'tblTempUsageDetail_20' ) end [2025-03-11 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:34:27] Production.INFO: ==7347== Releasing lock... [2025-03-11 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:34:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:35:06 [end_date_ymd] => 2025-03-11 14:35:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:35:06' and `end` < '2025-03-11 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-11 14:35:19] Production.INFO: count ==5556 [2025-03-11 14:35:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:35:06 - End Time 2025-03-11 14:35:06 [2025-03-11 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657499', 'tblTempUsageDetail_20' ) start [2025-03-11 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657499', 'tblTempUsageDetail_20' ) end [2025-03-11 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657499', 'tblTempVendorCDR_20' ) start [2025-03-11 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657499', 'tblTempVendorCDR_20' ) end [2025-03-11 14:35:22] Production.INFO: ProcessCDR(1,14657499,1,1,2) [2025-03-11 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657499', 'tblTempUsageDetail_20' ) start [2025-03-11 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657499', 'tblTempUsageDetail_20' ) end [2025-03-11 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:35:28] Production.INFO: ==7420== Releasing lock... [2025-03-11 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:35:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:36:05 [end_date_ymd] => 2025-03-11 14:36:05 [RateCDR] => 1 ) [2025-03-11 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:36:05' and `end` < '2025-03-11 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:36:18] Production.INFO: count ==5532 [2025-03-11 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:36:05 - End Time 2025-03-11 14:36:05 [2025-03-11 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657504', 'tblTempUsageDetail_20' ) start [2025-03-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657504', 'tblTempUsageDetail_20' ) end [2025-03-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657504', 'tblTempVendorCDR_20' ) start [2025-03-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657504', 'tblTempVendorCDR_20' ) end [2025-03-11 14:36:21] Production.INFO: ProcessCDR(1,14657504,1,1,2) [2025-03-11 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657504', 'tblTempUsageDetail_20' ) start [2025-03-11 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657504', 'tblTempUsageDetail_20' ) end [2025-03-11 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:36:27] Production.INFO: ==7490== Releasing lock... [2025-03-11 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:37:06 [end_date_ymd] => 2025-03-11 14:37:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:37:06' and `end` < '2025-03-11 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-11 14:37:19] Production.INFO: count ==5514 [2025-03-11 14:37:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:37:06 - End Time 2025-03-11 14:37:06 [2025-03-11 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657509', 'tblTempUsageDetail_20' ) start [2025-03-11 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657509', 'tblTempUsageDetail_20' ) end [2025-03-11 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657509', 'tblTempVendorCDR_20' ) start [2025-03-11 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657509', 'tblTempVendorCDR_20' ) end [2025-03-11 14:37:22] Production.INFO: ProcessCDR(1,14657509,1,1,2) [2025-03-11 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657509', 'tblTempUsageDetail_20' ) start [2025-03-11 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657509', 'tblTempUsageDetail_20' ) end [2025-03-11 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:37:27] Production.INFO: ==7560== Releasing lock... [2025-03-11 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:37:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:38:05 [end_date_ymd] => 2025-03-11 14:38:05 [RateCDR] => 1 ) [2025-03-11 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:38:05' and `end` < '2025-03-11 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:38:18] Production.INFO: count ==5505 [2025-03-11 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:38:05 - End Time 2025-03-11 14:38:05 [2025-03-11 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657514', 'tblTempUsageDetail_20' ) start [2025-03-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657514', 'tblTempUsageDetail_20' ) end [2025-03-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657514', 'tblTempVendorCDR_20' ) start [2025-03-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657514', 'tblTempVendorCDR_20' ) end [2025-03-11 14:38:21] Production.INFO: ProcessCDR(1,14657514,1,1,2) [2025-03-11 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657514', 'tblTempUsageDetail_20' ) start [2025-03-11 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657514', 'tblTempUsageDetail_20' ) end [2025-03-11 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:38:27] Production.INFO: ==7631== Releasing lock... [2025-03-11 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:38:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:39:06 [end_date_ymd] => 2025-03-11 14:39:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:39:06' and `end` < '2025-03-11 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-11 14:39:19] Production.INFO: count ==5498 [2025-03-11 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:39:06 - End Time 2025-03-11 14:39:06 [2025-03-11 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657519', 'tblTempUsageDetail_20' ) start [2025-03-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657519', 'tblTempUsageDetail_20' ) end [2025-03-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657519', 'tblTempVendorCDR_20' ) start [2025-03-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657519', 'tblTempVendorCDR_20' ) end [2025-03-11 14:39:21] Production.INFO: ProcessCDR(1,14657519,1,1,2) [2025-03-11 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657519', 'tblTempUsageDetail_20' ) start [2025-03-11 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657519', 'tblTempUsageDetail_20' ) end [2025-03-11 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:39:25] Production.INFO: ==7704== Releasing lock... [2025-03-11 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:39:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:40:07 [end_date_ymd] => 2025-03-11 14:40:07 [RateCDR] => 1 ) [2025-03-11 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-11 11:40:07' and `end` < '2025-03-11 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-11 14:40:20] Production.INFO: count ==5486 [2025-03-11 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:40:07 - End Time 2025-03-11 14:40:07 [2025-03-11 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657525', 'tblTempUsageDetail_20' ) start [2025-03-11 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657525', 'tblTempUsageDetail_20' ) end [2025-03-11 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657525', 'tblTempVendorCDR_20' ) start [2025-03-11 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657525', 'tblTempVendorCDR_20' ) end [2025-03-11 14:40:23] Production.INFO: ProcessCDR(1,14657525,1,1,2) [2025-03-11 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657525', 'tblTempUsageDetail_20' ) start [2025-03-11 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657525', 'tblTempUsageDetail_20' ) end [2025-03-11 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:40:28] Production.INFO: ==7776== Releasing lock... [2025-03-11 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:40:28] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:41:06 [end_date_ymd] => 2025-03-11 14:41:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:41:06' and `end` < '2025-03-11 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-11 14:41:19] Production.INFO: count ==5446 [2025-03-11 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:41:06 - End Time 2025-03-11 14:41:06 [2025-03-11 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657530', 'tblTempUsageDetail_20' ) start [2025-03-11 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657530', 'tblTempUsageDetail_20' ) end [2025-03-11 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657530', 'tblTempVendorCDR_20' ) start [2025-03-11 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657530', 'tblTempVendorCDR_20' ) end [2025-03-11 14:41:22] Production.INFO: ProcessCDR(1,14657530,1,1,2) [2025-03-11 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657530', 'tblTempUsageDetail_20' ) start [2025-03-11 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657530', 'tblTempUsageDetail_20' ) end [2025-03-11 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:41:25] Production.INFO: ==7859== Releasing lock... [2025-03-11 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:41:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:42:05 [end_date_ymd] => 2025-03-11 14:42:05 [RateCDR] => 1 ) [2025-03-11 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:42:05' and `end` < '2025-03-11 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:42:19] Production.INFO: count ==5460 [2025-03-11 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:42:05 - End Time 2025-03-11 14:42:05 [2025-03-11 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657535', 'tblTempUsageDetail_20' ) start [2025-03-11 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657535', 'tblTempUsageDetail_20' ) end [2025-03-11 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657535', 'tblTempVendorCDR_20' ) start [2025-03-11 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657535', 'tblTempVendorCDR_20' ) end [2025-03-11 14:42:21] Production.INFO: ProcessCDR(1,14657535,1,1,2) [2025-03-11 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657535', 'tblTempUsageDetail_20' ) start [2025-03-11 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657535', 'tblTempUsageDetail_20' ) end [2025-03-11 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:42:27] Production.INFO: ==7927== Releasing lock... [2025-03-11 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:42:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:43:06 [end_date_ymd] => 2025-03-11 14:43:06 [RateCDR] => 1 ) [2025-03-11 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:43:06' and `end` < '2025-03-11 14: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-11 14:43:19] Production.INFO: count ==5458 [2025-03-11 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:43:06 - End Time 2025-03-11 14:43:06 [2025-03-11 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657540', 'tblTempUsageDetail_20' ) start [2025-03-11 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657540', 'tblTempUsageDetail_20' ) end [2025-03-11 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657540', 'tblTempVendorCDR_20' ) start [2025-03-11 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657540', 'tblTempVendorCDR_20' ) end [2025-03-11 14:43:22] Production.INFO: ProcessCDR(1,14657540,1,1,2) [2025-03-11 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657540', 'tblTempUsageDetail_20' ) start [2025-03-11 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657540', 'tblTempUsageDetail_20' ) end [2025-03-11 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:43:27] Production.INFO: ==8004== Releasing lock... [2025-03-11 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:43:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:44:05 [end_date_ymd] => 2025-03-11 14:44:05 [RateCDR] => 1 ) [2025-03-11 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:44:05' and `end` < '2025-03-11 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:44:18] Production.INFO: count ==5464 [2025-03-11 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:44:05 - End Time 2025-03-11 14:44:05 [2025-03-11 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657545', 'tblTempUsageDetail_20' ) start [2025-03-11 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657545', 'tblTempUsageDetail_20' ) end [2025-03-11 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657545', 'tblTempVendorCDR_20' ) start [2025-03-11 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657545', 'tblTempVendorCDR_20' ) end [2025-03-11 14:44:21] Production.INFO: ProcessCDR(1,14657545,1,1,2) [2025-03-11 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657545', 'tblTempUsageDetail_20' ) start [2025-03-11 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657545', 'tblTempUsageDetail_20' ) end [2025-03-11 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:44:26] Production.INFO: ==8078== Releasing lock... [2025-03-11 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:44:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:45:05 [end_date_ymd] => 2025-03-11 14:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:45:05' and `end` < '2025-03-11 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-11 14:45:18] Production.INFO: count ==5471 [2025-03-11 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:45:05 - End Time 2025-03-11 14:45:05 [2025-03-11 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657550', 'tblTempUsageDetail_20' ) start [2025-03-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657550', 'tblTempUsageDetail_20' ) end [2025-03-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657550', 'tblTempVendorCDR_20' ) start [2025-03-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657550', 'tblTempVendorCDR_20' ) end [2025-03-11 14:45:21] Production.INFO: ProcessCDR(1,14657550,1,1,2) [2025-03-11 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657550', 'tblTempUsageDetail_20' ) start [2025-03-11 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657550', 'tblTempUsageDetail_20' ) end [2025-03-11 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:45:26] Production.INFO: ==8153== Releasing lock... [2025-03-11 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:45:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:46:05 [end_date_ymd] => 2025-03-11 14:46:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:46:05' and `end` < '2025-03-11 14: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-11 14:46:18] Production.INFO: count ==5467 [2025-03-11 14:46:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:46:05 - End Time 2025-03-11 14:46:05 [2025-03-11 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657555', 'tblTempUsageDetail_20' ) start [2025-03-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657555', 'tblTempUsageDetail_20' ) end [2025-03-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657555', 'tblTempVendorCDR_20' ) start [2025-03-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657555', 'tblTempVendorCDR_20' ) end [2025-03-11 14:46:20] Production.INFO: ProcessCDR(1,14657555,1,1,2) [2025-03-11 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657555', 'tblTempUsageDetail_20' ) start [2025-03-11 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657555', 'tblTempUsageDetail_20' ) end [2025-03-11 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:46:26] Production.INFO: ==8229== Releasing lock... [2025-03-11 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:46:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:47:06 [end_date_ymd] => 2025-03-11 14:47:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:47:06' and `end` < '2025-03-11 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-11 14:47:19] Production.INFO: count ==5466 [2025-03-11 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:47:06 - End Time 2025-03-11 14:47:06 [2025-03-11 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657560', 'tblTempUsageDetail_20' ) start [2025-03-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657560', 'tblTempUsageDetail_20' ) end [2025-03-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657560', 'tblTempVendorCDR_20' ) start [2025-03-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657560', 'tblTempVendorCDR_20' ) end [2025-03-11 14:47:21] Production.INFO: ProcessCDR(1,14657560,1,1,2) [2025-03-11 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657560', 'tblTempUsageDetail_20' ) start [2025-03-11 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657560', 'tblTempUsageDetail_20' ) end [2025-03-11 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:47:27] Production.INFO: ==8339== Releasing lock... [2025-03-11 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:47:27] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:48:05 [end_date_ymd] => 2025-03-11 14:48:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:48:05' and `end` < '2025-03-11 14: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-11 14:48:18] Production.INFO: count ==5469 [2025-03-11 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:48:05 - End Time 2025-03-11 14:48:05 [2025-03-11 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657565', 'tblTempUsageDetail_20' ) start [2025-03-11 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657565', 'tblTempUsageDetail_20' ) end [2025-03-11 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657565', 'tblTempVendorCDR_20' ) start [2025-03-11 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657565', 'tblTempVendorCDR_20' ) end [2025-03-11 14:48:21] Production.INFO: ProcessCDR(1,14657565,1,1,2) [2025-03-11 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657565', 'tblTempUsageDetail_20' ) start [2025-03-11 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657565', 'tblTempUsageDetail_20' ) end [2025-03-11 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:48:26] Production.INFO: ==8408== Releasing lock... [2025-03-11 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:48:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:49:06 [end_date_ymd] => 2025-03-11 14:49:06 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:49:06' and `end` < '2025-03-11 14: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-11 14:49:19] Production.INFO: count ==5484 [2025-03-11 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:49:06 - End Time 2025-03-11 14:49:06 [2025-03-11 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657570', 'tblTempUsageDetail_20' ) start [2025-03-11 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657570', 'tblTempUsageDetail_20' ) end [2025-03-11 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657570', 'tblTempVendorCDR_20' ) start [2025-03-11 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657570', 'tblTempVendorCDR_20' ) end [2025-03-11 14:49:22] Production.INFO: ProcessCDR(1,14657570,1,1,2) [2025-03-11 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657570', 'tblTempUsageDetail_20' ) start [2025-03-11 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657570', 'tblTempUsageDetail_20' ) end [2025-03-11 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:49:28] Production.INFO: ==8480== Releasing lock... [2025-03-11 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:49:28] Production.INFO: 69 MB #Memory Used# [2025-03-11 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:50:05 [end_date_ymd] => 2025-03-11 14:50:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:50:05' and `end` < '2025-03-11 14: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-11 14:50:20] Production.INFO: count ==5533 [2025-03-11 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-11 11:50:05 - End Time 2025-03-11 14:50:05 [2025-03-11 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657575', 'tblTempUsageDetail_20' ) start [2025-03-11 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657575', 'tblTempUsageDetail_20' ) end [2025-03-11 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657575', 'tblTempVendorCDR_20' ) start [2025-03-11 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657575', 'tblTempVendorCDR_20' ) end [2025-03-11 14:50:23] Production.INFO: ProcessCDR(1,14657575,1,1,2) [2025-03-11 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657575', 'tblTempUsageDetail_20' ) start [2025-03-11 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657575', 'tblTempUsageDetail_20' ) end [2025-03-11 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:50:28] Production.INFO: ==8554== Releasing lock... [2025-03-11 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:51:05 [end_date_ymd] => 2025-03-11 14:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:51:05' and `end` < '2025-03-11 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-11 14:51:19] Production.INFO: count ==5561 [2025-03-11 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:51:05 - End Time 2025-03-11 14:51:05 [2025-03-11 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657581', 'tblTempUsageDetail_20' ) start [2025-03-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657581', 'tblTempUsageDetail_20' ) end [2025-03-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657581', 'tblTempVendorCDR_20' ) start [2025-03-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657581', 'tblTempVendorCDR_20' ) end [2025-03-11 14:51:21] Production.INFO: ProcessCDR(1,14657581,1,1,2) [2025-03-11 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657581', 'tblTempUsageDetail_20' ) start [2025-03-11 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657581', 'tblTempUsageDetail_20' ) end [2025-03-11 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:51:27] Production.INFO: ==8629== Releasing lock... [2025-03-11 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:51:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:52:05 [end_date_ymd] => 2025-03-11 14:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:52:05' and `end` < '2025-03-11 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-11 14:52:18] Production.INFO: count ==5552 [2025-03-11 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:52:05 - End Time 2025-03-11 14:52:05 [2025-03-11 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657586', 'tblTempUsageDetail_20' ) start [2025-03-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657586', 'tblTempUsageDetail_20' ) end [2025-03-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657586', 'tblTempVendorCDR_20' ) start [2025-03-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657586', 'tblTempVendorCDR_20' ) end [2025-03-11 14:52:21] Production.INFO: ProcessCDR(1,14657586,1,1,2) [2025-03-11 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657586', 'tblTempUsageDetail_20' ) start [2025-03-11 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657586', 'tblTempUsageDetail_20' ) end [2025-03-11 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:52:26] Production.INFO: ==8700== Releasing lock... [2025-03-11 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:52:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:53:06 [end_date_ymd] => 2025-03-11 14:53:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:53:06' and `end` < '2025-03-11 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-11 14:53:19] Production.INFO: count ==5576 [2025-03-11 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:53:06 - End Time 2025-03-11 14:53:06 [2025-03-11 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657591', 'tblTempUsageDetail_20' ) start [2025-03-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657591', 'tblTempUsageDetail_20' ) end [2025-03-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657591', 'tblTempVendorCDR_20' ) start [2025-03-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657591', 'tblTempVendorCDR_20' ) end [2025-03-11 14:53:22] Production.INFO: ProcessCDR(1,14657591,1,1,2) [2025-03-11 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657591', 'tblTempUsageDetail_20' ) start [2025-03-11 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657591', 'tblTempUsageDetail_20' ) end [2025-03-11 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:53:27] Production.INFO: ==8774== Releasing lock... [2025-03-11 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:53:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:54:05 [end_date_ymd] => 2025-03-11 14:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:54:05' and `end` < '2025-03-11 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-11 14:54:19] Production.INFO: count ==5588 [2025-03-11 14:54:23] Production.ERROR: pbx CDR StartTime 2025-03-11 11:54:05 - End Time 2025-03-11 14:54:05 [2025-03-11 14:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657596', 'tblTempUsageDetail_20' ) start [2025-03-11 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657596', 'tblTempUsageDetail_20' ) end [2025-03-11 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657596', 'tblTempVendorCDR_20' ) start [2025-03-11 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657596', 'tblTempVendorCDR_20' ) end [2025-03-11 14:54:23] Production.INFO: ProcessCDR(1,14657596,1,1,2) [2025-03-11 14:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657596', 'tblTempUsageDetail_20' ) start [2025-03-11 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657596', 'tblTempUsageDetail_20' ) end [2025-03-11 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:54:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:54:29] Production.INFO: ==8844== Releasing lock... [2025-03-11 14:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:54:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:55:06 [end_date_ymd] => 2025-03-11 14:55:06 [RateCDR] => 1 ) [2025-03-11 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-11 11:55:06' and `end` < '2025-03-11 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-11 14:55:21] Production.INFO: count ==5595 [2025-03-11 14:55:23] Production.ERROR: pbx CDR StartTime 2025-03-11 11:55:06 - End Time 2025-03-11 14:55:06 [2025-03-11 14:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657601', 'tblTempUsageDetail_20' ) start [2025-03-11 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657601', 'tblTempUsageDetail_20' ) end [2025-03-11 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657601', 'tblTempVendorCDR_20' ) start [2025-03-11 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657601', 'tblTempVendorCDR_20' ) end [2025-03-11 14:55:23] Production.INFO: ProcessCDR(1,14657601,1,1,2) [2025-03-11 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657601', 'tblTempUsageDetail_20' ) start [2025-03-11 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657601', 'tblTempUsageDetail_20' ) end [2025-03-11 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:55:29] Production.INFO: ==8916== Releasing lock... [2025-03-11 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:55:29] Production.INFO: 70 MB #Memory Used# [2025-03-11 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:56:05 [end_date_ymd] => 2025-03-11 14:56:05 [RateCDR] => 1 ) [2025-03-11 14: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-11 11:56:05' and `end` < '2025-03-11 14: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-11 14:56:18] Production.INFO: count ==5585 [2025-03-11 14:56:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:56:05 - End Time 2025-03-11 14:56:05 [2025-03-11 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657606', 'tblTempUsageDetail_20' ) start [2025-03-11 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657606', 'tblTempUsageDetail_20' ) end [2025-03-11 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657606', 'tblTempVendorCDR_20' ) start [2025-03-11 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657606', 'tblTempVendorCDR_20' ) end [2025-03-11 14:56:20] Production.INFO: ProcessCDR(1,14657606,1,1,2) [2025-03-11 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657606', 'tblTempUsageDetail_20' ) start [2025-03-11 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657606', 'tblTempUsageDetail_20' ) end [2025-03-11 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:56:26] Production.INFO: ==8993== Releasing lock... [2025-03-11 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:56:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:57:05 [end_date_ymd] => 2025-03-11 14:57:05 [RateCDR] => 1 ) [2025-03-11 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:57:05' and `end` < '2025-03-11 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:57:19] Production.INFO: count ==5565 [2025-03-11 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:57:05 - End Time 2025-03-11 14:57:05 [2025-03-11 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657611', 'tblTempUsageDetail_20' ) start [2025-03-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657611', 'tblTempUsageDetail_20' ) end [2025-03-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657611', 'tblTempVendorCDR_20' ) start [2025-03-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657611', 'tblTempVendorCDR_20' ) end [2025-03-11 14:57:21] Production.INFO: ProcessCDR(1,14657611,1,1,2) [2025-03-11 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657611', 'tblTempUsageDetail_20' ) start [2025-03-11 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657611', 'tblTempUsageDetail_20' ) end [2025-03-11 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:57:26] Production.INFO: ==9079== Releasing lock... [2025-03-11 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:57:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:58:05 [end_date_ymd] => 2025-03-11 14:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 11:58:05' and `end` < '2025-03-11 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-11 14:58:19] Production.INFO: count ==5564 [2025-03-11 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 11:58:05 - End Time 2025-03-11 14:58:05 [2025-03-11 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657616', 'tblTempUsageDetail_20' ) start [2025-03-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657616', 'tblTempUsageDetail_20' ) end [2025-03-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657616', 'tblTempVendorCDR_20' ) start [2025-03-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657616', 'tblTempVendorCDR_20' ) end [2025-03-11 14:58:21] Production.INFO: ProcessCDR(1,14657616,1,1,2) [2025-03-11 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657616', 'tblTempUsageDetail_20' ) start [2025-03-11 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657616', 'tblTempUsageDetail_20' ) end [2025-03-11 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:58:26] Production.INFO: ==9152== Releasing lock... [2025-03-11 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:58:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 11:59:05 [end_date_ymd] => 2025-03-11 14:59:05 [RateCDR] => 1 ) [2025-03-11 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 11:59:05' and `end` < '2025-03-11 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 14:59:18] Production.INFO: count ==5573 [2025-03-11 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-11 11:59:05 - End Time 2025-03-11 14:59:05 [2025-03-11 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657621', 'tblTempUsageDetail_20' ) start [2025-03-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657621', 'tblTempUsageDetail_20' ) end [2025-03-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657621', 'tblTempVendorCDR_20' ) start [2025-03-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657621', 'tblTempVendorCDR_20' ) end [2025-03-11 14:59:21] Production.INFO: ProcessCDR(1,14657621,1,1,2) [2025-03-11 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657621', 'tblTempUsageDetail_20' ) start [2025-03-11 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657621', 'tblTempUsageDetail_20' ) end [2025-03-11 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 14:59:26] Production.INFO: ==9222== Releasing lock... [2025-03-11 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 14:59:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:00:06 [end_date_ymd] => 2025-03-11 15:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:00:06' and `end` < '2025-03-11 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-11 15:00:19] Production.INFO: count ==5575 [2025-03-11 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:00:06 - End Time 2025-03-11 15:00:06 [2025-03-11 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657627', 'tblTempUsageDetail_20' ) start [2025-03-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657627', 'tblTempUsageDetail_20' ) end [2025-03-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657627', 'tblTempVendorCDR_20' ) start [2025-03-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657627', 'tblTempVendorCDR_20' ) end [2025-03-11 15:00:22] Production.INFO: ProcessCDR(1,14657627,1,1,2) [2025-03-11 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657627', 'tblTempUsageDetail_20' ) start [2025-03-11 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657627', 'tblTempUsageDetail_20' ) end [2025-03-11 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:00:27] Production.INFO: ==9296== Releasing lock... [2025-03-11 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:00:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:01:05 [end_date_ymd] => 2025-03-11 15:01:05 [RateCDR] => 1 ) [2025-03-11 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:01:05' and `end` < '2025-03-11 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:01:18] Production.INFO: count ==5528 [2025-03-11 15:01:20] Production.ERROR: pbx CDR StartTime 2025-03-11 12:01:05 - End Time 2025-03-11 15:01:05 [2025-03-11 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657632', 'tblTempUsageDetail_20' ) start [2025-03-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657632', 'tblTempUsageDetail_20' ) end [2025-03-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657632', 'tblTempVendorCDR_20' ) start [2025-03-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657632', 'tblTempVendorCDR_20' ) end [2025-03-11 15:01:20] Production.INFO: ProcessCDR(1,14657632,1,1,2) [2025-03-11 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657632', 'tblTempUsageDetail_20' ) start [2025-03-11 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657632', 'tblTempUsageDetail_20' ) end [2025-03-11 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:01:25] Production.INFO: ==9462== Releasing lock... [2025-03-11 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:01:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:02:05 [end_date_ymd] => 2025-03-11 15:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:02:05' and `end` < '2025-03-11 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-11 15:02:18] Production.INFO: count ==5516 [2025-03-11 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:02:05 - End Time 2025-03-11 15:02:05 [2025-03-11 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657637', 'tblTempUsageDetail_20' ) start [2025-03-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657637', 'tblTempUsageDetail_20' ) end [2025-03-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657637', 'tblTempVendorCDR_20' ) start [2025-03-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657637', 'tblTempVendorCDR_20' ) end [2025-03-11 15:02:21] Production.INFO: ProcessCDR(1,14657637,1,1,2) [2025-03-11 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657637', 'tblTempUsageDetail_20' ) start [2025-03-11 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657637', 'tblTempUsageDetail_20' ) end [2025-03-11 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:02:27] Production.INFO: ==9533== Releasing lock... [2025-03-11 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:02:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:03:05 [end_date_ymd] => 2025-03-11 15:03:05 [RateCDR] => 1 ) [2025-03-11 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:03:05' and `end` < '2025-03-11 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:03:19] Production.INFO: count ==5529 [2025-03-11 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:03:05 - End Time 2025-03-11 15:03:05 [2025-03-11 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657642', 'tblTempUsageDetail_20' ) start [2025-03-11 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657642', 'tblTempUsageDetail_20' ) end [2025-03-11 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657642', 'tblTempVendorCDR_20' ) start [2025-03-11 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657642', 'tblTempVendorCDR_20' ) end [2025-03-11 15:03:22] Production.INFO: ProcessCDR(1,14657642,1,1,2) [2025-03-11 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657642', 'tblTempUsageDetail_20' ) start [2025-03-11 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657642', 'tblTempUsageDetail_20' ) end [2025-03-11 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:03:28] Production.INFO: ==9644== Releasing lock... [2025-03-11 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:03:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:04:06 [end_date_ymd] => 2025-03-11 15:04:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:04:06' and `end` < '2025-03-11 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-11 15:04:19] Production.INFO: count ==5547 [2025-03-11 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:04:06 - End Time 2025-03-11 15:04:06 [2025-03-11 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657647', 'tblTempUsageDetail_20' ) start [2025-03-11 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657647', 'tblTempUsageDetail_20' ) end [2025-03-11 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657647', 'tblTempVendorCDR_20' ) start [2025-03-11 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657647', 'tblTempVendorCDR_20' ) end [2025-03-11 15:04:22] Production.INFO: ProcessCDR(1,14657647,1,1,2) [2025-03-11 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657647', 'tblTempUsageDetail_20' ) start [2025-03-11 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657647', 'tblTempUsageDetail_20' ) end [2025-03-11 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:04:28] Production.INFO: ==9719== Releasing lock... [2025-03-11 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:04:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:05:05 [end_date_ymd] => 2025-03-11 15:05:05 [RateCDR] => 1 ) [2025-03-11 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:05:05' and `end` < '2025-03-11 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:05:19] Production.INFO: count ==5546 [2025-03-11 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:05:05 - End Time 2025-03-11 15:05:05 [2025-03-11 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657652', 'tblTempUsageDetail_20' ) start [2025-03-11 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657652', 'tblTempUsageDetail_20' ) end [2025-03-11 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657652', 'tblTempVendorCDR_20' ) start [2025-03-11 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657652', 'tblTempVendorCDR_20' ) end [2025-03-11 15:05:22] Production.INFO: ProcessCDR(1,14657652,1,1,2) [2025-03-11 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657652', 'tblTempUsageDetail_20' ) start [2025-03-11 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657652', 'tblTempUsageDetail_20' ) end [2025-03-11 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:05:27] Production.INFO: ==9868== Releasing lock... [2025-03-11 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:05:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:06:05 [end_date_ymd] => 2025-03-11 15:06:05 [RateCDR] => 1 ) [2025-03-11 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:06:05' and `end` < '2025-03-11 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:06:19] Production.INFO: count ==5544 [2025-03-11 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:06:05 - End Time 2025-03-11 15:06:05 [2025-03-11 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657656', 'tblTempUsageDetail_20' ) start [2025-03-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657656', 'tblTempUsageDetail_20' ) end [2025-03-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657656', 'tblTempVendorCDR_20' ) start [2025-03-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657656', 'tblTempVendorCDR_20' ) end [2025-03-11 15:06:21] Production.INFO: ProcessCDR(1,14657656,1,1,2) [2025-03-11 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657656', 'tblTempUsageDetail_20' ) start [2025-03-11 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657656', 'tblTempUsageDetail_20' ) end [2025-03-11 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:06:26] Production.INFO: ==9940== Releasing lock... [2025-03-11 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:06:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:07:05 [end_date_ymd] => 2025-03-11 15:07:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:07:05' and `end` < '2025-03-11 15: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-11 15:07:18] Production.INFO: count ==5560 [2025-03-11 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:07:05 - End Time 2025-03-11 15:07:05 [2025-03-11 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657662', 'tblTempUsageDetail_20' ) start [2025-03-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657662', 'tblTempUsageDetail_20' ) end [2025-03-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657662', 'tblTempVendorCDR_20' ) start [2025-03-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657662', 'tblTempVendorCDR_20' ) end [2025-03-11 15:07:21] Production.INFO: ProcessCDR(1,14657662,1,1,2) [2025-03-11 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657662', 'tblTempUsageDetail_20' ) start [2025-03-11 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657662', 'tblTempUsageDetail_20' ) end [2025-03-11 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:07:26] Production.INFO: ==10010== Releasing lock... [2025-03-11 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:07:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:08:05 [end_date_ymd] => 2025-03-11 15:08:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:08:05' and `end` < '2025-03-11 15: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-11 15:08:19] Production.INFO: count ==5554 [2025-03-11 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:08:05 - End Time 2025-03-11 15:08:05 [2025-03-11 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657667', 'tblTempUsageDetail_20' ) start [2025-03-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657667', 'tblTempUsageDetail_20' ) end [2025-03-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657667', 'tblTempVendorCDR_20' ) start [2025-03-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657667', 'tblTempVendorCDR_20' ) end [2025-03-11 15:08:21] Production.INFO: ProcessCDR(1,14657667,1,1,2) [2025-03-11 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657667', 'tblTempUsageDetail_20' ) start [2025-03-11 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657667', 'tblTempUsageDetail_20' ) end [2025-03-11 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:08:26] Production.INFO: ==10159== Releasing lock... [2025-03-11 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:08:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:09:05 [end_date_ymd] => 2025-03-11 15:09:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:09:05' and `end` < '2025-03-11 15: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-11 15:09:18] Production.INFO: count ==5557 [2025-03-11 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:09:05 - End Time 2025-03-11 15:09:05 [2025-03-11 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657672', 'tblTempUsageDetail_20' ) start [2025-03-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657672', 'tblTempUsageDetail_20' ) end [2025-03-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657672', 'tblTempVendorCDR_20' ) start [2025-03-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657672', 'tblTempVendorCDR_20' ) end [2025-03-11 15:09:21] Production.INFO: ProcessCDR(1,14657672,1,1,2) [2025-03-11 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657672', 'tblTempUsageDetail_20' ) start [2025-03-11 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657672', 'tblTempUsageDetail_20' ) end [2025-03-11 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:09:26] Production.INFO: ==10234== Releasing lock... [2025-03-11 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:09:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:10:06 [end_date_ymd] => 2025-03-11 15:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:10:06' and `end` < '2025-03-11 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-11 15:10:19] Production.INFO: count ==5549 [2025-03-11 15:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:10:06 - End Time 2025-03-11 15:10:06 [2025-03-11 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657677', 'tblTempUsageDetail_20' ) start [2025-03-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657677', 'tblTempUsageDetail_20' ) end [2025-03-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657677', 'tblTempVendorCDR_20' ) start [2025-03-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657677', 'tblTempVendorCDR_20' ) end [2025-03-11 15:10:22] Production.INFO: ProcessCDR(1,14657677,1,1,2) [2025-03-11 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657677', 'tblTempUsageDetail_20' ) start [2025-03-11 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657677', 'tblTempUsageDetail_20' ) end [2025-03-11 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:10:27] Production.INFO: ==10312== Releasing lock... [2025-03-11 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:10:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:11:05 [end_date_ymd] => 2025-03-11 15:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:11:05' and `end` < '2025-03-11 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-11 15:11:18] Production.INFO: count ==5511 [2025-03-11 15:11:20] Production.ERROR: pbx CDR StartTime 2025-03-11 12:11:05 - End Time 2025-03-11 15:11:05 [2025-03-11 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657683', 'tblTempUsageDetail_20' ) start [2025-03-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657683', 'tblTempUsageDetail_20' ) end [2025-03-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657683', 'tblTempVendorCDR_20' ) start [2025-03-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657683', 'tblTempVendorCDR_20' ) end [2025-03-11 15:11:21] Production.INFO: ProcessCDR(1,14657683,1,1,2) [2025-03-11 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657683', 'tblTempUsageDetail_20' ) start [2025-03-11 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657683', 'tblTempUsageDetail_20' ) end [2025-03-11 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:11:26] Production.INFO: ==10385== Releasing lock... [2025-03-11 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:11:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:12:05 [end_date_ymd] => 2025-03-11 15:12:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:12:05' and `end` < '2025-03-11 15: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-11 15:12:18] Production.INFO: count ==5504 [2025-03-11 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:12:05 - End Time 2025-03-11 15:12:05 [2025-03-11 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657688', 'tblTempUsageDetail_20' ) start [2025-03-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657688', 'tblTempUsageDetail_20' ) end [2025-03-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657688', 'tblTempVendorCDR_20' ) start [2025-03-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657688', 'tblTempVendorCDR_20' ) end [2025-03-11 15:12:21] Production.INFO: ProcessCDR(1,14657688,1,1,2) [2025-03-11 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657688', 'tblTempUsageDetail_20' ) start [2025-03-11 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657688', 'tblTempUsageDetail_20' ) end [2025-03-11 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:12:26] Production.INFO: ==10538== Releasing lock... [2025-03-11 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:12:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:13:05 [end_date_ymd] => 2025-03-11 15:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:13:05' and `end` < '2025-03-11 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-11 15:13:19] Production.INFO: count ==5518 [2025-03-11 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:13:05 - End Time 2025-03-11 15:13:05 [2025-03-11 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657693', 'tblTempUsageDetail_20' ) start [2025-03-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657693', 'tblTempUsageDetail_20' ) end [2025-03-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657693', 'tblTempVendorCDR_20' ) start [2025-03-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657693', 'tblTempVendorCDR_20' ) end [2025-03-11 15:13:22] Production.INFO: ProcessCDR(1,14657693,1,1,2) [2025-03-11 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657693', 'tblTempUsageDetail_20' ) start [2025-03-11 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657693', 'tblTempUsageDetail_20' ) end [2025-03-11 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:13:27] Production.INFO: ==10608== Releasing lock... [2025-03-11 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:13:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:14:05 [end_date_ymd] => 2025-03-11 15:14:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:14:05' and `end` < '2025-03-11 15: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-11 15:14:20] Production.INFO: count ==5514 [2025-03-11 15:14:23] Production.ERROR: pbx CDR StartTime 2025-03-11 12:14:05 - End Time 2025-03-11 15:14:05 [2025-03-11 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657698', 'tblTempUsageDetail_20' ) start [2025-03-11 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657698', 'tblTempUsageDetail_20' ) end [2025-03-11 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657698', 'tblTempVendorCDR_20' ) start [2025-03-11 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657698', 'tblTempVendorCDR_20' ) end [2025-03-11 15:14:23] Production.INFO: ProcessCDR(1,14657698,1,1,2) [2025-03-11 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657698', 'tblTempUsageDetail_20' ) start [2025-03-11 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657698', 'tblTempUsageDetail_20' ) end [2025-03-11 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:14:28] Production.INFO: ==10685== Releasing lock... [2025-03-11 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:14:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:15:06 [end_date_ymd] => 2025-03-11 15:15:06 [RateCDR] => 1 ) [2025-03-11 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:15:06' and `end` < '2025-03-11 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:15:19] Production.INFO: count ==5505 [2025-03-11 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:15:06 - End Time 2025-03-11 15:15:06 [2025-03-11 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657703', 'tblTempUsageDetail_20' ) start [2025-03-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657703', 'tblTempUsageDetail_20' ) end [2025-03-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657703', 'tblTempVendorCDR_20' ) start [2025-03-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657703', 'tblTempVendorCDR_20' ) end [2025-03-11 15:15:21] Production.INFO: ProcessCDR(1,14657703,1,1,2) [2025-03-11 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657703', 'tblTempUsageDetail_20' ) start [2025-03-11 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657703', 'tblTempUsageDetail_20' ) end [2025-03-11 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:15:27] Production.INFO: ==10838== Releasing lock... [2025-03-11 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:15:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:16:05 [end_date_ymd] => 2025-03-11 15:16:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:16:05' and `end` < '2025-03-11 15: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-11 15:16:19] Production.INFO: count ==5490 [2025-03-11 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:16:05 - End Time 2025-03-11 15:16:05 [2025-03-11 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657708', 'tblTempUsageDetail_20' ) start [2025-03-11 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657708', 'tblTempUsageDetail_20' ) end [2025-03-11 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657708', 'tblTempVendorCDR_20' ) start [2025-03-11 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657708', 'tblTempVendorCDR_20' ) end [2025-03-11 15:16:21] Production.INFO: ProcessCDR(1,14657708,1,1,2) [2025-03-11 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657708', 'tblTempUsageDetail_20' ) start [2025-03-11 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657708', 'tblTempUsageDetail_20' ) end [2025-03-11 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:16:26] Production.INFO: ==10925== Releasing lock... [2025-03-11 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:16:26] Production.INFO: 69 MB #Memory Used# [2025-03-11 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:17:05 [end_date_ymd] => 2025-03-11 15:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:17:05' and `end` < '2025-03-11 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-11 15:17:19] Production.INFO: count ==5498 [2025-03-11 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:17:05 - End Time 2025-03-11 15:17:05 [2025-03-11 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657713', 'tblTempUsageDetail_20' ) start [2025-03-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657713', 'tblTempUsageDetail_20' ) end [2025-03-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657713', 'tblTempVendorCDR_20' ) start [2025-03-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657713', 'tblTempVendorCDR_20' ) end [2025-03-11 15:17:21] Production.INFO: ProcessCDR(1,14657713,1,1,2) [2025-03-11 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657713', 'tblTempUsageDetail_20' ) start [2025-03-11 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657713', 'tblTempUsageDetail_20' ) end [2025-03-11 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:17:26] Production.INFO: ==11014== Releasing lock... [2025-03-11 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:17:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:18:04 [end_date_ymd] => 2025-03-11 15:18:04 [RateCDR] => 1 ) [2025-03-11 15:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:18:04' and `end` < '2025-03-11 15:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:18:18] Production.INFO: count ==5510 [2025-03-11 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:18:04 - End Time 2025-03-11 15:18:04 [2025-03-11 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657718', 'tblTempUsageDetail_20' ) start [2025-03-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657718', 'tblTempUsageDetail_20' ) end [2025-03-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657718', 'tblTempVendorCDR_20' ) start [2025-03-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657718', 'tblTempVendorCDR_20' ) end [2025-03-11 15:18:21] Production.INFO: ProcessCDR(1,14657718,1,1,2) [2025-03-11 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657718', 'tblTempUsageDetail_20' ) start [2025-03-11 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657718', 'tblTempUsageDetail_20' ) end [2025-03-11 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:18:26] Production.INFO: ==11141== Releasing lock... [2025-03-11 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:18:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:19:06 [end_date_ymd] => 2025-03-11 15:19:06 [RateCDR] => 1 ) [2025-03-11 15:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:19:06' and `end` < '2025-03-11 15:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:19:20] Production.INFO: count ==5516 [2025-03-11 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:19:06 - End Time 2025-03-11 15:19:06 [2025-03-11 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657723', 'tblTempUsageDetail_20' ) start [2025-03-11 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657723', 'tblTempUsageDetail_20' ) end [2025-03-11 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657723', 'tblTempVendorCDR_20' ) start [2025-03-11 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657723', 'tblTempVendorCDR_20' ) end [2025-03-11 15:19:22] Production.INFO: ProcessCDR(1,14657723,1,1,2) [2025-03-11 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657723', 'tblTempUsageDetail_20' ) start [2025-03-11 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657723', 'tblTempUsageDetail_20' ) end [2025-03-11 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:19:27] Production.INFO: ==11233== Releasing lock... [2025-03-11 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:19:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:20:05 [end_date_ymd] => 2025-03-11 15:20:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:20:05' and `end` < '2025-03-11 15: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-11 15:20:19] Production.INFO: count ==5517 [2025-03-11 15:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:20:05 - End Time 2025-03-11 15:20:05 [2025-03-11 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657728', 'tblTempUsageDetail_20' ) start [2025-03-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657728', 'tblTempUsageDetail_20' ) end [2025-03-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657728', 'tblTempVendorCDR_20' ) start [2025-03-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657728', 'tblTempVendorCDR_20' ) end [2025-03-11 15:20:21] Production.INFO: ProcessCDR(1,14657728,1,1,2) [2025-03-11 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657728', 'tblTempUsageDetail_20' ) start [2025-03-11 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657728', 'tblTempUsageDetail_20' ) end [2025-03-11 15:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:20:26] Production.INFO: ==11330== Releasing lock... [2025-03-11 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:20:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:21:05 [end_date_ymd] => 2025-03-11 15:21:05 [RateCDR] => 1 ) [2025-03-11 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:21:05' and `end` < '2025-03-11 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:21:19] Production.INFO: count ==5511 [2025-03-11 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:21:05 - End Time 2025-03-11 15:21:05 [2025-03-11 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657734', 'tblTempUsageDetail_20' ) start [2025-03-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657734', 'tblTempUsageDetail_20' ) end [2025-03-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657734', 'tblTempVendorCDR_20' ) start [2025-03-11 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657734', 'tblTempVendorCDR_20' ) end [2025-03-11 15:21:22] Production.INFO: ProcessCDR(1,14657734,1,1,2) [2025-03-11 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657734', 'tblTempUsageDetail_20' ) start [2025-03-11 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657734', 'tblTempUsageDetail_20' ) end [2025-03-11 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:21:27] Production.INFO: ==11411== Releasing lock... [2025-03-11 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:21:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:22:05 [end_date_ymd] => 2025-03-11 15:22:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:22:05' and `end` < '2025-03-11 15: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-11 15:22:19] Production.INFO: count ==5518 [2025-03-11 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:22:05 - End Time 2025-03-11 15:22:05 [2025-03-11 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657739', 'tblTempUsageDetail_20' ) start [2025-03-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657739', 'tblTempUsageDetail_20' ) end [2025-03-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657739', 'tblTempVendorCDR_20' ) start [2025-03-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657739', 'tblTempVendorCDR_20' ) end [2025-03-11 15:22:21] Production.INFO: ProcessCDR(1,14657739,1,1,2) [2025-03-11 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657739', 'tblTempUsageDetail_20' ) start [2025-03-11 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657739', 'tblTempUsageDetail_20' ) end [2025-03-11 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:22:27] Production.INFO: ==11491== Releasing lock... [2025-03-11 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:22:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:23:05 [end_date_ymd] => 2025-03-11 15:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:23:05' and `end` < '2025-03-11 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-11 15:23:19] Production.INFO: count ==5507 [2025-03-11 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:23:05 - End Time 2025-03-11 15:23:05 [2025-03-11 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657744', 'tblTempUsageDetail_20' ) start [2025-03-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657744', 'tblTempUsageDetail_20' ) end [2025-03-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657744', 'tblTempVendorCDR_20' ) start [2025-03-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657744', 'tblTempVendorCDR_20' ) end [2025-03-11 15:23:21] Production.INFO: ProcessCDR(1,14657744,1,1,2) [2025-03-11 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657744', 'tblTempUsageDetail_20' ) start [2025-03-11 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657744', 'tblTempUsageDetail_20' ) end [2025-03-11 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:23:27] Production.INFO: ==11583== Releasing lock... [2025-03-11 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:23:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:24:05 [end_date_ymd] => 2025-03-11 15:24:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:24:05' and `end` < '2025-03-11 15: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-11 15:24:19] Production.INFO: count ==5524 [2025-03-11 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:24:05 - End Time 2025-03-11 15:24:05 [2025-03-11 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657749', 'tblTempUsageDetail_20' ) start [2025-03-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657749', 'tblTempUsageDetail_20' ) end [2025-03-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657749', 'tblTempVendorCDR_20' ) start [2025-03-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657749', 'tblTempVendorCDR_20' ) end [2025-03-11 15:24:21] Production.INFO: ProcessCDR(1,14657749,1,1,2) [2025-03-11 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657749', 'tblTempUsageDetail_20' ) start [2025-03-11 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657749', 'tblTempUsageDetail_20' ) end [2025-03-11 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:24:27] Production.INFO: ==11659== Releasing lock... [2025-03-11 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:24:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:25:05 [end_date_ymd] => 2025-03-11 15:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:25:05' and `end` < '2025-03-11 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-11 15:25:18] Production.INFO: count ==5524 [2025-03-11 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:25:05 - End Time 2025-03-11 15:25:05 [2025-03-11 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657754', 'tblTempUsageDetail_20' ) start [2025-03-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657754', 'tblTempUsageDetail_20' ) end [2025-03-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657754', 'tblTempVendorCDR_20' ) start [2025-03-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657754', 'tblTempVendorCDR_20' ) end [2025-03-11 15:25:21] Production.INFO: ProcessCDR(1,14657754,1,1,2) [2025-03-11 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657754', 'tblTempUsageDetail_20' ) start [2025-03-11 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657754', 'tblTempUsageDetail_20' ) end [2025-03-11 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:25:26] Production.INFO: ==11736== Releasing lock... [2025-03-11 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:25:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:26:05 [end_date_ymd] => 2025-03-11 15:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:26:05' and `end` < '2025-03-11 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-11 15:26:19] Production.INFO: count ==5504 [2025-03-11 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:26:05 - End Time 2025-03-11 15:26:05 [2025-03-11 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657759', 'tblTempUsageDetail_20' ) start [2025-03-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657759', 'tblTempUsageDetail_20' ) end [2025-03-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657759', 'tblTempVendorCDR_20' ) start [2025-03-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657759', 'tblTempVendorCDR_20' ) end [2025-03-11 15:26:21] Production.INFO: ProcessCDR(1,14657759,1,1,2) [2025-03-11 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657759', 'tblTempUsageDetail_20' ) start [2025-03-11 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657759', 'tblTempUsageDetail_20' ) end [2025-03-11 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:26:26] Production.INFO: ==11813== Releasing lock... [2025-03-11 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:26:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:27:06 [end_date_ymd] => 2025-03-11 15:27:06 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:27:06' and `end` < '2025-03-11 15: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-11 15:27:19] Production.INFO: count ==5514 [2025-03-11 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:27:06 - End Time 2025-03-11 15:27:06 [2025-03-11 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657764', 'tblTempUsageDetail_20' ) start [2025-03-11 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657764', 'tblTempUsageDetail_20' ) end [2025-03-11 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657764', 'tblTempVendorCDR_20' ) start [2025-03-11 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657764', 'tblTempVendorCDR_20' ) end [2025-03-11 15:27:21] Production.INFO: ProcessCDR(1,14657764,1,1,2) [2025-03-11 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657764', 'tblTempUsageDetail_20' ) start [2025-03-11 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657764', 'tblTempUsageDetail_20' ) end [2025-03-11 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:27:27] Production.INFO: ==11891== Releasing lock... [2025-03-11 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:27:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:28:06 [end_date_ymd] => 2025-03-11 15:28:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:28:06' and `end` < '2025-03-11 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-11 15:28:19] Production.INFO: count ==5533 [2025-03-11 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:28:06 - End Time 2025-03-11 15:28:06 [2025-03-11 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657769', 'tblTempUsageDetail_20' ) start [2025-03-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657769', 'tblTempUsageDetail_20' ) end [2025-03-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657769', 'tblTempVendorCDR_20' ) start [2025-03-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657769', 'tblTempVendorCDR_20' ) end [2025-03-11 15:28:21] Production.INFO: ProcessCDR(1,14657769,1,1,2) [2025-03-11 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657769', 'tblTempUsageDetail_20' ) start [2025-03-11 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657769', 'tblTempUsageDetail_20' ) end [2025-03-11 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:28:26] Production.INFO: ==11972== Releasing lock... [2025-03-11 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:28:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:29:05 [end_date_ymd] => 2025-03-11 15:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:29:05' and `end` < '2025-03-11 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-11 15:29:18] Production.INFO: count ==5549 [2025-03-11 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:29:05 - End Time 2025-03-11 15:29:05 [2025-03-11 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657774', 'tblTempUsageDetail_20' ) start [2025-03-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657774', 'tblTempUsageDetail_20' ) end [2025-03-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657774', 'tblTempVendorCDR_20' ) start [2025-03-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657774', 'tblTempVendorCDR_20' ) end [2025-03-11 15:29:21] Production.INFO: ProcessCDR(1,14657774,1,1,2) [2025-03-11 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657774', 'tblTempUsageDetail_20' ) start [2025-03-11 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657774', 'tblTempUsageDetail_20' ) end [2025-03-11 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:29:26] Production.INFO: ==12045== Releasing lock... [2025-03-11 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:29:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:30:07 [end_date_ymd] => 2025-03-11 15:30:07 [RateCDR] => 1 ) [2025-03-11 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-11 12:30:07' and `end` < '2025-03-11 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-11 15:30:20] Production.INFO: count ==5547 [2025-03-11 15:30:23] Production.ERROR: pbx CDR StartTime 2025-03-11 12:30:07 - End Time 2025-03-11 15:30:07 [2025-03-11 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657780', 'tblTempUsageDetail_20' ) start [2025-03-11 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657780', 'tblTempUsageDetail_20' ) end [2025-03-11 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657780', 'tblTempVendorCDR_20' ) start [2025-03-11 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657780', 'tblTempVendorCDR_20' ) end [2025-03-11 15:30:23] Production.INFO: ProcessCDR(1,14657780,1,1,2) [2025-03-11 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657780', 'tblTempUsageDetail_20' ) start [2025-03-11 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657780', 'tblTempUsageDetail_20' ) end [2025-03-11 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:30:29] Production.INFO: ==12126== Releasing lock... [2025-03-11 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:30:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:31:05 [end_date_ymd] => 2025-03-11 15:31:05 [RateCDR] => 1 ) [2025-03-11 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:31:05' and `end` < '2025-03-11 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:31:19] Production.INFO: count ==5597 [2025-03-11 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:31:05 - End Time 2025-03-11 15:31:05 [2025-03-11 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657785', 'tblTempUsageDetail_20' ) start [2025-03-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657785', 'tblTempUsageDetail_20' ) end [2025-03-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657785', 'tblTempVendorCDR_20' ) start [2025-03-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657785', 'tblTempVendorCDR_20' ) end [2025-03-11 15:31:21] Production.INFO: ProcessCDR(1,14657785,1,1,2) [2025-03-11 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657785', 'tblTempUsageDetail_20' ) start [2025-03-11 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657785', 'tblTempUsageDetail_20' ) end [2025-03-11 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:31:27] Production.INFO: ==12214== Releasing lock... [2025-03-11 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:31:27] Production.INFO: 70 MB #Memory Used# [2025-03-11 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:32:06 [end_date_ymd] => 2025-03-11 15:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:32:06' and `end` < '2025-03-11 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-11 15:32:20] Production.INFO: count ==5600 [2025-03-11 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:32:06 - End Time 2025-03-11 15:32:06 [2025-03-11 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657790', 'tblTempUsageDetail_20' ) start [2025-03-11 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657790', 'tblTempUsageDetail_20' ) end [2025-03-11 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657790', 'tblTempVendorCDR_20' ) start [2025-03-11 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657790', 'tblTempVendorCDR_20' ) end [2025-03-11 15:32:22] Production.INFO: ProcessCDR(1,14657790,1,1,2) [2025-03-11 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657790', 'tblTempUsageDetail_20' ) start [2025-03-11 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657790', 'tblTempUsageDetail_20' ) end [2025-03-11 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:32:27] Production.INFO: ==12294== Releasing lock... [2025-03-11 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:32:27] Production.INFO: 70 MB #Memory Used# [2025-03-11 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:33:04 [end_date_ymd] => 2025-03-11 15:33:04 [RateCDR] => 1 ) [2025-03-11 15:33: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-11 12:33:04' and `end` < '2025-03-11 15:33: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-11 15:33:18] Production.INFO: count ==5623 [2025-03-11 15:33:20] Production.ERROR: pbx CDR StartTime 2025-03-11 12:33:04 - End Time 2025-03-11 15:33:04 [2025-03-11 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657795', 'tblTempUsageDetail_20' ) start [2025-03-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657795', 'tblTempUsageDetail_20' ) end [2025-03-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657795', 'tblTempVendorCDR_20' ) start [2025-03-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657795', 'tblTempVendorCDR_20' ) end [2025-03-11 15:33:21] Production.INFO: ProcessCDR(1,14657795,1,1,2) [2025-03-11 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657795', 'tblTempUsageDetail_20' ) start [2025-03-11 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657795', 'tblTempUsageDetail_20' ) end [2025-03-11 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:33:26] Production.INFO: ==12405== Releasing lock... [2025-03-11 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:33:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:34:05 [end_date_ymd] => 2025-03-11 15:34:05 [RateCDR] => 1 ) [2025-03-11 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:34:05' and `end` < '2025-03-11 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:34:19] Production.INFO: count ==5634 [2025-03-11 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:34:05 - End Time 2025-03-11 15:34:05 [2025-03-11 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657800', 'tblTempUsageDetail_20' ) start [2025-03-11 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657800', 'tblTempUsageDetail_20' ) end [2025-03-11 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657800', 'tblTempVendorCDR_20' ) start [2025-03-11 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657800', 'tblTempVendorCDR_20' ) end [2025-03-11 15:34:22] Production.INFO: ProcessCDR(1,14657800,1,1,2) [2025-03-11 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657800', 'tblTempUsageDetail_20' ) start [2025-03-11 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657800', 'tblTempUsageDetail_20' ) end [2025-03-11 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:34:28] Production.INFO: ==12486== Releasing lock... [2025-03-11 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:34:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:35:05 [end_date_ymd] => 2025-03-11 15:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:35:05' and `end` < '2025-03-11 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-11 15:35:18] Production.INFO: count ==5655 [2025-03-11 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:35:05 - End Time 2025-03-11 15:35:05 [2025-03-11 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657805', 'tblTempUsageDetail_20' ) start [2025-03-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657805', 'tblTempUsageDetail_20' ) end [2025-03-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657805', 'tblTempVendorCDR_20' ) start [2025-03-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657805', 'tblTempVendorCDR_20' ) end [2025-03-11 15:35:21] Production.INFO: ProcessCDR(1,14657805,1,1,2) [2025-03-11 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657805', 'tblTempUsageDetail_20' ) start [2025-03-11 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657805', 'tblTempUsageDetail_20' ) end [2025-03-11 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:35:27] Production.INFO: ==12579== Releasing lock... [2025-03-11 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:35:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:36:05 [end_date_ymd] => 2025-03-11 15:36:05 [RateCDR] => 1 ) [2025-03-11 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:36:05' and `end` < '2025-03-11 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:36:19] Production.INFO: count ==5698 [2025-03-11 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:36:05 - End Time 2025-03-11 15:36:05 [2025-03-11 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657810', 'tblTempUsageDetail_20' ) start [2025-03-11 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657810', 'tblTempUsageDetail_20' ) end [2025-03-11 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657810', 'tblTempVendorCDR_20' ) start [2025-03-11 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657810', 'tblTempVendorCDR_20' ) end [2025-03-11 15:36:21] Production.INFO: ProcessCDR(1,14657810,1,1,2) [2025-03-11 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657810', 'tblTempUsageDetail_20' ) start [2025-03-11 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657810', 'tblTempUsageDetail_20' ) end [2025-03-11 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:36:27] Production.INFO: ==12665== Releasing lock... [2025-03-11 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:36:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-11 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:37:05 [end_date_ymd] => 2025-03-11 15:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:37:05' and `end` < '2025-03-11 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-11 15:37:18] Production.INFO: count ==5701 [2025-03-11 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:37:05 - End Time 2025-03-11 15:37:05 [2025-03-11 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657815', 'tblTempUsageDetail_20' ) start [2025-03-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657815', 'tblTempUsageDetail_20' ) end [2025-03-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657815', 'tblTempVendorCDR_20' ) start [2025-03-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657815', 'tblTempVendorCDR_20' ) end [2025-03-11 15:37:21] Production.INFO: ProcessCDR(1,14657815,1,1,2) [2025-03-11 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657815', 'tblTempUsageDetail_20' ) start [2025-03-11 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657815', 'tblTempUsageDetail_20' ) end [2025-03-11 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:37:26] Production.INFO: ==12741== Releasing lock... [2025-03-11 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:37:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-11 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:38:06 [end_date_ymd] => 2025-03-11 15:38:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:38:06' and `end` < '2025-03-11 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-11 15:38:19] Production.INFO: count ==5691 [2025-03-11 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:38:06 - End Time 2025-03-11 15:38:06 [2025-03-11 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657820', 'tblTempUsageDetail_20' ) start [2025-03-11 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657820', 'tblTempUsageDetail_20' ) end [2025-03-11 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657820', 'tblTempVendorCDR_20' ) start [2025-03-11 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657820', 'tblTempVendorCDR_20' ) end [2025-03-11 15:38:22] Production.INFO: ProcessCDR(1,14657820,1,1,2) [2025-03-11 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657820', 'tblTempUsageDetail_20' ) start [2025-03-11 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657820', 'tblTempUsageDetail_20' ) end [2025-03-11 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:38:27] Production.INFO: ==12821== Releasing lock... [2025-03-11 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:38:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:39:05 [end_date_ymd] => 2025-03-11 15:39:05 [RateCDR] => 1 ) [2025-03-11 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:39:05' and `end` < '2025-03-11 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:39:18] Production.INFO: count ==5677 [2025-03-11 15:39:20] Production.ERROR: pbx CDR StartTime 2025-03-11 12:39:05 - End Time 2025-03-11 15:39:05 [2025-03-11 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657825', 'tblTempUsageDetail_20' ) start [2025-03-11 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657825', 'tblTempUsageDetail_20' ) end [2025-03-11 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657825', 'tblTempVendorCDR_20' ) start [2025-03-11 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657825', 'tblTempVendorCDR_20' ) end [2025-03-11 15:39:21] Production.INFO: ProcessCDR(1,14657825,1,1,2) [2025-03-11 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657825', 'tblTempUsageDetail_20' ) start [2025-03-11 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657825', 'tblTempUsageDetail_20' ) end [2025-03-11 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:39:25] Production.INFO: ==12905== Releasing lock... [2025-03-11 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:39:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:40:06 [end_date_ymd] => 2025-03-11 15:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:40:06' and `end` < '2025-03-11 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-11 15:40:20] Production.INFO: count ==5668 [2025-03-11 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-11 12:40:06 - End Time 2025-03-11 15:40:06 [2025-03-11 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657831', 'tblTempUsageDetail_20' ) start [2025-03-11 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657831', 'tblTempUsageDetail_20' ) end [2025-03-11 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657831', 'tblTempVendorCDR_20' ) start [2025-03-11 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657831', 'tblTempVendorCDR_20' ) end [2025-03-11 15:40:22] Production.INFO: ProcessCDR(1,14657831,1,1,2) [2025-03-11 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657831', 'tblTempUsageDetail_20' ) start [2025-03-11 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657831', 'tblTempUsageDetail_20' ) end [2025-03-11 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:40:28] Production.INFO: ==12987== Releasing lock... [2025-03-11 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:40:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:41:05 [end_date_ymd] => 2025-03-11 15:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:41:05' and `end` < '2025-03-11 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-11 15:41:18] Production.INFO: count ==5661 [2025-03-11 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:41:05 - End Time 2025-03-11 15:41:05 [2025-03-11 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657836', 'tblTempUsageDetail_20' ) start [2025-03-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657836', 'tblTempUsageDetail_20' ) end [2025-03-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657836', 'tblTempVendorCDR_20' ) start [2025-03-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657836', 'tblTempVendorCDR_20' ) end [2025-03-11 15:41:21] Production.INFO: ProcessCDR(1,14657836,1,1,2) [2025-03-11 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657836', 'tblTempUsageDetail_20' ) start [2025-03-11 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657836', 'tblTempUsageDetail_20' ) end [2025-03-11 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:41:27] Production.INFO: ==13067== Releasing lock... [2025-03-11 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:41:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:42:05 [end_date_ymd] => 2025-03-11 15:42:05 [RateCDR] => 1 ) [2025-03-11 15: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-11 12:42:05' and `end` < '2025-03-11 15: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-11 15:42:18] Production.INFO: count ==5668 [2025-03-11 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:42:05 - End Time 2025-03-11 15:42:05 [2025-03-11 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657841', 'tblTempUsageDetail_20' ) start [2025-03-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657841', 'tblTempUsageDetail_20' ) end [2025-03-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657841', 'tblTempVendorCDR_20' ) start [2025-03-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657841', 'tblTempVendorCDR_20' ) end [2025-03-11 15:42:21] Production.INFO: ProcessCDR(1,14657841,1,1,2) [2025-03-11 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657841', 'tblTempUsageDetail_20' ) start [2025-03-11 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657841', 'tblTempUsageDetail_20' ) end [2025-03-11 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:42:27] Production.INFO: ==13146== Releasing lock... [2025-03-11 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:42:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:43:05 [end_date_ymd] => 2025-03-11 15:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 12:43:05' and `end` < '2025-03-11 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-11 15:43:18] Production.INFO: count ==5674 [2025-03-11 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:43:05 - End Time 2025-03-11 15:43:05 [2025-03-11 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657846', 'tblTempUsageDetail_20' ) start [2025-03-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657846', 'tblTempUsageDetail_20' ) end [2025-03-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657846', 'tblTempVendorCDR_20' ) start [2025-03-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657846', 'tblTempVendorCDR_20' ) end [2025-03-11 15:43:21] Production.INFO: ProcessCDR(1,14657846,1,1,2) [2025-03-11 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657846', 'tblTempUsageDetail_20' ) start [2025-03-11 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657846', 'tblTempUsageDetail_20' ) end [2025-03-11 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:43:27] Production.INFO: ==13223== Releasing lock... [2025-03-11 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:43:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:44:06 [end_date_ymd] => 2025-03-11 15:44:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:44:06' and `end` < '2025-03-11 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-11 15:44:19] Production.INFO: count ==5651 [2025-03-11 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:44:06 - End Time 2025-03-11 15:44:06 [2025-03-11 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657851', 'tblTempUsageDetail_20' ) start [2025-03-11 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657851', 'tblTempUsageDetail_20' ) end [2025-03-11 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657851', 'tblTempVendorCDR_20' ) start [2025-03-11 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657851', 'tblTempVendorCDR_20' ) end [2025-03-11 15:44:22] Production.INFO: ProcessCDR(1,14657851,1,1,2) [2025-03-11 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657851', 'tblTempUsageDetail_20' ) start [2025-03-11 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657851', 'tblTempUsageDetail_20' ) end [2025-03-11 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:44:27] Production.INFO: ==13303== Releasing lock... [2025-03-11 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:44:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:45:06 [end_date_ymd] => 2025-03-11 15:45:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:45:06' and `end` < '2025-03-11 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-11 15:45:19] Production.INFO: count ==5653 [2025-03-11 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:45:06 - End Time 2025-03-11 15:45:06 [2025-03-11 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657856', 'tblTempUsageDetail_20' ) start [2025-03-11 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657856', 'tblTempUsageDetail_20' ) end [2025-03-11 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657856', 'tblTempVendorCDR_20' ) start [2025-03-11 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657856', 'tblTempVendorCDR_20' ) end [2025-03-11 15:45:22] Production.INFO: ProcessCDR(1,14657856,1,1,2) [2025-03-11 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:46:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:46:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:48:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:48:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657856', 'tblTempUsageDetail_20' ) start [2025-03-11 15:48:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657856', 'tblTempUsageDetail_20' ) end [2025-03-11 15:48:14] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:48:14] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:48:14] Production.INFO: ==13383== Releasing lock... [2025-03-11 15:48:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:48:14] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:49:05 [end_date_ymd] => 2025-03-11 15:49:05 [RateCDR] => 1 ) [2025-03-11 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:49:05' and `end` < '2025-03-11 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:49:19] Production.INFO: count ==5565 [2025-03-11 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:49:05 - End Time 2025-03-11 15:49:05 [2025-03-11 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657873', 'tblTempUsageDetail_20' ) start [2025-03-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657873', 'tblTempUsageDetail_20' ) end [2025-03-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657873', 'tblTempVendorCDR_20' ) start [2025-03-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657873', 'tblTempVendorCDR_20' ) end [2025-03-11 15:49:21] Production.INFO: ProcessCDR(1,14657873,1,1,2) [2025-03-11 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:52:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:52:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657873', 'tblTempUsageDetail_20' ) start [2025-03-11 15:52:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657873', 'tblTempUsageDetail_20' ) end [2025-03-11 15:52:15] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:52:15] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:52:15] Production.INFO: ==13743== Releasing lock... [2025-03-11 15:52:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:52:15] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:53:05 [end_date_ymd] => 2025-03-11 15:53:05 [RateCDR] => 1 ) [2025-03-11 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 12:53:05' and `end` < '2025-03-11 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 15:53:19] Production.INFO: count ==5497 [2025-03-11 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:53:05 - End Time 2025-03-11 15:53:05 [2025-03-11 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657891', 'tblTempUsageDetail_20' ) start [2025-03-11 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657891', 'tblTempUsageDetail_20' ) end [2025-03-11 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657891', 'tblTempVendorCDR_20' ) start [2025-03-11 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657891', 'tblTempVendorCDR_20' ) end [2025-03-11 15:53:21] Production.INFO: ProcessCDR(1,14657891,1,1,2) [2025-03-11 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:56:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 15:56:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657891', 'tblTempUsageDetail_20' ) start [2025-03-11 15:56:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657891', 'tblTempUsageDetail_20' ) end [2025-03-11 15:56:12] Production.ERROR: pbx prc_insertCDR start [2025-03-11 15:56:12] Production.ERROR: pbx prc_insertCDR end [2025-03-11 15:56:12] Production.INFO: ==14046== Releasing lock... [2025-03-11 15:56:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 15:56:12] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 12:57:06 [end_date_ymd] => 2025-03-11 15:57:06 [RateCDR] => 1 ) [2025-03-11 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-11 12:57:06' and `end` < '2025-03-11 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-11 15:57:19] Production.INFO: count ==5426 [2025-03-11 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-11 12:57:06 - End Time 2025-03-11 15:57:06 [2025-03-11 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657908', 'tblTempUsageDetail_20' ) start [2025-03-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657908', 'tblTempUsageDetail_20' ) end [2025-03-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657908', 'tblTempVendorCDR_20' ) start [2025-03-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657908', 'tblTempVendorCDR_20' ) end [2025-03-11 15:57:21] Production.INFO: ProcessCDR(1,14657908,1,1,2) [2025-03-11 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 15:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:00:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:00:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657908', 'tblTempUsageDetail_20' ) start [2025-03-11 16:00:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657908', 'tblTempUsageDetail_20' ) end [2025-03-11 16:00:11] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:00:11] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:00:11] Production.INFO: ==14339== Releasing lock... [2025-03-11 16:00:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:00:11] Production.INFO: 68.5 MB #Memory Used# [2025-03-11 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:01:06 [end_date_ymd] => 2025-03-11 16:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:01:06' and `end` < '2025-03-11 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-11 16:01:19] Production.INFO: count ==5465 [2025-03-11 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:01:06 - End Time 2025-03-11 16:01:06 [2025-03-11 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657926', 'tblTempUsageDetail_20' ) start [2025-03-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657926', 'tblTempUsageDetail_20' ) end [2025-03-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657926', 'tblTempVendorCDR_20' ) start [2025-03-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657926', 'tblTempVendorCDR_20' ) end [2025-03-11 16:01:22] Production.INFO: ProcessCDR(1,14657926,1,1,2) [2025-03-11 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:04:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:04:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657926', 'tblTempUsageDetail_20' ) start [2025-03-11 16:04:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657926', 'tblTempUsageDetail_20' ) end [2025-03-11 16:04:14] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:04:14] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:04:14] Production.INFO: ==14654== Releasing lock... [2025-03-11 16:04:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:04:14] Production.INFO: 69 MB #Memory Used# [2025-03-11 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:05:05 [end_date_ymd] => 2025-03-11 16:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:05:05' and `end` < '2025-03-11 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-11 16:05:19] Production.INFO: count ==5537 [2025-03-11 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:05:05 - End Time 2025-03-11 16:05:05 [2025-03-11 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657943', 'tblTempUsageDetail_20' ) start [2025-03-11 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657943', 'tblTempUsageDetail_20' ) end [2025-03-11 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657943', 'tblTempVendorCDR_20' ) start [2025-03-11 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657943', 'tblTempVendorCDR_20' ) end [2025-03-11 16:05:22] Production.INFO: ProcessCDR(1,14657943,1,1,2) [2025-03-11 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657943', 'tblTempUsageDetail_20' ) start [2025-03-11 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657943', 'tblTempUsageDetail_20' ) end [2025-03-11 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:05:29] Production.INFO: ==14977== Releasing lock... [2025-03-11 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:05:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:06:05 [end_date_ymd] => 2025-03-11 16:06:05 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:06:05' and `end` < '2025-03-11 16: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-11 16:06:19] Production.INFO: count ==5532 [2025-03-11 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:06:05 - End Time 2025-03-11 16:06:05 [2025-03-11 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657948', 'tblTempUsageDetail_20' ) start [2025-03-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657948', 'tblTempUsageDetail_20' ) end [2025-03-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657948', 'tblTempVendorCDR_20' ) start [2025-03-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657948', 'tblTempVendorCDR_20' ) end [2025-03-11 16:06:21] Production.INFO: ProcessCDR(1,14657948,1,1,2) [2025-03-11 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657948', 'tblTempUsageDetail_20' ) start [2025-03-11 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657948', 'tblTempUsageDetail_20' ) end [2025-03-11 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:06:26] Production.INFO: ==15048== Releasing lock... [2025-03-11 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:06:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:07:05 [end_date_ymd] => 2025-03-11 16:07:05 [RateCDR] => 1 ) [2025-03-11 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:07:05' and `end` < '2025-03-11 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:07:19] Production.INFO: count ==5517 [2025-03-11 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:07:05 - End Time 2025-03-11 16:07:05 [2025-03-11 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657953', 'tblTempUsageDetail_20' ) start [2025-03-11 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657953', 'tblTempUsageDetail_20' ) end [2025-03-11 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657953', 'tblTempVendorCDR_20' ) start [2025-03-11 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657953', 'tblTempVendorCDR_20' ) end [2025-03-11 16:07:21] Production.INFO: ProcessCDR(1,14657953,1,1,2) [2025-03-11 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657953', 'tblTempUsageDetail_20' ) start [2025-03-11 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657953', 'tblTempUsageDetail_20' ) end [2025-03-11 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:07:26] Production.INFO: ==15121== Releasing lock... [2025-03-11 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:07:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-11 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:08:05 [end_date_ymd] => 2025-03-11 16:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:08:05' and `end` < '2025-03-11 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-11 16:08:18] Production.INFO: count ==5533 [2025-03-11 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:08:05 - End Time 2025-03-11 16:08:05 [2025-03-11 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657958', 'tblTempUsageDetail_20' ) start [2025-03-11 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657958', 'tblTempUsageDetail_20' ) end [2025-03-11 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657958', 'tblTempVendorCDR_20' ) start [2025-03-11 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657958', 'tblTempVendorCDR_20' ) end [2025-03-11 16:08:21] Production.INFO: ProcessCDR(1,14657958,1,1,2) [2025-03-11 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657958', 'tblTempUsageDetail_20' ) start [2025-03-11 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657958', 'tblTempUsageDetail_20' ) end [2025-03-11 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:08:26] Production.INFO: ==15192== Releasing lock... [2025-03-11 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:08:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:09:05 [end_date_ymd] => 2025-03-11 16:09:05 [RateCDR] => 1 ) [2025-03-11 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:09:05' and `end` < '2025-03-11 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:09:19] Production.INFO: count ==5554 [2025-03-11 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:09:05 - End Time 2025-03-11 16:09:05 [2025-03-11 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657963', 'tblTempUsageDetail_20' ) start [2025-03-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657963', 'tblTempUsageDetail_20' ) end [2025-03-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657963', 'tblTempVendorCDR_20' ) start [2025-03-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657963', 'tblTempVendorCDR_20' ) end [2025-03-11 16:09:21] Production.INFO: ProcessCDR(1,14657963,1,1,2) [2025-03-11 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657963', 'tblTempUsageDetail_20' ) start [2025-03-11 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657963', 'tblTempUsageDetail_20' ) end [2025-03-11 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:09:27] Production.INFO: ==15263== Releasing lock... [2025-03-11 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:09:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:10:06 [end_date_ymd] => 2025-03-11 16:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:10:06' and `end` < '2025-03-11 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-11 16:10:19] Production.INFO: count ==5553 [2025-03-11 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:10:06 - End Time 2025-03-11 16:10:06 [2025-03-11 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657969', 'tblTempUsageDetail_20' ) start [2025-03-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657969', 'tblTempUsageDetail_20' ) end [2025-03-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657969', 'tblTempVendorCDR_20' ) start [2025-03-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657969', 'tblTempVendorCDR_20' ) end [2025-03-11 16:10:22] Production.INFO: ProcessCDR(1,14657969,1,1,2) [2025-03-11 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657969', 'tblTempUsageDetail_20' ) start [2025-03-11 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657969', 'tblTempUsageDetail_20' ) end [2025-03-11 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:10:27] Production.INFO: ==15336== Releasing lock... [2025-03-11 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:10:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-11 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:11:05 [end_date_ymd] => 2025-03-11 16:11:05 [RateCDR] => 1 ) [2025-03-11 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:11:05' and `end` < '2025-03-11 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:11:18] Production.INFO: count ==5590 [2025-03-11 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:11:05 - End Time 2025-03-11 16:11:05 [2025-03-11 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657974', 'tblTempUsageDetail_20' ) start [2025-03-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657974', 'tblTempUsageDetail_20' ) end [2025-03-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657974', 'tblTempVendorCDR_20' ) start [2025-03-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657974', 'tblTempVendorCDR_20' ) end [2025-03-11 16:11:21] Production.INFO: ProcessCDR(1,14657974,1,1,2) [2025-03-11 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657974', 'tblTempUsageDetail_20' ) start [2025-03-11 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657974', 'tblTempUsageDetail_20' ) end [2025-03-11 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:11:27] Production.INFO: ==15410== Releasing lock... [2025-03-11 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:11:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:12:05 [end_date_ymd] => 2025-03-11 16:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:12:05' and `end` < '2025-03-11 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-11 16:12:18] Production.INFO: count ==5617 [2025-03-11 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:12:05 - End Time 2025-03-11 16:12:05 [2025-03-11 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657979', 'tblTempUsageDetail_20' ) start [2025-03-11 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657979', 'tblTempUsageDetail_20' ) end [2025-03-11 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657979', 'tblTempVendorCDR_20' ) start [2025-03-11 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657979', 'tblTempVendorCDR_20' ) end [2025-03-11 16:12:21] Production.INFO: ProcessCDR(1,14657979,1,1,2) [2025-03-11 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657979', 'tblTempUsageDetail_20' ) start [2025-03-11 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657979', 'tblTempUsageDetail_20' ) end [2025-03-11 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:12:26] Production.INFO: ==15483== Releasing lock... [2025-03-11 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:12:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:13:05 [end_date_ymd] => 2025-03-11 16:13:05 [RateCDR] => 1 ) [2025-03-11 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:13:05' and `end` < '2025-03-11 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:13:19] Production.INFO: count ==5623 [2025-03-11 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:13:05 - End Time 2025-03-11 16:13:05 [2025-03-11 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657984', 'tblTempUsageDetail_20' ) start [2025-03-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657984', 'tblTempUsageDetail_20' ) end [2025-03-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657984', 'tblTempVendorCDR_20' ) start [2025-03-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657984', 'tblTempVendorCDR_20' ) end [2025-03-11 16:13:21] Production.INFO: ProcessCDR(1,14657984,1,1,2) [2025-03-11 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657984', 'tblTempUsageDetail_20' ) start [2025-03-11 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657984', 'tblTempUsageDetail_20' ) end [2025-03-11 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:13:26] Production.INFO: ==15558== Releasing lock... [2025-03-11 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:13:26] Production.INFO: 70 MB #Memory Used# [2025-03-11 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:14:05 [end_date_ymd] => 2025-03-11 16:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:14:05' and `end` < '2025-03-11 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-11 16:14:19] Production.INFO: count ==5652 [2025-03-11 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:14:05 - End Time 2025-03-11 16:14:05 [2025-03-11 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657989', 'tblTempUsageDetail_20' ) start [2025-03-11 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657989', 'tblTempUsageDetail_20' ) end [2025-03-11 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657989', 'tblTempVendorCDR_20' ) start [2025-03-11 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657989', 'tblTempVendorCDR_20' ) end [2025-03-11 16:14:21] Production.INFO: ProcessCDR(1,14657989,1,1,2) [2025-03-11 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657989', 'tblTempUsageDetail_20' ) start [2025-03-11 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657989', 'tblTempUsageDetail_20' ) end [2025-03-11 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:14:27] Production.INFO: ==15628== Releasing lock... [2025-03-11 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:15:05 [end_date_ymd] => 2025-03-11 16:15:05 [RateCDR] => 1 ) [2025-03-11 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:15:05' and `end` < '2025-03-11 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:15:18] Production.INFO: count ==5655 [2025-03-11 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:15:05 - End Time 2025-03-11 16:15:05 [2025-03-11 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657994', 'tblTempUsageDetail_20' ) start [2025-03-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657994', 'tblTempUsageDetail_20' ) end [2025-03-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657994', 'tblTempVendorCDR_20' ) start [2025-03-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657994', 'tblTempVendorCDR_20' ) end [2025-03-11 16:15:21] Production.INFO: ProcessCDR(1,14657994,1,1,2) [2025-03-11 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657994', 'tblTempUsageDetail_20' ) start [2025-03-11 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657994', 'tblTempUsageDetail_20' ) end [2025-03-11 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:15:26] Production.INFO: ==15706== Releasing lock... [2025-03-11 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:15:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:16:06 [end_date_ymd] => 2025-03-11 16:16:06 [RateCDR] => 1 ) [2025-03-11 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:16:06' and `end` < '2025-03-11 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:16:19] Production.INFO: count ==5673 [2025-03-11 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:16:06 - End Time 2025-03-11 16:16:06 [2025-03-11 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657999', 'tblTempUsageDetail_20' ) start [2025-03-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14657999', 'tblTempUsageDetail_20' ) end [2025-03-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657999', 'tblTempVendorCDR_20' ) start [2025-03-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14657999', 'tblTempVendorCDR_20' ) end [2025-03-11 16:16:22] Production.INFO: ProcessCDR(1,14657999,1,1,2) [2025-03-11 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14657999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14657999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14657999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14657999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657999', 'tblTempUsageDetail_20' ) start [2025-03-11 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14657999', 'tblTempUsageDetail_20' ) end [2025-03-11 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:16:27] Production.INFO: ==15781== Releasing lock... [2025-03-11 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:16:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:17:05 [end_date_ymd] => 2025-03-11 16:17:05 [RateCDR] => 1 ) [2025-03-11 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:17:05' and `end` < '2025-03-11 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:17:19] Production.INFO: count ==5658 [2025-03-11 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:17:05 - End Time 2025-03-11 16:17:05 [2025-03-11 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658004', 'tblTempUsageDetail_20' ) start [2025-03-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658004', 'tblTempUsageDetail_20' ) end [2025-03-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658004', 'tblTempVendorCDR_20' ) start [2025-03-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658004', 'tblTempVendorCDR_20' ) end [2025-03-11 16:17:21] Production.INFO: ProcessCDR(1,14658004,1,1,2) [2025-03-11 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658004', 'tblTempUsageDetail_20' ) start [2025-03-11 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658004', 'tblTempUsageDetail_20' ) end [2025-03-11 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:17:26] Production.INFO: ==15850== Releasing lock... [2025-03-11 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:17:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:18:06 [end_date_ymd] => 2025-03-11 16:18:06 [RateCDR] => 1 ) [2025-03-11 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:18:06' and `end` < '2025-03-11 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:18:20] Production.INFO: count ==5667 [2025-03-11 16:18:23] Production.ERROR: pbx CDR StartTime 2025-03-11 13:18:06 - End Time 2025-03-11 16:18:06 [2025-03-11 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658009', 'tblTempUsageDetail_20' ) start [2025-03-11 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658009', 'tblTempUsageDetail_20' ) end [2025-03-11 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658009', 'tblTempVendorCDR_20' ) start [2025-03-11 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658009', 'tblTempVendorCDR_20' ) end [2025-03-11 16:18:23] Production.INFO: ProcessCDR(1,14658009,1,1,2) [2025-03-11 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658009', 'tblTempUsageDetail_20' ) start [2025-03-11 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658009', 'tblTempUsageDetail_20' ) end [2025-03-11 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:18:28] Production.INFO: ==15924== Releasing lock... [2025-03-11 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:18:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:19:05 [end_date_ymd] => 2025-03-11 16:19:05 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:19:05' and `end` < '2025-03-11 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:19:20] Production.INFO: count ==5660 [2025-03-11 16:19:23] Production.ERROR: pbx CDR StartTime 2025-03-11 13:19:05 - End Time 2025-03-11 16:19:05 [2025-03-11 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658014', 'tblTempUsageDetail_20' ) start [2025-03-11 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658014', 'tblTempUsageDetail_20' ) end [2025-03-11 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658014', 'tblTempVendorCDR_20' ) start [2025-03-11 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658014', 'tblTempVendorCDR_20' ) end [2025-03-11 16:19:23] Production.INFO: ProcessCDR(1,14658014,1,1,2) [2025-03-11 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658014', 'tblTempUsageDetail_20' ) start [2025-03-11 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658014', 'tblTempUsageDetail_20' ) end [2025-03-11 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:19:28] Production.INFO: ==15998== Releasing lock... [2025-03-11 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:19:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:20:06 [end_date_ymd] => 2025-03-11 16:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:20:06' and `end` < '2025-03-11 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-11 16:20:19] Production.INFO: count ==5659 [2025-03-11 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:20:06 - End Time 2025-03-11 16:20:06 [2025-03-11 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658020', 'tblTempUsageDetail_20' ) start [2025-03-11 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658020', 'tblTempUsageDetail_20' ) end [2025-03-11 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658020', 'tblTempVendorCDR_20' ) start [2025-03-11 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658020', 'tblTempVendorCDR_20' ) end [2025-03-11 16:20:22] Production.INFO: ProcessCDR(1,14658020,1,1,2) [2025-03-11 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658020', 'tblTempUsageDetail_20' ) start [2025-03-11 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658020', 'tblTempUsageDetail_20' ) end [2025-03-11 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:20:27] Production.INFO: ==16114== Releasing lock... [2025-03-11 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:20:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:21:06 [end_date_ymd] => 2025-03-11 16:21:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:21:06' and `end` < '2025-03-11 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-11 16:21:19] Production.INFO: count ==5713 [2025-03-11 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:21:06 - End Time 2025-03-11 16:21:06 [2025-03-11 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658025', 'tblTempUsageDetail_20' ) start [2025-03-11 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658025', 'tblTempUsageDetail_20' ) end [2025-03-11 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658025', 'tblTempVendorCDR_20' ) start [2025-03-11 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658025', 'tblTempVendorCDR_20' ) end [2025-03-11 16:21:22] Production.INFO: ProcessCDR(1,14658025,1,1,2) [2025-03-11 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658025', 'tblTempUsageDetail_20' ) start [2025-03-11 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658025', 'tblTempUsageDetail_20' ) end [2025-03-11 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:21:27] Production.INFO: ==16185== Releasing lock... [2025-03-11 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:21:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-11 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:22:05 [end_date_ymd] => 2025-03-11 16:22:05 [RateCDR] => 1 ) [2025-03-11 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:22:05' and `end` < '2025-03-11 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:22:20] Production.INFO: count ==5725 [2025-03-11 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:22:05 - End Time 2025-03-11 16:22:05 [2025-03-11 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658030', 'tblTempUsageDetail_20' ) start [2025-03-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658030', 'tblTempUsageDetail_20' ) end [2025-03-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658030', 'tblTempVendorCDR_20' ) start [2025-03-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658030', 'tblTempVendorCDR_20' ) end [2025-03-11 16:22:22] Production.INFO: ProcessCDR(1,14658030,1,1,2) [2025-03-11 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658030', 'tblTempUsageDetail_20' ) start [2025-03-11 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658030', 'tblTempUsageDetail_20' ) end [2025-03-11 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:22:27] Production.INFO: ==16256== Releasing lock... [2025-03-11 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:22:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-11 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:23:06 [end_date_ymd] => 2025-03-11 16:23:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:23:06' and `end` < '2025-03-11 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-11 16:23:19] Production.INFO: count ==5735 [2025-03-11 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:23:06 - End Time 2025-03-11 16:23:06 [2025-03-11 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658035', 'tblTempUsageDetail_20' ) start [2025-03-11 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658035', 'tblTempUsageDetail_20' ) end [2025-03-11 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658035', 'tblTempVendorCDR_20' ) start [2025-03-11 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658035', 'tblTempVendorCDR_20' ) end [2025-03-11 16:23:22] Production.INFO: ProcessCDR(1,14658035,1,1,2) [2025-03-11 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658035', 'tblTempUsageDetail_20' ) start [2025-03-11 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658035', 'tblTempUsageDetail_20' ) end [2025-03-11 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:23:25] Production.INFO: ==16327== Releasing lock... [2025-03-11 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:23:25] Production.INFO: 71 MB #Memory Used# [2025-03-11 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:24:05 [end_date_ymd] => 2025-03-11 16:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:24:05' and `end` < '2025-03-11 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-11 16:24:19] Production.INFO: count ==5742 [2025-03-11 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:24:05 - End Time 2025-03-11 16:24:05 [2025-03-11 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658040', 'tblTempUsageDetail_20' ) start [2025-03-11 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658040', 'tblTempUsageDetail_20' ) end [2025-03-11 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658040', 'tblTempVendorCDR_20' ) start [2025-03-11 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658040', 'tblTempVendorCDR_20' ) end [2025-03-11 16:24:21] Production.INFO: ProcessCDR(1,14658040,1,1,2) [2025-03-11 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658040', 'tblTempUsageDetail_20' ) start [2025-03-11 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658040', 'tblTempUsageDetail_20' ) end [2025-03-11 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:24:27] Production.INFO: ==16400== Releasing lock... [2025-03-11 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:24:27] Production.INFO: 71 MB #Memory Used# [2025-03-11 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:25:05 [end_date_ymd] => 2025-03-11 16:25:05 [RateCDR] => 1 ) [2025-03-11 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:25:05' and `end` < '2025-03-11 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:25:19] Production.INFO: count ==5745 [2025-03-11 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:25:05 - End Time 2025-03-11 16:25:05 [2025-03-11 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658045', 'tblTempUsageDetail_20' ) start [2025-03-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658045', 'tblTempUsageDetail_20' ) end [2025-03-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658045', 'tblTempVendorCDR_20' ) start [2025-03-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658045', 'tblTempVendorCDR_20' ) end [2025-03-11 16:25:21] Production.INFO: ProcessCDR(1,14658045,1,1,2) [2025-03-11 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658045', 'tblTempUsageDetail_20' ) start [2025-03-11 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658045', 'tblTempUsageDetail_20' ) end [2025-03-11 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:25:27] Production.INFO: ==16471== Releasing lock... [2025-03-11 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:25:27] Production.INFO: 71 MB #Memory Used# [2025-03-11 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:26:05 [end_date_ymd] => 2025-03-11 16:26:05 [RateCDR] => 1 ) [2025-03-11 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:26:05' and `end` < '2025-03-11 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:26:18] Production.INFO: count ==5790 [2025-03-11 16:26:20] Production.ERROR: pbx CDR StartTime 2025-03-11 13:26:05 - End Time 2025-03-11 16:26:05 [2025-03-11 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658050', 'tblTempUsageDetail_20' ) start [2025-03-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658050', 'tblTempUsageDetail_20' ) end [2025-03-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658050', 'tblTempVendorCDR_20' ) start [2025-03-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658050', 'tblTempVendorCDR_20' ) end [2025-03-11 16:26:21] Production.INFO: ProcessCDR(1,14658050,1,1,2) [2025-03-11 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658050', 'tblTempUsageDetail_20' ) start [2025-03-11 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658050', 'tblTempUsageDetail_20' ) end [2025-03-11 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:26:26] Production.INFO: ==16546== Releasing lock... [2025-03-11 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:26:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:27:05 [end_date_ymd] => 2025-03-11 16:27:05 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:27:05' and `end` < '2025-03-11 16: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-11 16:27:18] Production.INFO: count ==5792 [2025-03-11 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:27:05 - End Time 2025-03-11 16:27:05 [2025-03-11 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658055', 'tblTempUsageDetail_20' ) start [2025-03-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658055', 'tblTempUsageDetail_20' ) end [2025-03-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658055', 'tblTempVendorCDR_20' ) start [2025-03-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658055', 'tblTempVendorCDR_20' ) end [2025-03-11 16:27:21] Production.INFO: ProcessCDR(1,14658055,1,1,2) [2025-03-11 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658055', 'tblTempUsageDetail_20' ) start [2025-03-11 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658055', 'tblTempUsageDetail_20' ) end [2025-03-11 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:27:26] Production.INFO: ==16617== Releasing lock... [2025-03-11 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:27:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-11 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:28:04 [end_date_ymd] => 2025-03-11 16:28:04 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:28:04' and `end` < '2025-03-11 16: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-11 16:28:18] Production.INFO: count ==5802 [2025-03-11 16:28:20] Production.ERROR: pbx CDR StartTime 2025-03-11 13:28:04 - End Time 2025-03-11 16:28:04 [2025-03-11 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658060', 'tblTempUsageDetail_20' ) start [2025-03-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658060', 'tblTempUsageDetail_20' ) end [2025-03-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658060', 'tblTempVendorCDR_20' ) start [2025-03-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658060', 'tblTempVendorCDR_20' ) end [2025-03-11 16:28:21] Production.INFO: ProcessCDR(1,14658060,1,1,2) [2025-03-11 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658060', 'tblTempUsageDetail_20' ) start [2025-03-11 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658060', 'tblTempUsageDetail_20' ) end [2025-03-11 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:28:26] Production.INFO: ==16693== Releasing lock... [2025-03-11 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:28:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:29:05 [end_date_ymd] => 2025-03-11 16:29:05 [RateCDR] => 1 ) [2025-03-11 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:29:05' and `end` < '2025-03-11 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:29:18] Production.INFO: count ==5811 [2025-03-11 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:29:05 - End Time 2025-03-11 16:29:05 [2025-03-11 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658065', 'tblTempUsageDetail_20' ) start [2025-03-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658065', 'tblTempUsageDetail_20' ) end [2025-03-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658065', 'tblTempVendorCDR_20' ) start [2025-03-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658065', 'tblTempVendorCDR_20' ) end [2025-03-11 16:29:21] Production.INFO: ProcessCDR(1,14658065,1,1,2) [2025-03-11 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658065', 'tblTempUsageDetail_20' ) start [2025-03-11 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658065', 'tblTempUsageDetail_20' ) end [2025-03-11 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:29:26] Production.INFO: ==16769== Releasing lock... [2025-03-11 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:29:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:30:06 [end_date_ymd] => 2025-03-11 16:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:30:06' and `end` < '2025-03-11 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-11 16:30:20] Production.INFO: count ==5861 [2025-03-11 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:30:06 - End Time 2025-03-11 16:30:06 [2025-03-11 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658071', 'tblTempUsageDetail_20' ) start [2025-03-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658071', 'tblTempUsageDetail_20' ) end [2025-03-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658071', 'tblTempVendorCDR_20' ) start [2025-03-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658071', 'tblTempVendorCDR_20' ) end [2025-03-11 16:30:22] Production.INFO: ProcessCDR(1,14658071,1,1,2) [2025-03-11 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658071', 'tblTempUsageDetail_20' ) start [2025-03-11 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658071', 'tblTempUsageDetail_20' ) end [2025-03-11 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:30:27] Production.INFO: ==16842== Releasing lock... [2025-03-11 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:30:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:31:05 [end_date_ymd] => 2025-03-11 16:31:05 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:31:05' and `end` < '2025-03-11 16: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-11 16:31:18] Production.INFO: count ==5899 [2025-03-11 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:31:05 - End Time 2025-03-11 16:31:05 [2025-03-11 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658076', 'tblTempUsageDetail_20' ) start [2025-03-11 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658076', 'tblTempUsageDetail_20' ) end [2025-03-11 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658076', 'tblTempVendorCDR_20' ) start [2025-03-11 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658076', 'tblTempVendorCDR_20' ) end [2025-03-11 16:31:21] Production.INFO: ProcessCDR(1,14658076,1,1,2) [2025-03-11 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658076', 'tblTempUsageDetail_20' ) start [2025-03-11 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658076', 'tblTempUsageDetail_20' ) end [2025-03-11 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:31:26] Production.INFO: ==16913== Releasing lock... [2025-03-11 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:31:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-11 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:32:06 [end_date_ymd] => 2025-03-11 16:32:06 [RateCDR] => 1 ) [2025-03-11 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:32:06' and `end` < '2025-03-11 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:32:19] Production.INFO: count ==5916 [2025-03-11 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:32:06 - End Time 2025-03-11 16:32:06 [2025-03-11 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658081', 'tblTempUsageDetail_20' ) start [2025-03-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658081', 'tblTempUsageDetail_20' ) end [2025-03-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658081', 'tblTempVendorCDR_20' ) start [2025-03-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658081', 'tblTempVendorCDR_20' ) end [2025-03-11 16:32:22] Production.INFO: ProcessCDR(1,14658081,1,1,2) [2025-03-11 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658081', 'tblTempUsageDetail_20' ) start [2025-03-11 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658081', 'tblTempUsageDetail_20' ) end [2025-03-11 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:32:27] Production.INFO: ==16984== Releasing lock... [2025-03-11 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:32:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-11 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:33:05 [end_date_ymd] => 2025-03-11 16:33:05 [RateCDR] => 1 ) [2025-03-11 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:33:05' and `end` < '2025-03-11 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:33:18] Production.INFO: count ==5958 [2025-03-11 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:33:05 - End Time 2025-03-11 16:33:05 [2025-03-11 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658086', 'tblTempUsageDetail_20' ) start [2025-03-11 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658086', 'tblTempUsageDetail_20' ) end [2025-03-11 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658086', 'tblTempVendorCDR_20' ) start [2025-03-11 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658086', 'tblTempVendorCDR_20' ) end [2025-03-11 16:33:21] Production.INFO: ProcessCDR(1,14658086,1,1,2) [2025-03-11 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658086', 'tblTempUsageDetail_20' ) start [2025-03-11 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658086', 'tblTempUsageDetail_20' ) end [2025-03-11 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:33:27] Production.INFO: ==17054== Releasing lock... [2025-03-11 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:33:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-11 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:34:06 [end_date_ymd] => 2025-03-11 16:34:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:34:06' and `end` < '2025-03-11 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-11 16:34:19] Production.INFO: count ==5957 [2025-03-11 16:34:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:34:06 - End Time 2025-03-11 16:34:06 [2025-03-11 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658091', 'tblTempUsageDetail_20' ) start [2025-03-11 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658091', 'tblTempUsageDetail_20' ) end [2025-03-11 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658091', 'tblTempVendorCDR_20' ) start [2025-03-11 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658091', 'tblTempVendorCDR_20' ) end [2025-03-11 16:34:22] Production.INFO: ProcessCDR(1,14658091,1,1,2) [2025-03-11 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658091', 'tblTempUsageDetail_20' ) start [2025-03-11 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658091', 'tblTempUsageDetail_20' ) end [2025-03-11 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:34:27] Production.INFO: ==17126== Releasing lock... [2025-03-11 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:34:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-11 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:35:05 [end_date_ymd] => 2025-03-11 16:35:05 [RateCDR] => 1 ) [2025-03-11 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:35:05' and `end` < '2025-03-11 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:35:18] Production.INFO: count ==5988 [2025-03-11 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:35:05 - End Time 2025-03-11 16:35:05 [2025-03-11 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658096', 'tblTempUsageDetail_20' ) start [2025-03-11 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658096', 'tblTempUsageDetail_20' ) end [2025-03-11 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658096', 'tblTempVendorCDR_20' ) start [2025-03-11 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658096', 'tblTempVendorCDR_20' ) end [2025-03-11 16:35:21] Production.INFO: ProcessCDR(1,14658096,1,1,2) [2025-03-11 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658096', 'tblTempUsageDetail_20' ) start [2025-03-11 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658096', 'tblTempUsageDetail_20' ) end [2025-03-11 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:35:27] Production.INFO: ==17237== Releasing lock... [2025-03-11 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:35:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:36:06 [end_date_ymd] => 2025-03-11 16:36:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:36:06' and `end` < '2025-03-11 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-11 16:36:20] Production.INFO: count ==6003 [2025-03-11 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:36:06 - End Time 2025-03-11 16:36:06 [2025-03-11 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658101', 'tblTempUsageDetail_20' ) start [2025-03-11 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658101', 'tblTempUsageDetail_20' ) end [2025-03-11 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658101', 'tblTempVendorCDR_20' ) start [2025-03-11 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658101', 'tblTempVendorCDR_20' ) end [2025-03-11 16:36:22] Production.INFO: ProcessCDR(1,14658101,1,1,2) [2025-03-11 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658101', 'tblTempUsageDetail_20' ) start [2025-03-11 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658101', 'tblTempUsageDetail_20' ) end [2025-03-11 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:36:27] Production.INFO: ==17307== Releasing lock... [2025-03-11 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:36:27] Production.INFO: 73 MB #Memory Used# [2025-03-11 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:37:05 [end_date_ymd] => 2025-03-11 16:37:05 [RateCDR] => 1 ) [2025-03-11 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:37:05' and `end` < '2025-03-11 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:37:19] Production.INFO: count ==5979 [2025-03-11 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:37:05 - End Time 2025-03-11 16:37:05 [2025-03-11 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658106', 'tblTempUsageDetail_20' ) start [2025-03-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658106', 'tblTempUsageDetail_20' ) end [2025-03-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658106', 'tblTempVendorCDR_20' ) start [2025-03-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658106', 'tblTempVendorCDR_20' ) end [2025-03-11 16:37:21] Production.INFO: ProcessCDR(1,14658106,1,1,2) [2025-03-11 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658106', 'tblTempUsageDetail_20' ) start [2025-03-11 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658106', 'tblTempUsageDetail_20' ) end [2025-03-11 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:37:26] Production.INFO: ==17384== Releasing lock... [2025-03-11 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:37:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:38:06 [end_date_ymd] => 2025-03-11 16:38:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:38:06' and `end` < '2025-03-11 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-11 16:38:19] Production.INFO: count ==5989 [2025-03-11 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:38:06 - End Time 2025-03-11 16:38:06 [2025-03-11 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658111', 'tblTempUsageDetail_20' ) start [2025-03-11 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658111', 'tblTempUsageDetail_20' ) end [2025-03-11 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658111', 'tblTempVendorCDR_20' ) start [2025-03-11 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658111', 'tblTempVendorCDR_20' ) end [2025-03-11 16:38:22] Production.INFO: ProcessCDR(1,14658111,1,1,2) [2025-03-11 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658111', 'tblTempUsageDetail_20' ) start [2025-03-11 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658111', 'tblTempUsageDetail_20' ) end [2025-03-11 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:38:27] Production.INFO: ==17458== Releasing lock... [2025-03-11 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:38:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:39:05 [end_date_ymd] => 2025-03-11 16:39:05 [RateCDR] => 1 ) [2025-03-11 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:39:05' and `end` < '2025-03-11 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:39:19] Production.INFO: count ==6003 [2025-03-11 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:39:05 - End Time 2025-03-11 16:39:05 [2025-03-11 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658116', 'tblTempUsageDetail_20' ) start [2025-03-11 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658116', 'tblTempUsageDetail_20' ) end [2025-03-11 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658116', 'tblTempVendorCDR_20' ) start [2025-03-11 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658116', 'tblTempVendorCDR_20' ) end [2025-03-11 16:39:21] Production.INFO: ProcessCDR(1,14658116,1,1,2) [2025-03-11 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658116', 'tblTempUsageDetail_20' ) start [2025-03-11 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658116', 'tblTempUsageDetail_20' ) end [2025-03-11 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:39:27] Production.INFO: ==17533== Releasing lock... [2025-03-11 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:39:27] Production.INFO: 73 MB #Memory Used# [2025-03-11 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:40:06 [end_date_ymd] => 2025-03-11 16:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:40:06' and `end` < '2025-03-11 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-11 16:40:19] Production.INFO: count ==6027 [2025-03-11 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:40:06 - End Time 2025-03-11 16:40:06 [2025-03-11 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658121', 'tblTempUsageDetail_20' ) start [2025-03-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658121', 'tblTempUsageDetail_20' ) end [2025-03-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658121', 'tblTempVendorCDR_20' ) start [2025-03-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658121', 'tblTempVendorCDR_20' ) end [2025-03-11 16:40:22] Production.INFO: ProcessCDR(1,14658121,1,1,2) [2025-03-11 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658121', 'tblTempUsageDetail_20' ) start [2025-03-11 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658121', 'tblTempUsageDetail_20' ) end [2025-03-11 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:40:27] Production.INFO: ==17607== Releasing lock... [2025-03-11 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:40:27] Production.INFO: 73 MB #Memory Used# [2025-03-11 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:41:05 [end_date_ymd] => 2025-03-11 16:41:05 [RateCDR] => 1 ) [2025-03-11 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:41:05' and `end` < '2025-03-11 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:41:19] Production.INFO: count ==6174 [2025-03-11 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:41:05 - End Time 2025-03-11 16:41:05 [2025-03-11 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658127', 'tblTempUsageDetail_20' ) start [2025-03-11 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658127', 'tblTempUsageDetail_20' ) end [2025-03-11 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658127', 'tblTempVendorCDR_20' ) start [2025-03-11 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658127', 'tblTempVendorCDR_20' ) end [2025-03-11 16:41:22] Production.INFO: ProcessCDR(1,14658127,1,1,2) [2025-03-11 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658127', 'tblTempUsageDetail_20' ) start [2025-03-11 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658127', 'tblTempUsageDetail_20' ) end [2025-03-11 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:41:27] Production.INFO: ==17685== Releasing lock... [2025-03-11 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:41:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-11 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:42:06 [end_date_ymd] => 2025-03-11 16:42:06 [RateCDR] => 1 ) [2025-03-11 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:42:06' and `end` < '2025-03-11 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:42:19] Production.INFO: count ==6217 [2025-03-11 16:42:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:42:06 - End Time 2025-03-11 16:42:06 [2025-03-11 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658132', 'tblTempUsageDetail_20' ) start [2025-03-11 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658132', 'tblTempUsageDetail_20' ) end [2025-03-11 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658132', 'tblTempVendorCDR_20' ) start [2025-03-11 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658132', 'tblTempVendorCDR_20' ) end [2025-03-11 16:42:22] Production.INFO: ProcessCDR(1,14658132,1,1,2) [2025-03-11 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658132', 'tblTempUsageDetail_20' ) start [2025-03-11 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658132', 'tblTempUsageDetail_20' ) end [2025-03-11 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:42:27] Production.INFO: ==17759== Releasing lock... [2025-03-11 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:42:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:43:05 [end_date_ymd] => 2025-03-11 16:43:05 [RateCDR] => 1 ) [2025-03-11 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:43:05' and `end` < '2025-03-11 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:43:19] Production.INFO: count ==6210 [2025-03-11 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:43:05 - End Time 2025-03-11 16:43:05 [2025-03-11 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658137', 'tblTempUsageDetail_20' ) start [2025-03-11 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658137', 'tblTempUsageDetail_20' ) end [2025-03-11 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658137', 'tblTempVendorCDR_20' ) start [2025-03-11 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658137', 'tblTempVendorCDR_20' ) end [2025-03-11 16:43:22] Production.INFO: ProcessCDR(1,14658137,1,1,2) [2025-03-11 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658137', 'tblTempUsageDetail_20' ) start [2025-03-11 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658137', 'tblTempUsageDetail_20' ) end [2025-03-11 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:43:27] Production.INFO: ==17829== Releasing lock... [2025-03-11 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:43:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:44:06 [end_date_ymd] => 2025-03-11 16:44:06 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:44:06' and `end` < '2025-03-11 16: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-11 16:44:20] Production.INFO: count ==6205 [2025-03-11 16:44:23] Production.ERROR: pbx CDR StartTime 2025-03-11 13:44:06 - End Time 2025-03-11 16:44:06 [2025-03-11 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658142', 'tblTempUsageDetail_20' ) start [2025-03-11 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658142', 'tblTempUsageDetail_20' ) end [2025-03-11 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658142', 'tblTempVendorCDR_20' ) start [2025-03-11 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658142', 'tblTempVendorCDR_20' ) end [2025-03-11 16:44:23] Production.INFO: ProcessCDR(1,14658142,1,1,2) [2025-03-11 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658142', 'tblTempUsageDetail_20' ) start [2025-03-11 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658142', 'tblTempUsageDetail_20' ) end [2025-03-11 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:44:28] Production.INFO: ==17899== Releasing lock... [2025-03-11 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:44:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:45:05 [end_date_ymd] => 2025-03-11 16:45:05 [RateCDR] => 1 ) [2025-03-11 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:45:05' and `end` < '2025-03-11 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:45:19] Production.INFO: count ==6215 [2025-03-11 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:45:05 - End Time 2025-03-11 16:45:05 [2025-03-11 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658147', 'tblTempUsageDetail_20' ) start [2025-03-11 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658147', 'tblTempUsageDetail_20' ) end [2025-03-11 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658147', 'tblTempVendorCDR_20' ) start [2025-03-11 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658147', 'tblTempVendorCDR_20' ) end [2025-03-11 16:45:22] Production.INFO: ProcessCDR(1,14658147,1,1,2) [2025-03-11 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658147', 'tblTempUsageDetail_20' ) start [2025-03-11 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658147', 'tblTempUsageDetail_20' ) end [2025-03-11 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:45:27] Production.INFO: ==17972== Releasing lock... [2025-03-11 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:45:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:46:05 [end_date_ymd] => 2025-03-11 16:46:05 [RateCDR] => 1 ) [2025-03-11 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:46:05' and `end` < '2025-03-11 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:46:19] Production.INFO: count ==6216 [2025-03-11 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:46:05 - End Time 2025-03-11 16:46:05 [2025-03-11 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658152', 'tblTempUsageDetail_20' ) start [2025-03-11 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658152', 'tblTempUsageDetail_20' ) end [2025-03-11 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658152', 'tblTempVendorCDR_20' ) start [2025-03-11 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658152', 'tblTempVendorCDR_20' ) end [2025-03-11 16:46:22] Production.INFO: ProcessCDR(1,14658152,1,1,2) [2025-03-11 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658152', 'tblTempUsageDetail_20' ) start [2025-03-11 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658152', 'tblTempUsageDetail_20' ) end [2025-03-11 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:46:27] Production.INFO: ==18042== Releasing lock... [2025-03-11 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:46:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:47:05 [end_date_ymd] => 2025-03-11 16:47:05 [RateCDR] => 1 ) [2025-03-11 16: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-11 13:47:05' and `end` < '2025-03-11 16: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-11 16:47:18] Production.INFO: count ==6221 [2025-03-11 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:47:05 - End Time 2025-03-11 16:47:05 [2025-03-11 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658157', 'tblTempUsageDetail_20' ) start [2025-03-11 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658157', 'tblTempUsageDetail_20' ) end [2025-03-11 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658157', 'tblTempVendorCDR_20' ) start [2025-03-11 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658157', 'tblTempVendorCDR_20' ) end [2025-03-11 16:47:21] Production.INFO: ProcessCDR(1,14658157,1,1,2) [2025-03-11 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658157', 'tblTempUsageDetail_20' ) start [2025-03-11 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658157', 'tblTempUsageDetail_20' ) end [2025-03-11 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:47:26] Production.INFO: ==18114== Releasing lock... [2025-03-11 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:47:26] Production.INFO: 74.5 MB #Memory Used# [2025-03-11 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:48:05 [end_date_ymd] => 2025-03-11 16:48:05 [RateCDR] => 1 ) [2025-03-11 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:48:05' and `end` < '2025-03-11 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:48:19] Production.INFO: count ==6246 [2025-03-11 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:48:05 - End Time 2025-03-11 16:48:05 [2025-03-11 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658162', 'tblTempUsageDetail_20' ) start [2025-03-11 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658162', 'tblTempUsageDetail_20' ) end [2025-03-11 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658162', 'tblTempVendorCDR_20' ) start [2025-03-11 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658162', 'tblTempVendorCDR_20' ) end [2025-03-11 16:48:22] Production.INFO: ProcessCDR(1,14658162,1,1,2) [2025-03-11 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658162', 'tblTempUsageDetail_20' ) start [2025-03-11 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658162', 'tblTempUsageDetail_20' ) end [2025-03-11 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:48:28] Production.INFO: ==18185== Releasing lock... [2025-03-11 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:48:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-11 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:49:05 [end_date_ymd] => 2025-03-11 16:49:05 [RateCDR] => 1 ) [2025-03-11 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:49:05' and `end` < '2025-03-11 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:49:18] Production.INFO: count ==6281 [2025-03-11 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:49:05 - End Time 2025-03-11 16:49:05 [2025-03-11 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658167', 'tblTempUsageDetail_20' ) start [2025-03-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658167', 'tblTempUsageDetail_20' ) end [2025-03-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658167', 'tblTempVendorCDR_20' ) start [2025-03-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658167', 'tblTempVendorCDR_20' ) end [2025-03-11 16:49:21] Production.INFO: ProcessCDR(1,14658167,1,1,2) [2025-03-11 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658167', 'tblTempUsageDetail_20' ) start [2025-03-11 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658167', 'tblTempUsageDetail_20' ) end [2025-03-11 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:49:26] Production.INFO: ==18259== Releasing lock... [2025-03-11 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:49:26] Production.INFO: 75 MB #Memory Used# [2025-03-11 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:50:06 [end_date_ymd] => 2025-03-11 16:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:50:06' and `end` < '2025-03-11 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-11 16:50:19] Production.INFO: count ==6273 [2025-03-11 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:50:06 - End Time 2025-03-11 16:50:06 [2025-03-11 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658172', 'tblTempUsageDetail_20' ) start [2025-03-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658172', 'tblTempUsageDetail_20' ) end [2025-03-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658172', 'tblTempVendorCDR_20' ) start [2025-03-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658172', 'tblTempVendorCDR_20' ) end [2025-03-11 16:50:22] Production.INFO: ProcessCDR(1,14658172,1,1,2) [2025-03-11 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658172', 'tblTempUsageDetail_20' ) start [2025-03-11 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658172', 'tblTempUsageDetail_20' ) end [2025-03-11 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:50:27] Production.INFO: ==18332== Releasing lock... [2025-03-11 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:50:27] Production.INFO: 75 MB #Memory Used# [2025-03-11 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:51:05 [end_date_ymd] => 2025-03-11 16:51:05 [RateCDR] => 1 ) [2025-03-11 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:51:05' and `end` < '2025-03-11 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:51:19] Production.INFO: count ==6284 [2025-03-11 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:51:05 - End Time 2025-03-11 16:51:05 [2025-03-11 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658178', 'tblTempUsageDetail_20' ) start [2025-03-11 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658178', 'tblTempUsageDetail_20' ) end [2025-03-11 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658178', 'tblTempVendorCDR_20' ) start [2025-03-11 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658178', 'tblTempVendorCDR_20' ) end [2025-03-11 16:51:22] Production.INFO: ProcessCDR(1,14658178,1,1,2) [2025-03-11 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658178', 'tblTempUsageDetail_20' ) start [2025-03-11 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658178', 'tblTempUsageDetail_20' ) end [2025-03-11 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:51:27] Production.INFO: ==18443== Releasing lock... [2025-03-11 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:51:27] Production.INFO: 75 MB #Memory Used# [2025-03-11 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:52:06 [end_date_ymd] => 2025-03-11 16:52:06 [RateCDR] => 1 ) [2025-03-11 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-11 13:52:06' and `end` < '2025-03-11 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-11 16:52:19] Production.INFO: count ==6295 [2025-03-11 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:52:06 - End Time 2025-03-11 16:52:06 [2025-03-11 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658183', 'tblTempUsageDetail_20' ) start [2025-03-11 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658183', 'tblTempUsageDetail_20' ) end [2025-03-11 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658183', 'tblTempVendorCDR_20' ) start [2025-03-11 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658183', 'tblTempVendorCDR_20' ) end [2025-03-11 16:52:22] Production.INFO: ProcessCDR(1,14658183,1,1,2) [2025-03-11 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658183', 'tblTempUsageDetail_20' ) start [2025-03-11 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658183', 'tblTempUsageDetail_20' ) end [2025-03-11 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:52:28] Production.INFO: ==18516== Releasing lock... [2025-03-11 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:52:28] Production.INFO: 75 MB #Memory Used# [2025-03-11 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:53:05 [end_date_ymd] => 2025-03-11 16:53:05 [RateCDR] => 1 ) [2025-03-11 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:53:05' and `end` < '2025-03-11 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:53:18] Production.INFO: count ==6304 [2025-03-11 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:53:05 - End Time 2025-03-11 16:53:05 [2025-03-11 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658188', 'tblTempUsageDetail_20' ) start [2025-03-11 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658188', 'tblTempUsageDetail_20' ) end [2025-03-11 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658188', 'tblTempVendorCDR_20' ) start [2025-03-11 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658188', 'tblTempVendorCDR_20' ) end [2025-03-11 16:53:21] Production.INFO: ProcessCDR(1,14658188,1,1,2) [2025-03-11 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658188', 'tblTempUsageDetail_20' ) start [2025-03-11 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658188', 'tblTempUsageDetail_20' ) end [2025-03-11 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:53:26] Production.INFO: ==18589== Releasing lock... [2025-03-11 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:53:26] Production.INFO: 75.25 MB #Memory Used# [2025-03-11 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:54:05 [end_date_ymd] => 2025-03-11 16:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 13:54:05' and `end` < '2025-03-11 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-11 16:54:19] Production.INFO: count ==6373 [2025-03-11 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:54:05 - End Time 2025-03-11 16:54:05 [2025-03-11 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658193', 'tblTempUsageDetail_20' ) start [2025-03-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658193', 'tblTempUsageDetail_20' ) end [2025-03-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658193', 'tblTempVendorCDR_20' ) start [2025-03-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658193', 'tblTempVendorCDR_20' ) end [2025-03-11 16:54:21] Production.INFO: ProcessCDR(1,14658193,1,1,2) [2025-03-11 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658193', 'tblTempUsageDetail_20' ) start [2025-03-11 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658193', 'tblTempUsageDetail_20' ) end [2025-03-11 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:54:25] Production.INFO: ==18666== Releasing lock... [2025-03-11 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:54:25] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:55:04 [end_date_ymd] => 2025-03-11 16:55:04 [RateCDR] => 1 ) [2025-03-11 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:55:04' and `end` < '2025-03-11 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:55:18] Production.INFO: count ==6379 [2025-03-11 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:55:04 - End Time 2025-03-11 16:55:04 [2025-03-11 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658198', 'tblTempUsageDetail_20' ) start [2025-03-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658198', 'tblTempUsageDetail_20' ) end [2025-03-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658198', 'tblTempVendorCDR_20' ) start [2025-03-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658198', 'tblTempVendorCDR_20' ) end [2025-03-11 16:55:21] Production.INFO: ProcessCDR(1,14658198,1,1,2) [2025-03-11 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658198', 'tblTempUsageDetail_20' ) start [2025-03-11 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658198', 'tblTempUsageDetail_20' ) end [2025-03-11 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:55:26] Production.INFO: ==18738== Releasing lock... [2025-03-11 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:55:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:56:05 [end_date_ymd] => 2025-03-11 16:56:05 [RateCDR] => 1 ) [2025-03-11 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:56:05' and `end` < '2025-03-11 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:56:19] Production.INFO: count ==6391 [2025-03-11 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-11 13:56:05 - End Time 2025-03-11 16:56:05 [2025-03-11 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658203', 'tblTempUsageDetail_20' ) start [2025-03-11 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658203', 'tblTempUsageDetail_20' ) end [2025-03-11 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658203', 'tblTempVendorCDR_20' ) start [2025-03-11 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658203', 'tblTempVendorCDR_20' ) end [2025-03-11 16:56:22] Production.INFO: ProcessCDR(1,14658203,1,1,2) [2025-03-11 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658203', 'tblTempUsageDetail_20' ) start [2025-03-11 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658203', 'tblTempUsageDetail_20' ) end [2025-03-11 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:56:27] Production.INFO: ==18813== Releasing lock... [2025-03-11 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:56:27] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:57:04 [end_date_ymd] => 2025-03-11 16:57:04 [RateCDR] => 1 ) [2025-03-11 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:57:04' and `end` < '2025-03-11 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:57:18] Production.INFO: count ==6418 [2025-03-11 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-11 13:57:04 - End Time 2025-03-11 16:57:04 [2025-03-11 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658208', 'tblTempUsageDetail_20' ) start [2025-03-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658208', 'tblTempUsageDetail_20' ) end [2025-03-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658208', 'tblTempVendorCDR_20' ) start [2025-03-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658208', 'tblTempVendorCDR_20' ) end [2025-03-11 16:57:21] Production.INFO: ProcessCDR(1,14658208,1,1,2) [2025-03-11 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658208', 'tblTempUsageDetail_20' ) start [2025-03-11 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658208', 'tblTempUsageDetail_20' ) end [2025-03-11 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:57:24] Production.INFO: ==18886== Releasing lock... [2025-03-11 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:57:24] Production.INFO: 76 MB #Memory Used# [2025-03-11 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:58:05 [end_date_ymd] => 2025-03-11 16:58:05 [RateCDR] => 1 ) [2025-03-11 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:58:05' and `end` < '2025-03-11 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:58:18] Production.INFO: count ==6421 [2025-03-11 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:58:05 - End Time 2025-03-11 16:58:05 [2025-03-11 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658213', 'tblTempUsageDetail_20' ) start [2025-03-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658213', 'tblTempUsageDetail_20' ) end [2025-03-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658213', 'tblTempVendorCDR_20' ) start [2025-03-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658213', 'tblTempVendorCDR_20' ) end [2025-03-11 16:58:21] Production.INFO: ProcessCDR(1,14658213,1,1,2) [2025-03-11 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658213', 'tblTempUsageDetail_20' ) start [2025-03-11 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658213', 'tblTempUsageDetail_20' ) end [2025-03-11 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:58:26] Production.INFO: ==18957== Releasing lock... [2025-03-11 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:58:26] Production.INFO: 76 MB #Memory Used# [2025-03-11 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 13:59:05 [end_date_ymd] => 2025-03-11 16:59:05 [RateCDR] => 1 ) [2025-03-11 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 13:59:05' and `end` < '2025-03-11 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 16:59:19] Production.INFO: count ==6428 [2025-03-11 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-11 13:59:05 - End Time 2025-03-11 16:59:05 [2025-03-11 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658218', 'tblTempUsageDetail_20' ) start [2025-03-11 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658218', 'tblTempUsageDetail_20' ) end [2025-03-11 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658218', 'tblTempVendorCDR_20' ) start [2025-03-11 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658218', 'tblTempVendorCDR_20' ) end [2025-03-11 16:59:22] Production.INFO: ProcessCDR(1,14658218,1,1,2) [2025-03-11 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658218', 'tblTempUsageDetail_20' ) start [2025-03-11 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658218', 'tblTempUsageDetail_20' ) end [2025-03-11 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 16:59:27] Production.INFO: ==19029== Releasing lock... [2025-03-11 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 16:59:27] Production.INFO: 76 MB #Memory Used# [2025-03-11 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:00:06 [end_date_ymd] => 2025-03-11 17:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:00:06' and `end` < '2025-03-11 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-11 17:00:19] Production.INFO: count ==6464 [2025-03-11 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:00:06 - End Time 2025-03-11 17:00:06 [2025-03-11 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658223', 'tblTempUsageDetail_20' ) start [2025-03-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658223', 'tblTempUsageDetail_20' ) end [2025-03-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658223', 'tblTempVendorCDR_20' ) start [2025-03-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658223', 'tblTempVendorCDR_20' ) end [2025-03-11 17:00:22] Production.INFO: ProcessCDR(1,14658223,1,1,2) [2025-03-11 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658223', 'tblTempUsageDetail_20' ) start [2025-03-11 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658223', 'tblTempUsageDetail_20' ) end [2025-03-11 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:00:28] Production.INFO: ==19109== Releasing lock... [2025-03-11 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:00:28] Production.INFO: 76.25 MB #Memory Used# [2025-03-11 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:01:05 [end_date_ymd] => 2025-03-11 17:01:05 [RateCDR] => 1 ) [2025-03-11 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:01:05' and `end` < '2025-03-11 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:01:19] Production.INFO: count ==6525 [2025-03-11 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:01:05 - End Time 2025-03-11 17:01:05 [2025-03-11 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658229', 'tblTempUsageDetail_20' ) start [2025-03-11 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658229', 'tblTempUsageDetail_20' ) end [2025-03-11 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658229', 'tblTempVendorCDR_20' ) start [2025-03-11 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658229', 'tblTempVendorCDR_20' ) end [2025-03-11 17:01:22] Production.INFO: ProcessCDR(1,14658229,1,1,2) [2025-03-11 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658229', 'tblTempUsageDetail_20' ) start [2025-03-11 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658229', 'tblTempUsageDetail_20' ) end [2025-03-11 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:01:27] Production.INFO: ==19195== Releasing lock... [2025-03-11 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:01:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:02:05 [end_date_ymd] => 2025-03-11 17:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:02:05' and `end` < '2025-03-11 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-11 17:02:19] Production.INFO: count ==6498 [2025-03-11 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:02:05 - End Time 2025-03-11 17:02:05 [2025-03-11 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658234', 'tblTempUsageDetail_20' ) start [2025-03-11 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658234', 'tblTempUsageDetail_20' ) end [2025-03-11 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658234', 'tblTempVendorCDR_20' ) start [2025-03-11 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658234', 'tblTempVendorCDR_20' ) end [2025-03-11 17:02:22] Production.INFO: ProcessCDR(1,14658234,1,1,2) [2025-03-11 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658234', 'tblTempUsageDetail_20' ) start [2025-03-11 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658234', 'tblTempUsageDetail_20' ) end [2025-03-11 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:02:25] Production.INFO: ==19267== Releasing lock... [2025-03-11 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:02:25] Production.INFO: 76.5 MB #Memory Used# [2025-03-11 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:03:06 [end_date_ymd] => 2025-03-11 17:03:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:03:06' and `end` < '2025-03-11 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-11 17:03:19] Production.INFO: count ==6496 [2025-03-11 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:03:06 - End Time 2025-03-11 17:03:06 [2025-03-11 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658239', 'tblTempUsageDetail_20' ) start [2025-03-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658239', 'tblTempUsageDetail_20' ) end [2025-03-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658239', 'tblTempVendorCDR_20' ) start [2025-03-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658239', 'tblTempVendorCDR_20' ) end [2025-03-11 17:03:22] Production.INFO: ProcessCDR(1,14658239,1,1,2) [2025-03-11 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658239', 'tblTempUsageDetail_20' ) start [2025-03-11 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658239', 'tblTempUsageDetail_20' ) end [2025-03-11 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:03:27] Production.INFO: ==19337== Releasing lock... [2025-03-11 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:03:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-11 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:04:05 [end_date_ymd] => 2025-03-11 17:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:04:05' and `end` < '2025-03-11 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-11 17:04:18] Production.INFO: count ==6484 [2025-03-11 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:04:05 - End Time 2025-03-11 17:04:05 [2025-03-11 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658244', 'tblTempUsageDetail_20' ) start [2025-03-11 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658244', 'tblTempUsageDetail_20' ) end [2025-03-11 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658244', 'tblTempVendorCDR_20' ) start [2025-03-11 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658244', 'tblTempVendorCDR_20' ) end [2025-03-11 17:04:21] Production.INFO: ProcessCDR(1,14658244,1,1,2) [2025-03-11 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658244', 'tblTempUsageDetail_20' ) start [2025-03-11 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658244', 'tblTempUsageDetail_20' ) end [2025-03-11 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:04:26] Production.INFO: ==19408== Releasing lock... [2025-03-11 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:04:26] Production.INFO: 76.5 MB #Memory Used# [2025-03-11 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:05:05 [end_date_ymd] => 2025-03-11 17:05:05 [RateCDR] => 1 ) [2025-03-11 17: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-11 14:05:05' and `end` < '2025-03-11 17: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-11 17:05:18] Production.INFO: count ==6491 [2025-03-11 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:05:05 - End Time 2025-03-11 17:05:05 [2025-03-11 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658249', 'tblTempUsageDetail_20' ) start [2025-03-11 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658249', 'tblTempUsageDetail_20' ) end [2025-03-11 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658249', 'tblTempVendorCDR_20' ) start [2025-03-11 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658249', 'tblTempVendorCDR_20' ) end [2025-03-11 17:05:21] Production.INFO: ProcessCDR(1,14658249,1,1,2) [2025-03-11 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658249', 'tblTempUsageDetail_20' ) start [2025-03-11 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658249', 'tblTempUsageDetail_20' ) end [2025-03-11 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:05:27] Production.INFO: ==19477== Releasing lock... [2025-03-11 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:05:27] Production.INFO: 76.5 MB #Memory Used# [2025-03-11 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:06:05 [end_date_ymd] => 2025-03-11 17:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:06:05' and `end` < '2025-03-11 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-11 17:06:18] Production.INFO: count ==6500 [2025-03-11 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:06:05 - End Time 2025-03-11 17:06:05 [2025-03-11 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658254', 'tblTempUsageDetail_20' ) start [2025-03-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658254', 'tblTempUsageDetail_20' ) end [2025-03-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658254', 'tblTempVendorCDR_20' ) start [2025-03-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658254', 'tblTempVendorCDR_20' ) end [2025-03-11 17:06:21] Production.INFO: ProcessCDR(1,14658254,1,1,2) [2025-03-11 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658254', 'tblTempUsageDetail_20' ) start [2025-03-11 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658254', 'tblTempUsageDetail_20' ) end [2025-03-11 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:06:26] Production.INFO: ==19586== Releasing lock... [2025-03-11 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:06:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:07:06 [end_date_ymd] => 2025-03-11 17:07:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:07:06' and `end` < '2025-03-11 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-11 17:07:19] Production.INFO: count ==6521 [2025-03-11 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:07:06 - End Time 2025-03-11 17:07:06 [2025-03-11 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658259', 'tblTempUsageDetail_20' ) start [2025-03-11 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658259', 'tblTempUsageDetail_20' ) end [2025-03-11 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658259', 'tblTempVendorCDR_20' ) start [2025-03-11 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658259', 'tblTempVendorCDR_20' ) end [2025-03-11 17:07:22] Production.INFO: ProcessCDR(1,14658259,1,1,2) [2025-03-11 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658259', 'tblTempUsageDetail_20' ) start [2025-03-11 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658259', 'tblTempUsageDetail_20' ) end [2025-03-11 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:07:27] Production.INFO: ==19660== Releasing lock... [2025-03-11 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:07:27] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:08:05 [end_date_ymd] => 2025-03-11 17:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:08:05' and `end` < '2025-03-11 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-11 17:08:18] Production.INFO: count ==6524 [2025-03-11 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:08:05 - End Time 2025-03-11 17:08:05 [2025-03-11 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658264', 'tblTempUsageDetail_20' ) start [2025-03-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658264', 'tblTempUsageDetail_20' ) end [2025-03-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658264', 'tblTempVendorCDR_20' ) start [2025-03-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658264', 'tblTempVendorCDR_20' ) end [2025-03-11 17:08:21] Production.INFO: ProcessCDR(1,14658264,1,1,2) [2025-03-11 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658264', 'tblTempUsageDetail_20' ) start [2025-03-11 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658264', 'tblTempUsageDetail_20' ) end [2025-03-11 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:08:26] Production.INFO: ==19736== Releasing lock... [2025-03-11 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:08:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:09:05 [end_date_ymd] => 2025-03-11 17:09:05 [RateCDR] => 1 ) [2025-03-11 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:09:05' and `end` < '2025-03-11 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:09:18] Production.INFO: count ==6543 [2025-03-11 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:09:05 - End Time 2025-03-11 17:09:05 [2025-03-11 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658269', 'tblTempUsageDetail_20' ) start [2025-03-11 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658269', 'tblTempUsageDetail_20' ) end [2025-03-11 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658269', 'tblTempVendorCDR_20' ) start [2025-03-11 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658269', 'tblTempVendorCDR_20' ) end [2025-03-11 17:09:21] Production.INFO: ProcessCDR(1,14658269,1,1,2) [2025-03-11 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658269', 'tblTempUsageDetail_20' ) start [2025-03-11 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658269', 'tblTempUsageDetail_20' ) end [2025-03-11 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:09:26] Production.INFO: ==19806== Releasing lock... [2025-03-11 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:09:26] Production.INFO: 77 MB #Memory Used# [2025-03-11 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:10:06 [end_date_ymd] => 2025-03-11 17:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:10:06' and `end` < '2025-03-11 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-11 17:10:19] Production.INFO: count ==6545 [2025-03-11 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:10:06 - End Time 2025-03-11 17:10:06 [2025-03-11 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658275', 'tblTempUsageDetail_20' ) start [2025-03-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658275', 'tblTempUsageDetail_20' ) end [2025-03-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658275', 'tblTempVendorCDR_20' ) start [2025-03-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658275', 'tblTempVendorCDR_20' ) end [2025-03-11 17:10:22] Production.INFO: ProcessCDR(1,14658275,1,1,2) [2025-03-11 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658275', 'tblTempUsageDetail_20' ) start [2025-03-11 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658275', 'tblTempUsageDetail_20' ) end [2025-03-11 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:10:27] Production.INFO: ==19880== Releasing lock... [2025-03-11 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:10:27] Production.INFO: 77 MB #Memory Used# [2025-03-11 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:11:05 [end_date_ymd] => 2025-03-11 17:11:05 [RateCDR] => 1 ) [2025-03-11 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:11:05' and `end` < '2025-03-11 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:11:18] Production.INFO: count ==6618 [2025-03-11 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:11:05 - End Time 2025-03-11 17:11:05 [2025-03-11 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658280', 'tblTempUsageDetail_20' ) start [2025-03-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658280', 'tblTempUsageDetail_20' ) end [2025-03-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658280', 'tblTempVendorCDR_20' ) start [2025-03-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658280', 'tblTempVendorCDR_20' ) end [2025-03-11 17:11:22] Production.INFO: ProcessCDR(1,14658280,1,1,2) [2025-03-11 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658280', 'tblTempUsageDetail_20' ) start [2025-03-11 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658280', 'tblTempUsageDetail_20' ) end [2025-03-11 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:11:25] Production.INFO: ==19954== Releasing lock... [2025-03-11 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:11:25] Production.INFO: 77.5 MB #Memory Used# [2025-03-11 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:12:05 [end_date_ymd] => 2025-03-11 17:12:05 [RateCDR] => 1 ) [2025-03-11 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:12:05' and `end` < '2025-03-11 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:12:18] Production.INFO: count ==6642 [2025-03-11 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:12:05 - End Time 2025-03-11 17:12:05 [2025-03-11 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658285', 'tblTempUsageDetail_20' ) start [2025-03-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658285', 'tblTempUsageDetail_20' ) end [2025-03-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658285', 'tblTempVendorCDR_20' ) start [2025-03-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658285', 'tblTempVendorCDR_20' ) end [2025-03-11 17:12:21] Production.INFO: ProcessCDR(1,14658285,1,1,2) [2025-03-11 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658285', 'tblTempUsageDetail_20' ) start [2025-03-11 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658285', 'tblTempUsageDetail_20' ) end [2025-03-11 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:12:25] Production.INFO: ==20024== Releasing lock... [2025-03-11 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:12:25] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:13:05 [end_date_ymd] => 2025-03-11 17:13:05 [RateCDR] => 1 ) [2025-03-11 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:13:05' and `end` < '2025-03-11 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:13:19] Production.INFO: count ==6638 [2025-03-11 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:13:05 - End Time 2025-03-11 17:13:05 [2025-03-11 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658290', 'tblTempUsageDetail_20' ) start [2025-03-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658290', 'tblTempUsageDetail_20' ) end [2025-03-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658290', 'tblTempVendorCDR_20' ) start [2025-03-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658290', 'tblTempVendorCDR_20' ) end [2025-03-11 17:13:21] Production.INFO: ProcessCDR(1,14658290,1,1,2) [2025-03-11 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658290', 'tblTempUsageDetail_20' ) start [2025-03-11 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658290', 'tblTempUsageDetail_20' ) end [2025-03-11 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:13:27] Production.INFO: ==20095== Releasing lock... [2025-03-11 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:13:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:14:05 [end_date_ymd] => 2025-03-11 17:14:05 [RateCDR] => 1 ) [2025-03-11 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:14:05' and `end` < '2025-03-11 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:14:18] Production.INFO: count ==6647 [2025-03-11 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:14:05 - End Time 2025-03-11 17:14:05 [2025-03-11 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658295', 'tblTempUsageDetail_20' ) start [2025-03-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658295', 'tblTempUsageDetail_20' ) end [2025-03-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658295', 'tblTempVendorCDR_20' ) start [2025-03-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658295', 'tblTempVendorCDR_20' ) end [2025-03-11 17:14:21] Production.INFO: ProcessCDR(1,14658295,1,1,2) [2025-03-11 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658295', 'tblTempUsageDetail_20' ) start [2025-03-11 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658295', 'tblTempUsageDetail_20' ) end [2025-03-11 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:14:26] Production.INFO: ==20169== Releasing lock... [2025-03-11 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:14:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:15:05 [end_date_ymd] => 2025-03-11 17:15:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:15:05' and `end` < '2025-03-11 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-11 17:15:18] Production.INFO: count ==6655 [2025-03-11 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:15:05 - End Time 2025-03-11 17:15:05 [2025-03-11 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658300', 'tblTempUsageDetail_20' ) start [2025-03-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658300', 'tblTempUsageDetail_20' ) end [2025-03-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658300', 'tblTempVendorCDR_20' ) start [2025-03-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658300', 'tblTempVendorCDR_20' ) end [2025-03-11 17:15:21] Production.INFO: ProcessCDR(1,14658300,1,1,2) [2025-03-11 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658300', 'tblTempUsageDetail_20' ) start [2025-03-11 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658300', 'tblTempUsageDetail_20' ) end [2025-03-11 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:15:26] Production.INFO: ==20242== Releasing lock... [2025-03-11 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:15:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:16:05 [end_date_ymd] => 2025-03-11 17:16:05 [RateCDR] => 1 ) [2025-03-11 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:16:05' and `end` < '2025-03-11 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:16:18] Production.INFO: count ==6733 [2025-03-11 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:16:05 - End Time 2025-03-11 17:16:05 [2025-03-11 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658305', 'tblTempUsageDetail_20' ) start [2025-03-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658305', 'tblTempUsageDetail_20' ) end [2025-03-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658305', 'tblTempVendorCDR_20' ) start [2025-03-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658305', 'tblTempVendorCDR_20' ) end [2025-03-11 17:16:21] Production.INFO: ProcessCDR(1,14658305,1,1,2) [2025-03-11 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658305', 'tblTempUsageDetail_20' ) start [2025-03-11 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658305', 'tblTempUsageDetail_20' ) end [2025-03-11 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:16:27] Production.INFO: ==20320== Releasing lock... [2025-03-11 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:16:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:17:05 [end_date_ymd] => 2025-03-11 17:17:05 [RateCDR] => 1 ) [2025-03-11 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:17:05' and `end` < '2025-03-11 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:17:19] Production.INFO: count ==6772 [2025-03-11 17:17:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:17:05 - End Time 2025-03-11 17:17:05 [2025-03-11 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658310', 'tblTempUsageDetail_20' ) start [2025-03-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658310', 'tblTempUsageDetail_20' ) end [2025-03-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658310', 'tblTempVendorCDR_20' ) start [2025-03-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658310', 'tblTempVendorCDR_20' ) end [2025-03-11 17:17:22] Production.INFO: ProcessCDR(1,14658310,1,1,2) [2025-03-11 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658310', 'tblTempUsageDetail_20' ) start [2025-03-11 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658310', 'tblTempUsageDetail_20' ) end [2025-03-11 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:17:27] Production.INFO: ==20390== Releasing lock... [2025-03-11 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:17:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-11 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:18:05 [end_date_ymd] => 2025-03-11 17:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:18:05' and `end` < '2025-03-11 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-11 17:18:18] Production.INFO: count ==6775 [2025-03-11 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:18:05 - End Time 2025-03-11 17:18:05 [2025-03-11 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658315', 'tblTempUsageDetail_20' ) start [2025-03-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658315', 'tblTempUsageDetail_20' ) end [2025-03-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658315', 'tblTempVendorCDR_20' ) start [2025-03-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658315', 'tblTempVendorCDR_20' ) end [2025-03-11 17:18:22] Production.INFO: ProcessCDR(1,14658315,1,1,2) [2025-03-11 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658315', 'tblTempUsageDetail_20' ) start [2025-03-11 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658315', 'tblTempUsageDetail_20' ) end [2025-03-11 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:18:27] Production.INFO: ==20475== Releasing lock... [2025-03-11 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:18:27] Production.INFO: 78.75 MB #Memory Used# [2025-03-11 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:19:05 [end_date_ymd] => 2025-03-11 17:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:19:05' and `end` < '2025-03-11 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-11 17:19:18] Production.INFO: count ==6881 [2025-03-11 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:19:05 - End Time 2025-03-11 17:19:05 [2025-03-11 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658320', 'tblTempUsageDetail_20' ) start [2025-03-11 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658320', 'tblTempUsageDetail_20' ) end [2025-03-11 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658320', 'tblTempVendorCDR_20' ) start [2025-03-11 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658320', 'tblTempVendorCDR_20' ) end [2025-03-11 17:19:22] Production.INFO: ProcessCDR(1,14658320,1,1,2) [2025-03-11 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658320', 'tblTempUsageDetail_20' ) start [2025-03-11 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658320', 'tblTempUsageDetail_20' ) end [2025-03-11 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:19:27] Production.INFO: ==20548== Releasing lock... [2025-03-11 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:19:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:20:06 [end_date_ymd] => 2025-03-11 17:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:20:06' and `end` < '2025-03-11 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-11 17:20:19] Production.INFO: count ==6882 [2025-03-11 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:20:06 - End Time 2025-03-11 17:20:06 [2025-03-11 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658326', 'tblTempUsageDetail_20' ) start [2025-03-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658326', 'tblTempUsageDetail_20' ) end [2025-03-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658326', 'tblTempVendorCDR_20' ) start [2025-03-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658326', 'tblTempVendorCDR_20' ) end [2025-03-11 17:20:23] Production.INFO: ProcessCDR(1,14658326,1,1,2) [2025-03-11 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658326', 'tblTempUsageDetail_20' ) start [2025-03-11 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658326', 'tblTempUsageDetail_20' ) end [2025-03-11 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:20:27] Production.INFO: ==20624== Releasing lock... [2025-03-11 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:20:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:21:05 [end_date_ymd] => 2025-03-11 17:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:21:05' and `end` < '2025-03-11 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-11 17:21:18] Production.INFO: count ==6876 [2025-03-11 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:21:05 - End Time 2025-03-11 17:21:05 [2025-03-11 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658331', 'tblTempUsageDetail_20' ) start [2025-03-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658331', 'tblTempUsageDetail_20' ) end [2025-03-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658331', 'tblTempVendorCDR_20' ) start [2025-03-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658331', 'tblTempVendorCDR_20' ) end [2025-03-11 17:21:21] Production.INFO: ProcessCDR(1,14658331,1,1,2) [2025-03-11 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658331', 'tblTempUsageDetail_20' ) start [2025-03-11 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658331', 'tblTempUsageDetail_20' ) end [2025-03-11 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:21:27] Production.INFO: ==20738== Releasing lock... [2025-03-11 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:21:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:22:06 [end_date_ymd] => 2025-03-11 17:22:06 [RateCDR] => 1 ) [2025-03-11 17: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-11 14:22:06' and `end` < '2025-03-11 17: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-11 17:22:19] Production.INFO: count ==6825 [2025-03-11 17:22:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:22:06 - End Time 2025-03-11 17:22:06 [2025-03-11 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658336', 'tblTempUsageDetail_20' ) start [2025-03-11 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658336', 'tblTempUsageDetail_20' ) end [2025-03-11 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658336', 'tblTempVendorCDR_20' ) start [2025-03-11 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658336', 'tblTempVendorCDR_20' ) end [2025-03-11 17:22:22] Production.INFO: ProcessCDR(1,14658336,1,1,2) [2025-03-11 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658336', 'tblTempUsageDetail_20' ) start [2025-03-11 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658336', 'tblTempUsageDetail_20' ) end [2025-03-11 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:22:27] Production.INFO: ==20810== Releasing lock... [2025-03-11 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:22:27] Production.INFO: 79 MB #Memory Used# [2025-03-11 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:23:05 [end_date_ymd] => 2025-03-11 17:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:23:05' and `end` < '2025-03-11 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-11 17:23:18] Production.INFO: count ==6832 [2025-03-11 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:23:05 - End Time 2025-03-11 17:23:05 [2025-03-11 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658341', 'tblTempUsageDetail_20' ) start [2025-03-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658341', 'tblTempUsageDetail_20' ) end [2025-03-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658341', 'tblTempVendorCDR_20' ) start [2025-03-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658341', 'tblTempVendorCDR_20' ) end [2025-03-11 17:23:21] Production.INFO: ProcessCDR(1,14658341,1,1,2) [2025-03-11 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658341', 'tblTempUsageDetail_20' ) start [2025-03-11 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658341', 'tblTempUsageDetail_20' ) end [2025-03-11 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:23:26] Production.INFO: ==20880== Releasing lock... [2025-03-11 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:23:26] Production.INFO: 79 MB #Memory Used# [2025-03-11 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:24:05 [end_date_ymd] => 2025-03-11 17:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:24:05' and `end` < '2025-03-11 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-11 17:24:19] Production.INFO: count ==6862 [2025-03-11 17:24:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:24:05 - End Time 2025-03-11 17:24:05 [2025-03-11 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658346', 'tblTempUsageDetail_20' ) start [2025-03-11 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658346', 'tblTempUsageDetail_20' ) end [2025-03-11 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658346', 'tblTempVendorCDR_20' ) start [2025-03-11 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658346', 'tblTempVendorCDR_20' ) end [2025-03-11 17:24:22] Production.INFO: ProcessCDR(1,14658346,1,1,2) [2025-03-11 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658346', 'tblTempUsageDetail_20' ) start [2025-03-11 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658346', 'tblTempUsageDetail_20' ) end [2025-03-11 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:24:27] Production.INFO: ==20952== Releasing lock... [2025-03-11 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:24:27] Production.INFO: 79.25 MB #Memory Used# [2025-03-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:25:05 [end_date_ymd] => 2025-03-11 17:25:05 [RateCDR] => 1 ) [2025-03-11 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:25:05' and `end` < '2025-03-11 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:25:18] Production.INFO: count ==6854 [2025-03-11 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:25:05 - End Time 2025-03-11 17:25:05 [2025-03-11 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658351', 'tblTempUsageDetail_20' ) start [2025-03-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658351', 'tblTempUsageDetail_20' ) end [2025-03-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658351', 'tblTempVendorCDR_20' ) start [2025-03-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658351', 'tblTempVendorCDR_20' ) end [2025-03-11 17:25:21] Production.INFO: ProcessCDR(1,14658351,1,1,2) [2025-03-11 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658351', 'tblTempUsageDetail_20' ) start [2025-03-11 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658351', 'tblTempUsageDetail_20' ) end [2025-03-11 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:25:26] Production.INFO: ==21022== Releasing lock... [2025-03-11 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:25:26] Production.INFO: 79.25 MB #Memory Used# [2025-03-11 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:26:05 [end_date_ymd] => 2025-03-11 17:26:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:26:05' and `end` < '2025-03-11 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-11 17:26:18] Production.INFO: count ==6837 [2025-03-11 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:26:05 - End Time 2025-03-11 17:26:05 [2025-03-11 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658356', 'tblTempUsageDetail_20' ) start [2025-03-11 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658356', 'tblTempUsageDetail_20' ) end [2025-03-11 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658356', 'tblTempVendorCDR_20' ) start [2025-03-11 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658356', 'tblTempVendorCDR_20' ) end [2025-03-11 17:26:22] Production.INFO: ProcessCDR(1,14658356,1,1,2) [2025-03-11 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658356', 'tblTempUsageDetail_20' ) start [2025-03-11 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658356', 'tblTempUsageDetail_20' ) end [2025-03-11 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:26:26] Production.INFO: ==21095== Releasing lock... [2025-03-11 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:26:26] Production.INFO: 79.25 MB #Memory Used# [2025-03-11 17:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:27:04 [end_date_ymd] => 2025-03-11 17:27:04 [RateCDR] => 1 ) [2025-03-11 17: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-11 14:27:04' and `end` < '2025-03-11 17: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-11 17:27:18] Production.INFO: count ==6890 [2025-03-11 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:27:04 - End Time 2025-03-11 17:27:04 [2025-03-11 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658361', 'tblTempUsageDetail_20' ) start [2025-03-11 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658361', 'tblTempUsageDetail_20' ) end [2025-03-11 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658361', 'tblTempVendorCDR_20' ) start [2025-03-11 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658361', 'tblTempVendorCDR_20' ) end [2025-03-11 17:27:21] Production.INFO: ProcessCDR(1,14658361,1,1,2) [2025-03-11 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658361', 'tblTempUsageDetail_20' ) start [2025-03-11 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658361', 'tblTempUsageDetail_20' ) end [2025-03-11 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:27:26] Production.INFO: ==21168== Releasing lock... [2025-03-11 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:27:26] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:28:06 [end_date_ymd] => 2025-03-11 17:28:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:28:06' and `end` < '2025-03-11 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-11 17:28:19] Production.INFO: count ==6911 [2025-03-11 17:28:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:28:06 - End Time 2025-03-11 17:28:06 [2025-03-11 17:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658366', 'tblTempUsageDetail_20' ) start [2025-03-11 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658366', 'tblTempUsageDetail_20' ) end [2025-03-11 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658366', 'tblTempVendorCDR_20' ) start [2025-03-11 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658366', 'tblTempVendorCDR_20' ) end [2025-03-11 17:28:23] Production.INFO: ProcessCDR(1,14658366,1,1,2) [2025-03-11 17:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658366', 'tblTempUsageDetail_20' ) start [2025-03-11 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658366', 'tblTempUsageDetail_20' ) end [2025-03-11 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:28:28] Production.INFO: ==21245== Releasing lock... [2025-03-11 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:28:28] Production.INFO: 79.75 MB #Memory Used# [2025-03-11 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:29:05 [end_date_ymd] => 2025-03-11 17:29:05 [RateCDR] => 1 ) [2025-03-11 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:29:05' and `end` < '2025-03-11 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:29:18] Production.INFO: count ==6934 [2025-03-11 17:29:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:29:05 - End Time 2025-03-11 17:29:05 [2025-03-11 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658371', 'tblTempUsageDetail_20' ) start [2025-03-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658371', 'tblTempUsageDetail_20' ) end [2025-03-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658371', 'tblTempVendorCDR_20' ) start [2025-03-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658371', 'tblTempVendorCDR_20' ) end [2025-03-11 17:29:21] Production.INFO: ProcessCDR(1,14658371,1,1,2) [2025-03-11 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658371', 'tblTempUsageDetail_20' ) start [2025-03-11 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658371', 'tblTempUsageDetail_20' ) end [2025-03-11 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:29:26] Production.INFO: ==21316== Releasing lock... [2025-03-11 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:29:26] Production.INFO: 79.75 MB #Memory Used# [2025-03-11 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:30:06 [end_date_ymd] => 2025-03-11 17:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:30:06' and `end` < '2025-03-11 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-11 17:30:20] Production.INFO: count ==7000 [2025-03-11 17:30:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:30:06 - End Time 2025-03-11 17:30:06 [2025-03-11 17:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658377', 'tblTempUsageDetail_20' ) start [2025-03-11 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658377', 'tblTempUsageDetail_20' ) end [2025-03-11 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658377', 'tblTempVendorCDR_20' ) start [2025-03-11 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658377', 'tblTempVendorCDR_20' ) end [2025-03-11 17:30:23] Production.INFO: ProcessCDR(1,14658377,1,1,2) [2025-03-11 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658377', 'tblTempUsageDetail_20' ) start [2025-03-11 17:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658377', 'tblTempUsageDetail_20' ) end [2025-03-11 17:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:30:29] Production.INFO: ==21389== Releasing lock... [2025-03-11 17:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:30:29] Production.INFO: 80.25 MB #Memory Used# [2025-03-11 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:31:05 [end_date_ymd] => 2025-03-11 17:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:31:05' and `end` < '2025-03-11 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-11 17:31:18] Production.INFO: count ==7005 [2025-03-11 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:31:05 - End Time 2025-03-11 17:31:05 [2025-03-11 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658382', 'tblTempUsageDetail_20' ) start [2025-03-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658382', 'tblTempUsageDetail_20' ) end [2025-03-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658382', 'tblTempVendorCDR_20' ) start [2025-03-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658382', 'tblTempVendorCDR_20' ) end [2025-03-11 17:31:21] Production.INFO: ProcessCDR(1,14658382,1,1,2) [2025-03-11 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658382', 'tblTempUsageDetail_20' ) start [2025-03-11 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658382', 'tblTempUsageDetail_20' ) end [2025-03-11 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:31:26] Production.INFO: ==21464== Releasing lock... [2025-03-11 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:31:26] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:32:05 [end_date_ymd] => 2025-03-11 17:32:05 [RateCDR] => 1 ) [2025-03-11 17: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-11 14:32:05' and `end` < '2025-03-11 17: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-11 17:32:19] Production.INFO: count ==7017 [2025-03-11 17:32:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:32:05 - End Time 2025-03-11 17:32:05 [2025-03-11 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658387', 'tblTempUsageDetail_20' ) start [2025-03-11 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658387', 'tblTempUsageDetail_20' ) end [2025-03-11 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658387', 'tblTempVendorCDR_20' ) start [2025-03-11 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658387', 'tblTempVendorCDR_20' ) end [2025-03-11 17:32:22] Production.INFO: ProcessCDR(1,14658387,1,1,2) [2025-03-11 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658387', 'tblTempUsageDetail_20' ) start [2025-03-11 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658387', 'tblTempUsageDetail_20' ) end [2025-03-11 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:32:27] Production.INFO: ==21535== Releasing lock... [2025-03-11 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:32:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:33:05 [end_date_ymd] => 2025-03-11 17:33:05 [RateCDR] => 1 ) [2025-03-11 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:33:05' and `end` < '2025-03-11 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:33:18] Production.INFO: count ==7011 [2025-03-11 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:33:05 - End Time 2025-03-11 17:33:05 [2025-03-11 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658392', 'tblTempUsageDetail_20' ) start [2025-03-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658392', 'tblTempUsageDetail_20' ) end [2025-03-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658392', 'tblTempVendorCDR_20' ) start [2025-03-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658392', 'tblTempVendorCDR_20' ) end [2025-03-11 17:33:21] Production.INFO: ProcessCDR(1,14658392,1,1,2) [2025-03-11 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658392', 'tblTempUsageDetail_20' ) start [2025-03-11 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658392', 'tblTempUsageDetail_20' ) end [2025-03-11 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:33:26] Production.INFO: ==21608== Releasing lock... [2025-03-11 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:33:26] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:34:05 [end_date_ymd] => 2025-03-11 17:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:34:05' and `end` < '2025-03-11 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-11 17:34:19] Production.INFO: count ==7003 [2025-03-11 17:34:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:34:05 - End Time 2025-03-11 17:34:05 [2025-03-11 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658397', 'tblTempUsageDetail_20' ) start [2025-03-11 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658397', 'tblTempUsageDetail_20' ) end [2025-03-11 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658397', 'tblTempVendorCDR_20' ) start [2025-03-11 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658397', 'tblTempVendorCDR_20' ) end [2025-03-11 17:34:22] Production.INFO: ProcessCDR(1,14658397,1,1,2) [2025-03-11 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658397', 'tblTempUsageDetail_20' ) start [2025-03-11 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658397', 'tblTempUsageDetail_20' ) end [2025-03-11 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:34:27] Production.INFO: ==21682== Releasing lock... [2025-03-11 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:34:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:35:06 [end_date_ymd] => 2025-03-11 17:35:06 [RateCDR] => 1 ) [2025-03-11 17: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-11 14:35:06' and `end` < '2025-03-11 17: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-11 17:35:19] Production.INFO: count ==7013 [2025-03-11 17:35:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:35:06 - End Time 2025-03-11 17:35:06 [2025-03-11 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658402', 'tblTempUsageDetail_20' ) start [2025-03-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658402', 'tblTempUsageDetail_20' ) end [2025-03-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658402', 'tblTempVendorCDR_20' ) start [2025-03-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658402', 'tblTempVendorCDR_20' ) end [2025-03-11 17:35:22] Production.INFO: ProcessCDR(1,14658402,1,1,2) [2025-03-11 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658402', 'tblTempUsageDetail_20' ) start [2025-03-11 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658402', 'tblTempUsageDetail_20' ) end [2025-03-11 17:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:35:28] Production.INFO: ==21759== Releasing lock... [2025-03-11 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:35:28] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:36:05 [end_date_ymd] => 2025-03-11 17:36:05 [RateCDR] => 1 ) [2025-03-11 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:36:05' and `end` < '2025-03-11 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:36:18] Production.INFO: count ==7030 [2025-03-11 17:36:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:36:05 - End Time 2025-03-11 17:36:05 [2025-03-11 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658407', 'tblTempUsageDetail_20' ) start [2025-03-11 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658407', 'tblTempUsageDetail_20' ) end [2025-03-11 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658407', 'tblTempVendorCDR_20' ) start [2025-03-11 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658407', 'tblTempVendorCDR_20' ) end [2025-03-11 17:36:22] Production.INFO: ProcessCDR(1,14658407,1,1,2) [2025-03-11 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658407', 'tblTempUsageDetail_20' ) start [2025-03-11 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658407', 'tblTempUsageDetail_20' ) end [2025-03-11 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:36:27] Production.INFO: ==21828== Releasing lock... [2025-03-11 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:36:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:37:05 [end_date_ymd] => 2025-03-11 17:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:37:05' and `end` < '2025-03-11 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:37:19] Production.INFO: count ==7025 [2025-03-11 17:37:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:37:05 - End Time 2025-03-11 17:37:05 [2025-03-11 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658412', 'tblTempUsageDetail_20' ) start [2025-03-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658412', 'tblTempUsageDetail_20' ) end [2025-03-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658412', 'tblTempVendorCDR_20' ) start [2025-03-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658412', 'tblTempVendorCDR_20' ) end [2025-03-11 17:37:22] Production.INFO: ProcessCDR(1,14658412,1,1,2) [2025-03-11 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658412', 'tblTempUsageDetail_20' ) start [2025-03-11 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658412', 'tblTempUsageDetail_20' ) end [2025-03-11 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:37:27] Production.INFO: ==21938== Releasing lock... [2025-03-11 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:37:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:38:05 [end_date_ymd] => 2025-03-11 17:38:05 [RateCDR] => 1 ) [2025-03-11 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:38:05' and `end` < '2025-03-11 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:38:18] Production.INFO: count ==7022 [2025-03-11 17:38:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:38:05 - End Time 2025-03-11 17:38:05 [2025-03-11 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658417', 'tblTempUsageDetail_20' ) start [2025-03-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658417', 'tblTempUsageDetail_20' ) end [2025-03-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658417', 'tblTempVendorCDR_20' ) start [2025-03-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658417', 'tblTempVendorCDR_20' ) end [2025-03-11 17:38:22] Production.INFO: ProcessCDR(1,14658417,1,1,2) [2025-03-11 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658417', 'tblTempUsageDetail_20' ) start [2025-03-11 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658417', 'tblTempUsageDetail_20' ) end [2025-03-11 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:38:27] Production.INFO: ==22012== Releasing lock... [2025-03-11 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:38:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:39:06 [end_date_ymd] => 2025-03-11 17:39:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:39:06' and `end` < '2025-03-11 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-11 17:39:19] Production.INFO: count ==7021 [2025-03-11 17:39:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:39:06 - End Time 2025-03-11 17:39:06 [2025-03-11 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658422', 'tblTempUsageDetail_20' ) start [2025-03-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658422', 'tblTempUsageDetail_20' ) end [2025-03-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658422', 'tblTempVendorCDR_20' ) start [2025-03-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658422', 'tblTempVendorCDR_20' ) end [2025-03-11 17:39:22] Production.INFO: ProcessCDR(1,14658422,1,1,2) [2025-03-11 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658422', 'tblTempUsageDetail_20' ) start [2025-03-11 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658422', 'tblTempUsageDetail_20' ) end [2025-03-11 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:39:27] Production.INFO: ==22335== Releasing lock... [2025-03-11 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:39:27] Production.INFO: 80.5 MB #Memory Used# [2025-03-11 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:40:05 [end_date_ymd] => 2025-03-11 17:40:05 [RateCDR] => 1 ) [2025-03-11 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:40:05' and `end` < '2025-03-11 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:40:19] Production.INFO: count ==6994 [2025-03-11 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:40:05 - End Time 2025-03-11 17:40:05 [2025-03-11 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658428', 'tblTempUsageDetail_20' ) start [2025-03-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658428', 'tblTempUsageDetail_20' ) end [2025-03-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658428', 'tblTempVendorCDR_20' ) start [2025-03-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658428', 'tblTempVendorCDR_20' ) end [2025-03-11 17:40:22] Production.INFO: ProcessCDR(1,14658428,1,1,2) [2025-03-11 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658428', 'tblTempUsageDetail_20' ) start [2025-03-11 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658428', 'tblTempUsageDetail_20' ) end [2025-03-11 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:40:26] Production.INFO: ==22412== Releasing lock... [2025-03-11 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:40:26] Production.INFO: 80.25 MB #Memory Used# [2025-03-11 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:41:05 [end_date_ymd] => 2025-03-11 17:41:05 [RateCDR] => 1 ) [2025-03-11 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:41:05' and `end` < '2025-03-11 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:41:18] Production.INFO: count ==6982 [2025-03-11 17:41:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:41:05 - End Time 2025-03-11 17:41:05 [2025-03-11 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658433', 'tblTempUsageDetail_20' ) start [2025-03-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658433', 'tblTempUsageDetail_20' ) end [2025-03-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658433', 'tblTempVendorCDR_20' ) start [2025-03-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658433', 'tblTempVendorCDR_20' ) end [2025-03-11 17:41:22] Production.INFO: ProcessCDR(1,14658433,1,1,2) [2025-03-11 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658433', 'tblTempUsageDetail_20' ) start [2025-03-11 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658433', 'tblTempUsageDetail_20' ) end [2025-03-11 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:41:27] Production.INFO: ==22486== Releasing lock... [2025-03-11 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:41:27] Production.INFO: 80.25 MB #Memory Used# [2025-03-11 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:42:06 [end_date_ymd] => 2025-03-11 17:42:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:42:06' and `end` < '2025-03-11 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-11 17:42:19] Production.INFO: count ==6972 [2025-03-11 17:42:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:42:06 - End Time 2025-03-11 17:42:06 [2025-03-11 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658438', 'tblTempUsageDetail_20' ) start [2025-03-11 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658438', 'tblTempUsageDetail_20' ) end [2025-03-11 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658438', 'tblTempVendorCDR_20' ) start [2025-03-11 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658438', 'tblTempVendorCDR_20' ) end [2025-03-11 17:42:23] Production.INFO: ProcessCDR(1,14658438,1,1,2) [2025-03-11 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658438', 'tblTempUsageDetail_20' ) start [2025-03-11 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658438', 'tblTempUsageDetail_20' ) end [2025-03-11 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:42:28] Production.INFO: ==22558== Releasing lock... [2025-03-11 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:42:28] Production.INFO: 80.25 MB #Memory Used# [2025-03-11 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:43:05 [end_date_ymd] => 2025-03-11 17:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:43:05' and `end` < '2025-03-11 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-11 17:43:19] Production.INFO: count ==6957 [2025-03-11 17:43:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:43:05 - End Time 2025-03-11 17:43:05 [2025-03-11 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658443', 'tblTempUsageDetail_20' ) start [2025-03-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658443', 'tblTempUsageDetail_20' ) end [2025-03-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658443', 'tblTempVendorCDR_20' ) start [2025-03-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658443', 'tblTempVendorCDR_20' ) end [2025-03-11 17:43:22] Production.INFO: ProcessCDR(1,14658443,1,1,2) [2025-03-11 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658443', 'tblTempUsageDetail_20' ) start [2025-03-11 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658443', 'tblTempUsageDetail_20' ) end [2025-03-11 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:43:27] Production.INFO: ==22645== Releasing lock... [2025-03-11 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:43:27] Production.INFO: 80 MB #Memory Used# [2025-03-11 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:44:05 [end_date_ymd] => 2025-03-11 17:44:05 [RateCDR] => 1 ) [2025-03-11 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:44:05' and `end` < '2025-03-11 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:44:18] Production.INFO: count ==6932 [2025-03-11 17:44:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:44:05 - End Time 2025-03-11 17:44:05 [2025-03-11 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658448', 'tblTempUsageDetail_20' ) start [2025-03-11 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658448', 'tblTempUsageDetail_20' ) end [2025-03-11 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658448', 'tblTempVendorCDR_20' ) start [2025-03-11 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658448', 'tblTempVendorCDR_20' ) end [2025-03-11 17:44:22] Production.INFO: ProcessCDR(1,14658448,1,1,2) [2025-03-11 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658448', 'tblTempUsageDetail_20' ) start [2025-03-11 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658448', 'tblTempUsageDetail_20' ) end [2025-03-11 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:44:27] Production.INFO: ==22735== Releasing lock... [2025-03-11 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:44:27] Production.INFO: 79.75 MB #Memory Used# [2025-03-11 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:45:06 [end_date_ymd] => 2025-03-11 17:45:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:45:06' and `end` < '2025-03-11 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-11 17:45:19] Production.INFO: count ==6922 [2025-03-11 17:45:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:45:06 - End Time 2025-03-11 17:45:06 [2025-03-11 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658453', 'tblTempUsageDetail_20' ) start [2025-03-11 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658453', 'tblTempUsageDetail_20' ) end [2025-03-11 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658453', 'tblTempVendorCDR_20' ) start [2025-03-11 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658453', 'tblTempVendorCDR_20' ) end [2025-03-11 17:45:23] Production.INFO: ProcessCDR(1,14658453,1,1,2) [2025-03-11 17:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658453', 'tblTempUsageDetail_20' ) start [2025-03-11 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658453', 'tblTempUsageDetail_20' ) end [2025-03-11 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:45:26] Production.INFO: ==22825== Releasing lock... [2025-03-11 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:45:26] Production.INFO: 79.75 MB #Memory Used# [2025-03-11 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:46:05 [end_date_ymd] => 2025-03-11 17:46:05 [RateCDR] => 1 ) [2025-03-11 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:46:05' and `end` < '2025-03-11 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:46:18] Production.INFO: count ==6905 [2025-03-11 17:46:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:46:05 - End Time 2025-03-11 17:46:05 [2025-03-11 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658458', 'tblTempUsageDetail_20' ) start [2025-03-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658458', 'tblTempUsageDetail_20' ) end [2025-03-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658458', 'tblTempVendorCDR_20' ) start [2025-03-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658458', 'tblTempVendorCDR_20' ) end [2025-03-11 17:46:22] Production.INFO: ProcessCDR(1,14658458,1,1,2) [2025-03-11 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658458', 'tblTempUsageDetail_20' ) start [2025-03-11 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658458', 'tblTempUsageDetail_20' ) end [2025-03-11 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:46:27] Production.INFO: ==22915== Releasing lock... [2025-03-11 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:46:27] Production.INFO: 79.75 MB #Memory Used# [2025-03-11 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:47:05 [end_date_ymd] => 2025-03-11 17:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:47:05' and `end` < '2025-03-11 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-11 17:47:19] Production.INFO: count ==6885 [2025-03-11 17:47:24] Production.ERROR: pbx CDR StartTime 2025-03-11 14:47:05 - End Time 2025-03-11 17:47:05 [2025-03-11 17:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658463', 'tblTempUsageDetail_20' ) start [2025-03-11 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658463', 'tblTempUsageDetail_20' ) end [2025-03-11 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658463', 'tblTempVendorCDR_20' ) start [2025-03-11 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658463', 'tblTempVendorCDR_20' ) end [2025-03-11 17:47:24] Production.INFO: ProcessCDR(1,14658463,1,1,2) [2025-03-11 17:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658463', 'tblTempUsageDetail_20' ) start [2025-03-11 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658463', 'tblTempUsageDetail_20' ) end [2025-03-11 17:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:47:29] Production.INFO: ==23002== Releasing lock... [2025-03-11 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:47:29] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:48:05 [end_date_ymd] => 2025-03-11 17:48:05 [RateCDR] => 1 ) [2025-03-11 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:48:05' and `end` < '2025-03-11 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:48:18] Production.INFO: count ==6863 [2025-03-11 17:48:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:48:05 - End Time 2025-03-11 17:48:05 [2025-03-11 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658468', 'tblTempUsageDetail_20' ) start [2025-03-11 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658468', 'tblTempUsageDetail_20' ) end [2025-03-11 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658468', 'tblTempVendorCDR_20' ) start [2025-03-11 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658468', 'tblTempVendorCDR_20' ) end [2025-03-11 17:48:23] Production.INFO: ProcessCDR(1,14658468,1,1,2) [2025-03-11 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658468', 'tblTempUsageDetail_20' ) start [2025-03-11 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658468', 'tblTempUsageDetail_20' ) end [2025-03-11 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:48:28] Production.INFO: ==23087== Releasing lock... [2025-03-11 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:48:28] Production.INFO: 79.25 MB #Memory Used# [2025-03-11 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:49:05 [end_date_ymd] => 2025-03-11 17:49:05 [RateCDR] => 1 ) [2025-03-11 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:49:05' and `end` < '2025-03-11 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:49:18] Production.INFO: count ==6838 [2025-03-11 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:49:05 - End Time 2025-03-11 17:49:05 [2025-03-11 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658473', 'tblTempUsageDetail_20' ) start [2025-03-11 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658473', 'tblTempUsageDetail_20' ) end [2025-03-11 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658473', 'tblTempVendorCDR_20' ) start [2025-03-11 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658473', 'tblTempVendorCDR_20' ) end [2025-03-11 17:49:22] Production.INFO: ProcessCDR(1,14658473,1,1,2) [2025-03-11 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658473', 'tblTempUsageDetail_20' ) start [2025-03-11 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658473', 'tblTempUsageDetail_20' ) end [2025-03-11 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:49:27] Production.INFO: ==23174== Releasing lock... [2025-03-11 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:49:27] Production.INFO: 79.5 MB #Memory Used# [2025-03-11 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:50:06 [end_date_ymd] => 2025-03-11 17:50:06 [RateCDR] => 1 ) [2025-03-11 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:50:06' and `end` < '2025-03-11 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:50:19] Production.INFO: count ==6821 [2025-03-11 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:50:06 - End Time 2025-03-11 17:50:06 [2025-03-11 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658479', 'tblTempUsageDetail_20' ) start [2025-03-11 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658479', 'tblTempUsageDetail_20' ) end [2025-03-11 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658479', 'tblTempVendorCDR_20' ) start [2025-03-11 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658479', 'tblTempVendorCDR_20' ) end [2025-03-11 17:50:22] Production.INFO: ProcessCDR(1,14658479,1,1,2) [2025-03-11 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658479', 'tblTempUsageDetail_20' ) start [2025-03-11 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658479', 'tblTempUsageDetail_20' ) end [2025-03-11 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:50:28] Production.INFO: ==23267== Releasing lock... [2025-03-11 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:50:28] Production.INFO: 79 MB #Memory Used# [2025-03-11 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:51:06 [end_date_ymd] => 2025-03-11 17:51:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:51:06' and `end` < '2025-03-11 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-11 17:51:20] Production.INFO: count ==6758 [2025-03-11 17:51:23] Production.ERROR: pbx CDR StartTime 2025-03-11 14:51:06 - End Time 2025-03-11 17:51:06 [2025-03-11 17:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658484', 'tblTempUsageDetail_20' ) start [2025-03-11 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658484', 'tblTempUsageDetail_20' ) end [2025-03-11 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658484', 'tblTempVendorCDR_20' ) start [2025-03-11 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658484', 'tblTempVendorCDR_20' ) end [2025-03-11 17:51:23] Production.INFO: ProcessCDR(1,14658484,1,1,2) [2025-03-11 17:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658484', 'tblTempUsageDetail_20' ) start [2025-03-11 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658484', 'tblTempUsageDetail_20' ) end [2025-03-11 17:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:51:28] Production.INFO: ==23356== Releasing lock... [2025-03-11 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:51:28] Production.INFO: 78.5 MB #Memory Used# [2025-03-11 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:52:05 [end_date_ymd] => 2025-03-11 17:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:52:05' and `end` < '2025-03-11 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-11 17:52:18] Production.INFO: count ==6753 [2025-03-11 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:52:05 - End Time 2025-03-11 17:52:05 [2025-03-11 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658489', 'tblTempUsageDetail_20' ) start [2025-03-11 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658489', 'tblTempUsageDetail_20' ) end [2025-03-11 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658489', 'tblTempVendorCDR_20' ) start [2025-03-11 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658489', 'tblTempVendorCDR_20' ) end [2025-03-11 17:52:21] Production.INFO: ProcessCDR(1,14658489,1,1,2) [2025-03-11 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658489', 'tblTempUsageDetail_20' ) start [2025-03-11 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658489', 'tblTempUsageDetail_20' ) end [2025-03-11 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:52:27] Production.INFO: ==23483== Releasing lock... [2025-03-11 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:52:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-11 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:53:05 [end_date_ymd] => 2025-03-11 17:53:05 [RateCDR] => 1 ) [2025-03-11 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:53:05' and `end` < '2025-03-11 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:53:19] Production.INFO: count ==6736 [2025-03-11 17:53:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:53:05 - End Time 2025-03-11 17:53:05 [2025-03-11 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658494', 'tblTempUsageDetail_20' ) start [2025-03-11 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658494', 'tblTempUsageDetail_20' ) end [2025-03-11 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658494', 'tblTempVendorCDR_20' ) start [2025-03-11 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658494', 'tblTempVendorCDR_20' ) end [2025-03-11 17:53:22] Production.INFO: ProcessCDR(1,14658494,1,1,2) [2025-03-11 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658494', 'tblTempUsageDetail_20' ) start [2025-03-11 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658494', 'tblTempUsageDetail_20' ) end [2025-03-11 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:53:27] Production.INFO: ==23567== Releasing lock... [2025-03-11 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:53:27] Production.INFO: 78.5 MB #Memory Used# [2025-03-11 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:54:06 [end_date_ymd] => 2025-03-11 17:54:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:54:06' and `end` < '2025-03-11 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-11 17:54:19] Production.INFO: count ==6722 [2025-03-11 17:54:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:54:06 - End Time 2025-03-11 17:54:06 [2025-03-11 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658499', 'tblTempUsageDetail_20' ) start [2025-03-11 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658499', 'tblTempUsageDetail_20' ) end [2025-03-11 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658499', 'tblTempVendorCDR_20' ) start [2025-03-11 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658499', 'tblTempVendorCDR_20' ) end [2025-03-11 17:54:22] Production.INFO: ProcessCDR(1,14658499,1,1,2) [2025-03-11 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658499', 'tblTempUsageDetail_20' ) start [2025-03-11 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658499', 'tblTempUsageDetail_20' ) end [2025-03-11 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:54:27] Production.INFO: ==23652== Releasing lock... [2025-03-11 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:54:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:55:06 [end_date_ymd] => 2025-03-11 17:55:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:55:06' and `end` < '2025-03-11 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-11 17:55:19] Production.INFO: count ==6721 [2025-03-11 17:55:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:55:06 - End Time 2025-03-11 17:55:06 [2025-03-11 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658504', 'tblTempUsageDetail_20' ) start [2025-03-11 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658504', 'tblTempUsageDetail_20' ) end [2025-03-11 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658504', 'tblTempVendorCDR_20' ) start [2025-03-11 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658504', 'tblTempVendorCDR_20' ) end [2025-03-11 17:55:22] Production.INFO: ProcessCDR(1,14658504,1,1,2) [2025-03-11 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658504', 'tblTempUsageDetail_20' ) start [2025-03-11 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658504', 'tblTempUsageDetail_20' ) end [2025-03-11 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:55:26] Production.INFO: ==23745== Releasing lock... [2025-03-11 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:55:26] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:56:05 [end_date_ymd] => 2025-03-11 17:56:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:56:05' and `end` < '2025-03-11 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-11 17:56:18] Production.INFO: count ==6716 [2025-03-11 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:56:05 - End Time 2025-03-11 17:56:05 [2025-03-11 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658509', 'tblTempUsageDetail_20' ) start [2025-03-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658509', 'tblTempUsageDetail_20' ) end [2025-03-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658509', 'tblTempVendorCDR_20' ) start [2025-03-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658509', 'tblTempVendorCDR_20' ) end [2025-03-11 17:56:22] Production.INFO: ProcessCDR(1,14658509,1,1,2) [2025-03-11 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658509', 'tblTempUsageDetail_20' ) start [2025-03-11 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658509', 'tblTempUsageDetail_20' ) end [2025-03-11 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:56:27] Production.INFO: ==23831== Releasing lock... [2025-03-11 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:56:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:57:05 [end_date_ymd] => 2025-03-11 17:57:05 [RateCDR] => 1 ) [2025-03-11 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 14:57:05' and `end` < '2025-03-11 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 17:57:18] Production.INFO: count ==6695 [2025-03-11 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:57:05 - End Time 2025-03-11 17:57:05 [2025-03-11 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658514', 'tblTempUsageDetail_20' ) start [2025-03-11 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658514', 'tblTempUsageDetail_20' ) end [2025-03-11 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658514', 'tblTempVendorCDR_20' ) start [2025-03-11 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658514', 'tblTempVendorCDR_20' ) end [2025-03-11 17:57:22] Production.INFO: ProcessCDR(1,14658514,1,1,2) [2025-03-11 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658514', 'tblTempUsageDetail_20' ) start [2025-03-11 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658514', 'tblTempUsageDetail_20' ) end [2025-03-11 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:57:27] Production.INFO: ==23921== Releasing lock... [2025-03-11 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:57:27] Production.INFO: 78 MB #Memory Used# [2025-03-11 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:58:05 [end_date_ymd] => 2025-03-11 17:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 14:58:05' and `end` < '2025-03-11 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-11 17:58:19] Production.INFO: count ==6696 [2025-03-11 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-11 14:58:05 - End Time 2025-03-11 17:58:05 [2025-03-11 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658519', 'tblTempUsageDetail_20' ) start [2025-03-11 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658519', 'tblTempUsageDetail_20' ) end [2025-03-11 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658519', 'tblTempVendorCDR_20' ) start [2025-03-11 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658519', 'tblTempVendorCDR_20' ) end [2025-03-11 17:58:22] Production.INFO: ProcessCDR(1,14658519,1,1,2) [2025-03-11 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658519', 'tblTempUsageDetail_20' ) start [2025-03-11 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658519', 'tblTempUsageDetail_20' ) end [2025-03-11 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:58:25] Production.INFO: ==24005== Releasing lock... [2025-03-11 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:58:25] Production.INFO: 78 MB #Memory Used# [2025-03-11 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 14:59:06 [end_date_ymd] => 2025-03-11 17:59:06 [RateCDR] => 1 ) [2025-03-11 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-11 14:59:06' and `end` < '2025-03-11 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-11 17:59:19] Production.INFO: count ==6716 [2025-03-11 17:59:22] Production.ERROR: pbx CDR StartTime 2025-03-11 14:59:06 - End Time 2025-03-11 17:59:06 [2025-03-11 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658524', 'tblTempUsageDetail_20' ) start [2025-03-11 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658524', 'tblTempUsageDetail_20' ) end [2025-03-11 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658524', 'tblTempVendorCDR_20' ) start [2025-03-11 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658524', 'tblTempVendorCDR_20' ) end [2025-03-11 17:59:22] Production.INFO: ProcessCDR(1,14658524,1,1,2) [2025-03-11 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658524', 'tblTempUsageDetail_20' ) start [2025-03-11 17:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658524', 'tblTempUsageDetail_20' ) end [2025-03-11 17:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 17:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 17:59:28] Production.INFO: ==24092== Releasing lock... [2025-03-11 17:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 17:59:28] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:00:06 [end_date_ymd] => 2025-03-11 18:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:00:06' and `end` < '2025-03-11 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-11 18:00:20] Production.INFO: count ==6725 [2025-03-11 18:00:23] Production.ERROR: pbx CDR StartTime 2025-03-11 15:00:06 - End Time 2025-03-11 18:00:06 [2025-03-11 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658530', 'tblTempUsageDetail_20' ) start [2025-03-11 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658530', 'tblTempUsageDetail_20' ) end [2025-03-11 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658530', 'tblTempVendorCDR_20' ) start [2025-03-11 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658530', 'tblTempVendorCDR_20' ) end [2025-03-11 18:00:23] Production.INFO: ProcessCDR(1,14658530,1,1,2) [2025-03-11 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658530', 'tblTempUsageDetail_20' ) start [2025-03-11 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658530', 'tblTempUsageDetail_20' ) end [2025-03-11 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:00:27] Production.INFO: ==24172== Releasing lock... [2025-03-11 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:00:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:01:06 [end_date_ymd] => 2025-03-11 18:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:01:06' and `end` < '2025-03-11 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-11 18:01:19] Production.INFO: count ==6722 [2025-03-11 18:01:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:01:06 - End Time 2025-03-11 18:01:06 [2025-03-11 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658535', 'tblTempUsageDetail_20' ) start [2025-03-11 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658535', 'tblTempUsageDetail_20' ) end [2025-03-11 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658535', 'tblTempVendorCDR_20' ) start [2025-03-11 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658535', 'tblTempVendorCDR_20' ) end [2025-03-11 18:01:22] Production.INFO: ProcessCDR(1,14658535,1,1,2) [2025-03-11 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658535', 'tblTempUsageDetail_20' ) start [2025-03-11 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658535', 'tblTempUsageDetail_20' ) end [2025-03-11 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:01:27] Production.INFO: ==24257== Releasing lock... [2025-03-11 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:01:27] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:02:05 [end_date_ymd] => 2025-03-11 18:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:02:05' and `end` < '2025-03-11 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-11 18:02:18] Production.INFO: count ==6706 [2025-03-11 18:02:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:02:05 - End Time 2025-03-11 18:02:05 [2025-03-11 18:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658540', 'tblTempUsageDetail_20' ) start [2025-03-11 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658540', 'tblTempUsageDetail_20' ) end [2025-03-11 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658540', 'tblTempVendorCDR_20' ) start [2025-03-11 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658540', 'tblTempVendorCDR_20' ) end [2025-03-11 18:02:22] Production.INFO: ProcessCDR(1,14658540,1,1,2) [2025-03-11 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658540', 'tblTempUsageDetail_20' ) start [2025-03-11 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658540', 'tblTempUsageDetail_20' ) end [2025-03-11 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:02:26] Production.INFO: ==24327== Releasing lock... [2025-03-11 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:02:26] Production.INFO: 78.25 MB #Memory Used# [2025-03-11 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:03:06 [end_date_ymd] => 2025-03-11 18:03:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:03:06' and `end` < '2025-03-11 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-11 18:03:19] Production.INFO: count ==6701 [2025-03-11 18:03:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:03:06 - End Time 2025-03-11 18:03:06 [2025-03-11 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658545', 'tblTempUsageDetail_20' ) start [2025-03-11 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658545', 'tblTempUsageDetail_20' ) end [2025-03-11 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658545', 'tblTempVendorCDR_20' ) start [2025-03-11 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658545', 'tblTempVendorCDR_20' ) end [2025-03-11 18:03:22] Production.INFO: ProcessCDR(1,14658545,1,1,2) [2025-03-11 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658545', 'tblTempUsageDetail_20' ) start [2025-03-11 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658545', 'tblTempUsageDetail_20' ) end [2025-03-11 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:03:25] Production.INFO: ==24400== Releasing lock... [2025-03-11 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:03:25] Production.INFO: 78 MB #Memory Used# [2025-03-11 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:04:06 [end_date_ymd] => 2025-03-11 18:04:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:04:06' and `end` < '2025-03-11 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-11 18:04:19] Production.INFO: count ==6689 [2025-03-11 18:04:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:04:06 - End Time 2025-03-11 18:04:06 [2025-03-11 18:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658550', 'tblTempUsageDetail_20' ) start [2025-03-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658550', 'tblTempUsageDetail_20' ) end [2025-03-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658550', 'tblTempVendorCDR_20' ) start [2025-03-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658550', 'tblTempVendorCDR_20' ) end [2025-03-11 18:04:23] Production.INFO: ProcessCDR(1,14658550,1,1,2) [2025-03-11 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658550', 'tblTempUsageDetail_20' ) start [2025-03-11 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658550', 'tblTempUsageDetail_20' ) end [2025-03-11 18:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:04:28] Production.INFO: ==24473== Releasing lock... [2025-03-11 18:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:04:28] Production.INFO: 78 MB #Memory Used# [2025-03-11 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:05:05 [end_date_ymd] => 2025-03-11 18:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:05:05' and `end` < '2025-03-11 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-11 18:05:19] Production.INFO: count ==6682 [2025-03-11 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:05:05 - End Time 2025-03-11 18:05:05 [2025-03-11 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658555', 'tblTempUsageDetail_20' ) start [2025-03-11 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658555', 'tblTempUsageDetail_20' ) end [2025-03-11 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658555', 'tblTempVendorCDR_20' ) start [2025-03-11 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658555', 'tblTempVendorCDR_20' ) end [2025-03-11 18:05:22] Production.INFO: ProcessCDR(1,14658555,1,1,2) [2025-03-11 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658555', 'tblTempUsageDetail_20' ) start [2025-03-11 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658555', 'tblTempUsageDetail_20' ) end [2025-03-11 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:05:25] Production.INFO: ==24543== Releasing lock... [2025-03-11 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:05:25] Production.INFO: 78 MB #Memory Used# [2025-03-11 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:06:05 [end_date_ymd] => 2025-03-11 18:06:05 [RateCDR] => 1 ) [2025-03-11 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:06:05' and `end` < '2025-03-11 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:06:18] Production.INFO: count ==6658 [2025-03-11 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:06:05 - End Time 2025-03-11 18:06:05 [2025-03-11 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658560', 'tblTempUsageDetail_20' ) start [2025-03-11 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658560', 'tblTempUsageDetail_20' ) end [2025-03-11 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658560', 'tblTempVendorCDR_20' ) start [2025-03-11 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658560', 'tblTempVendorCDR_20' ) end [2025-03-11 18:06:22] Production.INFO: ProcessCDR(1,14658560,1,1,2) [2025-03-11 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658560', 'tblTempUsageDetail_20' ) start [2025-03-11 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658560', 'tblTempUsageDetail_20' ) end [2025-03-11 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:06:25] Production.INFO: ==24613== Releasing lock... [2025-03-11 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:06:25] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:07:05 [end_date_ymd] => 2025-03-11 18:07:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:07:05' and `end` < '2025-03-11 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-11 18:07:19] Production.INFO: count ==6645 [2025-03-11 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:07:05 - End Time 2025-03-11 18:07:05 [2025-03-11 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658565', 'tblTempUsageDetail_20' ) start [2025-03-11 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658565', 'tblTempUsageDetail_20' ) end [2025-03-11 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658565', 'tblTempVendorCDR_20' ) start [2025-03-11 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658565', 'tblTempVendorCDR_20' ) end [2025-03-11 18:07:22] Production.INFO: ProcessCDR(1,14658565,1,1,2) [2025-03-11 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658565', 'tblTempUsageDetail_20' ) start [2025-03-11 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658565', 'tblTempUsageDetail_20' ) end [2025-03-11 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:07:27] Production.INFO: ==24684== Releasing lock... [2025-03-11 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:07:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:08:05 [end_date_ymd] => 2025-03-11 18:08:05 [RateCDR] => 1 ) [2025-03-11 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:08:05' and `end` < '2025-03-11 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:08:18] Production.INFO: count ==6638 [2025-03-11 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:08:05 - End Time 2025-03-11 18:08:05 [2025-03-11 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658570', 'tblTempUsageDetail_20' ) start [2025-03-11 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658570', 'tblTempUsageDetail_20' ) end [2025-03-11 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658570', 'tblTempVendorCDR_20' ) start [2025-03-11 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658570', 'tblTempVendorCDR_20' ) end [2025-03-11 18:08:21] Production.INFO: ProcessCDR(1,14658570,1,1,2) [2025-03-11 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658570', 'tblTempUsageDetail_20' ) start [2025-03-11 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658570', 'tblTempUsageDetail_20' ) end [2025-03-11 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:08:26] Production.INFO: ==24799== Releasing lock... [2025-03-11 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:08:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:09:05 [end_date_ymd] => 2025-03-11 18:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:09:05' and `end` < '2025-03-11 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-11 18:09:19] Production.INFO: count ==6638 [2025-03-11 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:09:05 - End Time 2025-03-11 18:09:05 [2025-03-11 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658575', 'tblTempUsageDetail_20' ) start [2025-03-11 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658575', 'tblTempUsageDetail_20' ) end [2025-03-11 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658575', 'tblTempVendorCDR_20' ) start [2025-03-11 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658575', 'tblTempVendorCDR_20' ) end [2025-03-11 18:09:21] Production.INFO: ProcessCDR(1,14658575,1,1,2) [2025-03-11 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658575', 'tblTempUsageDetail_20' ) start [2025-03-11 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658575', 'tblTempUsageDetail_20' ) end [2025-03-11 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:09:27] Production.INFO: ==24871== Releasing lock... [2025-03-11 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:09:27] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:10:06 [end_date_ymd] => 2025-03-11 18:10:06 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:10:06' and `end` < '2025-03-11 18: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-11 18:10:19] Production.INFO: count ==6639 [2025-03-11 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:10:06 - End Time 2025-03-11 18:10:06 [2025-03-11 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658581', 'tblTempUsageDetail_20' ) start [2025-03-11 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658581', 'tblTempUsageDetail_20' ) end [2025-03-11 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658581', 'tblTempVendorCDR_20' ) start [2025-03-11 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658581', 'tblTempVendorCDR_20' ) end [2025-03-11 18:10:22] Production.INFO: ProcessCDR(1,14658581,1,1,2) [2025-03-11 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658581', 'tblTempUsageDetail_20' ) start [2025-03-11 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658581', 'tblTempUsageDetail_20' ) end [2025-03-11 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:10:26] Production.INFO: ==24943== Releasing lock... [2025-03-11 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:10:26] Production.INFO: 77.75 MB #Memory Used# [2025-03-11 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:11:05 [end_date_ymd] => 2025-03-11 18:11:05 [RateCDR] => 1 ) [2025-03-11 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:11:05' and `end` < '2025-03-11 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:11:18] Production.INFO: count ==6605 [2025-03-11 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:11:05 - End Time 2025-03-11 18:11:05 [2025-03-11 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658586', 'tblTempUsageDetail_20' ) start [2025-03-11 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658586', 'tblTempUsageDetail_20' ) end [2025-03-11 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658586', 'tblTempVendorCDR_20' ) start [2025-03-11 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658586', 'tblTempVendorCDR_20' ) end [2025-03-11 18:11:21] Production.INFO: ProcessCDR(1,14658586,1,1,2) [2025-03-11 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658586', 'tblTempUsageDetail_20' ) start [2025-03-11 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658586', 'tblTempUsageDetail_20' ) end [2025-03-11 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:11:26] Production.INFO: ==25017== Releasing lock... [2025-03-11 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:11:26] Production.INFO: 77.5 MB #Memory Used# [2025-03-11 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:12:04 [end_date_ymd] => 2025-03-11 18:12:04 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:12:04' and `end` < '2025-03-11 18: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-11 18:12:17] Production.INFO: count ==6594 [2025-03-11 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:12:04 - End Time 2025-03-11 18:12:04 [2025-03-11 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658591', 'tblTempUsageDetail_20' ) start [2025-03-11 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658591', 'tblTempUsageDetail_20' ) end [2025-03-11 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658591', 'tblTempVendorCDR_20' ) start [2025-03-11 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658591', 'tblTempVendorCDR_20' ) end [2025-03-11 18:12:20] Production.INFO: ProcessCDR(1,14658591,1,1,2) [2025-03-11 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658591', 'tblTempUsageDetail_20' ) start [2025-03-11 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658591', 'tblTempUsageDetail_20' ) end [2025-03-11 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:12:25] Production.INFO: ==25090== Releasing lock... [2025-03-11 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:12:25] Production.INFO: 77.25 MB #Memory Used# [2025-03-11 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:13:05 [end_date_ymd] => 2025-03-11 18:13:05 [RateCDR] => 1 ) [2025-03-11 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:13:05' and `end` < '2025-03-11 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:13:18] Production.INFO: count ==6589 [2025-03-11 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:13:05 - End Time 2025-03-11 18:13:05 [2025-03-11 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658596', 'tblTempUsageDetail_20' ) start [2025-03-11 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658596', 'tblTempUsageDetail_20' ) end [2025-03-11 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658596', 'tblTempVendorCDR_20' ) start [2025-03-11 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658596', 'tblTempVendorCDR_20' ) end [2025-03-11 18:13:21] Production.INFO: ProcessCDR(1,14658596,1,1,2) [2025-03-11 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658596', 'tblTempUsageDetail_20' ) start [2025-03-11 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658596', 'tblTempUsageDetail_20' ) end [2025-03-11 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:13:24] Production.INFO: ==25160== Releasing lock... [2025-03-11 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:13:24] Production.INFO: 77.25 MB #Memory Used# [2025-03-11 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:14:05 [end_date_ymd] => 2025-03-11 18:14:05 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:14:05' and `end` < '2025-03-11 18: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-11 18:14:18] Production.INFO: count ==6567 [2025-03-11 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:14:05 - End Time 2025-03-11 18:14:05 [2025-03-11 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658601', 'tblTempUsageDetail_20' ) start [2025-03-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658601', 'tblTempUsageDetail_20' ) end [2025-03-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658601', 'tblTempVendorCDR_20' ) start [2025-03-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658601', 'tblTempVendorCDR_20' ) end [2025-03-11 18:14:21] Production.INFO: ProcessCDR(1,14658601,1,1,2) [2025-03-11 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658601', 'tblTempUsageDetail_20' ) start [2025-03-11 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658601', 'tblTempUsageDetail_20' ) end [2025-03-11 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:14:26] Production.INFO: ==25238== Releasing lock... [2025-03-11 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:14:26] Production.INFO: 77 MB #Memory Used# [2025-03-11 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:15:05 [end_date_ymd] => 2025-03-11 18:15:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:15:05' and `end` < '2025-03-11 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-11 18:15:18] Production.INFO: count ==6567 [2025-03-11 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:15:05 - End Time 2025-03-11 18:15:05 [2025-03-11 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658606', 'tblTempUsageDetail_20' ) start [2025-03-11 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658606', 'tblTempUsageDetail_20' ) end [2025-03-11 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658606', 'tblTempVendorCDR_20' ) start [2025-03-11 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658606', 'tblTempVendorCDR_20' ) end [2025-03-11 18:15:21] Production.INFO: ProcessCDR(1,14658606,1,1,2) [2025-03-11 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658606', 'tblTempUsageDetail_20' ) start [2025-03-11 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658606', 'tblTempUsageDetail_20' ) end [2025-03-11 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:15:24] Production.INFO: ==25312== Releasing lock... [2025-03-11 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:15:24] Production.INFO: 77 MB #Memory Used# [2025-03-11 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:16:05 [end_date_ymd] => 2025-03-11 18:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:16:05' and `end` < '2025-03-11 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-11 18:16:18] Production.INFO: count ==6571 [2025-03-11 18:16:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:16:05 - End Time 2025-03-11 18:16:05 [2025-03-11 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658611', 'tblTempUsageDetail_20' ) start [2025-03-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658611', 'tblTempUsageDetail_20' ) end [2025-03-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658611', 'tblTempVendorCDR_20' ) start [2025-03-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658611', 'tblTempVendorCDR_20' ) end [2025-03-11 18:16:21] Production.INFO: ProcessCDR(1,14658611,1,1,2) [2025-03-11 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658611', 'tblTempUsageDetail_20' ) start [2025-03-11 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658611', 'tblTempUsageDetail_20' ) end [2025-03-11 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:16:25] Production.INFO: ==25385== Releasing lock... [2025-03-11 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:16:25] Production.INFO: 77.25 MB #Memory Used# [2025-03-11 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:17:05 [end_date_ymd] => 2025-03-11 18:17:05 [RateCDR] => 1 ) [2025-03-11 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:17:05' and `end` < '2025-03-11 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:17:18] Production.INFO: count ==6556 [2025-03-11 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:17:05 - End Time 2025-03-11 18:17:05 [2025-03-11 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658616', 'tblTempUsageDetail_20' ) start [2025-03-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658616', 'tblTempUsageDetail_20' ) end [2025-03-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658616', 'tblTempVendorCDR_20' ) start [2025-03-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658616', 'tblTempVendorCDR_20' ) end [2025-03-11 18:17:21] Production.INFO: ProcessCDR(1,14658616,1,1,2) [2025-03-11 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658616', 'tblTempUsageDetail_20' ) start [2025-03-11 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658616', 'tblTempUsageDetail_20' ) end [2025-03-11 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:17:24] Production.INFO: ==25456== Releasing lock... [2025-03-11 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:17:24] Production.INFO: 77 MB #Memory Used# [2025-03-11 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:18:06 [end_date_ymd] => 2025-03-11 18:18:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:18:06' and `end` < '2025-03-11 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-11 18:18:19] Production.INFO: count ==6537 [2025-03-11 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:18:06 - End Time 2025-03-11 18:18:06 [2025-03-11 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658621', 'tblTempUsageDetail_20' ) start [2025-03-11 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658621', 'tblTempUsageDetail_20' ) end [2025-03-11 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658621', 'tblTempVendorCDR_20' ) start [2025-03-11 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658621', 'tblTempVendorCDR_20' ) end [2025-03-11 18:18:22] Production.INFO: ProcessCDR(1,14658621,1,1,2) [2025-03-11 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658621', 'tblTempUsageDetail_20' ) start [2025-03-11 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658621', 'tblTempUsageDetail_20' ) end [2025-03-11 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:18:27] Production.INFO: ==25531== Releasing lock... [2025-03-11 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:18:27] Production.INFO: 77 MB #Memory Used# [2025-03-11 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:19:05 [end_date_ymd] => 2025-03-11 18:19:05 [RateCDR] => 1 ) [2025-03-11 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:19:05' and `end` < '2025-03-11 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:19:18] Production.INFO: count ==6529 [2025-03-11 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:19:05 - End Time 2025-03-11 18:19:05 [2025-03-11 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658626', 'tblTempUsageDetail_20' ) start [2025-03-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658626', 'tblTempUsageDetail_20' ) end [2025-03-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658626', 'tblTempVendorCDR_20' ) start [2025-03-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658626', 'tblTempVendorCDR_20' ) end [2025-03-11 18:19:21] Production.INFO: ProcessCDR(1,14658626,1,1,2) [2025-03-11 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658626', 'tblTempUsageDetail_20' ) start [2025-03-11 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658626', 'tblTempUsageDetail_20' ) end [2025-03-11 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:19:25] Production.INFO: ==25607== Releasing lock... [2025-03-11 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:19:25] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:20:05 [end_date_ymd] => 2025-03-11 18:20:05 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:20:05' and `end` < '2025-03-11 18: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-11 18:20:18] Production.INFO: count ==6505 [2025-03-11 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:20:05 - End Time 2025-03-11 18:20:05 [2025-03-11 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658631', 'tblTempUsageDetail_20' ) start [2025-03-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658631', 'tblTempUsageDetail_20' ) end [2025-03-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658631', 'tblTempVendorCDR_20' ) start [2025-03-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658631', 'tblTempVendorCDR_20' ) end [2025-03-11 18:20:21] Production.INFO: ProcessCDR(1,14658631,1,1,2) [2025-03-11 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658631', 'tblTempUsageDetail_20' ) start [2025-03-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658631', 'tblTempUsageDetail_20' ) end [2025-03-11 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:20:26] Production.INFO: ==25684== Releasing lock... [2025-03-11 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:20:26] Production.INFO: 76.75 MB #Memory Used# [2025-03-11 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:21:05 [end_date_ymd] => 2025-03-11 18:21:05 [RateCDR] => 1 ) [2025-03-11 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:21:05' and `end` < '2025-03-11 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:21:18] Production.INFO: count ==6464 [2025-03-11 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:21:05 - End Time 2025-03-11 18:21:05 [2025-03-11 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658637', 'tblTempUsageDetail_20' ) start [2025-03-11 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658637', 'tblTempUsageDetail_20' ) end [2025-03-11 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658637', 'tblTempVendorCDR_20' ) start [2025-03-11 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658637', 'tblTempVendorCDR_20' ) end [2025-03-11 18:21:21] Production.INFO: ProcessCDR(1,14658637,1,1,2) [2025-03-11 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658637', 'tblTempUsageDetail_20' ) start [2025-03-11 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658637', 'tblTempUsageDetail_20' ) end [2025-03-11 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:21:26] Production.INFO: ==25757== Releasing lock... [2025-03-11 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:21:26] Production.INFO: 76.25 MB #Memory Used# [2025-03-11 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:22:05 [end_date_ymd] => 2025-03-11 18:22:05 [RateCDR] => 1 ) [2025-03-11 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:22:05' and `end` < '2025-03-11 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:22:18] Production.INFO: count ==6435 [2025-03-11 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:22:05 - End Time 2025-03-11 18:22:05 [2025-03-11 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658642', 'tblTempUsageDetail_20' ) start [2025-03-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658642', 'tblTempUsageDetail_20' ) end [2025-03-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658642', 'tblTempVendorCDR_20' ) start [2025-03-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658642', 'tblTempVendorCDR_20' ) end [2025-03-11 18:22:21] Production.INFO: ProcessCDR(1,14658642,1,1,2) [2025-03-11 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658642', 'tblTempUsageDetail_20' ) start [2025-03-11 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658642', 'tblTempUsageDetail_20' ) end [2025-03-11 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:22:25] Production.INFO: ==25832== Releasing lock... [2025-03-11 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:22:25] Production.INFO: 76 MB #Memory Used# [2025-03-11 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:23:05 [end_date_ymd] => 2025-03-11 18:23:05 [RateCDR] => 1 ) [2025-03-11 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:23:05' and `end` < '2025-03-11 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:23:18] Production.INFO: count ==6414 [2025-03-11 18:23:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:23:05 - End Time 2025-03-11 18:23:05 [2025-03-11 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658647', 'tblTempUsageDetail_20' ) start [2025-03-11 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658647', 'tblTempUsageDetail_20' ) end [2025-03-11 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658647', 'tblTempVendorCDR_20' ) start [2025-03-11 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658647', 'tblTempVendorCDR_20' ) end [2025-03-11 18:23:21] Production.INFO: ProcessCDR(1,14658647,1,1,2) [2025-03-11 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658647', 'tblTempUsageDetail_20' ) start [2025-03-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658647', 'tblTempUsageDetail_20' ) end [2025-03-11 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:23:25] Production.INFO: ==25952== Releasing lock... [2025-03-11 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:23:25] Production.INFO: 76 MB #Memory Used# [2025-03-11 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:24:05 [end_date_ymd] => 2025-03-11 18:24:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:24:05' and `end` < '2025-03-11 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-11 18:24:18] Production.INFO: count ==6394 [2025-03-11 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:24:05 - End Time 2025-03-11 18:24:05 [2025-03-11 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658652', 'tblTempUsageDetail_20' ) start [2025-03-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658652', 'tblTempUsageDetail_20' ) end [2025-03-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658652', 'tblTempVendorCDR_20' ) start [2025-03-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658652', 'tblTempVendorCDR_20' ) end [2025-03-11 18:24:21] Production.INFO: ProcessCDR(1,14658652,1,1,2) [2025-03-11 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658652', 'tblTempUsageDetail_20' ) start [2025-03-11 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658652', 'tblTempUsageDetail_20' ) end [2025-03-11 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:24:26] Production.INFO: ==26026== Releasing lock... [2025-03-11 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:24:26] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:25:04 [end_date_ymd] => 2025-03-11 18:25:04 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:25:04' and `end` < '2025-03-11 18: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-11 18:25:17] Production.INFO: count ==6397 [2025-03-11 18:25:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:25:04 - End Time 2025-03-11 18:25:04 [2025-03-11 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658657', 'tblTempUsageDetail_20' ) start [2025-03-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658657', 'tblTempUsageDetail_20' ) end [2025-03-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658657', 'tblTempVendorCDR_20' ) start [2025-03-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658657', 'tblTempVendorCDR_20' ) end [2025-03-11 18:25:20] Production.INFO: ProcessCDR(1,14658657,1,1,2) [2025-03-11 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658657', 'tblTempUsageDetail_20' ) start [2025-03-11 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658657', 'tblTempUsageDetail_20' ) end [2025-03-11 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:25:25] Production.INFO: ==26102== Releasing lock... [2025-03-11 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:25:25] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 18:26:29] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:26:29 [end_date_ymd] => 2025-03-11 18:26:29 [RateCDR] => 1 ) [2025-03-11 18:26:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:26:29' and `end` < '2025-03-11 18:26:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:26:42] Production.INFO: count ==6383 [2025-03-11 18:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 15:26:29 - End Time 2025-03-11 18:26:29 [2025-03-11 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658662', 'tblTempUsageDetail_20' ) start [2025-03-11 18:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658662', 'tblTempUsageDetail_20' ) end [2025-03-11 18:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658662', 'tblTempVendorCDR_20' ) start [2025-03-11 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658662', 'tblTempVendorCDR_20' ) end [2025-03-11 18:28:26] Production.INFO: ProcessCDR(1,14658662,1,1,2) [2025-03-11 18:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:28:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:28:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658662', 'tblTempUsageDetail_20' ) start [2025-03-11 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658662', 'tblTempUsageDetail_20' ) end [2025-03-11 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:29:32] Production.INFO: ==26183== Releasing lock... [2025-03-11 18:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:29:32] Production.INFO: 75.75 MB #Memory Used# [2025-03-11 18:30:28] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:30:28 [end_date_ymd] => 2025-03-11 18:30:28 [RateCDR] => 1 ) [2025-03-11 18:30:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:30:28' and `end` < '2025-03-11 18:30:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:30:41] Production.INFO: count ==6243 [2025-03-11 18:31:53] Production.ERROR: pbx CDR StartTime 2025-03-11 15:30:28 - End Time 2025-03-11 18:30:28 [2025-03-11 18:31:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:31:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658677', 'tblTempUsageDetail_20' ) start [2025-03-11 18:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658677', 'tblTempUsageDetail_20' ) end [2025-03-11 18:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658677', 'tblTempVendorCDR_20' ) start [2025-03-11 18:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658677', 'tblTempVendorCDR_20' ) end [2025-03-11 18:32:06] Production.INFO: ProcessCDR(1,14658677,1,1,2) [2025-03-11 18:32:06] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:32:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:32:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658677', 'tblTempUsageDetail_20' ) start [2025-03-11 18:33:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658677', 'tblTempUsageDetail_20' ) end [2025-03-11 18:33:15] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:33:15] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:33:17] Production.INFO: ==26460== Releasing lock... [2025-03-11 18:33:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:33:17] Production.INFO: 74.75 MB #Memory Used# [2025-03-11 18:34:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:34:20 [end_date_ymd] => 2025-03-11 18:34:20 [RateCDR] => 1 ) [2025-03-11 18:34:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:34:20' and `end` < '2025-03-11 18:34:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:34:33] Production.INFO: count ==6001 [2025-03-11 18:34:43] Production.ERROR: pbx CDR StartTime 2025-03-11 15:34:20 - End Time 2025-03-11 18:34:20 [2025-03-11 18:34:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:34:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658691', 'tblTempUsageDetail_20' ) start [2025-03-11 18:34:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658691', 'tblTempUsageDetail_20' ) end [2025-03-11 18:34:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658691', 'tblTempVendorCDR_20' ) start [2025-03-11 18:34:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658691', 'tblTempVendorCDR_20' ) end [2025-03-11 18:34:43] Production.INFO: ProcessCDR(1,14658691,1,1,2) [2025-03-11 18:34:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:34:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:34:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:34:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:34:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658691', 'tblTempUsageDetail_20' ) start [2025-03-11 18:34:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658691', 'tblTempUsageDetail_20' ) end [2025-03-11 18:34:49] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:34:49] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:34:49] Production.INFO: ==26747== Releasing lock... [2025-03-11 18:34:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:34:49] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:35:05 [end_date_ymd] => 2025-03-11 18:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:35:05' and `end` < '2025-03-11 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-11 18:35:19] Production.INFO: count ==5972 [2025-03-11 18:35:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:35:05 - End Time 2025-03-11 18:35:05 [2025-03-11 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658696', 'tblTempUsageDetail_20' ) start [2025-03-11 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658696', 'tblTempUsageDetail_20' ) end [2025-03-11 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658696', 'tblTempVendorCDR_20' ) start [2025-03-11 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658696', 'tblTempVendorCDR_20' ) end [2025-03-11 18:35:21] Production.INFO: ProcessCDR(1,14658696,1,1,2) [2025-03-11 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658696', 'tblTempUsageDetail_20' ) start [2025-03-11 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658696', 'tblTempUsageDetail_20' ) end [2025-03-11 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:35:26] Production.INFO: ==26831== Releasing lock... [2025-03-11 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:35:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:36:05 [end_date_ymd] => 2025-03-11 18:36:05 [RateCDR] => 1 ) [2025-03-11 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:36:05' and `end` < '2025-03-11 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:36:18] Production.INFO: count ==5980 [2025-03-11 18:36:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:36:05 - End Time 2025-03-11 18:36:05 [2025-03-11 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658701', 'tblTempUsageDetail_20' ) start [2025-03-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658701', 'tblTempUsageDetail_20' ) end [2025-03-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658701', 'tblTempVendorCDR_20' ) start [2025-03-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658701', 'tblTempVendorCDR_20' ) end [2025-03-11 18:36:21] Production.INFO: ProcessCDR(1,14658701,1,1,2) [2025-03-11 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658701', 'tblTempUsageDetail_20' ) start [2025-03-11 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658701', 'tblTempUsageDetail_20' ) end [2025-03-11 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:36:24] Production.INFO: ==26905== Releasing lock... [2025-03-11 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:36:24] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:37:05 [end_date_ymd] => 2025-03-11 18:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:37:05' and `end` < '2025-03-11 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-11 18:37:18] Production.INFO: count ==5989 [2025-03-11 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:37:05 - End Time 2025-03-11 18:37:05 [2025-03-11 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658706', 'tblTempUsageDetail_20' ) start [2025-03-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658706', 'tblTempUsageDetail_20' ) end [2025-03-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658706', 'tblTempVendorCDR_20' ) start [2025-03-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658706', 'tblTempVendorCDR_20' ) end [2025-03-11 18:37:20] Production.INFO: ProcessCDR(1,14658706,1,1,2) [2025-03-11 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658706', 'tblTempUsageDetail_20' ) start [2025-03-11 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658706', 'tblTempUsageDetail_20' ) end [2025-03-11 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:37:25] Production.INFO: ==26982== Releasing lock... [2025-03-11 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:37:25] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:38:05 [end_date_ymd] => 2025-03-11 18:38:05 [RateCDR] => 1 ) [2025-03-11 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:38:05' and `end` < '2025-03-11 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:38:19] Production.INFO: count ==5992 [2025-03-11 18:38:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:38:05 - End Time 2025-03-11 18:38:05 [2025-03-11 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658711', 'tblTempUsageDetail_20' ) start [2025-03-11 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658711', 'tblTempUsageDetail_20' ) end [2025-03-11 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658711', 'tblTempVendorCDR_20' ) start [2025-03-11 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658711', 'tblTempVendorCDR_20' ) end [2025-03-11 18:38:21] Production.INFO: ProcessCDR(1,14658711,1,1,2) [2025-03-11 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658711', 'tblTempUsageDetail_20' ) start [2025-03-11 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658711', 'tblTempUsageDetail_20' ) end [2025-03-11 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:38:26] Production.INFO: ==27057== Releasing lock... [2025-03-11 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:38:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:39:05 [end_date_ymd] => 2025-03-11 18:39:05 [RateCDR] => 1 ) [2025-03-11 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:39:05' and `end` < '2025-03-11 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:39:18] Production.INFO: count ==5995 [2025-03-11 18:39:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:39:05 - End Time 2025-03-11 18:39:05 [2025-03-11 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658716', 'tblTempUsageDetail_20' ) start [2025-03-11 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658716', 'tblTempUsageDetail_20' ) end [2025-03-11 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658716', 'tblTempVendorCDR_20' ) start [2025-03-11 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658716', 'tblTempVendorCDR_20' ) end [2025-03-11 18:39:21] Production.INFO: ProcessCDR(1,14658716,1,1,2) [2025-03-11 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658716', 'tblTempUsageDetail_20' ) start [2025-03-11 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658716', 'tblTempUsageDetail_20' ) end [2025-03-11 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:39:24] Production.INFO: ==27174== Releasing lock... [2025-03-11 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:39:24] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:40:05 [end_date_ymd] => 2025-03-11 18:40:05 [RateCDR] => 1 ) [2025-03-11 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:40:05' and `end` < '2025-03-11 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:40:18] Production.INFO: count ==5975 [2025-03-11 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:40:05 - End Time 2025-03-11 18:40:05 [2025-03-11 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658722', 'tblTempUsageDetail_20' ) start [2025-03-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658722', 'tblTempUsageDetail_20' ) end [2025-03-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658722', 'tblTempVendorCDR_20' ) start [2025-03-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658722', 'tblTempVendorCDR_20' ) end [2025-03-11 18:40:21] Production.INFO: ProcessCDR(1,14658722,1,1,2) [2025-03-11 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658722', 'tblTempUsageDetail_20' ) start [2025-03-11 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658722', 'tblTempUsageDetail_20' ) end [2025-03-11 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:40:25] Production.INFO: ==27253== Releasing lock... [2025-03-11 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:40:25] Production.INFO: 72.75 MB #Memory Used# [2025-03-11 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:41:05 [end_date_ymd] => 2025-03-11 18:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:41:05' and `end` < '2025-03-11 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-11 18:41:18] Production.INFO: count ==5931 [2025-03-11 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:41:05 - End Time 2025-03-11 18:41:05 [2025-03-11 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658727', 'tblTempUsageDetail_20' ) start [2025-03-11 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658727', 'tblTempUsageDetail_20' ) end [2025-03-11 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658727', 'tblTempVendorCDR_20' ) start [2025-03-11 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658727', 'tblTempVendorCDR_20' ) end [2025-03-11 18:41:21] Production.INFO: ProcessCDR(1,14658727,1,1,2) [2025-03-11 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658727', 'tblTempUsageDetail_20' ) start [2025-03-11 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658727', 'tblTempUsageDetail_20' ) end [2025-03-11 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:41:25] Production.INFO: ==27334== Releasing lock... [2025-03-11 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:41:25] Production.INFO: 72.25 MB #Memory Used# [2025-03-11 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:42:05 [end_date_ymd] => 2025-03-11 18:42:05 [RateCDR] => 1 ) [2025-03-11 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:42:05' and `end` < '2025-03-11 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:42:17] Production.INFO: count ==5895 [2025-03-11 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:42:05 - End Time 2025-03-11 18:42:05 [2025-03-11 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658732', 'tblTempUsageDetail_20' ) start [2025-03-11 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658732', 'tblTempUsageDetail_20' ) end [2025-03-11 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658732', 'tblTempVendorCDR_20' ) start [2025-03-11 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658732', 'tblTempVendorCDR_20' ) end [2025-03-11 18:42:20] Production.INFO: ProcessCDR(1,14658732,1,1,2) [2025-03-11 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658732', 'tblTempUsageDetail_20' ) start [2025-03-11 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658732', 'tblTempUsageDetail_20' ) end [2025-03-11 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:42:25] Production.INFO: ==27416== Releasing lock... [2025-03-11 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:42:25] Production.INFO: 72 MB #Memory Used# [2025-03-11 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:43:05 [end_date_ymd] => 2025-03-11 18:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:43:05' and `end` < '2025-03-11 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-11 18:43:18] Production.INFO: count ==5893 [2025-03-11 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:43:05 - End Time 2025-03-11 18:43:05 [2025-03-11 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658737', 'tblTempUsageDetail_20' ) start [2025-03-11 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658737', 'tblTempUsageDetail_20' ) end [2025-03-11 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658737', 'tblTempVendorCDR_20' ) start [2025-03-11 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658737', 'tblTempVendorCDR_20' ) end [2025-03-11 18:43:21] Production.INFO: ProcessCDR(1,14658737,1,1,2) [2025-03-11 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658737', 'tblTempUsageDetail_20' ) start [2025-03-11 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658737', 'tblTempUsageDetail_20' ) end [2025-03-11 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:43:26] Production.INFO: ==27536== Releasing lock... [2025-03-11 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:43:26] Production.INFO: 72 MB #Memory Used# [2025-03-11 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:44:06 [end_date_ymd] => 2025-03-11 18:44:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:44:06' and `end` < '2025-03-11 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-11 18:44:19] Production.INFO: count ==5893 [2025-03-11 18:44:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:44:06 - End Time 2025-03-11 18:44:06 [2025-03-11 18:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658742', 'tblTempUsageDetail_20' ) start [2025-03-11 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658742', 'tblTempUsageDetail_20' ) end [2025-03-11 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658742', 'tblTempVendorCDR_20' ) start [2025-03-11 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658742', 'tblTempVendorCDR_20' ) end [2025-03-11 18:44:22] Production.INFO: ProcessCDR(1,14658742,1,1,2) [2025-03-11 18:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658742', 'tblTempUsageDetail_20' ) start [2025-03-11 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658742', 'tblTempUsageDetail_20' ) end [2025-03-11 18:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:44:27] Production.INFO: ==27619== Releasing lock... [2025-03-11 18:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:44:27] Production.INFO: 72 MB #Memory Used# [2025-03-11 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:45:05 [end_date_ymd] => 2025-03-11 18:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:45:05' and `end` < '2025-03-11 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-11 18:45:18] Production.INFO: count ==5862 [2025-03-11 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:45:05 - End Time 2025-03-11 18:45:05 [2025-03-11 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658747', 'tblTempUsageDetail_20' ) start [2025-03-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658747', 'tblTempUsageDetail_20' ) end [2025-03-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658747', 'tblTempVendorCDR_20' ) start [2025-03-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658747', 'tblTempVendorCDR_20' ) end [2025-03-11 18:45:21] Production.INFO: ProcessCDR(1,14658747,1,1,2) [2025-03-11 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658747', 'tblTempUsageDetail_20' ) start [2025-03-11 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658747', 'tblTempUsageDetail_20' ) end [2025-03-11 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:45:26] Production.INFO: ==27735== Releasing lock... [2025-03-11 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:45:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:46:05 [end_date_ymd] => 2025-03-11 18:46:05 [RateCDR] => 1 ) [2025-03-11 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:46:05' and `end` < '2025-03-11 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:46:18] Production.INFO: count ==5851 [2025-03-11 18:46:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:46:05 - End Time 2025-03-11 18:46:05 [2025-03-11 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658752', 'tblTempUsageDetail_20' ) start [2025-03-11 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658752', 'tblTempUsageDetail_20' ) end [2025-03-11 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658752', 'tblTempVendorCDR_20' ) start [2025-03-11 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658752', 'tblTempVendorCDR_20' ) end [2025-03-11 18:46:21] Production.INFO: ProcessCDR(1,14658752,1,1,2) [2025-03-11 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658752', 'tblTempUsageDetail_20' ) start [2025-03-11 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658752', 'tblTempUsageDetail_20' ) end [2025-03-11 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:46:26] Production.INFO: ==27819== Releasing lock... [2025-03-11 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:46:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:47:05 [end_date_ymd] => 2025-03-11 18:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:47:05' and `end` < '2025-03-11 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-11 18:47:18] Production.INFO: count ==5846 [2025-03-11 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:47:05 - End Time 2025-03-11 18:47:05 [2025-03-11 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658757', 'tblTempUsageDetail_20' ) start [2025-03-11 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658757', 'tblTempUsageDetail_20' ) end [2025-03-11 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658757', 'tblTempVendorCDR_20' ) start [2025-03-11 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658757', 'tblTempVendorCDR_20' ) end [2025-03-11 18:47:21] Production.INFO: ProcessCDR(1,14658757,1,1,2) [2025-03-11 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658757', 'tblTempUsageDetail_20' ) start [2025-03-11 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658757', 'tblTempUsageDetail_20' ) end [2025-03-11 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:47:24] Production.INFO: ==27936== Releasing lock... [2025-03-11 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:47:24] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:48:05 [end_date_ymd] => 2025-03-11 18:48:05 [RateCDR] => 1 ) [2025-03-11 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:48:05' and `end` < '2025-03-11 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:48:18] Production.INFO: count ==5841 [2025-03-11 18:48:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:48:05 - End Time 2025-03-11 18:48:05 [2025-03-11 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658762', 'tblTempUsageDetail_20' ) start [2025-03-11 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658762', 'tblTempUsageDetail_20' ) end [2025-03-11 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658762', 'tblTempVendorCDR_20' ) start [2025-03-11 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658762', 'tblTempVendorCDR_20' ) end [2025-03-11 18:48:21] Production.INFO: ProcessCDR(1,14658762,1,1,2) [2025-03-11 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658762', 'tblTempUsageDetail_20' ) start [2025-03-11 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658762', 'tblTempUsageDetail_20' ) end [2025-03-11 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:48:26] Production.INFO: ==28026== Releasing lock... [2025-03-11 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:48:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:49:05 [end_date_ymd] => 2025-03-11 18:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:49:05' and `end` < '2025-03-11 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-11 18:49:18] Production.INFO: count ==5841 [2025-03-11 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:49:05 - End Time 2025-03-11 18:49:05 [2025-03-11 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658767', 'tblTempUsageDetail_20' ) start [2025-03-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658767', 'tblTempUsageDetail_20' ) end [2025-03-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658767', 'tblTempVendorCDR_20' ) start [2025-03-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658767', 'tblTempVendorCDR_20' ) end [2025-03-11 18:49:20] Production.INFO: ProcessCDR(1,14658767,1,1,2) [2025-03-11 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658767', 'tblTempUsageDetail_20' ) start [2025-03-11 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658767', 'tblTempUsageDetail_20' ) end [2025-03-11 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:49:24] Production.INFO: ==28145== Releasing lock... [2025-03-11 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:49:24] Production.INFO: 71.75 MB #Memory Used# [2025-03-11 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:50:06 [end_date_ymd] => 2025-03-11 18:50:06 [RateCDR] => 1 ) [2025-03-11 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:50:06' and `end` < '2025-03-11 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:50:19] Production.INFO: count ==5820 [2025-03-11 18:50:22] Production.ERROR: pbx CDR StartTime 2025-03-11 15:50:06 - End Time 2025-03-11 18:50:06 [2025-03-11 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658773', 'tblTempUsageDetail_20' ) start [2025-03-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658773', 'tblTempUsageDetail_20' ) end [2025-03-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658773', 'tblTempVendorCDR_20' ) start [2025-03-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658773', 'tblTempVendorCDR_20' ) end [2025-03-11 18:50:22] Production.INFO: ProcessCDR(1,14658773,1,1,2) [2025-03-11 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658773', 'tblTempUsageDetail_20' ) start [2025-03-11 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658773', 'tblTempUsageDetail_20' ) end [2025-03-11 18:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:50:27] Production.INFO: ==28239== Releasing lock... [2025-03-11 18:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:50:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-11 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:51:06 [end_date_ymd] => 2025-03-11 18:51:06 [RateCDR] => 1 ) [2025-03-11 18: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-11 15:51:06' and `end` < '2025-03-11 18: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-11 18:51:19] Production.INFO: count ==5738 [2025-03-11 18:51:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:51:06 - End Time 2025-03-11 18:51:06 [2025-03-11 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658778', 'tblTempUsageDetail_20' ) start [2025-03-11 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658778', 'tblTempUsageDetail_20' ) end [2025-03-11 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658778', 'tblTempVendorCDR_20' ) start [2025-03-11 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658778', 'tblTempVendorCDR_20' ) end [2025-03-11 18:51:21] Production.INFO: ProcessCDR(1,14658778,1,1,2) [2025-03-11 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658778', 'tblTempUsageDetail_20' ) start [2025-03-11 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658778', 'tblTempUsageDetail_20' ) end [2025-03-11 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:51:26] Production.INFO: ==28353== Releasing lock... [2025-03-11 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:51:26] Production.INFO: 71 MB #Memory Used# [2025-03-11 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:52:05 [end_date_ymd] => 2025-03-11 18:52:05 [RateCDR] => 1 ) [2025-03-11 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:52:05' and `end` < '2025-03-11 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:52:18] Production.INFO: count ==5684 [2025-03-11 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:52:05 - End Time 2025-03-11 18:52:05 [2025-03-11 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658783', 'tblTempUsageDetail_20' ) start [2025-03-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658783', 'tblTempUsageDetail_20' ) end [2025-03-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658783', 'tblTempVendorCDR_20' ) start [2025-03-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658783', 'tblTempVendorCDR_20' ) end [2025-03-11 18:52:20] Production.INFO: ProcessCDR(1,14658783,1,1,2) [2025-03-11 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658783', 'tblTempUsageDetail_20' ) start [2025-03-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658783', 'tblTempUsageDetail_20' ) end [2025-03-11 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:52:25] Production.INFO: ==28457== Releasing lock... [2025-03-11 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:52:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-11 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:53:05 [end_date_ymd] => 2025-03-11 18:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:53:05' and `end` < '2025-03-11 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-11 18:53:18] Production.INFO: count ==5667 [2025-03-11 18:53:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:53:05 - End Time 2025-03-11 18:53:05 [2025-03-11 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658787', 'tblTempUsageDetail_20' ) start [2025-03-11 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658787', 'tblTempUsageDetail_20' ) end [2025-03-11 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658787', 'tblTempVendorCDR_20' ) start [2025-03-11 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658787', 'tblTempVendorCDR_20' ) end [2025-03-11 18:53:21] Production.INFO: ProcessCDR(1,14658787,1,1,2) [2025-03-11 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658787', 'tblTempUsageDetail_20' ) start [2025-03-11 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658787', 'tblTempUsageDetail_20' ) end [2025-03-11 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:53:24] Production.INFO: ==28563== Releasing lock... [2025-03-11 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:53:24] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:54:06 [end_date_ymd] => 2025-03-11 18:54:06 [RateCDR] => 1 ) [2025-03-11 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-11 15:54:06' and `end` < '2025-03-11 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-11 18:54:19] Production.INFO: count ==5643 [2025-03-11 18:54:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:54:06 - End Time 2025-03-11 18:54:06 [2025-03-11 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658793', 'tblTempUsageDetail_20' ) start [2025-03-11 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658793', 'tblTempUsageDetail_20' ) end [2025-03-11 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658793', 'tblTempVendorCDR_20' ) start [2025-03-11 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658793', 'tblTempVendorCDR_20' ) end [2025-03-11 18:54:21] Production.INFO: ProcessCDR(1,14658793,1,1,2) [2025-03-11 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658793', 'tblTempUsageDetail_20' ) start [2025-03-11 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658793', 'tblTempUsageDetail_20' ) end [2025-03-11 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:54:26] Production.INFO: ==28700== Releasing lock... [2025-03-11 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:54:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:55:05 [end_date_ymd] => 2025-03-11 18:55:05 [RateCDR] => 1 ) [2025-03-11 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:55:05' and `end` < '2025-03-11 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:55:18] Production.INFO: count ==5642 [2025-03-11 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:55:05 - End Time 2025-03-11 18:55:05 [2025-03-11 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658798', 'tblTempUsageDetail_20' ) start [2025-03-11 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658798', 'tblTempUsageDetail_20' ) end [2025-03-11 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658798', 'tblTempVendorCDR_20' ) start [2025-03-11 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658798', 'tblTempVendorCDR_20' ) end [2025-03-11 18:55:21] Production.INFO: ProcessCDR(1,14658798,1,1,2) [2025-03-11 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658798', 'tblTempUsageDetail_20' ) start [2025-03-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658798', 'tblTempUsageDetail_20' ) end [2025-03-11 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:55:25] Production.INFO: ==28779== Releasing lock... [2025-03-11 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:55:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:56:05 [end_date_ymd] => 2025-03-11 18:56:05 [RateCDR] => 1 ) [2025-03-11 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:56:05' and `end` < '2025-03-11 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:56:18] Production.INFO: count ==5637 [2025-03-11 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:56:05 - End Time 2025-03-11 18:56:05 [2025-03-11 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658803', 'tblTempUsageDetail_20' ) start [2025-03-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658803', 'tblTempUsageDetail_20' ) end [2025-03-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658803', 'tblTempVendorCDR_20' ) start [2025-03-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658803', 'tblTempVendorCDR_20' ) end [2025-03-11 18:56:20] Production.INFO: ProcessCDR(1,14658803,1,1,2) [2025-03-11 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658803', 'tblTempUsageDetail_20' ) start [2025-03-11 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658803', 'tblTempUsageDetail_20' ) end [2025-03-11 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:56:24] Production.INFO: ==28853== Releasing lock... [2025-03-11 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:56:24] Production.INFO: 70.25 MB #Memory Used# [2025-03-11 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:57:05 [end_date_ymd] => 2025-03-11 18:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:57:05' and `end` < '2025-03-11 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-11 18:57:18] Production.INFO: count ==5634 [2025-03-11 18:57:21] Production.ERROR: pbx CDR StartTime 2025-03-11 15:57:05 - End Time 2025-03-11 18:57:05 [2025-03-11 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658808', 'tblTempUsageDetail_20' ) start [2025-03-11 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658808', 'tblTempUsageDetail_20' ) end [2025-03-11 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658808', 'tblTempVendorCDR_20' ) start [2025-03-11 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658808', 'tblTempVendorCDR_20' ) end [2025-03-11 18:57:21] Production.INFO: ProcessCDR(1,14658808,1,1,2) [2025-03-11 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658808', 'tblTempUsageDetail_20' ) start [2025-03-11 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658808', 'tblTempUsageDetail_20' ) end [2025-03-11 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:57:24] Production.INFO: ==28926== Releasing lock... [2025-03-11 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:57:24] Production.INFO: 70 MB #Memory Used# [2025-03-11 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:58:05 [end_date_ymd] => 2025-03-11 18:58:05 [RateCDR] => 1 ) [2025-03-11 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 15:58:05' and `end` < '2025-03-11 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 18:58:18] Production.INFO: count ==5629 [2025-03-11 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:58:05 - End Time 2025-03-11 18:58:05 [2025-03-11 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658813', 'tblTempUsageDetail_20' ) start [2025-03-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658813', 'tblTempUsageDetail_20' ) end [2025-03-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658813', 'tblTempVendorCDR_20' ) start [2025-03-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658813', 'tblTempVendorCDR_20' ) end [2025-03-11 18:58:20] Production.INFO: ProcessCDR(1,14658813,1,1,2) [2025-03-11 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658813', 'tblTempUsageDetail_20' ) start [2025-03-11 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658813', 'tblTempUsageDetail_20' ) end [2025-03-11 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:58:25] Production.INFO: ==29001== Releasing lock... [2025-03-11 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:58:25] Production.INFO: 70 MB #Memory Used# [2025-03-11 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 15:59:05 [end_date_ymd] => 2025-03-11 18:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 15:59:05' and `end` < '2025-03-11 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-11 18:59:18] Production.INFO: count ==5604 [2025-03-11 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-11 15:59:05 - End Time 2025-03-11 18:59:05 [2025-03-11 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658818', 'tblTempUsageDetail_20' ) start [2025-03-11 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658818', 'tblTempUsageDetail_20' ) end [2025-03-11 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658818', 'tblTempVendorCDR_20' ) start [2025-03-11 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658818', 'tblTempVendorCDR_20' ) end [2025-03-11 18:59:21] Production.INFO: ProcessCDR(1,14658818,1,1,2) [2025-03-11 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658818', 'tblTempUsageDetail_20' ) start [2025-03-11 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658818', 'tblTempUsageDetail_20' ) end [2025-03-11 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 18:59:24] Production.INFO: ==29077== Releasing lock... [2025-03-11 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 18:59:24] Production.INFO: 70 MB #Memory Used# [2025-03-11 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:00:07 [end_date_ymd] => 2025-03-11 19:00:07 [RateCDR] => 1 ) [2025-03-11 19: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-11 16:00:07' and `end` < '2025-03-11 19: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-11 19:00:20] Production.INFO: count ==5574 [2025-03-11 19:00:22] Production.ERROR: pbx CDR StartTime 2025-03-11 16:00:07 - End Time 2025-03-11 19:00:07 [2025-03-11 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658824', 'tblTempUsageDetail_20' ) start [2025-03-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658824', 'tblTempUsageDetail_20' ) end [2025-03-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658824', 'tblTempVendorCDR_20' ) start [2025-03-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658824', 'tblTempVendorCDR_20' ) end [2025-03-11 19:00:22] Production.INFO: ProcessCDR(1,14658824,1,1,2) [2025-03-11 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658824', 'tblTempUsageDetail_20' ) start [2025-03-11 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658824', 'tblTempUsageDetail_20' ) end [2025-03-11 19:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:00:28] Production.INFO: ==29157== Releasing lock... [2025-03-11 19:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:00:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-11 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:01:05 [end_date_ymd] => 2025-03-11 19:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:01:05' and `end` < '2025-03-11 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-11 19:01:18] Production.INFO: count ==5458 [2025-03-11 19:01:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:01:05 - End Time 2025-03-11 19:01:05 [2025-03-11 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658829', 'tblTempUsageDetail_20' ) start [2025-03-11 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658829', 'tblTempUsageDetail_20' ) end [2025-03-11 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658829', 'tblTempVendorCDR_20' ) start [2025-03-11 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658829', 'tblTempVendorCDR_20' ) end [2025-03-11 19:01:21] Production.INFO: ProcessCDR(1,14658829,1,1,2) [2025-03-11 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658829', 'tblTempUsageDetail_20' ) start [2025-03-11 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658829', 'tblTempUsageDetail_20' ) end [2025-03-11 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:01:24] Production.INFO: ==29320== Releasing lock... [2025-03-11 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:01:24] Production.INFO: 68.75 MB #Memory Used# [2025-03-11 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:02:06 [end_date_ymd] => 2025-03-11 19:02:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:02:06' and `end` < '2025-03-11 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-11 19:02:19] Production.INFO: count ==5410 [2025-03-11 19:02:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:02:06 - End Time 2025-03-11 19:02:06 [2025-03-11 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658834', 'tblTempUsageDetail_20' ) start [2025-03-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658834', 'tblTempUsageDetail_20' ) end [2025-03-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658834', 'tblTempVendorCDR_20' ) start [2025-03-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658834', 'tblTempVendorCDR_20' ) end [2025-03-11 19:02:21] Production.INFO: ProcessCDR(1,14658834,1,1,2) [2025-03-11 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658834', 'tblTempUsageDetail_20' ) start [2025-03-11 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658834', 'tblTempUsageDetail_20' ) end [2025-03-11 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:02:26] Production.INFO: ==29396== Releasing lock... [2025-03-11 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:02:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-11 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:03:05 [end_date_ymd] => 2025-03-11 19:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:03:05' and `end` < '2025-03-11 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-11 19:03:18] Production.INFO: count ==5398 [2025-03-11 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:03:05 - End Time 2025-03-11 19:03:05 [2025-03-11 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658839', 'tblTempUsageDetail_20' ) start [2025-03-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658839', 'tblTempUsageDetail_20' ) end [2025-03-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658839', 'tblTempVendorCDR_20' ) start [2025-03-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658839', 'tblTempVendorCDR_20' ) end [2025-03-11 19:03:20] Production.INFO: ProcessCDR(1,14658839,1,1,2) [2025-03-11 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658839', 'tblTempUsageDetail_20' ) start [2025-03-11 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658839', 'tblTempUsageDetail_20' ) end [2025-03-11 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:03:25] Production.INFO: ==29473== Releasing lock... [2025-03-11 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:03:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-11 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:04:05 [end_date_ymd] => 2025-03-11 19:04:05 [RateCDR] => 1 ) [2025-03-11 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:04:05' and `end` < '2025-03-11 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:04:18] Production.INFO: count ==5380 [2025-03-11 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:04:05 - End Time 2025-03-11 19:04:05 [2025-03-11 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658844', 'tblTempUsageDetail_20' ) start [2025-03-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658844', 'tblTempUsageDetail_20' ) end [2025-03-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658844', 'tblTempVendorCDR_20' ) start [2025-03-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658844', 'tblTempVendorCDR_20' ) end [2025-03-11 19:04:20] Production.INFO: ProcessCDR(1,14658844,1,1,2) [2025-03-11 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658844', 'tblTempUsageDetail_20' ) start [2025-03-11 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658844', 'tblTempUsageDetail_20' ) end [2025-03-11 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:04:24] Production.INFO: ==29545== Releasing lock... [2025-03-11 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:04:24] Production.INFO: 68.25 MB #Memory Used# [2025-03-11 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:05:05 [end_date_ymd] => 2025-03-11 19:05:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:05:05' and `end` < '2025-03-11 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-11 19:05:18] Production.INFO: count ==5354 [2025-03-11 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:05:05 - End Time 2025-03-11 19:05:05 [2025-03-11 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658849', 'tblTempUsageDetail_20' ) start [2025-03-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658849', 'tblTempUsageDetail_20' ) end [2025-03-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658849', 'tblTempVendorCDR_20' ) start [2025-03-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658849', 'tblTempVendorCDR_20' ) end [2025-03-11 19:05:20] Production.INFO: ProcessCDR(1,14658849,1,1,2) [2025-03-11 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658849', 'tblTempUsageDetail_20' ) start [2025-03-11 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658849', 'tblTempUsageDetail_20' ) end [2025-03-11 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:05:25] Production.INFO: ==29701== Releasing lock... [2025-03-11 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:05:25] Production.INFO: 68 MB #Memory Used# [2025-03-11 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:06:05 [end_date_ymd] => 2025-03-11 19:06:05 [RateCDR] => 1 ) [2025-03-11 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:06:05' and `end` < '2025-03-11 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:06:18] Production.INFO: count ==5347 [2025-03-11 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:06:05 - End Time 2025-03-11 19:06:05 [2025-03-11 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658854', 'tblTempUsageDetail_20' ) start [2025-03-11 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658854', 'tblTempUsageDetail_20' ) end [2025-03-11 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658854', 'tblTempVendorCDR_20' ) start [2025-03-11 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658854', 'tblTempVendorCDR_20' ) end [2025-03-11 19:06:21] Production.INFO: ProcessCDR(1,14658854,1,1,2) [2025-03-11 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658854', 'tblTempUsageDetail_20' ) start [2025-03-11 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658854', 'tblTempUsageDetail_20' ) end [2025-03-11 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:06:24] Production.INFO: ==29777== Releasing lock... [2025-03-11 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:06:24] Production.INFO: 68 MB #Memory Used# [2025-03-11 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:07:05 [end_date_ymd] => 2025-03-11 19:07:05 [RateCDR] => 1 ) [2025-03-11 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:07:05' and `end` < '2025-03-11 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:07:17] Production.INFO: count ==5338 [2025-03-11 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:07:05 - End Time 2025-03-11 19:07:05 [2025-03-11 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658859', 'tblTempUsageDetail_20' ) start [2025-03-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658859', 'tblTempUsageDetail_20' ) end [2025-03-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658859', 'tblTempVendorCDR_20' ) start [2025-03-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658859', 'tblTempVendorCDR_20' ) end [2025-03-11 19:07:20] Production.INFO: ProcessCDR(1,14658859,1,1,2) [2025-03-11 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658859', 'tblTempUsageDetail_20' ) start [2025-03-11 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658859', 'tblTempUsageDetail_20' ) end [2025-03-11 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:07:23] Production.INFO: ==29847== Releasing lock... [2025-03-11 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:07:23] Production.INFO: 68 MB #Memory Used# [2025-03-11 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:08:06 [end_date_ymd] => 2025-03-11 19:08:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:08:06' and `end` < '2025-03-11 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-11 19:08:18] Production.INFO: count ==5321 [2025-03-11 19:08:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:08:06 - End Time 2025-03-11 19:08:06 [2025-03-11 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658864', 'tblTempUsageDetail_20' ) start [2025-03-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658864', 'tblTempUsageDetail_20' ) end [2025-03-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658864', 'tblTempVendorCDR_20' ) start [2025-03-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658864', 'tblTempVendorCDR_20' ) end [2025-03-11 19:08:21] Production.INFO: ProcessCDR(1,14658864,1,1,2) [2025-03-11 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658864', 'tblTempUsageDetail_20' ) start [2025-03-11 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658864', 'tblTempUsageDetail_20' ) end [2025-03-11 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:08:24] Production.INFO: ==29997== Releasing lock... [2025-03-11 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:08:24] Production.INFO: 67.75 MB #Memory Used# [2025-03-11 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:09:05 [end_date_ymd] => 2025-03-11 19:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:09:05' and `end` < '2025-03-11 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-11 19:09:18] Production.INFO: count ==5295 [2025-03-11 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:09:05 - End Time 2025-03-11 19:09:05 [2025-03-11 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658869', 'tblTempUsageDetail_20' ) start [2025-03-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658869', 'tblTempUsageDetail_20' ) end [2025-03-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658869', 'tblTempVendorCDR_20' ) start [2025-03-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658869', 'tblTempVendorCDR_20' ) end [2025-03-11 19:09:20] Production.INFO: ProcessCDR(1,14658869,1,1,2) [2025-03-11 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658869', 'tblTempUsageDetail_20' ) start [2025-03-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658869', 'tblTempUsageDetail_20' ) end [2025-03-11 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:09:23] Production.INFO: ==30069== Releasing lock... [2025-03-11 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:09:23] Production.INFO: 67.5 MB #Memory Used# [2025-03-11 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:10:07 [end_date_ymd] => 2025-03-11 19:10:07 [RateCDR] => 1 ) [2025-03-11 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-11 16:10:07' and `end` < '2025-03-11 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-11 19:10:19] Production.INFO: count ==5284 [2025-03-11 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:10:07 - End Time 2025-03-11 19:10:07 [2025-03-11 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658875', 'tblTempUsageDetail_20' ) start [2025-03-11 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658875', 'tblTempUsageDetail_20' ) end [2025-03-11 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658875', 'tblTempVendorCDR_20' ) start [2025-03-11 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658875', 'tblTempVendorCDR_20' ) end [2025-03-11 19:10:22] Production.INFO: ProcessCDR(1,14658875,1,1,2) [2025-03-11 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658875', 'tblTempUsageDetail_20' ) start [2025-03-11 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658875', 'tblTempUsageDetail_20' ) end [2025-03-11 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:10:27] Production.INFO: ==30180== Releasing lock... [2025-03-11 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:10:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-11 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:11:05 [end_date_ymd] => 2025-03-11 19:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:11:05' and `end` < '2025-03-11 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-11 19:11:18] Production.INFO: count ==5160 [2025-03-11 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:11:05 - End Time 2025-03-11 19:11:05 [2025-03-11 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658880', 'tblTempUsageDetail_20' ) start [2025-03-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658880', 'tblTempUsageDetail_20' ) end [2025-03-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658880', 'tblTempVendorCDR_20' ) start [2025-03-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658880', 'tblTempVendorCDR_20' ) end [2025-03-11 19:11:20] Production.INFO: ProcessCDR(1,14658880,1,1,2) [2025-03-11 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658880', 'tblTempUsageDetail_20' ) start [2025-03-11 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658880', 'tblTempUsageDetail_20' ) end [2025-03-11 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:11:24] Production.INFO: ==30255== Releasing lock... [2025-03-11 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:11:24] Production.INFO: 66.5 MB #Memory Used# [2025-03-11 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:12:06 [end_date_ymd] => 2025-03-11 19:12:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:12:06' and `end` < '2025-03-11 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-11 19:12:19] Production.INFO: count ==5121 [2025-03-11 19:12:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:12:06 - End Time 2025-03-11 19:12:06 [2025-03-11 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658885', 'tblTempUsageDetail_20' ) start [2025-03-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658885', 'tblTempUsageDetail_20' ) end [2025-03-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658885', 'tblTempVendorCDR_20' ) start [2025-03-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658885', 'tblTempVendorCDR_20' ) end [2025-03-11 19:12:21] Production.INFO: ProcessCDR(1,14658885,1,1,2) [2025-03-11 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658885', 'tblTempUsageDetail_20' ) start [2025-03-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658885', 'tblTempUsageDetail_20' ) end [2025-03-11 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:12:25] Production.INFO: ==30409== Releasing lock... [2025-03-11 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:12:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-11 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:13:05 [end_date_ymd] => 2025-03-11 19:13:05 [RateCDR] => 1 ) [2025-03-11 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:13:05' and `end` < '2025-03-11 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:13:18] Production.INFO: count ==5100 [2025-03-11 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:13:05 - End Time 2025-03-11 19:13:05 [2025-03-11 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658890', 'tblTempUsageDetail_20' ) start [2025-03-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658890', 'tblTempUsageDetail_20' ) end [2025-03-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658890', 'tblTempVendorCDR_20' ) start [2025-03-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658890', 'tblTempVendorCDR_20' ) end [2025-03-11 19:13:20] Production.INFO: ProcessCDR(1,14658890,1,1,2) [2025-03-11 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658890', 'tblTempUsageDetail_20' ) start [2025-03-11 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658890', 'tblTempUsageDetail_20' ) end [2025-03-11 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:13:24] Production.INFO: ==30479== Releasing lock... [2025-03-11 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:13:24] Production.INFO: 66 MB #Memory Used# [2025-03-11 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:14:06 [end_date_ymd] => 2025-03-11 19:14:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:14:06' and `end` < '2025-03-11 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-11 19:14:19] Production.INFO: count ==5074 [2025-03-11 19:14:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:14:06 - End Time 2025-03-11 19:14:06 [2025-03-11 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658895', 'tblTempUsageDetail_20' ) start [2025-03-11 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658895', 'tblTempUsageDetail_20' ) end [2025-03-11 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658895', 'tblTempVendorCDR_20' ) start [2025-03-11 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658895', 'tblTempVendorCDR_20' ) end [2025-03-11 19:14:21] Production.INFO: ProcessCDR(1,14658895,1,1,2) [2025-03-11 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658895', 'tblTempUsageDetail_20' ) start [2025-03-11 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658895', 'tblTempUsageDetail_20' ) end [2025-03-11 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:14:24] Production.INFO: ==30552== Releasing lock... [2025-03-11 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:14:24] Production.INFO: 66 MB #Memory Used# [2025-03-11 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:15:05 [end_date_ymd] => 2025-03-11 19:15:05 [RateCDR] => 1 ) [2025-03-11 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:15:05' and `end` < '2025-03-11 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:15:18] Production.INFO: count ==5041 [2025-03-11 19:15:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:15:05 - End Time 2025-03-11 19:15:05 [2025-03-11 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658900', 'tblTempUsageDetail_20' ) start [2025-03-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658900', 'tblTempUsageDetail_20' ) end [2025-03-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658900', 'tblTempVendorCDR_20' ) start [2025-03-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658900', 'tblTempVendorCDR_20' ) end [2025-03-11 19:15:20] Production.INFO: ProcessCDR(1,14658900,1,1,2) [2025-03-11 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658900', 'tblTempUsageDetail_20' ) start [2025-03-11 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658900', 'tblTempUsageDetail_20' ) end [2025-03-11 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:15:23] Production.INFO: ==30701== Releasing lock... [2025-03-11 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:15:23] Production.INFO: 65.75 MB #Memory Used# [2025-03-11 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:16:05 [end_date_ymd] => 2025-03-11 19:16:05 [RateCDR] => 1 ) [2025-03-11 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:16:05' and `end` < '2025-03-11 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:16:18] Production.INFO: count ==5015 [2025-03-11 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:16:05 - End Time 2025-03-11 19:16:05 [2025-03-11 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658905', 'tblTempUsageDetail_20' ) start [2025-03-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658905', 'tblTempUsageDetail_20' ) end [2025-03-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658905', 'tblTempVendorCDR_20' ) start [2025-03-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658905', 'tblTempVendorCDR_20' ) end [2025-03-11 19:16:20] Production.INFO: ProcessCDR(1,14658905,1,1,2) [2025-03-11 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658905', 'tblTempUsageDetail_20' ) start [2025-03-11 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658905', 'tblTempUsageDetail_20' ) end [2025-03-11 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:16:25] Production.INFO: ==30774== Releasing lock... [2025-03-11 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:16:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:17:05 [end_date_ymd] => 2025-03-11 19:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:17:05' and `end` < '2025-03-11 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-11 19:17:17] Production.INFO: count ==5005 [2025-03-11 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:17:05 - End Time 2025-03-11 19:17:05 [2025-03-11 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658910', 'tblTempUsageDetail_20' ) start [2025-03-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658910', 'tblTempUsageDetail_20' ) end [2025-03-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658910', 'tblTempVendorCDR_20' ) start [2025-03-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658910', 'tblTempVendorCDR_20' ) end [2025-03-11 19:17:20] Production.INFO: ProcessCDR(1,14658910,1,1,2) [2025-03-11 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658910', 'tblTempUsageDetail_20' ) start [2025-03-11 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658910', 'tblTempUsageDetail_20' ) end [2025-03-11 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:17:23] Production.INFO: ==30845== Releasing lock... [2025-03-11 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:17:23] Production.INFO: 65.5 MB #Memory Used# [2025-03-11 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:18:05 [end_date_ymd] => 2025-03-11 19:18:05 [RateCDR] => 1 ) [2025-03-11 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:18:05' and `end` < '2025-03-11 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:18:18] Production.INFO: count ==4976 [2025-03-11 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:18:05 - End Time 2025-03-11 19:18:05 [2025-03-11 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658915', 'tblTempUsageDetail_20' ) start [2025-03-11 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658915', 'tblTempUsageDetail_20' ) end [2025-03-11 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658915', 'tblTempVendorCDR_20' ) start [2025-03-11 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658915', 'tblTempVendorCDR_20' ) end [2025-03-11 19:18:20] Production.INFO: ProcessCDR(1,14658915,1,1,2) [2025-03-11 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658915', 'tblTempUsageDetail_20' ) start [2025-03-11 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658915', 'tblTempUsageDetail_20' ) end [2025-03-11 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:18:25] Production.INFO: ==30921== Releasing lock... [2025-03-11 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:18:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:19:05 [end_date_ymd] => 2025-03-11 19:19:05 [RateCDR] => 1 ) [2025-03-11 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:19:05' and `end` < '2025-03-11 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-11 19:19:18] Production.INFO: count ==4971 [2025-03-11 19:19:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:19:05 - End Time 2025-03-11 19:19:05 [2025-03-11 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658920', 'tblTempUsageDetail_20' ) start [2025-03-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658920', 'tblTempUsageDetail_20' ) end [2025-03-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658920', 'tblTempVendorCDR_20' ) start [2025-03-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658920', 'tblTempVendorCDR_20' ) end [2025-03-11 19:19:20] Production.INFO: ProcessCDR(1,14658920,1,1,2) [2025-03-11 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658920', 'tblTempUsageDetail_20' ) start [2025-03-11 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658920', 'tblTempUsageDetail_20' ) end [2025-03-11 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:19:23] Production.INFO: ==30996== Releasing lock... [2025-03-11 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:19:23] Production.INFO: 65.25 MB #Memory Used# [2025-03-11 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:20:06 [end_date_ymd] => 2025-03-11 19:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:20:06' and `end` < '2025-03-11 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-11 19:20:18] Production.INFO: count ==4964 [2025-03-11 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:20:06 - End Time 2025-03-11 19:20:06 [2025-03-11 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658926', 'tblTempUsageDetail_20' ) start [2025-03-11 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658926', 'tblTempUsageDetail_20' ) end [2025-03-11 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658926', 'tblTempVendorCDR_20' ) start [2025-03-11 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658926', 'tblTempVendorCDR_20' ) end [2025-03-11 19:20:21] Production.INFO: ProcessCDR(1,14658926,1,1,2) [2025-03-11 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658926', 'tblTempUsageDetail_20' ) start [2025-03-11 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658926', 'tblTempUsageDetail_20' ) end [2025-03-11 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:20:26] Production.INFO: ==31070== Releasing lock... [2025-03-11 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:20:26] Production.INFO: 65 MB #Memory Used# [2025-03-11 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:21:05 [end_date_ymd] => 2025-03-11 19:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:21:05' and `end` < '2025-03-11 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-11 19:21:17] Production.INFO: count ==4877 [2025-03-11 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:21:05 - End Time 2025-03-11 19:21:05 [2025-03-11 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658931', 'tblTempUsageDetail_20' ) start [2025-03-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658931', 'tblTempUsageDetail_20' ) end [2025-03-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658931', 'tblTempVendorCDR_20' ) start [2025-03-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658931', 'tblTempVendorCDR_20' ) end [2025-03-11 19:21:20] Production.INFO: ProcessCDR(1,14658931,1,1,2) [2025-03-11 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658931', 'tblTempUsageDetail_20' ) start [2025-03-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658931', 'tblTempUsageDetail_20' ) end [2025-03-11 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:21:25] Production.INFO: ==31149== Releasing lock... [2025-03-11 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:21:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-11 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:22:05 [end_date_ymd] => 2025-03-11 19:22:05 [RateCDR] => 1 ) [2025-03-11 19: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-11 16:22:05' and `end` < '2025-03-11 19: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-11 19:22:18] Production.INFO: count ==4854 [2025-03-11 19:22:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:22:05 - End Time 2025-03-11 19:22:05 [2025-03-11 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658936', 'tblTempUsageDetail_20' ) start [2025-03-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658936', 'tblTempUsageDetail_20' ) end [2025-03-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658936', 'tblTempVendorCDR_20' ) start [2025-03-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658936', 'tblTempVendorCDR_20' ) end [2025-03-11 19:22:20] Production.INFO: ProcessCDR(1,14658936,1,1,2) [2025-03-11 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658936', 'tblTempUsageDetail_20' ) start [2025-03-11 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658936', 'tblTempUsageDetail_20' ) end [2025-03-11 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:22:23] Production.INFO: ==31226== Releasing lock... [2025-03-11 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:22:23] Production.INFO: 64.25 MB #Memory Used# [2025-03-11 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:23:05 [end_date_ymd] => 2025-03-11 19:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:23:05' and `end` < '2025-03-11 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-11 19:23:18] Production.INFO: count ==4863 [2025-03-11 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:23:05 - End Time 2025-03-11 19:23:05 [2025-03-11 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658941', 'tblTempUsageDetail_20' ) start [2025-03-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658941', 'tblTempUsageDetail_20' ) end [2025-03-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658941', 'tblTempVendorCDR_20' ) start [2025-03-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658941', 'tblTempVendorCDR_20' ) end [2025-03-11 19:23:20] Production.INFO: ProcessCDR(1,14658941,1,1,2) [2025-03-11 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658941', 'tblTempUsageDetail_20' ) start [2025-03-11 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658941', 'tblTempUsageDetail_20' ) end [2025-03-11 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:23:23] Production.INFO: ==31308== Releasing lock... [2025-03-11 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:23:23] Production.INFO: 64.25 MB #Memory Used# [2025-03-11 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:24:05 [end_date_ymd] => 2025-03-11 19:24:05 [RateCDR] => 1 ) [2025-03-11 19: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-11 16:24:05' and `end` < '2025-03-11 19: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-11 19:24:18] Production.INFO: count ==4836 [2025-03-11 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:24:05 - End Time 2025-03-11 19:24:05 [2025-03-11 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658946', 'tblTempUsageDetail_20' ) start [2025-03-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658946', 'tblTempUsageDetail_20' ) end [2025-03-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658946', 'tblTempVendorCDR_20' ) start [2025-03-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658946', 'tblTempVendorCDR_20' ) end [2025-03-11 19:24:20] Production.INFO: ProcessCDR(1,14658946,1,1,2) [2025-03-11 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658946', 'tblTempUsageDetail_20' ) start [2025-03-11 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658946', 'tblTempUsageDetail_20' ) end [2025-03-11 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:24:23] Production.INFO: ==31382== Releasing lock... [2025-03-11 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:24:23] Production.INFO: 64 MB #Memory Used# [2025-03-11 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:25:06 [end_date_ymd] => 2025-03-11 19:25:06 [RateCDR] => 1 ) [2025-03-11 19: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-11 16:25:06' and `end` < '2025-03-11 19: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-11 19:25:18] Production.INFO: count ==4797 [2025-03-11 19:25:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:25:06 - End Time 2025-03-11 19:25:06 [2025-03-11 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658951', 'tblTempUsageDetail_20' ) start [2025-03-11 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658951', 'tblTempUsageDetail_20' ) end [2025-03-11 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658951', 'tblTempVendorCDR_20' ) start [2025-03-11 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658951', 'tblTempVendorCDR_20' ) end [2025-03-11 19:25:21] Production.INFO: ProcessCDR(1,14658951,1,1,2) [2025-03-11 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658951', 'tblTempUsageDetail_20' ) start [2025-03-11 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658951', 'tblTempUsageDetail_20' ) end [2025-03-11 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:25:25] Production.INFO: ==31497== Releasing lock... [2025-03-11 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:25:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-11 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:26:05 [end_date_ymd] => 2025-03-11 19:26:05 [RateCDR] => 1 ) [2025-03-11 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:26:05' and `end` < '2025-03-11 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:26:18] Production.INFO: count ==4802 [2025-03-11 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:26:05 - End Time 2025-03-11 19:26:05 [2025-03-11 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658956', 'tblTempUsageDetail_20' ) start [2025-03-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658956', 'tblTempUsageDetail_20' ) end [2025-03-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658956', 'tblTempVendorCDR_20' ) start [2025-03-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658956', 'tblTempVendorCDR_20' ) end [2025-03-11 19:26:20] Production.INFO: ProcessCDR(1,14658956,1,1,2) [2025-03-11 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658956', 'tblTempUsageDetail_20' ) start [2025-03-11 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658956', 'tblTempUsageDetail_20' ) end [2025-03-11 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:26:24] Production.INFO: ==31571== Releasing lock... [2025-03-11 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:26:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-11 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:27:04 [end_date_ymd] => 2025-03-11 19:27:04 [RateCDR] => 1 ) [2025-03-11 19: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-11 16:27:04' and `end` < '2025-03-11 19: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-11 19:27:17] Production.INFO: count ==4769 [2025-03-11 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:27:04 - End Time 2025-03-11 19:27:04 [2025-03-11 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658961', 'tblTempUsageDetail_20' ) start [2025-03-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658961', 'tblTempUsageDetail_20' ) end [2025-03-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658961', 'tblTempVendorCDR_20' ) start [2025-03-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658961', 'tblTempVendorCDR_20' ) end [2025-03-11 19:27:19] Production.INFO: ProcessCDR(1,14658961,1,1,2) [2025-03-11 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658961', 'tblTempUsageDetail_20' ) start [2025-03-11 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658961', 'tblTempUsageDetail_20' ) end [2025-03-11 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:27:24] Production.INFO: ==31647== Releasing lock... [2025-03-11 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:27:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-11 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:28:05 [end_date_ymd] => 2025-03-11 19:28:05 [RateCDR] => 1 ) [2025-03-11 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:28:05' and `end` < '2025-03-11 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:28:18] Production.INFO: count ==4750 [2025-03-11 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:28:05 - End Time 2025-03-11 19:28:05 [2025-03-11 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658966', 'tblTempUsageDetail_20' ) start [2025-03-11 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658966', 'tblTempUsageDetail_20' ) end [2025-03-11 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658966', 'tblTempVendorCDR_20' ) start [2025-03-11 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658966', 'tblTempVendorCDR_20' ) end [2025-03-11 19:28:20] Production.INFO: ProcessCDR(1,14658966,1,1,2) [2025-03-11 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658966', 'tblTempUsageDetail_20' ) start [2025-03-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658966', 'tblTempUsageDetail_20' ) end [2025-03-11 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:28:23] Production.INFO: ==31731== Releasing lock... [2025-03-11 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:28:23] Production.INFO: 63.5 MB #Memory Used# [2025-03-11 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:29:05 [end_date_ymd] => 2025-03-11 19:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:29:05' and `end` < '2025-03-11 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-11 19:29:18] Production.INFO: count ==4702 [2025-03-11 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:29:05 - End Time 2025-03-11 19:29:05 [2025-03-11 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658971', 'tblTempUsageDetail_20' ) start [2025-03-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658971', 'tblTempUsageDetail_20' ) end [2025-03-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658971', 'tblTempVendorCDR_20' ) start [2025-03-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658971', 'tblTempVendorCDR_20' ) end [2025-03-11 19:29:20] Production.INFO: ProcessCDR(1,14658971,1,1,2) [2025-03-11 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658971', 'tblTempUsageDetail_20' ) start [2025-03-11 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658971', 'tblTempUsageDetail_20' ) end [2025-03-11 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:29:25] Production.INFO: ==31808== Releasing lock... [2025-03-11 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:29:25] Production.INFO: 63 MB #Memory Used# [2025-03-11 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:30:06 [end_date_ymd] => 2025-03-11 19:30:06 [RateCDR] => 1 ) [2025-03-11 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:30:06' and `end` < '2025-03-11 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:30:19] Production.INFO: count ==4669 [2025-03-11 19:30:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:30:06 - End Time 2025-03-11 19:30:06 [2025-03-11 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658976', 'tblTempUsageDetail_20' ) start [2025-03-11 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658976', 'tblTempUsageDetail_20' ) end [2025-03-11 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658976', 'tblTempVendorCDR_20' ) start [2025-03-11 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658976', 'tblTempVendorCDR_20' ) end [2025-03-11 19:30:21] Production.INFO: ProcessCDR(1,14658976,1,1,2) [2025-03-11 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658976', 'tblTempUsageDetail_20' ) start [2025-03-11 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658976', 'tblTempUsageDetail_20' ) end [2025-03-11 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:30:24] Production.INFO: ==31887== Releasing lock... [2025-03-11 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:30:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-11 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:31:05 [end_date_ymd] => 2025-03-11 19:31:05 [RateCDR] => 1 ) [2025-03-11 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:31:05' and `end` < '2025-03-11 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:31:18] Production.INFO: count ==4559 [2025-03-11 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:31:05 - End Time 2025-03-11 19:31:05 [2025-03-11 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658982', 'tblTempUsageDetail_20' ) start [2025-03-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658982', 'tblTempUsageDetail_20' ) end [2025-03-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658982', 'tblTempVendorCDR_20' ) start [2025-03-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658982', 'tblTempVendorCDR_20' ) end [2025-03-11 19:31:20] Production.INFO: ProcessCDR(1,14658982,1,1,2) [2025-03-11 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658982', 'tblTempUsageDetail_20' ) start [2025-03-11 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658982', 'tblTempUsageDetail_20' ) end [2025-03-11 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:31:25] Production.INFO: ==31970== Releasing lock... [2025-03-11 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:31:25] Production.INFO: 62 MB #Memory Used# [2025-03-11 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:32:05 [end_date_ymd] => 2025-03-11 19:32:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:32:05' and `end` < '2025-03-11 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-11 19:32:18] Production.INFO: count ==4524 [2025-03-11 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:32:05 - End Time 2025-03-11 19:32:05 [2025-03-11 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658987', 'tblTempUsageDetail_20' ) start [2025-03-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658987', 'tblTempUsageDetail_20' ) end [2025-03-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658987', 'tblTempVendorCDR_20' ) start [2025-03-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658987', 'tblTempVendorCDR_20' ) end [2025-03-11 19:32:20] Production.INFO: ProcessCDR(1,14658987,1,1,2) [2025-03-11 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658987', 'tblTempUsageDetail_20' ) start [2025-03-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658987', 'tblTempUsageDetail_20' ) end [2025-03-11 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:32:26] Production.INFO: ==32055== Releasing lock... [2025-03-11 19:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:32:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-11 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:33:06 [end_date_ymd] => 2025-03-11 19:33:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:33:06' and `end` < '2025-03-11 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-11 19:33:18] Production.INFO: count ==4501 [2025-03-11 19:33:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:33:06 - End Time 2025-03-11 19:33:06 [2025-03-11 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658992', 'tblTempUsageDetail_20' ) start [2025-03-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658992', 'tblTempUsageDetail_20' ) end [2025-03-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658992', 'tblTempVendorCDR_20' ) start [2025-03-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658992', 'tblTempVendorCDR_20' ) end [2025-03-11 19:33:20] Production.INFO: ProcessCDR(1,14658992,1,1,2) [2025-03-11 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658992', 'tblTempUsageDetail_20' ) start [2025-03-11 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658992', 'tblTempUsageDetail_20' ) end [2025-03-11 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:33:25] Production.INFO: ==32134== Releasing lock... [2025-03-11 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:33:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-11 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:34:05 [end_date_ymd] => 2025-03-11 19:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:34:05' and `end` < '2025-03-11 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-11 19:34:18] Production.INFO: count ==4472 [2025-03-11 19:34:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:34:05 - End Time 2025-03-11 19:34:05 [2025-03-11 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658997', 'tblTempUsageDetail_20' ) start [2025-03-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14658997', 'tblTempUsageDetail_20' ) end [2025-03-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658997', 'tblTempVendorCDR_20' ) start [2025-03-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14658997', 'tblTempVendorCDR_20' ) end [2025-03-11 19:34:20] Production.INFO: ProcessCDR(1,14658997,1,1,2) [2025-03-11 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14658997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14658997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14658997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14658997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658997', 'tblTempUsageDetail_20' ) start [2025-03-11 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14658997', 'tblTempUsageDetail_20' ) end [2025-03-11 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:34:23] Production.INFO: ==32206== Releasing lock... [2025-03-11 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:34:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-11 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:35:05 [end_date_ymd] => 2025-03-11 19:35:05 [RateCDR] => 1 ) [2025-03-11 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:35:05' and `end` < '2025-03-11 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:35:18] Production.INFO: count ==4426 [2025-03-11 19:35:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:35:05 - End Time 2025-03-11 19:35:05 [2025-03-11 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659002', 'tblTempUsageDetail_20' ) start [2025-03-11 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659002', 'tblTempUsageDetail_20' ) end [2025-03-11 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659002', 'tblTempVendorCDR_20' ) start [2025-03-11 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659002', 'tblTempVendorCDR_20' ) end [2025-03-11 19:35:20] Production.INFO: ProcessCDR(1,14659002,1,1,2) [2025-03-11 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659002', 'tblTempUsageDetail_20' ) start [2025-03-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659002', 'tblTempUsageDetail_20' ) end [2025-03-11 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:35:23] Production.INFO: ==32283== Releasing lock... [2025-03-11 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:35:23] Production.INFO: 61 MB #Memory Used# [2025-03-11 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:36:05 [end_date_ymd] => 2025-03-11 19:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:36:05' and `end` < '2025-03-11 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-11 19:36:18] Production.INFO: count ==4384 [2025-03-11 19:36:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:36:05 - End Time 2025-03-11 19:36:05 [2025-03-11 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659007', 'tblTempUsageDetail_20' ) start [2025-03-11 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659007', 'tblTempUsageDetail_20' ) end [2025-03-11 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659007', 'tblTempVendorCDR_20' ) start [2025-03-11 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659007', 'tblTempVendorCDR_20' ) end [2025-03-11 19:36:20] Production.INFO: ProcessCDR(1,14659007,1,1,2) [2025-03-11 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659007', 'tblTempUsageDetail_20' ) start [2025-03-11 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659007', 'tblTempUsageDetail_20' ) end [2025-03-11 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:36:25] Production.INFO: ==32357== Releasing lock... [2025-03-11 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:36:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-11 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:37:05 [end_date_ymd] => 2025-03-11 19:37:05 [RateCDR] => 1 ) [2025-03-11 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:37:05' and `end` < '2025-03-11 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:37:17] Production.INFO: count ==4343 [2025-03-11 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:37:05 - End Time 2025-03-11 19:37:05 [2025-03-11 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659012', 'tblTempUsageDetail_20' ) start [2025-03-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659012', 'tblTempUsageDetail_20' ) end [2025-03-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659012', 'tblTempVendorCDR_20' ) start [2025-03-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659012', 'tblTempVendorCDR_20' ) end [2025-03-11 19:37:19] Production.INFO: ProcessCDR(1,14659012,1,1,2) [2025-03-11 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659012', 'tblTempUsageDetail_20' ) start [2025-03-11 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659012', 'tblTempUsageDetail_20' ) end [2025-03-11 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:37:24] Production.INFO: ==32432== Releasing lock... [2025-03-11 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:37:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-11 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:38:05 [end_date_ymd] => 2025-03-11 19:38:05 [RateCDR] => 1 ) [2025-03-11 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:38:05' and `end` < '2025-03-11 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:38:17] Production.INFO: count ==4317 [2025-03-11 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:38:05 - End Time 2025-03-11 19:38:05 [2025-03-11 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659017', 'tblTempUsageDetail_20' ) start [2025-03-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659017', 'tblTempUsageDetail_20' ) end [2025-03-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659017', 'tblTempVendorCDR_20' ) start [2025-03-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659017', 'tblTempVendorCDR_20' ) end [2025-03-11 19:38:19] Production.INFO: ProcessCDR(1,14659017,1,1,2) [2025-03-11 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659017', 'tblTempUsageDetail_20' ) start [2025-03-11 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659017', 'tblTempUsageDetail_20' ) end [2025-03-11 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:38:22] Production.INFO: ==32509== Releasing lock... [2025-03-11 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:38:22] Production.INFO: 60.25 MB #Memory Used# [2025-03-11 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:39:05 [end_date_ymd] => 2025-03-11 19:39:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:39:05' and `end` < '2025-03-11 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-11 19:39:18] Production.INFO: count ==4253 [2025-03-11 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:39:05 - End Time 2025-03-11 19:39:05 [2025-03-11 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659022', 'tblTempUsageDetail_20' ) start [2025-03-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659022', 'tblTempUsageDetail_20' ) end [2025-03-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659022', 'tblTempVendorCDR_20' ) start [2025-03-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659022', 'tblTempVendorCDR_20' ) end [2025-03-11 19:39:19] Production.INFO: ProcessCDR(1,14659022,1,1,2) [2025-03-11 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659022', 'tblTempUsageDetail_20' ) start [2025-03-11 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659022', 'tblTempUsageDetail_20' ) end [2025-03-11 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:39:24] Production.INFO: ==32586== Releasing lock... [2025-03-11 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:39:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-11 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:40:07 [end_date_ymd] => 2025-03-11 19:40:07 [RateCDR] => 1 ) [2025-03-11 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-11 16:40:07' and `end` < '2025-03-11 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-11 19:40:19] Production.INFO: count ==4188 [2025-03-11 19:40:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:40:07 - End Time 2025-03-11 19:40:07 [2025-03-11 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659028', 'tblTempUsageDetail_20' ) start [2025-03-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659028', 'tblTempUsageDetail_20' ) end [2025-03-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659028', 'tblTempVendorCDR_20' ) start [2025-03-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659028', 'tblTempVendorCDR_20' ) end [2025-03-11 19:40:21] Production.INFO: ProcessCDR(1,14659028,1,1,2) [2025-03-11 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659028', 'tblTempUsageDetail_20' ) start [2025-03-11 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659028', 'tblTempUsageDetail_20' ) end [2025-03-11 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:40:26] Production.INFO: ==32706== Releasing lock... [2025-03-11 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:40:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-11 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:41:05 [end_date_ymd] => 2025-03-11 19:41:05 [RateCDR] => 1 ) [2025-03-11 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:41:05' and `end` < '2025-03-11 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:41:18] Production.INFO: count ==4065 [2025-03-11 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:41:05 - End Time 2025-03-11 19:41:05 [2025-03-11 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659033', 'tblTempUsageDetail_20' ) start [2025-03-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659033', 'tblTempUsageDetail_20' ) end [2025-03-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659033', 'tblTempVendorCDR_20' ) start [2025-03-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659033', 'tblTempVendorCDR_20' ) end [2025-03-11 19:41:19] Production.INFO: ProcessCDR(1,14659033,1,1,2) [2025-03-11 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659033', 'tblTempUsageDetail_20' ) start [2025-03-11 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659033', 'tblTempUsageDetail_20' ) end [2025-03-11 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:41:24] Production.INFO: ==322== Releasing lock... [2025-03-11 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:41:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-11 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:42:06 [end_date_ymd] => 2025-03-11 19:42:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:42:06' and `end` < '2025-03-11 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-11 19:42:19] Production.INFO: count ==4031 [2025-03-11 19:42:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:42:06 - End Time 2025-03-11 19:42:06 [2025-03-11 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659038', 'tblTempUsageDetail_20' ) start [2025-03-11 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659038', 'tblTempUsageDetail_20' ) end [2025-03-11 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659038', 'tblTempVendorCDR_20' ) start [2025-03-11 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659038', 'tblTempVendorCDR_20' ) end [2025-03-11 19:42:20] Production.INFO: ProcessCDR(1,14659038,1,1,2) [2025-03-11 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659038', 'tblTempUsageDetail_20' ) start [2025-03-11 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659038', 'tblTempUsageDetail_20' ) end [2025-03-11 19:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:42:26] Production.INFO: ==411== Releasing lock... [2025-03-11 19:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:42:26] Production.INFO: 58 MB #Memory Used# [2025-03-11 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:43:05 [end_date_ymd] => 2025-03-11 19:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:43:05' and `end` < '2025-03-11 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-11 19:43:18] Production.INFO: count ==4020 [2025-03-11 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:43:05 - End Time 2025-03-11 19:43:05 [2025-03-11 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659043', 'tblTempUsageDetail_20' ) start [2025-03-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659043', 'tblTempUsageDetail_20' ) end [2025-03-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659043', 'tblTempVendorCDR_20' ) start [2025-03-11 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659043', 'tblTempVendorCDR_20' ) end [2025-03-11 19:43:20] Production.INFO: ProcessCDR(1,14659043,1,1,2) [2025-03-11 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659043', 'tblTempUsageDetail_20' ) start [2025-03-11 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659043', 'tblTempUsageDetail_20' ) end [2025-03-11 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:43:23] Production.INFO: ==486== Releasing lock... [2025-03-11 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:43:23] Production.INFO: 58 MB #Memory Used# [2025-03-11 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:44:05 [end_date_ymd] => 2025-03-11 19:44:05 [RateCDR] => 1 ) [2025-03-11 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:44:05' and `end` < '2025-03-11 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:44:17] Production.INFO: count ==3983 [2025-03-11 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:44:05 - End Time 2025-03-11 19:44:05 [2025-03-11 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659048', 'tblTempUsageDetail_20' ) start [2025-03-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659048', 'tblTempUsageDetail_20' ) end [2025-03-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659048', 'tblTempVendorCDR_20' ) start [2025-03-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659048', 'tblTempVendorCDR_20' ) end [2025-03-11 19:44:19] Production.INFO: ProcessCDR(1,14659048,1,1,2) [2025-03-11 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659048', 'tblTempUsageDetail_20' ) start [2025-03-11 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659048', 'tblTempUsageDetail_20' ) end [2025-03-11 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:44:22] Production.INFO: ==566== Releasing lock... [2025-03-11 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:44:22] Production.INFO: 57.75 MB #Memory Used# [2025-03-11 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:45:05 [end_date_ymd] => 2025-03-11 19:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:45:05' and `end` < '2025-03-11 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-11 19:45:17] Production.INFO: count ==3964 [2025-03-11 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:45:05 - End Time 2025-03-11 19:45:05 [2025-03-11 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659053', 'tblTempUsageDetail_20' ) start [2025-03-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659053', 'tblTempUsageDetail_20' ) end [2025-03-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659053', 'tblTempVendorCDR_20' ) start [2025-03-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659053', 'tblTempVendorCDR_20' ) end [2025-03-11 19:45:19] Production.INFO: ProcessCDR(1,14659053,1,1,2) [2025-03-11 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659053', 'tblTempUsageDetail_20' ) start [2025-03-11 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659053', 'tblTempUsageDetail_20' ) end [2025-03-11 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:45:24] Production.INFO: ==655== Releasing lock... [2025-03-11 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:45:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-11 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:46:06 [end_date_ymd] => 2025-03-11 19:46:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:46:06' and `end` < '2025-03-11 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-11 19:46:18] Production.INFO: count ==3933 [2025-03-11 19:46:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:46:06 - End Time 2025-03-11 19:46:06 [2025-03-11 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659058', 'tblTempUsageDetail_20' ) start [2025-03-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659058', 'tblTempUsageDetail_20' ) end [2025-03-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659058', 'tblTempVendorCDR_20' ) start [2025-03-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659058', 'tblTempVendorCDR_20' ) end [2025-03-11 19:46:20] Production.INFO: ProcessCDR(1,14659058,1,1,2) [2025-03-11 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659058', 'tblTempUsageDetail_20' ) start [2025-03-11 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659058', 'tblTempUsageDetail_20' ) end [2025-03-11 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:46:25] Production.INFO: ==756== Releasing lock... [2025-03-11 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:46:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-11 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:47:05 [end_date_ymd] => 2025-03-11 19:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:47:05' and `end` < '2025-03-11 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-11 19:47:18] Production.INFO: count ==3902 [2025-03-11 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:47:05 - End Time 2025-03-11 19:47:05 [2025-03-11 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659063', 'tblTempUsageDetail_20' ) start [2025-03-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659063', 'tblTempUsageDetail_20' ) end [2025-03-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659063', 'tblTempVendorCDR_20' ) start [2025-03-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659063', 'tblTempVendorCDR_20' ) end [2025-03-11 19:47:19] Production.INFO: ProcessCDR(1,14659063,1,1,2) [2025-03-11 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659063', 'tblTempUsageDetail_20' ) start [2025-03-11 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659063', 'tblTempUsageDetail_20' ) end [2025-03-11 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:47:23] Production.INFO: ==837== Releasing lock... [2025-03-11 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:47:23] Production.INFO: 57 MB #Memory Used# [2025-03-11 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:48:05 [end_date_ymd] => 2025-03-11 19:48:05 [RateCDR] => 1 ) [2025-03-11 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:48:05' and `end` < '2025-03-11 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:48:18] Production.INFO: count ==3875 [2025-03-11 19:48:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:48:05 - End Time 2025-03-11 19:48:05 [2025-03-11 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659068', 'tblTempUsageDetail_20' ) start [2025-03-11 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659068', 'tblTempUsageDetail_20' ) end [2025-03-11 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659068', 'tblTempVendorCDR_20' ) start [2025-03-11 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659068', 'tblTempVendorCDR_20' ) end [2025-03-11 19:48:20] Production.INFO: ProcessCDR(1,14659068,1,1,2) [2025-03-11 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659068', 'tblTempUsageDetail_20' ) start [2025-03-11 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659068', 'tblTempUsageDetail_20' ) end [2025-03-11 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:48:23] Production.INFO: ==913== Releasing lock... [2025-03-11 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:48:23] Production.INFO: 57 MB #Memory Used# [2025-03-11 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:49:05 [end_date_ymd] => 2025-03-11 19:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 16:49:05' and `end` < '2025-03-11 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-11 19:49:17] Production.INFO: count ==3865 [2025-03-11 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:49:05 - End Time 2025-03-11 19:49:05 [2025-03-11 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659073', 'tblTempUsageDetail_20' ) start [2025-03-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659073', 'tblTempUsageDetail_20' ) end [2025-03-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659073', 'tblTempVendorCDR_20' ) start [2025-03-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659073', 'tblTempVendorCDR_20' ) end [2025-03-11 19:49:19] Production.INFO: ProcessCDR(1,14659073,1,1,2) [2025-03-11 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659073', 'tblTempUsageDetail_20' ) start [2025-03-11 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659073', 'tblTempUsageDetail_20' ) end [2025-03-11 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:49:23] Production.INFO: ==989== Releasing lock... [2025-03-11 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:49:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-11 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:50:06 [end_date_ymd] => 2025-03-11 19:50:06 [RateCDR] => 1 ) [2025-03-11 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:50:06' and `end` < '2025-03-11 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:50:19] Production.INFO: count ==3852 [2025-03-11 19:50:21] Production.ERROR: pbx CDR StartTime 2025-03-11 16:50:06 - End Time 2025-03-11 19:50:06 [2025-03-11 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659079', 'tblTempUsageDetail_20' ) start [2025-03-11 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659079', 'tblTempUsageDetail_20' ) end [2025-03-11 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659079', 'tblTempVendorCDR_20' ) start [2025-03-11 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659079', 'tblTempVendorCDR_20' ) end [2025-03-11 19:50:21] Production.INFO: ProcessCDR(1,14659079,1,1,2) [2025-03-11 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659079', 'tblTempUsageDetail_20' ) start [2025-03-11 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659079', 'tblTempUsageDetail_20' ) end [2025-03-11 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:50:24] Production.INFO: ==1068== Releasing lock... [2025-03-11 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:50:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-11 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:51:05 [end_date_ymd] => 2025-03-11 19:51:05 [RateCDR] => 1 ) [2025-03-11 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:51:05' and `end` < '2025-03-11 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:51:17] Production.INFO: count ==3766 [2025-03-11 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:51:05 - End Time 2025-03-11 19:51:05 [2025-03-11 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659084', 'tblTempUsageDetail_20' ) start [2025-03-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659084', 'tblTempUsageDetail_20' ) end [2025-03-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659084', 'tblTempVendorCDR_20' ) start [2025-03-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659084', 'tblTempVendorCDR_20' ) end [2025-03-11 19:51:19] Production.INFO: ProcessCDR(1,14659084,1,1,2) [2025-03-11 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659084', 'tblTempUsageDetail_20' ) start [2025-03-11 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659084', 'tblTempUsageDetail_20' ) end [2025-03-11 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:51:23] Production.INFO: ==1153== Releasing lock... [2025-03-11 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:51:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-11 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:52:06 [end_date_ymd] => 2025-03-11 19:52:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:52:06' and `end` < '2025-03-11 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-11 19:52:18] Production.INFO: count ==3732 [2025-03-11 19:52:20] Production.ERROR: pbx CDR StartTime 2025-03-11 16:52:06 - End Time 2025-03-11 19:52:06 [2025-03-11 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659089', 'tblTempUsageDetail_20' ) start [2025-03-11 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659089', 'tblTempUsageDetail_20' ) end [2025-03-11 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659089', 'tblTempVendorCDR_20' ) start [2025-03-11 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659089', 'tblTempVendorCDR_20' ) end [2025-03-11 19:52:20] Production.INFO: ProcessCDR(1,14659089,1,1,2) [2025-03-11 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659089', 'tblTempUsageDetail_20' ) start [2025-03-11 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659089', 'tblTempUsageDetail_20' ) end [2025-03-11 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:52:23] Production.INFO: ==1235== Releasing lock... [2025-03-11 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:52:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-11 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:53:04 [end_date_ymd] => 2025-03-11 19:53:04 [RateCDR] => 1 ) [2025-03-11 19:53: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-11 16:53:04' and `end` < '2025-03-11 19:53: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-11 19:53:17] Production.INFO: count ==3716 [2025-03-11 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 16:53:04 - End Time 2025-03-11 19:53:04 [2025-03-11 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659094', 'tblTempUsageDetail_20' ) start [2025-03-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659094', 'tblTempUsageDetail_20' ) end [2025-03-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659094', 'tblTempVendorCDR_20' ) start [2025-03-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659094', 'tblTempVendorCDR_20' ) end [2025-03-11 19:53:19] Production.INFO: ProcessCDR(1,14659094,1,1,2) [2025-03-11 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659094', 'tblTempUsageDetail_20' ) start [2025-03-11 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659094', 'tblTempUsageDetail_20' ) end [2025-03-11 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:53:22] Production.INFO: ==1323== Releasing lock... [2025-03-11 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:53:22] Production.INFO: 56 MB #Memory Used# [2025-03-11 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:54:06 [end_date_ymd] => 2025-03-11 19:54:06 [RateCDR] => 1 ) [2025-03-11 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-11 16:54:06' and `end` < '2025-03-11 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-11 19:54:18] Production.INFO: count ==3678 [2025-03-11 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:54:06 - End Time 2025-03-11 19:54:06 [2025-03-11 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659099', 'tblTempUsageDetail_20' ) start [2025-03-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659099', 'tblTempUsageDetail_20' ) end [2025-03-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659099', 'tblTempVendorCDR_20' ) start [2025-03-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659099', 'tblTempVendorCDR_20' ) end [2025-03-11 19:54:20] Production.INFO: ProcessCDR(1,14659099,1,1,2) [2025-03-11 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659099', 'tblTempUsageDetail_20' ) start [2025-03-11 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659099', 'tblTempUsageDetail_20' ) end [2025-03-11 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:54:23] Production.INFO: ==1405== Releasing lock... [2025-03-11 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:54:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-11 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:55:05 [end_date_ymd] => 2025-03-11 19:55:05 [RateCDR] => 1 ) [2025-03-11 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:55:05' and `end` < '2025-03-11 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:55:17] Production.INFO: count ==3660 [2025-03-11 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:55:05 - End Time 2025-03-11 19:55:05 [2025-03-11 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659104', 'tblTempUsageDetail_20' ) start [2025-03-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659104', 'tblTempUsageDetail_20' ) end [2025-03-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659104', 'tblTempVendorCDR_20' ) start [2025-03-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659104', 'tblTempVendorCDR_20' ) end [2025-03-11 19:55:19] Production.INFO: ProcessCDR(1,14659104,1,1,2) [2025-03-11 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659104', 'tblTempUsageDetail_20' ) start [2025-03-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659104', 'tblTempUsageDetail_20' ) end [2025-03-11 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:55:22] Production.INFO: ==1482== Releasing lock... [2025-03-11 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:55:22] Production.INFO: 56 MB #Memory Used# [2025-03-11 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:56:05 [end_date_ymd] => 2025-03-11 19:56:05 [RateCDR] => 1 ) [2025-03-11 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:56:05' and `end` < '2025-03-11 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:56:18] Production.INFO: count ==3617 [2025-03-11 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:56:05 - End Time 2025-03-11 19:56:05 [2025-03-11 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659109', 'tblTempUsageDetail_20' ) start [2025-03-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659109', 'tblTempUsageDetail_20' ) end [2025-03-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659109', 'tblTempVendorCDR_20' ) start [2025-03-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659109', 'tblTempVendorCDR_20' ) end [2025-03-11 19:56:19] Production.INFO: ProcessCDR(1,14659109,1,1,2) [2025-03-11 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659109', 'tblTempUsageDetail_20' ) start [2025-03-11 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659109', 'tblTempUsageDetail_20' ) end [2025-03-11 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:56:22] Production.INFO: ==1639== Releasing lock... [2025-03-11 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:56:22] Production.INFO: 55 MB #Memory Used# [2025-03-11 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:57:05 [end_date_ymd] => 2025-03-11 19:57:05 [RateCDR] => 1 ) [2025-03-11 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:57:05' and `end` < '2025-03-11 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:57:17] Production.INFO: count ==3599 [2025-03-11 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:57:05 - End Time 2025-03-11 19:57:05 [2025-03-11 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659114', 'tblTempUsageDetail_20' ) start [2025-03-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659114', 'tblTempUsageDetail_20' ) end [2025-03-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659114', 'tblTempVendorCDR_20' ) start [2025-03-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659114', 'tblTempVendorCDR_20' ) end [2025-03-11 19:57:19] Production.INFO: ProcessCDR(1,14659114,1,1,2) [2025-03-11 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659114', 'tblTempUsageDetail_20' ) start [2025-03-11 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659114', 'tblTempUsageDetail_20' ) end [2025-03-11 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:57:22] Production.INFO: ==1718== Releasing lock... [2025-03-11 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:57:22] Production.INFO: 55 MB #Memory Used# [2025-03-11 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:58:05 [end_date_ymd] => 2025-03-11 19:58:05 [RateCDR] => 1 ) [2025-03-11 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:58:05' and `end` < '2025-03-11 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:58:18] Production.INFO: count ==3567 [2025-03-11 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:58:05 - End Time 2025-03-11 19:58:05 [2025-03-11 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659119', 'tblTempUsageDetail_20' ) start [2025-03-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659119', 'tblTempUsageDetail_20' ) end [2025-03-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659119', 'tblTempVendorCDR_20' ) start [2025-03-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659119', 'tblTempVendorCDR_20' ) end [2025-03-11 19:58:19] Production.INFO: ProcessCDR(1,14659119,1,1,2) [2025-03-11 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659119', 'tblTempUsageDetail_20' ) start [2025-03-11 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659119', 'tblTempUsageDetail_20' ) end [2025-03-11 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:58:22] Production.INFO: ==1790== Releasing lock... [2025-03-11 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:58:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-11 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 16:59:05 [end_date_ymd] => 2025-03-11 19:59:05 [RateCDR] => 1 ) [2025-03-11 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 16:59:05' and `end` < '2025-03-11 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 19:59:17] Production.INFO: count ==3546 [2025-03-11 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-11 16:59:05 - End Time 2025-03-11 19:59:05 [2025-03-11 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659124', 'tblTempUsageDetail_20' ) start [2025-03-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659124', 'tblTempUsageDetail_20' ) end [2025-03-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659124', 'tblTempVendorCDR_20' ) start [2025-03-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659124', 'tblTempVendorCDR_20' ) end [2025-03-11 19:59:19] Production.INFO: ProcessCDR(1,14659124,1,1,2) [2025-03-11 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659124', 'tblTempUsageDetail_20' ) start [2025-03-11 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659124', 'tblTempUsageDetail_20' ) end [2025-03-11 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 19:59:22] Production.INFO: ==1867== Releasing lock... [2025-03-11 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 19:59:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-11 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:00:06 [end_date_ymd] => 2025-03-11 20:00:06 [RateCDR] => 1 ) [2025-03-11 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:00:06' and `end` < '2025-03-11 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:00:19] Production.INFO: count ==3515 [2025-03-11 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-11 17:00:06 - End Time 2025-03-11 20:00:06 [2025-03-11 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659130', 'tblTempUsageDetail_20' ) start [2025-03-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659130', 'tblTempUsageDetail_20' ) end [2025-03-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659130', 'tblTempVendorCDR_20' ) start [2025-03-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659130', 'tblTempVendorCDR_20' ) end [2025-03-11 20:00:20] Production.INFO: ProcessCDR(1,14659130,1,1,2) [2025-03-11 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659130', 'tblTempUsageDetail_20' ) start [2025-03-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659130', 'tblTempUsageDetail_20' ) end [2025-03-11 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:00:24] Production.INFO: ==1943== Releasing lock... [2025-03-11 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:00:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-11 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:01:06 [end_date_ymd] => 2025-03-11 20:01:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:01:06' and `end` < '2025-03-11 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-11 20:01:18] Production.INFO: count ==3440 [2025-03-11 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-11 17:01:06 - End Time 2025-03-11 20:01:06 [2025-03-11 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659135', 'tblTempUsageDetail_20' ) start [2025-03-11 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659135', 'tblTempUsageDetail_20' ) end [2025-03-11 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659135', 'tblTempVendorCDR_20' ) start [2025-03-11 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659135', 'tblTempVendorCDR_20' ) end [2025-03-11 20:01:20] Production.INFO: ProcessCDR(1,14659135,1,1,2) [2025-03-11 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659135', 'tblTempUsageDetail_20' ) start [2025-03-11 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659135', 'tblTempUsageDetail_20' ) end [2025-03-11 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:01:23] Production.INFO: ==2068== Releasing lock... [2025-03-11 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:01:23] Production.INFO: 54 MB #Memory Used# [2025-03-11 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:02:05 [end_date_ymd] => 2025-03-11 20:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:02:05' and `end` < '2025-03-11 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-11 20:02:17] Production.INFO: count ==3441 [2025-03-11 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:02:05 - End Time 2025-03-11 20:02:05 [2025-03-11 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659140', 'tblTempUsageDetail_20' ) start [2025-03-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659140', 'tblTempUsageDetail_20' ) end [2025-03-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659140', 'tblTempVendorCDR_20' ) start [2025-03-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659140', 'tblTempVendorCDR_20' ) end [2025-03-11 20:02:19] Production.INFO: ProcessCDR(1,14659140,1,1,2) [2025-03-11 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659140', 'tblTempUsageDetail_20' ) start [2025-03-11 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659140', 'tblTempUsageDetail_20' ) end [2025-03-11 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:02:22] Production.INFO: ==2144== Releasing lock... [2025-03-11 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:02:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-11 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:03:05 [end_date_ymd] => 2025-03-11 20:03:05 [RateCDR] => 1 ) [2025-03-11 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:03:05' and `end` < '2025-03-11 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:03:17] Production.INFO: count ==3418 [2025-03-11 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:03:05 - End Time 2025-03-11 20:03:05 [2025-03-11 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659145', 'tblTempUsageDetail_20' ) start [2025-03-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659145', 'tblTempUsageDetail_20' ) end [2025-03-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659145', 'tblTempVendorCDR_20' ) start [2025-03-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659145', 'tblTempVendorCDR_20' ) end [2025-03-11 20:03:18] Production.INFO: ProcessCDR(1,14659145,1,1,2) [2025-03-11 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659145', 'tblTempUsageDetail_20' ) start [2025-03-11 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659145', 'tblTempUsageDetail_20' ) end [2025-03-11 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:03:22] Production.INFO: ==2219== Releasing lock... [2025-03-11 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:03:22] Production.INFO: 54 MB #Memory Used# [2025-03-11 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:04:05 [end_date_ymd] => 2025-03-11 20:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:04:05' and `end` < '2025-03-11 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-11 20:04:17] Production.INFO: count ==3389 [2025-03-11 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:04:05 - End Time 2025-03-11 20:04:05 [2025-03-11 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659150', 'tblTempUsageDetail_20' ) start [2025-03-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659150', 'tblTempUsageDetail_20' ) end [2025-03-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659150', 'tblTempVendorCDR_20' ) start [2025-03-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659150', 'tblTempVendorCDR_20' ) end [2025-03-11 20:04:19] Production.INFO: ProcessCDR(1,14659150,1,1,2) [2025-03-11 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659150', 'tblTempUsageDetail_20' ) start [2025-03-11 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659150', 'tblTempUsageDetail_20' ) end [2025-03-11 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:04:22] Production.INFO: ==2295== Releasing lock... [2025-03-11 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:04:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-11 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:05:04 [end_date_ymd] => 2025-03-11 20:05:04 [RateCDR] => 1 ) [2025-03-11 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:05:04' and `end` < '2025-03-11 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:05:17] Production.INFO: count ==3375 [2025-03-11 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:05:04 - End Time 2025-03-11 20:05:04 [2025-03-11 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659155', 'tblTempUsageDetail_20' ) start [2025-03-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659155', 'tblTempUsageDetail_20' ) end [2025-03-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659155', 'tblTempVendorCDR_20' ) start [2025-03-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659155', 'tblTempVendorCDR_20' ) end [2025-03-11 20:05:18] Production.INFO: ProcessCDR(1,14659155,1,1,2) [2025-03-11 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659155', 'tblTempUsageDetail_20' ) start [2025-03-11 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659155', 'tblTempUsageDetail_20' ) end [2025-03-11 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:05:22] Production.INFO: ==2368== Releasing lock... [2025-03-11 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:05:22] Production.INFO: 53 MB #Memory Used# [2025-03-11 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:06:05 [end_date_ymd] => 2025-03-11 20:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:06:05' and `end` < '2025-03-11 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-11 20:06:18] Production.INFO: count ==3350 [2025-03-11 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:06:05 - End Time 2025-03-11 20:06:05 [2025-03-11 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659160', 'tblTempUsageDetail_20' ) start [2025-03-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659160', 'tblTempUsageDetail_20' ) end [2025-03-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659160', 'tblTempVendorCDR_20' ) start [2025-03-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659160', 'tblTempVendorCDR_20' ) end [2025-03-11 20:06:19] Production.INFO: ProcessCDR(1,14659160,1,1,2) [2025-03-11 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659160', 'tblTempUsageDetail_20' ) start [2025-03-11 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659160', 'tblTempUsageDetail_20' ) end [2025-03-11 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:06:22] Production.INFO: ==2438== Releasing lock... [2025-03-11 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:06:22] Production.INFO: 53 MB #Memory Used# [2025-03-11 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:07:05 [end_date_ymd] => 2025-03-11 20:07:05 [RateCDR] => 1 ) [2025-03-11 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:07:05' and `end` < '2025-03-11 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:07:18] Production.INFO: count ==3306 [2025-03-11 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:07:05 - End Time 2025-03-11 20:07:05 [2025-03-11 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659165', 'tblTempUsageDetail_20' ) start [2025-03-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659165', 'tblTempUsageDetail_20' ) end [2025-03-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659165', 'tblTempVendorCDR_20' ) start [2025-03-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659165', 'tblTempVendorCDR_20' ) end [2025-03-11 20:07:19] Production.INFO: ProcessCDR(1,14659165,1,1,2) [2025-03-11 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659165', 'tblTempUsageDetail_20' ) start [2025-03-11 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659165', 'tblTempUsageDetail_20' ) end [2025-03-11 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:07:23] Production.INFO: ==2511== Releasing lock... [2025-03-11 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:07:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-11 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:08:05 [end_date_ymd] => 2025-03-11 20:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:08:05' and `end` < '2025-03-11 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-11 20:08:18] Production.INFO: count ==3296 [2025-03-11 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:08:05 - End Time 2025-03-11 20:08:05 [2025-03-11 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659170', 'tblTempUsageDetail_20' ) start [2025-03-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659170', 'tblTempUsageDetail_20' ) end [2025-03-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659170', 'tblTempVendorCDR_20' ) start [2025-03-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659170', 'tblTempVendorCDR_20' ) end [2025-03-11 20:08:19] Production.INFO: ProcessCDR(1,14659170,1,1,2) [2025-03-11 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659170', 'tblTempUsageDetail_20' ) start [2025-03-11 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659170', 'tblTempUsageDetail_20' ) end [2025-03-11 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:08:24] Production.INFO: ==2583== Releasing lock... [2025-03-11 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:08:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-11 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:09:05 [end_date_ymd] => 2025-03-11 20:09:05 [RateCDR] => 1 ) [2025-03-11 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:09:05' and `end` < '2025-03-11 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:09:18] Production.INFO: count ==3275 [2025-03-11 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:09:05 - End Time 2025-03-11 20:09:05 [2025-03-11 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659175', 'tblTempUsageDetail_20' ) start [2025-03-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659175', 'tblTempUsageDetail_20' ) end [2025-03-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659175', 'tblTempVendorCDR_20' ) start [2025-03-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659175', 'tblTempVendorCDR_20' ) end [2025-03-11 20:09:19] Production.INFO: ProcessCDR(1,14659175,1,1,2) [2025-03-11 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659175', 'tblTempUsageDetail_20' ) start [2025-03-11 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659175', 'tblTempUsageDetail_20' ) end [2025-03-11 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:09:23] Production.INFO: ==2657== Releasing lock... [2025-03-11 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:09:23] Production.INFO: 53 MB #Memory Used# [2025-03-11 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:10:06 [end_date_ymd] => 2025-03-11 20:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:10:06' and `end` < '2025-03-11 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-11 20:10:19] Production.INFO: count ==3244 [2025-03-11 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-11 17:10:06 - End Time 2025-03-11 20:10:06 [2025-03-11 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659181', 'tblTempUsageDetail_20' ) start [2025-03-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659181', 'tblTempUsageDetail_20' ) end [2025-03-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659181', 'tblTempVendorCDR_20' ) start [2025-03-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659181', 'tblTempVendorCDR_20' ) end [2025-03-11 20:10:20] Production.INFO: ProcessCDR(1,14659181,1,1,2) [2025-03-11 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659181', 'tblTempUsageDetail_20' ) start [2025-03-11 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659181', 'tblTempUsageDetail_20' ) end [2025-03-11 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:10:23] Production.INFO: ==2741== Releasing lock... [2025-03-11 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:10:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-11 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:11:05 [end_date_ymd] => 2025-03-11 20:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:11:05' and `end` < '2025-03-11 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-11 20:11:17] Production.INFO: count ==3127 [2025-03-11 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:11:05 - End Time 2025-03-11 20:11:05 [2025-03-11 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659186', 'tblTempUsageDetail_20' ) start [2025-03-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659186', 'tblTempUsageDetail_20' ) end [2025-03-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659186', 'tblTempVendorCDR_20' ) start [2025-03-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659186', 'tblTempVendorCDR_20' ) end [2025-03-11 20:11:19] Production.INFO: ProcessCDR(1,14659186,1,1,2) [2025-03-11 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659186', 'tblTempUsageDetail_20' ) start [2025-03-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659186', 'tblTempUsageDetail_20' ) end [2025-03-11 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:11:22] Production.INFO: ==2856== Releasing lock... [2025-03-11 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:11:22] Production.INFO: 51.5 MB #Memory Used# [2025-03-11 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:12:05 [end_date_ymd] => 2025-03-11 20:12:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:12:05' and `end` < '2025-03-11 20: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-11 20:12:17] Production.INFO: count ==3113 [2025-03-11 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:12:05 - End Time 2025-03-11 20:12:05 [2025-03-11 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659191', 'tblTempUsageDetail_20' ) start [2025-03-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659191', 'tblTempUsageDetail_20' ) end [2025-03-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659191', 'tblTempVendorCDR_20' ) start [2025-03-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659191', 'tblTempVendorCDR_20' ) end [2025-03-11 20:12:19] Production.INFO: ProcessCDR(1,14659191,1,1,2) [2025-03-11 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659191', 'tblTempUsageDetail_20' ) start [2025-03-11 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659191', 'tblTempUsageDetail_20' ) end [2025-03-11 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:12:24] Production.INFO: ==2930== Releasing lock... [2025-03-11 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:12:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-11 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:13:05 [end_date_ymd] => 2025-03-11 20:13:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:13:05' and `end` < '2025-03-11 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-11 20:13:17] Production.INFO: count ==3082 [2025-03-11 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:13:05 - End Time 2025-03-11 20:13:05 [2025-03-11 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659196', 'tblTempUsageDetail_20' ) start [2025-03-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659196', 'tblTempUsageDetail_20' ) end [2025-03-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659196', 'tblTempVendorCDR_20' ) start [2025-03-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659196', 'tblTempVendorCDR_20' ) end [2025-03-11 20:13:19] Production.INFO: ProcessCDR(1,14659196,1,1,2) [2025-03-11 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659196', 'tblTempUsageDetail_20' ) start [2025-03-11 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659196', 'tblTempUsageDetail_20' ) end [2025-03-11 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:13:22] Production.INFO: ==3000== Releasing lock... [2025-03-11 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:13:22] Production.INFO: 51 MB #Memory Used# [2025-03-11 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:14:05 [end_date_ymd] => 2025-03-11 20:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:14:05' and `end` < '2025-03-11 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-11 20:14:17] Production.INFO: count ==3009 [2025-03-11 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:14:05 - End Time 2025-03-11 20:14:05 [2025-03-11 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659201', 'tblTempUsageDetail_20' ) start [2025-03-11 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659201', 'tblTempUsageDetail_20' ) end [2025-03-11 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659201', 'tblTempVendorCDR_20' ) start [2025-03-11 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659201', 'tblTempVendorCDR_20' ) end [2025-03-11 20:14:18] Production.INFO: ProcessCDR(1,14659201,1,1,2) [2025-03-11 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659201', 'tblTempUsageDetail_20' ) start [2025-03-11 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659201', 'tblTempUsageDetail_20' ) end [2025-03-11 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:14:22] Production.INFO: ==3072== Releasing lock... [2025-03-11 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:14:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-11 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:15:05 [end_date_ymd] => 2025-03-11 20:15:05 [RateCDR] => 1 ) [2025-03-11 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:15:05' and `end` < '2025-03-11 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:15:18] Production.INFO: count ==2947 [2025-03-11 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:15:05 - End Time 2025-03-11 20:15:05 [2025-03-11 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659206', 'tblTempUsageDetail_20' ) start [2025-03-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659206', 'tblTempUsageDetail_20' ) end [2025-03-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659206', 'tblTempVendorCDR_20' ) start [2025-03-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659206', 'tblTempVendorCDR_20' ) end [2025-03-11 20:15:19] Production.INFO: ProcessCDR(1,14659206,1,1,2) [2025-03-11 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659206', 'tblTempUsageDetail_20' ) start [2025-03-11 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659206', 'tblTempUsageDetail_20' ) end [2025-03-11 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:15:24] Production.INFO: ==3144== Releasing lock... [2025-03-11 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:15:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-11 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:16:05 [end_date_ymd] => 2025-03-11 20:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:16:05' and `end` < '2025-03-11 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-11 20:16:18] Production.INFO: count ==2893 [2025-03-11 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:16:05 - End Time 2025-03-11 20:16:05 [2025-03-11 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659211', 'tblTempUsageDetail_20' ) start [2025-03-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659211', 'tblTempUsageDetail_20' ) end [2025-03-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659211', 'tblTempVendorCDR_20' ) start [2025-03-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659211', 'tblTempVendorCDR_20' ) end [2025-03-11 20:16:19] Production.INFO: ProcessCDR(1,14659211,1,1,2) [2025-03-11 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659211', 'tblTempUsageDetail_20' ) start [2025-03-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659211', 'tblTempUsageDetail_20' ) end [2025-03-11 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:16:22] Production.INFO: ==3218== Releasing lock... [2025-03-11 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:16:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-11 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:17:05 [end_date_ymd] => 2025-03-11 20:17:05 [RateCDR] => 1 ) [2025-03-11 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:17:05' and `end` < '2025-03-11 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:17:17] Production.INFO: count ==2847 [2025-03-11 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:17:05 - End Time 2025-03-11 20:17:05 [2025-03-11 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659216', 'tblTempUsageDetail_20' ) start [2025-03-11 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659216', 'tblTempUsageDetail_20' ) end [2025-03-11 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659216', 'tblTempVendorCDR_20' ) start [2025-03-11 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659216', 'tblTempVendorCDR_20' ) end [2025-03-11 20:17:18] Production.INFO: ProcessCDR(1,14659216,1,1,2) [2025-03-11 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659216', 'tblTempUsageDetail_20' ) start [2025-03-11 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659216', 'tblTempUsageDetail_20' ) end [2025-03-11 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:17:22] Production.INFO: ==3288== Releasing lock... [2025-03-11 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:17:22] Production.INFO: 49 MB #Memory Used# [2025-03-11 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:18:05 [end_date_ymd] => 2025-03-11 20:18:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:18:05' and `end` < '2025-03-11 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-11 20:18:17] Production.INFO: count ==2779 [2025-03-11 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:18:05 - End Time 2025-03-11 20:18:05 [2025-03-11 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659221', 'tblTempUsageDetail_20' ) start [2025-03-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659221', 'tblTempUsageDetail_20' ) end [2025-03-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659221', 'tblTempVendorCDR_20' ) start [2025-03-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659221', 'tblTempVendorCDR_20' ) end [2025-03-11 20:18:18] Production.INFO: ProcessCDR(1,14659221,1,1,2) [2025-03-11 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659221', 'tblTempUsageDetail_20' ) start [2025-03-11 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659221', 'tblTempUsageDetail_20' ) end [2025-03-11 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:18:23] Production.INFO: ==3359== Releasing lock... [2025-03-11 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:18:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-11 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:19:05 [end_date_ymd] => 2025-03-11 20:19:05 [RateCDR] => 1 ) [2025-03-11 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:19:05' and `end` < '2025-03-11 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:19:18] Production.INFO: count ==2743 [2025-03-11 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:19:05 - End Time 2025-03-11 20:19:05 [2025-03-11 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659226', 'tblTempUsageDetail_20' ) start [2025-03-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659226', 'tblTempUsageDetail_20' ) end [2025-03-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659226', 'tblTempVendorCDR_20' ) start [2025-03-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659226', 'tblTempVendorCDR_20' ) end [2025-03-11 20:19:19] Production.INFO: ProcessCDR(1,14659226,1,1,2) [2025-03-11 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659226', 'tblTempUsageDetail_20' ) start [2025-03-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659226', 'tblTempUsageDetail_20' ) end [2025-03-11 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:19:22] Production.INFO: ==3430== Releasing lock... [2025-03-11 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:19:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-11 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:20:06 [end_date_ymd] => 2025-03-11 20:20:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:20:06' and `end` < '2025-03-11 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-11 20:20:18] Production.INFO: count ==2708 [2025-03-11 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:20:06 - End Time 2025-03-11 20:20:06 [2025-03-11 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659231', 'tblTempUsageDetail_20' ) start [2025-03-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659231', 'tblTempUsageDetail_20' ) end [2025-03-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659231', 'tblTempVendorCDR_20' ) start [2025-03-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659231', 'tblTempVendorCDR_20' ) end [2025-03-11 20:20:19] Production.INFO: ProcessCDR(1,14659231,1,1,2) [2025-03-11 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659231', 'tblTempUsageDetail_20' ) start [2025-03-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659231', 'tblTempUsageDetail_20' ) end [2025-03-11 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:20:23] Production.INFO: ==3507== Releasing lock... [2025-03-11 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:20:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-11 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:21:05 [end_date_ymd] => 2025-03-11 20:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:21:05' and `end` < '2025-03-11 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-11 20:21:17] Production.INFO: count ==2630 [2025-03-11 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:21:05 - End Time 2025-03-11 20:21:05 [2025-03-11 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659237', 'tblTempUsageDetail_20' ) start [2025-03-11 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659237', 'tblTempUsageDetail_20' ) end [2025-03-11 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659237', 'tblTempVendorCDR_20' ) start [2025-03-11 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659237', 'tblTempVendorCDR_20' ) end [2025-03-11 20:21:18] Production.INFO: ProcessCDR(1,14659237,1,1,2) [2025-03-11 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659237', 'tblTempUsageDetail_20' ) start [2025-03-11 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659237', 'tblTempUsageDetail_20' ) end [2025-03-11 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:21:23] Production.INFO: ==3582== Releasing lock... [2025-03-11 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:21:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-11 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:22:05 [end_date_ymd] => 2025-03-11 20:22:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:22:05' and `end` < '2025-03-11 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-11 20:22:18] Production.INFO: count ==2595 [2025-03-11 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:22:05 - End Time 2025-03-11 20:22:05 [2025-03-11 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659242', 'tblTempUsageDetail_20' ) start [2025-03-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659242', 'tblTempUsageDetail_20' ) end [2025-03-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659242', 'tblTempVendorCDR_20' ) start [2025-03-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659242', 'tblTempVendorCDR_20' ) end [2025-03-11 20:22:19] Production.INFO: ProcessCDR(1,14659242,1,1,2) [2025-03-11 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659242', 'tblTempUsageDetail_20' ) start [2025-03-11 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659242', 'tblTempUsageDetail_20' ) end [2025-03-11 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:22:22] Production.INFO: ==3652== Releasing lock... [2025-03-11 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:22:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-11 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:23:06 [end_date_ymd] => 2025-03-11 20:23:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:23:06' and `end` < '2025-03-11 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-11 20:23:18] Production.INFO: count ==2514 [2025-03-11 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:23:06 - End Time 2025-03-11 20:23:06 [2025-03-11 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659247', 'tblTempUsageDetail_20' ) start [2025-03-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659247', 'tblTempUsageDetail_20' ) end [2025-03-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659247', 'tblTempVendorCDR_20' ) start [2025-03-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659247', 'tblTempVendorCDR_20' ) end [2025-03-11 20:23:19] Production.INFO: ProcessCDR(1,14659247,1,1,2) [2025-03-11 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659247', 'tblTempUsageDetail_20' ) start [2025-03-11 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659247', 'tblTempUsageDetail_20' ) end [2025-03-11 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:23:22] Production.INFO: ==3731== Releasing lock... [2025-03-11 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:23:22] Production.INFO: 47 MB #Memory Used# [2025-03-11 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:24:05 [end_date_ymd] => 2025-03-11 20:24:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:24:05' and `end` < '2025-03-11 20: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-11 20:24:17] Production.INFO: count ==2478 [2025-03-11 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:24:05 - End Time 2025-03-11 20:24:05 [2025-03-11 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659252', 'tblTempUsageDetail_20' ) start [2025-03-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659252', 'tblTempUsageDetail_20' ) end [2025-03-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659252', 'tblTempVendorCDR_20' ) start [2025-03-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659252', 'tblTempVendorCDR_20' ) end [2025-03-11 20:24:18] Production.INFO: ProcessCDR(1,14659252,1,1,2) [2025-03-11 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659252', 'tblTempUsageDetail_20' ) start [2025-03-11 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659252', 'tblTempUsageDetail_20' ) end [2025-03-11 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:24:22] Production.INFO: ==3801== Releasing lock... [2025-03-11 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:24:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:25:05 [end_date_ymd] => 2025-03-11 20:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:25:05' and `end` < '2025-03-11 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-11 20:25:18] Production.INFO: count ==2471 [2025-03-11 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:25:05 - End Time 2025-03-11 20:25:05 [2025-03-11 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659257', 'tblTempUsageDetail_20' ) start [2025-03-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659257', 'tblTempUsageDetail_20' ) end [2025-03-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659257', 'tblTempVendorCDR_20' ) start [2025-03-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659257', 'tblTempVendorCDR_20' ) end [2025-03-11 20:25:18] Production.INFO: ProcessCDR(1,14659257,1,1,2) [2025-03-11 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659257', 'tblTempUsageDetail_20' ) start [2025-03-11 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659257', 'tblTempUsageDetail_20' ) end [2025-03-11 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:25:22] Production.INFO: ==3880== Releasing lock... [2025-03-11 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:25:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-11 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:26:05 [end_date_ymd] => 2025-03-11 20:26:05 [RateCDR] => 1 ) [2025-03-11 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:26:05' and `end` < '2025-03-11 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:26:17] Production.INFO: count ==2449 [2025-03-11 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:26:05 - End Time 2025-03-11 20:26:05 [2025-03-11 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659262', 'tblTempUsageDetail_20' ) start [2025-03-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659262', 'tblTempUsageDetail_20' ) end [2025-03-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659262', 'tblTempVendorCDR_20' ) start [2025-03-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659262', 'tblTempVendorCDR_20' ) end [2025-03-11 20:26:18] Production.INFO: ProcessCDR(1,14659262,1,1,2) [2025-03-11 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659262', 'tblTempUsageDetail_20' ) start [2025-03-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659262', 'tblTempUsageDetail_20' ) end [2025-03-11 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:26:22] Production.INFO: ==3950== Releasing lock... [2025-03-11 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:26:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-11 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:27:05 [end_date_ymd] => 2025-03-11 20:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:27:05' and `end` < '2025-03-11 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-11 20:27:17] Production.INFO: count ==2421 [2025-03-11 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:27:05 - End Time 2025-03-11 20:27:05 [2025-03-11 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659267', 'tblTempUsageDetail_20' ) start [2025-03-11 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659267', 'tblTempUsageDetail_20' ) end [2025-03-11 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659267', 'tblTempVendorCDR_20' ) start [2025-03-11 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659267', 'tblTempVendorCDR_20' ) end [2025-03-11 20:27:18] Production.INFO: ProcessCDR(1,14659267,1,1,2) [2025-03-11 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659267', 'tblTempUsageDetail_20' ) start [2025-03-11 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659267', 'tblTempUsageDetail_20' ) end [2025-03-11 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:27:22] Production.INFO: ==4065== Releasing lock... [2025-03-11 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:27:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-11 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:28:05 [end_date_ymd] => 2025-03-11 20:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:28:05' and `end` < '2025-03-11 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-11 20:28:17] Production.INFO: count ==2321 [2025-03-11 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:28:05 - End Time 2025-03-11 20:28:05 [2025-03-11 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659272', 'tblTempUsageDetail_20' ) start [2025-03-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659272', 'tblTempUsageDetail_20' ) end [2025-03-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659272', 'tblTempVendorCDR_20' ) start [2025-03-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659272', 'tblTempVendorCDR_20' ) end [2025-03-11 20:28:18] Production.INFO: ProcessCDR(1,14659272,1,1,2) [2025-03-11 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659272', 'tblTempUsageDetail_20' ) start [2025-03-11 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659272', 'tblTempUsageDetail_20' ) end [2025-03-11 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:28:22] Production.INFO: ==4142== Releasing lock... [2025-03-11 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:28:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-11 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:29:05 [end_date_ymd] => 2025-03-11 20:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:29:05' and `end` < '2025-03-11 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-11 20:29:18] Production.INFO: count ==2250 [2025-03-11 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:29:05 - End Time 2025-03-11 20:29:05 [2025-03-11 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659277', 'tblTempUsageDetail_20' ) start [2025-03-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659277', 'tblTempUsageDetail_20' ) end [2025-03-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659277', 'tblTempVendorCDR_20' ) start [2025-03-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659277', 'tblTempVendorCDR_20' ) end [2025-03-11 20:29:19] Production.INFO: ProcessCDR(1,14659277,1,1,2) [2025-03-11 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659277', 'tblTempUsageDetail_20' ) start [2025-03-11 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659277', 'tblTempUsageDetail_20' ) end [2025-03-11 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:29:24] Production.INFO: ==4223== Releasing lock... [2025-03-11 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:29:24] Production.INFO: 45 MB #Memory Used# [2025-03-11 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:30:06 [end_date_ymd] => 2025-03-11 20:30:06 [RateCDR] => 1 ) [2025-03-11 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:30:06' and `end` < '2025-03-11 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:30:18] Production.INFO: count ==2244 [2025-03-11 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:30:06 - End Time 2025-03-11 20:30:06 [2025-03-11 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659283', 'tblTempUsageDetail_20' ) start [2025-03-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659283', 'tblTempUsageDetail_20' ) end [2025-03-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659283', 'tblTempVendorCDR_20' ) start [2025-03-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659283', 'tblTempVendorCDR_20' ) end [2025-03-11 20:30:19] Production.INFO: ProcessCDR(1,14659283,1,1,2) [2025-03-11 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659283', 'tblTempUsageDetail_20' ) start [2025-03-11 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659283', 'tblTempUsageDetail_20' ) end [2025-03-11 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:30:22] Production.INFO: ==4310== Releasing lock... [2025-03-11 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:30:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-11 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:31:05 [end_date_ymd] => 2025-03-11 20:31:05 [RateCDR] => 1 ) [2025-03-11 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:31:05' and `end` < '2025-03-11 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:31:18] Production.INFO: count ==2183 [2025-03-11 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:31:05 - End Time 2025-03-11 20:31:05 [2025-03-11 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659288', 'tblTempUsageDetail_20' ) start [2025-03-11 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659288', 'tblTempUsageDetail_20' ) end [2025-03-11 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659288', 'tblTempVendorCDR_20' ) start [2025-03-11 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659288', 'tblTempVendorCDR_20' ) end [2025-03-11 20:31:18] Production.INFO: ProcessCDR(1,14659288,1,1,2) [2025-03-11 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659288', 'tblTempUsageDetail_20' ) start [2025-03-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659288', 'tblTempUsageDetail_20' ) end [2025-03-11 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:31:22] Production.INFO: ==4389== Releasing lock... [2025-03-11 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:31:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-11 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:32:05 [end_date_ymd] => 2025-03-11 20:32:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:32:05' and `end` < '2025-03-11 20: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-11 20:32:18] Production.INFO: count ==2163 [2025-03-11 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:32:05 - End Time 2025-03-11 20:32:05 [2025-03-11 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659293', 'tblTempUsageDetail_20' ) start [2025-03-11 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659293', 'tblTempUsageDetail_20' ) end [2025-03-11 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659293', 'tblTempVendorCDR_20' ) start [2025-03-11 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659293', 'tblTempVendorCDR_20' ) end [2025-03-11 20:32:18] Production.INFO: ProcessCDR(1,14659293,1,1,2) [2025-03-11 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659293', 'tblTempUsageDetail_20' ) start [2025-03-11 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659293', 'tblTempUsageDetail_20' ) end [2025-03-11 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:32:22] Production.INFO: ==4469== Releasing lock... [2025-03-11 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:32:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-11 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:33:05 [end_date_ymd] => 2025-03-11 20:33:05 [RateCDR] => 1 ) [2025-03-11 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:33:05' and `end` < '2025-03-11 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:33:18] Production.INFO: count ==2149 [2025-03-11 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:33:05 - End Time 2025-03-11 20:33:05 [2025-03-11 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659298', 'tblTempUsageDetail_20' ) start [2025-03-11 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659298', 'tblTempUsageDetail_20' ) end [2025-03-11 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659298', 'tblTempVendorCDR_20' ) start [2025-03-11 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659298', 'tblTempVendorCDR_20' ) end [2025-03-11 20:33:18] Production.INFO: ProcessCDR(1,14659298,1,1,2) [2025-03-11 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659298', 'tblTempUsageDetail_20' ) start [2025-03-11 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659298', 'tblTempUsageDetail_20' ) end [2025-03-11 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:33:24] Production.INFO: ==4553== Releasing lock... [2025-03-11 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:33:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-11 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:34:05 [end_date_ymd] => 2025-03-11 20:34:05 [RateCDR] => 1 ) [2025-03-11 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:34:05' and `end` < '2025-03-11 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:34:17] Production.INFO: count ==2142 [2025-03-11 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:34:05 - End Time 2025-03-11 20:34:05 [2025-03-11 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659303', 'tblTempUsageDetail_20' ) start [2025-03-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659303', 'tblTempUsageDetail_20' ) end [2025-03-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659303', 'tblTempVendorCDR_20' ) start [2025-03-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659303', 'tblTempVendorCDR_20' ) end [2025-03-11 20:34:18] Production.INFO: ProcessCDR(1,14659303,1,1,2) [2025-03-11 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659303', 'tblTempUsageDetail_20' ) start [2025-03-11 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659303', 'tblTempUsageDetail_20' ) end [2025-03-11 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:34:22] Production.INFO: ==4636== Releasing lock... [2025-03-11 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:34:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-11 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:35:05 [end_date_ymd] => 2025-03-11 20:35:05 [RateCDR] => 1 ) [2025-03-11 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:35:05' and `end` < '2025-03-11 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:35:17] Production.INFO: count ==2128 [2025-03-11 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:35:05 - End Time 2025-03-11 20:35:05 [2025-03-11 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659308', 'tblTempUsageDetail_20' ) start [2025-03-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659308', 'tblTempUsageDetail_20' ) end [2025-03-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659308', 'tblTempVendorCDR_20' ) start [2025-03-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659308', 'tblTempVendorCDR_20' ) end [2025-03-11 20:35:18] Production.INFO: ProcessCDR(1,14659308,1,1,2) [2025-03-11 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659308', 'tblTempUsageDetail_20' ) start [2025-03-11 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659308', 'tblTempUsageDetail_20' ) end [2025-03-11 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:35:21] Production.INFO: ==4712== Releasing lock... [2025-03-11 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:35:21] Production.INFO: 44 MB #Memory Used# [2025-03-11 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:36:05 [end_date_ymd] => 2025-03-11 20:36:05 [RateCDR] => 1 ) [2025-03-11 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:36:05' and `end` < '2025-03-11 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:36:18] Production.INFO: count ==2117 [2025-03-11 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:36:05 - End Time 2025-03-11 20:36:05 [2025-03-11 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659313', 'tblTempUsageDetail_20' ) start [2025-03-11 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659313', 'tblTempUsageDetail_20' ) end [2025-03-11 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659313', 'tblTempVendorCDR_20' ) start [2025-03-11 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659313', 'tblTempVendorCDR_20' ) end [2025-03-11 20:36:18] Production.INFO: ProcessCDR(1,14659313,1,1,2) [2025-03-11 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659313', 'tblTempUsageDetail_20' ) start [2025-03-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659313', 'tblTempUsageDetail_20' ) end [2025-03-11 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:36:22] Production.INFO: ==4795== Releasing lock... [2025-03-11 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:36:22] Production.INFO: 44 MB #Memory Used# [2025-03-11 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:37:05 [end_date_ymd] => 2025-03-11 20:37:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:37:05' and `end` < '2025-03-11 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-11 20:37:17] Production.INFO: count ==2122 [2025-03-11 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:37:05 - End Time 2025-03-11 20:37:05 [2025-03-11 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659318', 'tblTempUsageDetail_20' ) start [2025-03-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659318', 'tblTempUsageDetail_20' ) end [2025-03-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659318', 'tblTempVendorCDR_20' ) start [2025-03-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659318', 'tblTempVendorCDR_20' ) end [2025-03-11 20:37:18] Production.INFO: ProcessCDR(1,14659318,1,1,2) [2025-03-11 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659318', 'tblTempUsageDetail_20' ) start [2025-03-11 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659318', 'tblTempUsageDetail_20' ) end [2025-03-11 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:37:23] Production.INFO: ==4880== Releasing lock... [2025-03-11 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:37:23] Production.INFO: 44 MB #Memory Used# [2025-03-11 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:38:05 [end_date_ymd] => 2025-03-11 20:38:05 [RateCDR] => 1 ) [2025-03-11 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:38:05' and `end` < '2025-03-11 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:38:17] Production.INFO: count ==2118 [2025-03-11 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:38:05 - End Time 2025-03-11 20:38:05 [2025-03-11 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659323', 'tblTempUsageDetail_20' ) start [2025-03-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659323', 'tblTempUsageDetail_20' ) end [2025-03-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659323', 'tblTempVendorCDR_20' ) start [2025-03-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659323', 'tblTempVendorCDR_20' ) end [2025-03-11 20:38:18] Production.INFO: ProcessCDR(1,14659323,1,1,2) [2025-03-11 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659323', 'tblTempUsageDetail_20' ) start [2025-03-11 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659323', 'tblTempUsageDetail_20' ) end [2025-03-11 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:38:23] Production.INFO: ==4960== Releasing lock... [2025-03-11 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:38:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-11 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:39:05 [end_date_ymd] => 2025-03-11 20:39:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:39:05' and `end` < '2025-03-11 20: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-11 20:39:18] Production.INFO: count ==2104 [2025-03-11 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:39:05 - End Time 2025-03-11 20:39:05 [2025-03-11 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659328', 'tblTempUsageDetail_20' ) start [2025-03-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659328', 'tblTempUsageDetail_20' ) end [2025-03-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659328', 'tblTempVendorCDR_20' ) start [2025-03-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659328', 'tblTempVendorCDR_20' ) end [2025-03-11 20:39:19] Production.INFO: ProcessCDR(1,14659328,1,1,2) [2025-03-11 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659328', 'tblTempUsageDetail_20' ) start [2025-03-11 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659328', 'tblTempUsageDetail_20' ) end [2025-03-11 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:39:22] Production.INFO: ==5042== Releasing lock... [2025-03-11 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:39:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-11 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:40:05 [end_date_ymd] => 2025-03-11 20:40:05 [RateCDR] => 1 ) [2025-03-11 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:40:05' and `end` < '2025-03-11 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:40:18] Production.INFO: count ==2104 [2025-03-11 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:40:05 - End Time 2025-03-11 20:40:05 [2025-03-11 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659334', 'tblTempUsageDetail_20' ) start [2025-03-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659334', 'tblTempUsageDetail_20' ) end [2025-03-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659334', 'tblTempVendorCDR_20' ) start [2025-03-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659334', 'tblTempVendorCDR_20' ) end [2025-03-11 20:40:19] Production.INFO: ProcessCDR(1,14659334,1,1,2) [2025-03-11 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659334', 'tblTempUsageDetail_20' ) start [2025-03-11 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659334', 'tblTempUsageDetail_20' ) end [2025-03-11 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:40:22] Production.INFO: ==5118== Releasing lock... [2025-03-11 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:40:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-11 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:41:05 [end_date_ymd] => 2025-03-11 20:41:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:41:05' and `end` < '2025-03-11 20: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-11 20:41:17] Production.INFO: count ==2057 [2025-03-11 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:41:05 - End Time 2025-03-11 20:41:05 [2025-03-11 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659339', 'tblTempUsageDetail_20' ) start [2025-03-11 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659339', 'tblTempUsageDetail_20' ) end [2025-03-11 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659339', 'tblTempVendorCDR_20' ) start [2025-03-11 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659339', 'tblTempVendorCDR_20' ) end [2025-03-11 20:41:18] Production.INFO: ProcessCDR(1,14659339,1,1,2) [2025-03-11 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659339', 'tblTempUsageDetail_20' ) start [2025-03-11 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659339', 'tblTempUsageDetail_20' ) end [2025-03-11 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:41:22] Production.INFO: ==5200== Releasing lock... [2025-03-11 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:41:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-11 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:42:05 [end_date_ymd] => 2025-03-11 20:42:05 [RateCDR] => 1 ) [2025-03-11 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:42:05' and `end` < '2025-03-11 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:42:17] Production.INFO: count ==2045 [2025-03-11 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:42:05 - End Time 2025-03-11 20:42:05 [2025-03-11 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659344', 'tblTempUsageDetail_20' ) start [2025-03-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659344', 'tblTempUsageDetail_20' ) end [2025-03-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659344', 'tblTempVendorCDR_20' ) start [2025-03-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659344', 'tblTempVendorCDR_20' ) end [2025-03-11 20:42:18] Production.INFO: ProcessCDR(1,14659344,1,1,2) [2025-03-11 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659344', 'tblTempUsageDetail_20' ) start [2025-03-11 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659344', 'tblTempUsageDetail_20' ) end [2025-03-11 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:42:21] Production.INFO: ==5318== Releasing lock... [2025-03-11 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:42:21] Production.INFO: 44 MB #Memory Used# [2025-03-11 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:43:05 [end_date_ymd] => 2025-03-11 20:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:43:05' and `end` < '2025-03-11 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-11 20:43:17] Production.INFO: count ==2038 [2025-03-11 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:43:05 - End Time 2025-03-11 20:43:05 [2025-03-11 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659349', 'tblTempUsageDetail_20' ) start [2025-03-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659349', 'tblTempUsageDetail_20' ) end [2025-03-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659349', 'tblTempVendorCDR_20' ) start [2025-03-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659349', 'tblTempVendorCDR_20' ) end [2025-03-11 20:43:18] Production.INFO: ProcessCDR(1,14659349,1,1,2) [2025-03-11 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659349', 'tblTempUsageDetail_20' ) start [2025-03-11 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659349', 'tblTempUsageDetail_20' ) end [2025-03-11 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:43:21] Production.INFO: ==5396== Releasing lock... [2025-03-11 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:43:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:44:05 [end_date_ymd] => 2025-03-11 20:44:05 [RateCDR] => 1 ) [2025-03-11 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:44:05' and `end` < '2025-03-11 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:44:18] Production.INFO: count ==2026 [2025-03-11 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:44:05 - End Time 2025-03-11 20:44:05 [2025-03-11 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659354', 'tblTempUsageDetail_20' ) start [2025-03-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659354', 'tblTempUsageDetail_20' ) end [2025-03-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659354', 'tblTempVendorCDR_20' ) start [2025-03-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659354', 'tblTempVendorCDR_20' ) end [2025-03-11 20:44:18] Production.INFO: ProcessCDR(1,14659354,1,1,2) [2025-03-11 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659354', 'tblTempUsageDetail_20' ) start [2025-03-11 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659354', 'tblTempUsageDetail_20' ) end [2025-03-11 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:44:22] Production.INFO: ==5476== Releasing lock... [2025-03-11 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:44:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:45:05 [end_date_ymd] => 2025-03-11 20:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:45:05' and `end` < '2025-03-11 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-11 20:45:18] Production.INFO: count ==2001 [2025-03-11 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:45:05 - End Time 2025-03-11 20:45:05 [2025-03-11 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659359', 'tblTempUsageDetail_20' ) start [2025-03-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659359', 'tblTempUsageDetail_20' ) end [2025-03-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659359', 'tblTempVendorCDR_20' ) start [2025-03-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659359', 'tblTempVendorCDR_20' ) end [2025-03-11 20:45:18] Production.INFO: ProcessCDR(1,14659359,1,1,2) [2025-03-11 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659359', 'tblTempUsageDetail_20' ) start [2025-03-11 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659359', 'tblTempUsageDetail_20' ) end [2025-03-11 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:45:21] Production.INFO: ==5552== Releasing lock... [2025-03-11 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:45:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:46:05 [end_date_ymd] => 2025-03-11 20:46:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:46:05' and `end` < '2025-03-11 20: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-11 20:46:18] Production.INFO: count ==1996 [2025-03-11 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:46:05 - End Time 2025-03-11 20:46:05 [2025-03-11 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659364', 'tblTempUsageDetail_20' ) start [2025-03-11 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659364', 'tblTempUsageDetail_20' ) end [2025-03-11 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659364', 'tblTempVendorCDR_20' ) start [2025-03-11 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659364', 'tblTempVendorCDR_20' ) end [2025-03-11 20:46:18] Production.INFO: ProcessCDR(1,14659364,1,1,2) [2025-03-11 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659364', 'tblTempUsageDetail_20' ) start [2025-03-11 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659364', 'tblTempUsageDetail_20' ) end [2025-03-11 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:46:23] Production.INFO: ==5632== Releasing lock... [2025-03-11 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:46:23] Production.INFO: 43 MB #Memory Used# [2025-03-11 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:47:05 [end_date_ymd] => 2025-03-11 20:47:05 [RateCDR] => 1 ) [2025-03-11 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:47:05' and `end` < '2025-03-11 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:47:17] Production.INFO: count ==1993 [2025-03-11 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:47:05 - End Time 2025-03-11 20:47:05 [2025-03-11 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659369', 'tblTempUsageDetail_20' ) start [2025-03-11 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659369', 'tblTempUsageDetail_20' ) end [2025-03-11 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659369', 'tblTempVendorCDR_20' ) start [2025-03-11 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659369', 'tblTempVendorCDR_20' ) end [2025-03-11 20:47:18] Production.INFO: ProcessCDR(1,14659369,1,1,2) [2025-03-11 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659369', 'tblTempUsageDetail_20' ) start [2025-03-11 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659369', 'tblTempUsageDetail_20' ) end [2025-03-11 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:47:21] Production.INFO: ==5720== Releasing lock... [2025-03-11 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:47:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:48:06 [end_date_ymd] => 2025-03-11 20:48:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:48:06' and `end` < '2025-03-11 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-11 20:48:18] Production.INFO: count ==1988 [2025-03-11 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:48:06 - End Time 2025-03-11 20:48:06 [2025-03-11 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659374', 'tblTempUsageDetail_20' ) start [2025-03-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659374', 'tblTempUsageDetail_20' ) end [2025-03-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659374', 'tblTempVendorCDR_20' ) start [2025-03-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659374', 'tblTempVendorCDR_20' ) end [2025-03-11 20:48:18] Production.INFO: ProcessCDR(1,14659374,1,1,2) [2025-03-11 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659374', 'tblTempUsageDetail_20' ) start [2025-03-11 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659374', 'tblTempUsageDetail_20' ) end [2025-03-11 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:48:22] Production.INFO: ==5802== Releasing lock... [2025-03-11 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:48:22] Production.INFO: 43 MB #Memory Used# [2025-03-11 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:49:05 [end_date_ymd] => 2025-03-11 20:49:05 [RateCDR] => 1 ) [2025-03-11 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:49:05' and `end` < '2025-03-11 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:49:17] Production.INFO: count ==1996 [2025-03-11 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:49:05 - End Time 2025-03-11 20:49:05 [2025-03-11 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659379', 'tblTempUsageDetail_20' ) start [2025-03-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659379', 'tblTempUsageDetail_20' ) end [2025-03-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659379', 'tblTempVendorCDR_20' ) start [2025-03-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659379', 'tblTempVendorCDR_20' ) end [2025-03-11 20:49:18] Production.INFO: ProcessCDR(1,14659379,1,1,2) [2025-03-11 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659379', 'tblTempUsageDetail_20' ) start [2025-03-11 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659379', 'tblTempUsageDetail_20' ) end [2025-03-11 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:49:22] Production.INFO: ==5895== Releasing lock... [2025-03-11 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:50:07 [end_date_ymd] => 2025-03-11 20:50:07 [RateCDR] => 1 ) [2025-03-11 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-11 17:50:07' and `end` < '2025-03-11 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-11 20:50:19] Production.INFO: count ==1992 [2025-03-11 20:50:20] Production.ERROR: pbx CDR StartTime 2025-03-11 17:50:07 - End Time 2025-03-11 20:50:07 [2025-03-11 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659385', 'tblTempUsageDetail_20' ) start [2025-03-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659385', 'tblTempUsageDetail_20' ) end [2025-03-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659385', 'tblTempVendorCDR_20' ) start [2025-03-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659385', 'tblTempVendorCDR_20' ) end [2025-03-11 20:50:20] Production.INFO: ProcessCDR(1,14659385,1,1,2) [2025-03-11 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659385', 'tblTempUsageDetail_20' ) start [2025-03-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659385', 'tblTempUsageDetail_20' ) end [2025-03-11 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:50:23] Production.INFO: ==5977== Releasing lock... [2025-03-11 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:50:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-11 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:51:05 [end_date_ymd] => 2025-03-11 20:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:51:05' and `end` < '2025-03-11 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-11 20:51:17] Production.INFO: count ==1970 [2025-03-11 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:51:05 - End Time 2025-03-11 20:51:05 [2025-03-11 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659390', 'tblTempUsageDetail_20' ) start [2025-03-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659390', 'tblTempUsageDetail_20' ) end [2025-03-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659390', 'tblTempVendorCDR_20' ) start [2025-03-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659390', 'tblTempVendorCDR_20' ) end [2025-03-11 20:51:18] Production.INFO: ProcessCDR(1,14659390,1,1,2) [2025-03-11 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659390', 'tblTempUsageDetail_20' ) start [2025-03-11 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659390', 'tblTempUsageDetail_20' ) end [2025-03-11 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:51:21] Production.INFO: ==6051== Releasing lock... [2025-03-11 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:51:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:52:05 [end_date_ymd] => 2025-03-11 20:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:52:05' and `end` < '2025-03-11 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-11 20:52:18] Production.INFO: count ==1967 [2025-03-11 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:52:05 - End Time 2025-03-11 20:52:05 [2025-03-11 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659395', 'tblTempUsageDetail_20' ) start [2025-03-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659395', 'tblTempUsageDetail_20' ) end [2025-03-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659395', 'tblTempVendorCDR_20' ) start [2025-03-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659395', 'tblTempVendorCDR_20' ) end [2025-03-11 20:52:18] Production.INFO: ProcessCDR(1,14659395,1,1,2) [2025-03-11 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659395', 'tblTempUsageDetail_20' ) start [2025-03-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659395', 'tblTempUsageDetail_20' ) end [2025-03-11 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:52:23] Production.INFO: ==6130== Releasing lock... [2025-03-11 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:52:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:53:05 [end_date_ymd] => 2025-03-11 20:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:53:05' and `end` < '2025-03-11 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-11 20:53:17] Production.INFO: count ==1965 [2025-03-11 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:53:05 - End Time 2025-03-11 20:53:05 [2025-03-11 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659400', 'tblTempUsageDetail_20' ) start [2025-03-11 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659400', 'tblTempUsageDetail_20' ) end [2025-03-11 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659400', 'tblTempVendorCDR_20' ) start [2025-03-11 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659400', 'tblTempVendorCDR_20' ) end [2025-03-11 20:53:18] Production.INFO: ProcessCDR(1,14659400,1,1,2) [2025-03-11 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659400', 'tblTempUsageDetail_20' ) start [2025-03-11 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659400', 'tblTempUsageDetail_20' ) end [2025-03-11 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:53:21] Production.INFO: ==6212== Releasing lock... [2025-03-11 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:53:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:54:05 [end_date_ymd] => 2025-03-11 20:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:54:05' and `end` < '2025-03-11 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-11 20:54:17] Production.INFO: count ==1953 [2025-03-11 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:54:05 - End Time 2025-03-11 20:54:05 [2025-03-11 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659405', 'tblTempUsageDetail_20' ) start [2025-03-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659405', 'tblTempUsageDetail_20' ) end [2025-03-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659405', 'tblTempVendorCDR_20' ) start [2025-03-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659405', 'tblTempVendorCDR_20' ) end [2025-03-11 20:54:18] Production.INFO: ProcessCDR(1,14659405,1,1,2) [2025-03-11 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659405', 'tblTempUsageDetail_20' ) start [2025-03-11 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659405', 'tblTempUsageDetail_20' ) end [2025-03-11 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:54:23] Production.INFO: ==6292== Releasing lock... [2025-03-11 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:54:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:55:04 [end_date_ymd] => 2025-03-11 20:55:04 [RateCDR] => 1 ) [2025-03-11 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:55:04' and `end` < '2025-03-11 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:55:17] Production.INFO: count ==1949 [2025-03-11 20:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 17:55:04 - End Time 2025-03-11 20:55:04 [2025-03-11 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659410', 'tblTempUsageDetail_20' ) start [2025-03-11 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659410', 'tblTempUsageDetail_20' ) end [2025-03-11 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659410', 'tblTempVendorCDR_20' ) start [2025-03-11 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659410', 'tblTempVendorCDR_20' ) end [2025-03-11 20:55:17] Production.INFO: ProcessCDR(1,14659410,1,1,2) [2025-03-11 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659410', 'tblTempUsageDetail_20' ) start [2025-03-11 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659410', 'tblTempUsageDetail_20' ) end [2025-03-11 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:55:21] Production.INFO: ==6373== Releasing lock... [2025-03-11 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:55:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-11 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:56:05 [end_date_ymd] => 2025-03-11 20:56:05 [RateCDR] => 1 ) [2025-03-11 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 17:56:05' and `end` < '2025-03-11 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 20:56:17] Production.INFO: count ==1944 [2025-03-11 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:56:05 - End Time 2025-03-11 20:56:05 [2025-03-11 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659415', 'tblTempUsageDetail_20' ) start [2025-03-11 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659415', 'tblTempUsageDetail_20' ) end [2025-03-11 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659415', 'tblTempVendorCDR_20' ) start [2025-03-11 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659415', 'tblTempVendorCDR_20' ) end [2025-03-11 20:56:18] Production.INFO: ProcessCDR(1,14659415,1,1,2) [2025-03-11 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659415', 'tblTempUsageDetail_20' ) start [2025-03-11 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659415', 'tblTempUsageDetail_20' ) end [2025-03-11 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:56:21] Production.INFO: ==6453== Releasing lock... [2025-03-11 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:56:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-11 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:57:06 [end_date_ymd] => 2025-03-11 20:57:06 [RateCDR] => 1 ) [2025-03-11 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-11 17:57:06' and `end` < '2025-03-11 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-11 20:57:18] Production.INFO: count ==1941 [2025-03-11 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-11 17:57:06 - End Time 2025-03-11 20:57:06 [2025-03-11 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659420', 'tblTempUsageDetail_20' ) start [2025-03-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659420', 'tblTempUsageDetail_20' ) end [2025-03-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659420', 'tblTempVendorCDR_20' ) start [2025-03-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659420', 'tblTempVendorCDR_20' ) end [2025-03-11 20:57:19] Production.INFO: ProcessCDR(1,14659420,1,1,2) [2025-03-11 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659420', 'tblTempUsageDetail_20' ) start [2025-03-11 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659420', 'tblTempUsageDetail_20' ) end [2025-03-11 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:57:22] Production.INFO: ==6530== Releasing lock... [2025-03-11 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-11 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:58:05 [end_date_ymd] => 2025-03-11 20:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 17:58:05' and `end` < '2025-03-11 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-11 20:58:17] Production.INFO: count ==1919 [2025-03-11 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:58:05 - End Time 2025-03-11 20:58:05 [2025-03-11 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659425', 'tblTempUsageDetail_20' ) start [2025-03-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659425', 'tblTempUsageDetail_20' ) end [2025-03-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659425', 'tblTempVendorCDR_20' ) start [2025-03-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659425', 'tblTempVendorCDR_20' ) end [2025-03-11 20:58:18] Production.INFO: ProcessCDR(1,14659425,1,1,2) [2025-03-11 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659425', 'tblTempUsageDetail_20' ) start [2025-03-11 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659425', 'tblTempUsageDetail_20' ) end [2025-03-11 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:58:21] Production.INFO: ==6647== Releasing lock... [2025-03-11 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:58:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-11 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 17:59:05 [end_date_ymd] => 2025-03-11 20:59:05 [RateCDR] => 1 ) [2025-03-11 20: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-11 17:59:05' and `end` < '2025-03-11 20: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-11 20:59:18] Production.INFO: count ==1880 [2025-03-11 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-11 17:59:05 - End Time 2025-03-11 20:59:05 [2025-03-11 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659430', 'tblTempUsageDetail_20' ) start [2025-03-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659430', 'tblTempUsageDetail_20' ) end [2025-03-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659430', 'tblTempVendorCDR_20' ) start [2025-03-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659430', 'tblTempVendorCDR_20' ) end [2025-03-11 20:59:18] Production.INFO: ProcessCDR(1,14659430,1,1,2) [2025-03-11 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659430', 'tblTempUsageDetail_20' ) start [2025-03-11 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659430', 'tblTempUsageDetail_20' ) end [2025-03-11 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 20:59:22] Production.INFO: ==6729== Releasing lock... [2025-03-11 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 20:59:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-11 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:00:06 [end_date_ymd] => 2025-03-11 21:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:00:06' and `end` < '2025-03-11 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-11 21:00:18] Production.INFO: count ==1857 [2025-03-11 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 18:00:06 - End Time 2025-03-11 21:00:06 [2025-03-11 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659436', 'tblTempUsageDetail_20' ) start [2025-03-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659436', 'tblTempUsageDetail_20' ) end [2025-03-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659436', 'tblTempVendorCDR_20' ) start [2025-03-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659436', 'tblTempVendorCDR_20' ) end [2025-03-11 21:00:19] Production.INFO: ProcessCDR(1,14659436,1,1,2) [2025-03-11 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659436', 'tblTempUsageDetail_20' ) start [2025-03-11 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659436', 'tblTempUsageDetail_20' ) end [2025-03-11 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:00:22] Production.INFO: ==6809== Releasing lock... [2025-03-11 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:00:22] Production.INFO: 42 MB #Memory Used# [2025-03-11 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:01:05 [end_date_ymd] => 2025-03-11 21:01:05 [RateCDR] => 1 ) [2025-03-11 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:01:05' and `end` < '2025-03-11 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:01:18] Production.INFO: count ==1829 [2025-03-11 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:01:05 - End Time 2025-03-11 21:01:05 [2025-03-11 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659441', 'tblTempUsageDetail_20' ) start [2025-03-11 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659441', 'tblTempUsageDetail_20' ) end [2025-03-11 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659441', 'tblTempVendorCDR_20' ) start [2025-03-11 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659441', 'tblTempVendorCDR_20' ) end [2025-03-11 21:01:18] Production.INFO: ProcessCDR(1,14659441,1,1,2) [2025-03-11 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659441', 'tblTempUsageDetail_20' ) start [2025-03-11 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659441', 'tblTempUsageDetail_20' ) end [2025-03-11 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:01:23] Production.INFO: ==6900== Releasing lock... [2025-03-11 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:01:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-11 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:02:05 [end_date_ymd] => 2025-03-11 21:02:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:02:05' and `end` < '2025-03-11 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-11 21:02:17] Production.INFO: count ==1825 [2025-03-11 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:02:05 - End Time 2025-03-11 21:02:05 [2025-03-11 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659446', 'tblTempUsageDetail_20' ) start [2025-03-11 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659446', 'tblTempUsageDetail_20' ) end [2025-03-11 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659446', 'tblTempVendorCDR_20' ) start [2025-03-11 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659446', 'tblTempVendorCDR_20' ) end [2025-03-11 21:02:18] Production.INFO: ProcessCDR(1,14659446,1,1,2) [2025-03-11 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659446', 'tblTempUsageDetail_20' ) start [2025-03-11 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659446', 'tblTempUsageDetail_20' ) end [2025-03-11 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:02:23] Production.INFO: ==6979== Releasing lock... [2025-03-11 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:03:05 [end_date_ymd] => 2025-03-11 21:03:05 [RateCDR] => 1 ) [2025-03-11 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:03:05' and `end` < '2025-03-11 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:03:18] Production.INFO: count ==1803 [2025-03-11 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:03:05 - End Time 2025-03-11 21:03:05 [2025-03-11 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659451', 'tblTempUsageDetail_20' ) start [2025-03-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659451', 'tblTempUsageDetail_20' ) end [2025-03-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659451', 'tblTempVendorCDR_20' ) start [2025-03-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659451', 'tblTempVendorCDR_20' ) end [2025-03-11 21:03:18] Production.INFO: ProcessCDR(1,14659451,1,1,2) [2025-03-11 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659451', 'tblTempUsageDetail_20' ) start [2025-03-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659451', 'tblTempUsageDetail_20' ) end [2025-03-11 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:03:22] Production.INFO: ==7055== Releasing lock... [2025-03-11 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:04:05 [end_date_ymd] => 2025-03-11 21:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:04:05' and `end` < '2025-03-11 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-11 21:04:17] Production.INFO: count ==1801 [2025-03-11 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:04:05 - End Time 2025-03-11 21:04:05 [2025-03-11 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659456', 'tblTempUsageDetail_20' ) start [2025-03-11 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659456', 'tblTempUsageDetail_20' ) end [2025-03-11 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659456', 'tblTempVendorCDR_20' ) start [2025-03-11 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659456', 'tblTempVendorCDR_20' ) end [2025-03-11 21:04:18] Production.INFO: ProcessCDR(1,14659456,1,1,2) [2025-03-11 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659456', 'tblTempUsageDetail_20' ) start [2025-03-11 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659456', 'tblTempUsageDetail_20' ) end [2025-03-11 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:04:21] Production.INFO: ==7129== Releasing lock... [2025-03-11 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:04:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:05:05 [end_date_ymd] => 2025-03-11 21:05:05 [RateCDR] => 1 ) [2025-03-11 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:05:05' and `end` < '2025-03-11 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:05:18] Production.INFO: count ==1801 [2025-03-11 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:05:05 - End Time 2025-03-11 21:05:05 [2025-03-11 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659461', 'tblTempUsageDetail_20' ) start [2025-03-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659461', 'tblTempUsageDetail_20' ) end [2025-03-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659461', 'tblTempVendorCDR_20' ) start [2025-03-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659461', 'tblTempVendorCDR_20' ) end [2025-03-11 21:05:18] Production.INFO: ProcessCDR(1,14659461,1,1,2) [2025-03-11 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659461', 'tblTempUsageDetail_20' ) start [2025-03-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659461', 'tblTempUsageDetail_20' ) end [2025-03-11 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:05:22] Production.INFO: ==7205== Releasing lock... [2025-03-11 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:05:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-11 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:06:06 [end_date_ymd] => 2025-03-11 21:06:06 [RateCDR] => 1 ) [2025-03-11 21: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-11 18:06:06' and `end` < '2025-03-11 21: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-11 21:06:18] Production.INFO: count ==1798 [2025-03-11 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:06:06 - End Time 2025-03-11 21:06:06 [2025-03-11 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659466', 'tblTempUsageDetail_20' ) start [2025-03-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659466', 'tblTempUsageDetail_20' ) end [2025-03-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659466', 'tblTempVendorCDR_20' ) start [2025-03-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659466', 'tblTempVendorCDR_20' ) end [2025-03-11 21:06:18] Production.INFO: ProcessCDR(1,14659466,1,1,2) [2025-03-11 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659466', 'tblTempUsageDetail_20' ) start [2025-03-11 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659466', 'tblTempUsageDetail_20' ) end [2025-03-11 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:06:23] Production.INFO: ==7283== Releasing lock... [2025-03-11 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:06:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:07:05 [end_date_ymd] => 2025-03-11 21:07:05 [RateCDR] => 1 ) [2025-03-11 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:07:05' and `end` < '2025-03-11 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:07:17] Production.INFO: count ==1800 [2025-03-11 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:07:05 - End Time 2025-03-11 21:07:05 [2025-03-11 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659471', 'tblTempUsageDetail_20' ) start [2025-03-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659471', 'tblTempUsageDetail_20' ) end [2025-03-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659471', 'tblTempVendorCDR_20' ) start [2025-03-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659471', 'tblTempVendorCDR_20' ) end [2025-03-11 21:07:18] Production.INFO: ProcessCDR(1,14659471,1,1,2) [2025-03-11 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659471', 'tblTempUsageDetail_20' ) start [2025-03-11 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659471', 'tblTempUsageDetail_20' ) end [2025-03-11 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:07:21] Production.INFO: ==7356== Releasing lock... [2025-03-11 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:07:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-11 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:08:05 [end_date_ymd] => 2025-03-11 21:08:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:08:05' and `end` < '2025-03-11 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-11 21:08:18] Production.INFO: count ==1789 [2025-03-11 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:08:05 - End Time 2025-03-11 21:08:05 [2025-03-11 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659476', 'tblTempUsageDetail_20' ) start [2025-03-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659476', 'tblTempUsageDetail_20' ) end [2025-03-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659476', 'tblTempVendorCDR_20' ) start [2025-03-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659476', 'tblTempVendorCDR_20' ) end [2025-03-11 21:08:18] Production.INFO: ProcessCDR(1,14659476,1,1,2) [2025-03-11 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659476', 'tblTempUsageDetail_20' ) start [2025-03-11 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659476', 'tblTempUsageDetail_20' ) end [2025-03-11 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:08:21] Production.INFO: ==7434== Releasing lock... [2025-03-11 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:08:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:09:05 [end_date_ymd] => 2025-03-11 21:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:09:05' and `end` < '2025-03-11 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-11 21:09:17] Production.INFO: count ==1762 [2025-03-11 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:09:05 - End Time 2025-03-11 21:09:05 [2025-03-11 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659481', 'tblTempUsageDetail_20' ) start [2025-03-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659481', 'tblTempUsageDetail_20' ) end [2025-03-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659481', 'tblTempVendorCDR_20' ) start [2025-03-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659481', 'tblTempVendorCDR_20' ) end [2025-03-11 21:09:18] Production.INFO: ProcessCDR(1,14659481,1,1,2) [2025-03-11 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659481', 'tblTempUsageDetail_20' ) start [2025-03-11 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659481', 'tblTempUsageDetail_20' ) end [2025-03-11 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:09:21] Production.INFO: ==7518== Releasing lock... [2025-03-11 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:09:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:10:06 [end_date_ymd] => 2025-03-11 21:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:10:06' and `end` < '2025-03-11 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-11 21:10:19] Production.INFO: count ==1759 [2025-03-11 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-11 18:10:06 - End Time 2025-03-11 21:10:06 [2025-03-11 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659487', 'tblTempUsageDetail_20' ) start [2025-03-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659487', 'tblTempUsageDetail_20' ) end [2025-03-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659487', 'tblTempVendorCDR_20' ) start [2025-03-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659487', 'tblTempVendorCDR_20' ) end [2025-03-11 21:10:19] Production.INFO: ProcessCDR(1,14659487,1,1,2) [2025-03-11 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659487', 'tblTempUsageDetail_20' ) start [2025-03-11 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659487', 'tblTempUsageDetail_20' ) end [2025-03-11 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:10:24] Production.INFO: ==7595== Releasing lock... [2025-03-11 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:11:05 [end_date_ymd] => 2025-03-11 21:11:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:11:05' and `end` < '2025-03-11 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-11 21:11:17] Production.INFO: count ==1724 [2025-03-11 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:11:05 - End Time 2025-03-11 21:11:05 [2025-03-11 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659492', 'tblTempUsageDetail_20' ) start [2025-03-11 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659492', 'tblTempUsageDetail_20' ) end [2025-03-11 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659492', 'tblTempVendorCDR_20' ) start [2025-03-11 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659492', 'tblTempVendorCDR_20' ) end [2025-03-11 21:11:17] Production.INFO: ProcessCDR(1,14659492,1,1,2) [2025-03-11 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659492', 'tblTempUsageDetail_20' ) start [2025-03-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659492', 'tblTempUsageDetail_20' ) end [2025-03-11 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:11:21] Production.INFO: ==7674== Releasing lock... [2025-03-11 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:11:21] Production.INFO: 41 MB #Memory Used# [2025-03-11 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:12:06 [end_date_ymd] => 2025-03-11 21:12:06 [RateCDR] => 1 ) [2025-03-11 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:12:06' and `end` < '2025-03-11 21: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-11 21:12:18] Production.INFO: count ==1718 [2025-03-11 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:12:06 - End Time 2025-03-11 21:12:06 [2025-03-11 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659497', 'tblTempUsageDetail_20' ) start [2025-03-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659497', 'tblTempUsageDetail_20' ) end [2025-03-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659497', 'tblTempVendorCDR_20' ) start [2025-03-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659497', 'tblTempVendorCDR_20' ) end [2025-03-11 21:12:18] Production.INFO: ProcessCDR(1,14659497,1,1,2) [2025-03-11 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659497', 'tblTempUsageDetail_20' ) start [2025-03-11 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659497', 'tblTempUsageDetail_20' ) end [2025-03-11 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:12:22] Production.INFO: ==7749== Releasing lock... [2025-03-11 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:12:22] Production.INFO: 41 MB #Memory Used# [2025-03-11 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:13:04 [end_date_ymd] => 2025-03-11 21:13:04 [RateCDR] => 1 ) [2025-03-11 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:13:04' and `end` < '2025-03-11 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:13:17] Production.INFO: count ==1710 [2025-03-11 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:13:04 - End Time 2025-03-11 21:13:04 [2025-03-11 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659502', 'tblTempUsageDetail_20' ) start [2025-03-11 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659502', 'tblTempUsageDetail_20' ) end [2025-03-11 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659502', 'tblTempVendorCDR_20' ) start [2025-03-11 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659502', 'tblTempVendorCDR_20' ) end [2025-03-11 21:13:17] Production.INFO: ProcessCDR(1,14659502,1,1,2) [2025-03-11 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659502', 'tblTempUsageDetail_20' ) start [2025-03-11 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659502', 'tblTempUsageDetail_20' ) end [2025-03-11 21:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:13:20] Production.INFO: ==7863== Releasing lock... [2025-03-11 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:13:20] Production.INFO: 41 MB #Memory Used# [2025-03-11 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:14:05 [end_date_ymd] => 2025-03-11 21:14:05 [RateCDR] => 1 ) [2025-03-11 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:14:05' and `end` < '2025-03-11 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:14:17] Production.INFO: count ==1698 [2025-03-11 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:14:05 - End Time 2025-03-11 21:14:05 [2025-03-11 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659507', 'tblTempUsageDetail_20' ) start [2025-03-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659507', 'tblTempUsageDetail_20' ) end [2025-03-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659507', 'tblTempVendorCDR_20' ) start [2025-03-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659507', 'tblTempVendorCDR_20' ) end [2025-03-11 21:14:18] Production.INFO: ProcessCDR(1,14659507,1,1,2) [2025-03-11 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659507', 'tblTempUsageDetail_20' ) start [2025-03-11 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659507', 'tblTempUsageDetail_20' ) end [2025-03-11 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:14:21] Production.INFO: ==7936== Releasing lock... [2025-03-11 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:14:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-11 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:15:06 [end_date_ymd] => 2025-03-11 21:15:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:15:06' and `end` < '2025-03-11 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-11 21:15:18] Production.INFO: count ==1682 [2025-03-11 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:15:06 - End Time 2025-03-11 21:15:06 [2025-03-11 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659512', 'tblTempUsageDetail_20' ) start [2025-03-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659512', 'tblTempUsageDetail_20' ) end [2025-03-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659512', 'tblTempVendorCDR_20' ) start [2025-03-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659512', 'tblTempVendorCDR_20' ) end [2025-03-11 21:15:19] Production.INFO: ProcessCDR(1,14659512,1,1,2) [2025-03-11 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659512', 'tblTempUsageDetail_20' ) start [2025-03-11 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659512', 'tblTempUsageDetail_20' ) end [2025-03-11 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:15:22] Production.INFO: ==8037== Releasing lock... [2025-03-11 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-11 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:16:05 [end_date_ymd] => 2025-03-11 21:16:05 [RateCDR] => 1 ) [2025-03-11 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:16:05' and `end` < '2025-03-11 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:16:17] Production.INFO: count ==1685 [2025-03-11 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:16:05 - End Time 2025-03-11 21:16:05 [2025-03-11 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659517', 'tblTempUsageDetail_20' ) start [2025-03-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659517', 'tblTempUsageDetail_20' ) end [2025-03-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659517', 'tblTempVendorCDR_20' ) start [2025-03-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659517', 'tblTempVendorCDR_20' ) end [2025-03-11 21:16:18] Production.INFO: ProcessCDR(1,14659517,1,1,2) [2025-03-11 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659517', 'tblTempUsageDetail_20' ) start [2025-03-11 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659517', 'tblTempUsageDetail_20' ) end [2025-03-11 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:16:21] Production.INFO: ==8110== Releasing lock... [2025-03-11 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:16:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-11 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:17:05 [end_date_ymd] => 2025-03-11 21:17:05 [RateCDR] => 1 ) [2025-03-11 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:17:05' and `end` < '2025-03-11 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:17:17] Production.INFO: count ==1685 [2025-03-11 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:17:05 - End Time 2025-03-11 21:17:05 [2025-03-11 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659522', 'tblTempUsageDetail_20' ) start [2025-03-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659522', 'tblTempUsageDetail_20' ) end [2025-03-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659522', 'tblTempVendorCDR_20' ) start [2025-03-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659522', 'tblTempVendorCDR_20' ) end [2025-03-11 21:17:18] Production.INFO: ProcessCDR(1,14659522,1,1,2) [2025-03-11 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659522', 'tblTempUsageDetail_20' ) start [2025-03-11 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659522', 'tblTempUsageDetail_20' ) end [2025-03-11 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:17:21] Production.INFO: ==8185== Releasing lock... [2025-03-11 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:17:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-11 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:18:05 [end_date_ymd] => 2025-03-11 21:18:05 [RateCDR] => 1 ) [2025-03-11 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:18:05' and `end` < '2025-03-11 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:18:17] Production.INFO: count ==1683 [2025-03-11 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:18:05 - End Time 2025-03-11 21:18:05 [2025-03-11 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659527', 'tblTempUsageDetail_20' ) start [2025-03-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659527', 'tblTempUsageDetail_20' ) end [2025-03-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659527', 'tblTempVendorCDR_20' ) start [2025-03-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659527', 'tblTempVendorCDR_20' ) end [2025-03-11 21:18:18] Production.INFO: ProcessCDR(1,14659527,1,1,2) [2025-03-11 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659527', 'tblTempUsageDetail_20' ) start [2025-03-11 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659527', 'tblTempUsageDetail_20' ) end [2025-03-11 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:18:21] Production.INFO: ==8269== Releasing lock... [2025-03-11 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:18:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-11 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:19:05 [end_date_ymd] => 2025-03-11 21:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:19:05' and `end` < '2025-03-11 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-11 21:19:17] Production.INFO: count ==1681 [2025-03-11 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:19:05 - End Time 2025-03-11 21:19:05 [2025-03-11 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659532', 'tblTempUsageDetail_20' ) start [2025-03-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659532', 'tblTempUsageDetail_20' ) end [2025-03-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659532', 'tblTempVendorCDR_20' ) start [2025-03-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659532', 'tblTempVendorCDR_20' ) end [2025-03-11 21:19:18] Production.INFO: ProcessCDR(1,14659532,1,1,2) [2025-03-11 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659532', 'tblTempUsageDetail_20' ) start [2025-03-11 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659532', 'tblTempUsageDetail_20' ) end [2025-03-11 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:19:21] Production.INFO: ==8345== Releasing lock... [2025-03-11 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:19:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-11 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:20:05 [end_date_ymd] => 2025-03-11 21:20:05 [RateCDR] => 1 ) [2025-03-11 21: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-11 18:20:05' and `end` < '2025-03-11 21: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-11 21:20:17] Production.INFO: count ==1677 [2025-03-11 21:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:20:05 - End Time 2025-03-11 21:20:05 [2025-03-11 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659538', 'tblTempUsageDetail_20' ) start [2025-03-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659538', 'tblTempUsageDetail_20' ) end [2025-03-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659538', 'tblTempVendorCDR_20' ) start [2025-03-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659538', 'tblTempVendorCDR_20' ) end [2025-03-11 21:20:18] Production.INFO: ProcessCDR(1,14659538,1,1,2) [2025-03-11 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659538', 'tblTempUsageDetail_20' ) start [2025-03-11 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659538', 'tblTempUsageDetail_20' ) end [2025-03-11 21:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:20:21] Production.INFO: ==8418== Releasing lock... [2025-03-11 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:20:21] Production.INFO: 41 MB #Memory Used# [2025-03-11 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:21:05 [end_date_ymd] => 2025-03-11 21:21:05 [RateCDR] => 1 ) [2025-03-11 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:21:05' and `end` < '2025-03-11 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-11 21:21:17] Production.INFO: count ==1641 [2025-03-11 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:21:05 - End Time 2025-03-11 21:21:05 [2025-03-11 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659543', 'tblTempUsageDetail_20' ) start [2025-03-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659543', 'tblTempUsageDetail_20' ) end [2025-03-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659543', 'tblTempVendorCDR_20' ) start [2025-03-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659543', 'tblTempVendorCDR_20' ) end [2025-03-11 21:21:18] Production.INFO: ProcessCDR(1,14659543,1,1,2) [2025-03-11 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659543', 'tblTempUsageDetail_20' ) start [2025-03-11 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659543', 'tblTempUsageDetail_20' ) end [2025-03-11 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:21:23] Production.INFO: ==8492== Releasing lock... [2025-03-11 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:21:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:22:05 [end_date_ymd] => 2025-03-11 21:22:05 [RateCDR] => 1 ) [2025-03-11 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:22:05' and `end` < '2025-03-11 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:22:17] Production.INFO: count ==1634 [2025-03-11 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:22:05 - End Time 2025-03-11 21:22:05 [2025-03-11 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659548', 'tblTempUsageDetail_20' ) start [2025-03-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659548', 'tblTempUsageDetail_20' ) end [2025-03-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659548', 'tblTempVendorCDR_20' ) start [2025-03-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659548', 'tblTempVendorCDR_20' ) end [2025-03-11 21:22:18] Production.INFO: ProcessCDR(1,14659548,1,1,2) [2025-03-11 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659548', 'tblTempUsageDetail_20' ) start [2025-03-11 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659548', 'tblTempUsageDetail_20' ) end [2025-03-11 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:22:21] Production.INFO: ==8569== Releasing lock... [2025-03-11 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:22:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:23:05 [end_date_ymd] => 2025-03-11 21:23:05 [RateCDR] => 1 ) [2025-03-11 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:23:05' and `end` < '2025-03-11 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:23:17] Production.INFO: count ==1631 [2025-03-11 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:23:05 - End Time 2025-03-11 21:23:05 [2025-03-11 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659553', 'tblTempUsageDetail_20' ) start [2025-03-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659553', 'tblTempUsageDetail_20' ) end [2025-03-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659553', 'tblTempVendorCDR_20' ) start [2025-03-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659553', 'tblTempVendorCDR_20' ) end [2025-03-11 21:23:18] Production.INFO: ProcessCDR(1,14659553,1,1,2) [2025-03-11 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659553', 'tblTempUsageDetail_20' ) start [2025-03-11 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659553', 'tblTempUsageDetail_20' ) end [2025-03-11 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:23:21] Production.INFO: ==8646== Releasing lock... [2025-03-11 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:23:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:24:05 [end_date_ymd] => 2025-03-11 21:24:05 [RateCDR] => 1 ) [2025-03-11 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:24:05' and `end` < '2025-03-11 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:24:17] Production.INFO: count ==1615 [2025-03-11 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:24:05 - End Time 2025-03-11 21:24:05 [2025-03-11 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659558', 'tblTempUsageDetail_20' ) start [2025-03-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659558', 'tblTempUsageDetail_20' ) end [2025-03-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659558', 'tblTempVendorCDR_20' ) start [2025-03-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659558', 'tblTempVendorCDR_20' ) end [2025-03-11 21:24:18] Production.INFO: ProcessCDR(1,14659558,1,1,2) [2025-03-11 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659558', 'tblTempUsageDetail_20' ) start [2025-03-11 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659558', 'tblTempUsageDetail_20' ) end [2025-03-11 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:24:23] Production.INFO: ==8727== Releasing lock... [2025-03-11 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:24:23] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:25:05 [end_date_ymd] => 2025-03-11 21:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:25:05' and `end` < '2025-03-11 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-11 21:25:17] Production.INFO: count ==1599 [2025-03-11 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:25:05 - End Time 2025-03-11 21:25:05 [2025-03-11 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659563', 'tblTempUsageDetail_20' ) start [2025-03-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659563', 'tblTempUsageDetail_20' ) end [2025-03-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659563', 'tblTempVendorCDR_20' ) start [2025-03-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659563', 'tblTempVendorCDR_20' ) end [2025-03-11 21:25:18] Production.INFO: ProcessCDR(1,14659563,1,1,2) [2025-03-11 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659563', 'tblTempUsageDetail_20' ) start [2025-03-11 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659563', 'tblTempUsageDetail_20' ) end [2025-03-11 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:25:21] Production.INFO: ==8805== Releasing lock... [2025-03-11 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:25:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:26:05 [end_date_ymd] => 2025-03-11 21:26:05 [RateCDR] => 1 ) [2025-03-11 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:26:05' and `end` < '2025-03-11 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:26:17] Production.INFO: count ==1599 [2025-03-11 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:26:05 - End Time 2025-03-11 21:26:05 [2025-03-11 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659568', 'tblTempUsageDetail_20' ) start [2025-03-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659568', 'tblTempUsageDetail_20' ) end [2025-03-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659568', 'tblTempVendorCDR_20' ) start [2025-03-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659568', 'tblTempVendorCDR_20' ) end [2025-03-11 21:26:18] Production.INFO: ProcessCDR(1,14659568,1,1,2) [2025-03-11 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659568', 'tblTempUsageDetail_20' ) start [2025-03-11 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659568', 'tblTempUsageDetail_20' ) end [2025-03-11 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:26:21] Production.INFO: ==8881== Releasing lock... [2025-03-11 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:26:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:27:05 [end_date_ymd] => 2025-03-11 21:27:05 [RateCDR] => 1 ) [2025-03-11 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:27:05' and `end` < '2025-03-11 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:27:18] Production.INFO: count ==1594 [2025-03-11 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:27:05 - End Time 2025-03-11 21:27:05 [2025-03-11 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659573', 'tblTempUsageDetail_20' ) start [2025-03-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659573', 'tblTempUsageDetail_20' ) end [2025-03-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659573', 'tblTempVendorCDR_20' ) start [2025-03-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659573', 'tblTempVendorCDR_20' ) end [2025-03-11 21:27:18] Production.INFO: ProcessCDR(1,14659573,1,1,2) [2025-03-11 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659573', 'tblTempUsageDetail_20' ) start [2025-03-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659573', 'tblTempUsageDetail_20' ) end [2025-03-11 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:27:21] Production.INFO: ==8961== Releasing lock... [2025-03-11 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:27:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:28:05 [end_date_ymd] => 2025-03-11 21:28:05 [RateCDR] => 1 ) [2025-03-11 21: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-11 18:28:05' and `end` < '2025-03-11 21: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-11 21:28:17] Production.INFO: count ==1590 [2025-03-11 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:28:05 - End Time 2025-03-11 21:28:05 [2025-03-11 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659578', 'tblTempUsageDetail_20' ) start [2025-03-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659578', 'tblTempUsageDetail_20' ) end [2025-03-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659578', 'tblTempVendorCDR_20' ) start [2025-03-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659578', 'tblTempVendorCDR_20' ) end [2025-03-11 21:28:18] Production.INFO: ProcessCDR(1,14659578,1,1,2) [2025-03-11 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659578', 'tblTempUsageDetail_20' ) start [2025-03-11 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659578', 'tblTempUsageDetail_20' ) end [2025-03-11 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:28:21] Production.INFO: ==9084== Releasing lock... [2025-03-11 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:28:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:29:05 [end_date_ymd] => 2025-03-11 21:29:05 [RateCDR] => 1 ) [2025-03-11 21: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-11 18:29:05' and `end` < '2025-03-11 21: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-11 21:29:18] Production.INFO: count ==1586 [2025-03-11 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:29:05 - End Time 2025-03-11 21:29:05 [2025-03-11 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659583', 'tblTempUsageDetail_20' ) start [2025-03-11 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659583', 'tblTempUsageDetail_20' ) end [2025-03-11 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659583', 'tblTempVendorCDR_20' ) start [2025-03-11 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659583', 'tblTempVendorCDR_20' ) end [2025-03-11 21:29:18] Production.INFO: ProcessCDR(1,14659583,1,1,2) [2025-03-11 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659583', 'tblTempUsageDetail_20' ) start [2025-03-11 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659583', 'tblTempUsageDetail_20' ) end [2025-03-11 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:29:21] Production.INFO: ==9159== Releasing lock... [2025-03-11 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:29:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:30:06 [end_date_ymd] => 2025-03-11 21:30:06 [RateCDR] => 1 ) [2025-03-11 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:30:06' and `end` < '2025-03-11 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:30:18] Production.INFO: count ==1593 [2025-03-11 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-11 18:30:06 - End Time 2025-03-11 21:30:06 [2025-03-11 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659589', 'tblTempUsageDetail_20' ) start [2025-03-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659589', 'tblTempUsageDetail_20' ) end [2025-03-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659589', 'tblTempVendorCDR_20' ) start [2025-03-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659589', 'tblTempVendorCDR_20' ) end [2025-03-11 21:30:19] Production.INFO: ProcessCDR(1,14659589,1,1,2) [2025-03-11 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659589', 'tblTempUsageDetail_20' ) start [2025-03-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659589', 'tblTempUsageDetail_20' ) end [2025-03-11 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:30:22] Production.INFO: ==9238== Releasing lock... [2025-03-11 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:30:22] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:31:05 [end_date_ymd] => 2025-03-11 21:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:31:05' and `end` < '2025-03-11 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-11 21:31:17] Production.INFO: count ==1608 [2025-03-11 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:31:05 - End Time 2025-03-11 21:31:05 [2025-03-11 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659594', 'tblTempUsageDetail_20' ) start [2025-03-11 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659594', 'tblTempUsageDetail_20' ) end [2025-03-11 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659594', 'tblTempVendorCDR_20' ) start [2025-03-11 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659594', 'tblTempVendorCDR_20' ) end [2025-03-11 21:31:17] Production.INFO: ProcessCDR(1,14659594,1,1,2) [2025-03-11 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659594', 'tblTempUsageDetail_20' ) start [2025-03-11 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659594', 'tblTempUsageDetail_20' ) end [2025-03-11 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:31:22] Production.INFO: ==9314== Releasing lock... [2025-03-11 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:31:22] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:32:06 [end_date_ymd] => 2025-03-11 21:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:32:06' and `end` < '2025-03-11 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-11 21:32:18] Production.INFO: count ==1605 [2025-03-11 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:32:06 - End Time 2025-03-11 21:32:06 [2025-03-11 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659599', 'tblTempUsageDetail_20' ) start [2025-03-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659599', 'tblTempUsageDetail_20' ) end [2025-03-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659599', 'tblTempVendorCDR_20' ) start [2025-03-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659599', 'tblTempVendorCDR_20' ) end [2025-03-11 21:32:18] Production.INFO: ProcessCDR(1,14659599,1,1,2) [2025-03-11 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659599', 'tblTempUsageDetail_20' ) start [2025-03-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659599', 'tblTempUsageDetail_20' ) end [2025-03-11 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:32:22] Production.INFO: ==9389== Releasing lock... [2025-03-11 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:32:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:33:05 [end_date_ymd] => 2025-03-11 21:33:05 [RateCDR] => 1 ) [2025-03-11 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:33:05' and `end` < '2025-03-11 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:33:17] Production.INFO: count ==1603 [2025-03-11 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:33:05 - End Time 2025-03-11 21:33:05 [2025-03-11 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659604', 'tblTempUsageDetail_20' ) start [2025-03-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659604', 'tblTempUsageDetail_20' ) end [2025-03-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659604', 'tblTempVendorCDR_20' ) start [2025-03-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659604', 'tblTempVendorCDR_20' ) end [2025-03-11 21:33:18] Production.INFO: ProcessCDR(1,14659604,1,1,2) [2025-03-11 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659604', 'tblTempUsageDetail_20' ) start [2025-03-11 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659604', 'tblTempUsageDetail_20' ) end [2025-03-11 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:33:21] Production.INFO: ==9460== Releasing lock... [2025-03-11 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:33:21] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:34:05 [end_date_ymd] => 2025-03-11 21:34:05 [RateCDR] => 1 ) [2025-03-11 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:34:05' and `end` < '2025-03-11 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:34:18] Production.INFO: count ==1610 [2025-03-11 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:34:05 - End Time 2025-03-11 21:34:05 [2025-03-11 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659609', 'tblTempUsageDetail_20' ) start [2025-03-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659609', 'tblTempUsageDetail_20' ) end [2025-03-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659609', 'tblTempVendorCDR_20' ) start [2025-03-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659609', 'tblTempVendorCDR_20' ) end [2025-03-11 21:34:18] Production.INFO: ProcessCDR(1,14659609,1,1,2) [2025-03-11 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659609', 'tblTempUsageDetail_20' ) start [2025-03-11 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659609', 'tblTempUsageDetail_20' ) end [2025-03-11 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:34:22] Production.INFO: ==9533== Releasing lock... [2025-03-11 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:34:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:35:05 [end_date_ymd] => 2025-03-11 21:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:35:05' and `end` < '2025-03-11 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-11 21:35:18] Production.INFO: count ==1613 [2025-03-11 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:35:05 - End Time 2025-03-11 21:35:05 [2025-03-11 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659614', 'tblTempUsageDetail_20' ) start [2025-03-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659614', 'tblTempUsageDetail_20' ) end [2025-03-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659614', 'tblTempVendorCDR_20' ) start [2025-03-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659614', 'tblTempVendorCDR_20' ) end [2025-03-11 21:35:18] Production.INFO: ProcessCDR(1,14659614,1,1,2) [2025-03-11 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659614', 'tblTempUsageDetail_20' ) start [2025-03-11 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659614', 'tblTempUsageDetail_20' ) end [2025-03-11 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:35:23] Production.INFO: ==9608== Releasing lock... [2025-03-11 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:35:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-11 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:36:05 [end_date_ymd] => 2025-03-11 21:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:36:05' and `end` < '2025-03-11 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-11 21:36:17] Production.INFO: count ==1596 [2025-03-11 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:36:05 - End Time 2025-03-11 21:36:05 [2025-03-11 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659619', 'tblTempUsageDetail_20' ) start [2025-03-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659619', 'tblTempUsageDetail_20' ) end [2025-03-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659619', 'tblTempVendorCDR_20' ) start [2025-03-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659619', 'tblTempVendorCDR_20' ) end [2025-03-11 21:36:18] Production.INFO: ProcessCDR(1,14659619,1,1,2) [2025-03-11 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659619', 'tblTempUsageDetail_20' ) start [2025-03-11 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659619', 'tblTempUsageDetail_20' ) end [2025-03-11 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:36:21] Production.INFO: ==9682== Releasing lock... [2025-03-11 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:36:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:37:04 [end_date_ymd] => 2025-03-11 21:37:04 [RateCDR] => 1 ) [2025-03-11 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:37:04' and `end` < '2025-03-11 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:37:16] Production.INFO: count ==1585 [2025-03-11 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:37:04 - End Time 2025-03-11 21:37:04 [2025-03-11 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659624', 'tblTempUsageDetail_20' ) start [2025-03-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659624', 'tblTempUsageDetail_20' ) end [2025-03-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659624', 'tblTempVendorCDR_20' ) start [2025-03-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659624', 'tblTempVendorCDR_20' ) end [2025-03-11 21:37:17] Production.INFO: ProcessCDR(1,14659624,1,1,2) [2025-03-11 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659624', 'tblTempUsageDetail_20' ) start [2025-03-11 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659624', 'tblTempUsageDetail_20' ) end [2025-03-11 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:37:22] Production.INFO: ==9753== Releasing lock... [2025-03-11 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:37:22] Production.INFO: 40 MB #Memory Used# [2025-03-11 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:38:06 [end_date_ymd] => 2025-03-11 21:38:06 [RateCDR] => 1 ) [2025-03-11 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:38:06' and `end` < '2025-03-11 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:38:18] Production.INFO: count ==1567 [2025-03-11 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:38:06 - End Time 2025-03-11 21:38:06 [2025-03-11 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659629', 'tblTempUsageDetail_20' ) start [2025-03-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659629', 'tblTempUsageDetail_20' ) end [2025-03-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659629', 'tblTempVendorCDR_20' ) start [2025-03-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659629', 'tblTempVendorCDR_20' ) end [2025-03-11 21:38:18] Production.INFO: ProcessCDR(1,14659629,1,1,2) [2025-03-11 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659629', 'tblTempUsageDetail_20' ) start [2025-03-11 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659629', 'tblTempUsageDetail_20' ) end [2025-03-11 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:38:21] Production.INFO: ==9827== Releasing lock... [2025-03-11 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:38:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:39:05 [end_date_ymd] => 2025-03-11 21:39:05 [RateCDR] => 1 ) [2025-03-11 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:39:05' and `end` < '2025-03-11 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:39:17] Production.INFO: count ==1556 [2025-03-11 21:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:39:05 - End Time 2025-03-11 21:39:05 [2025-03-11 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659634', 'tblTempUsageDetail_20' ) start [2025-03-11 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659634', 'tblTempUsageDetail_20' ) end [2025-03-11 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659634', 'tblTempVendorCDR_20' ) start [2025-03-11 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659634', 'tblTempVendorCDR_20' ) end [2025-03-11 21:39:17] Production.INFO: ProcessCDR(1,14659634,1,1,2) [2025-03-11 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659634', 'tblTempUsageDetail_20' ) start [2025-03-11 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659634', 'tblTempUsageDetail_20' ) end [2025-03-11 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:39:21] Production.INFO: ==9899== Releasing lock... [2025-03-11 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:39:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-11 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:40:06 [end_date_ymd] => 2025-03-11 21:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:40:06' and `end` < '2025-03-11 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-11 21:40:19] Production.INFO: count ==1548 [2025-03-11 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-11 18:40:06 - End Time 2025-03-11 21:40:06 [2025-03-11 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659640', 'tblTempUsageDetail_20' ) start [2025-03-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659640', 'tblTempUsageDetail_20' ) end [2025-03-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659640', 'tblTempVendorCDR_20' ) start [2025-03-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659640', 'tblTempVendorCDR_20' ) end [2025-03-11 21:40:19] Production.INFO: ProcessCDR(1,14659640,1,1,2) [2025-03-11 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659640', 'tblTempUsageDetail_20' ) start [2025-03-11 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659640', 'tblTempUsageDetail_20' ) end [2025-03-11 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:40:23] Production.INFO: ==9975== Releasing lock... [2025-03-11 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-11 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:41:05 [end_date_ymd] => 2025-03-11 21:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:41:05' and `end` < '2025-03-11 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-11 21:41:17] Production.INFO: count ==1499 [2025-03-11 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:41:05 - End Time 2025-03-11 21:41:05 [2025-03-11 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659645', 'tblTempUsageDetail_20' ) start [2025-03-11 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659645', 'tblTempUsageDetail_20' ) end [2025-03-11 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659645', 'tblTempVendorCDR_20' ) start [2025-03-11 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659645', 'tblTempVendorCDR_20' ) end [2025-03-11 21:41:17] Production.INFO: ProcessCDR(1,14659645,1,1,2) [2025-03-11 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659645', 'tblTempUsageDetail_20' ) start [2025-03-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659645', 'tblTempUsageDetail_20' ) end [2025-03-11 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:41:21] Production.INFO: ==10054== Releasing lock... [2025-03-11 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:41:21] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:42:05 [end_date_ymd] => 2025-03-11 21:42:05 [RateCDR] => 1 ) [2025-03-11 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:42:05' and `end` < '2025-03-11 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:42:17] Production.INFO: count ==1499 [2025-03-11 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:42:05 - End Time 2025-03-11 21:42:05 [2025-03-11 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659650', 'tblTempUsageDetail_20' ) start [2025-03-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659650', 'tblTempUsageDetail_20' ) end [2025-03-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659650', 'tblTempVendorCDR_20' ) start [2025-03-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659650', 'tblTempVendorCDR_20' ) end [2025-03-11 21:42:18] Production.INFO: ProcessCDR(1,14659650,1,1,2) [2025-03-11 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659650', 'tblTempUsageDetail_20' ) start [2025-03-11 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659650', 'tblTempUsageDetail_20' ) end [2025-03-11 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:42:21] Production.INFO: ==10127== Releasing lock... [2025-03-11 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:42:21] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:43:06 [end_date_ymd] => 2025-03-11 21:43:06 [RateCDR] => 1 ) [2025-03-11 21: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-11 18:43:06' and `end` < '2025-03-11 21: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-11 21:43:18] Production.INFO: count ==1496 [2025-03-11 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:43:06 - End Time 2025-03-11 21:43:06 [2025-03-11 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659655', 'tblTempUsageDetail_20' ) start [2025-03-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659655', 'tblTempUsageDetail_20' ) end [2025-03-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659655', 'tblTempVendorCDR_20' ) start [2025-03-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659655', 'tblTempVendorCDR_20' ) end [2025-03-11 21:43:18] Production.INFO: ProcessCDR(1,14659655,1,1,2) [2025-03-11 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659655', 'tblTempUsageDetail_20' ) start [2025-03-11 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659655', 'tblTempUsageDetail_20' ) end [2025-03-11 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:43:22] Production.INFO: ==10199== Releasing lock... [2025-03-11 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:43:22] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:44:06 [end_date_ymd] => 2025-03-11 21:44:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:44:06' and `end` < '2025-03-11 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-11 21:44:18] Production.INFO: count ==1499 [2025-03-11 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:44:06 - End Time 2025-03-11 21:44:06 [2025-03-11 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659660', 'tblTempUsageDetail_20' ) start [2025-03-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659660', 'tblTempUsageDetail_20' ) end [2025-03-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659660', 'tblTempVendorCDR_20' ) start [2025-03-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659660', 'tblTempVendorCDR_20' ) end [2025-03-11 21:44:18] Production.INFO: ProcessCDR(1,14659660,1,1,2) [2025-03-11 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659660', 'tblTempUsageDetail_20' ) start [2025-03-11 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659660', 'tblTempUsageDetail_20' ) end [2025-03-11 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:44:23] Production.INFO: ==10314== Releasing lock... [2025-03-11 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:44:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-11 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:45:05 [end_date_ymd] => 2025-03-11 21:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:45:05' and `end` < '2025-03-11 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-11 21:45:17] Production.INFO: count ==1503 [2025-03-11 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:45:05 - End Time 2025-03-11 21:45:05 [2025-03-11 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659665', 'tblTempUsageDetail_20' ) start [2025-03-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659665', 'tblTempUsageDetail_20' ) end [2025-03-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659665', 'tblTempVendorCDR_20' ) start [2025-03-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659665', 'tblTempVendorCDR_20' ) end [2025-03-11 21:45:18] Production.INFO: ProcessCDR(1,14659665,1,1,2) [2025-03-11 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659665', 'tblTempUsageDetail_20' ) start [2025-03-11 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659665', 'tblTempUsageDetail_20' ) end [2025-03-11 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:45:23] Production.INFO: ==10387== Releasing lock... [2025-03-11 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:45:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-11 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:46:05 [end_date_ymd] => 2025-03-11 21:46:05 [RateCDR] => 1 ) [2025-03-11 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:46:05' and `end` < '2025-03-11 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:46:17] Production.INFO: count ==1499 [2025-03-11 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:46:05 - End Time 2025-03-11 21:46:05 [2025-03-11 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659670', 'tblTempUsageDetail_20' ) start [2025-03-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659670', 'tblTempUsageDetail_20' ) end [2025-03-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659670', 'tblTempVendorCDR_20' ) start [2025-03-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659670', 'tblTempVendorCDR_20' ) end [2025-03-11 21:46:18] Production.INFO: ProcessCDR(1,14659670,1,1,2) [2025-03-11 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659670', 'tblTempUsageDetail_20' ) start [2025-03-11 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659670', 'tblTempUsageDetail_20' ) end [2025-03-11 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:46:22] Production.INFO: ==10460== Releasing lock... [2025-03-11 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:46:22] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:47:04 [end_date_ymd] => 2025-03-11 21:47:04 [RateCDR] => 1 ) [2025-03-11 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:47:04' and `end` < '2025-03-11 21:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:47:17] Production.INFO: count ==1493 [2025-03-11 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:47:04 - End Time 2025-03-11 21:47:04 [2025-03-11 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659675', 'tblTempUsageDetail_20' ) start [2025-03-11 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659675', 'tblTempUsageDetail_20' ) end [2025-03-11 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659675', 'tblTempVendorCDR_20' ) start [2025-03-11 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659675', 'tblTempVendorCDR_20' ) end [2025-03-11 21:47:17] Production.INFO: ProcessCDR(1,14659675,1,1,2) [2025-03-11 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659675', 'tblTempUsageDetail_20' ) start [2025-03-11 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659675', 'tblTempUsageDetail_20' ) end [2025-03-11 21:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:47:20] Production.INFO: ==10541== Releasing lock... [2025-03-11 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:47:20] Production.INFO: 39.25 MB #Memory Used# [2025-03-11 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:48:05 [end_date_ymd] => 2025-03-11 21:48:05 [RateCDR] => 1 ) [2025-03-11 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:48:05' and `end` < '2025-03-11 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:48:18] Production.INFO: count ==1481 [2025-03-11 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:48:05 - End Time 2025-03-11 21:48:05 [2025-03-11 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659676', 'tblTempUsageDetail_20' ) start [2025-03-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659676', 'tblTempUsageDetail_20' ) end [2025-03-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659676', 'tblTempVendorCDR_20' ) start [2025-03-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659676', 'tblTempVendorCDR_20' ) end [2025-03-11 21:48:18] Production.INFO: ProcessCDR(1,14659676,1,1,2) [2025-03-11 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659676', 'tblTempUsageDetail_20' ) start [2025-03-11 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659676', 'tblTempUsageDetail_20' ) end [2025-03-11 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:48:23] Production.INFO: ==10614== Releasing lock... [2025-03-11 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:48:23] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:49:05 [end_date_ymd] => 2025-03-11 21:49:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:49:05' and `end` < '2025-03-11 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-11 21:49:17] Production.INFO: count ==1472 [2025-03-11 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:49:05 - End Time 2025-03-11 21:49:05 [2025-03-11 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659685', 'tblTempUsageDetail_20' ) start [2025-03-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659685', 'tblTempUsageDetail_20' ) end [2025-03-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659685', 'tblTempVendorCDR_20' ) start [2025-03-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659685', 'tblTempVendorCDR_20' ) end [2025-03-11 21:49:17] Production.INFO: ProcessCDR(1,14659685,1,1,2) [2025-03-11 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659685', 'tblTempUsageDetail_20' ) start [2025-03-11 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659685', 'tblTempUsageDetail_20' ) end [2025-03-11 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:49:21] Production.INFO: ==10689== Releasing lock... [2025-03-11 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:49:21] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:50:06 [end_date_ymd] => 2025-03-11 21:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 18:50:06' and `end` < '2025-03-11 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-11 21:50:18] Production.INFO: count ==1469 [2025-03-11 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-11 18:50:06 - End Time 2025-03-11 21:50:06 [2025-03-11 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659691', 'tblTempUsageDetail_20' ) start [2025-03-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659691', 'tblTempUsageDetail_20' ) end [2025-03-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659691', 'tblTempVendorCDR_20' ) start [2025-03-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659691', 'tblTempVendorCDR_20' ) end [2025-03-11 21:50:19] Production.INFO: ProcessCDR(1,14659691,1,1,2) [2025-03-11 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659691', 'tblTempUsageDetail_20' ) start [2025-03-11 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659691', 'tblTempUsageDetail_20' ) end [2025-03-11 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:50:23] Production.INFO: ==10763== Releasing lock... [2025-03-11 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:50:23] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:51:05 [end_date_ymd] => 2025-03-11 21:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:51:05' and `end` < '2025-03-11 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-11 21:51:17] Production.INFO: count ==1440 [2025-03-11 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:51:05 - End Time 2025-03-11 21:51:05 [2025-03-11 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659696', 'tblTempUsageDetail_20' ) start [2025-03-11 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659696', 'tblTempUsageDetail_20' ) end [2025-03-11 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659696', 'tblTempVendorCDR_20' ) start [2025-03-11 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659696', 'tblTempVendorCDR_20' ) end [2025-03-11 21:51:17] Production.INFO: ProcessCDR(1,14659696,1,1,2) [2025-03-11 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659696', 'tblTempUsageDetail_20' ) start [2025-03-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659696', 'tblTempUsageDetail_20' ) end [2025-03-11 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:51:21] Production.INFO: ==10839== Releasing lock... [2025-03-11 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:51:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:52:05 [end_date_ymd] => 2025-03-11 21:52:05 [RateCDR] => 1 ) [2025-03-11 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:52:05' and `end` < '2025-03-11 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:52:18] Production.INFO: count ==1439 [2025-03-11 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:52:05 - End Time 2025-03-11 21:52:05 [2025-03-11 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659701', 'tblTempUsageDetail_20' ) start [2025-03-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659701', 'tblTempUsageDetail_20' ) end [2025-03-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659701', 'tblTempVendorCDR_20' ) start [2025-03-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659701', 'tblTempVendorCDR_20' ) end [2025-03-11 21:52:18] Production.INFO: ProcessCDR(1,14659701,1,1,2) [2025-03-11 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659701', 'tblTempUsageDetail_20' ) start [2025-03-11 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659701', 'tblTempUsageDetail_20' ) end [2025-03-11 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:52:23] Production.INFO: ==10916== Releasing lock... [2025-03-11 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:53:05 [end_date_ymd] => 2025-03-11 21:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:53:05' and `end` < '2025-03-11 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-11 21:53:17] Production.INFO: count ==1443 [2025-03-11 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:53:05 - End Time 2025-03-11 21:53:05 [2025-03-11 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659706', 'tblTempUsageDetail_20' ) start [2025-03-11 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659706', 'tblTempUsageDetail_20' ) end [2025-03-11 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659706', 'tblTempVendorCDR_20' ) start [2025-03-11 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659706', 'tblTempVendorCDR_20' ) end [2025-03-11 21:53:17] Production.INFO: ProcessCDR(1,14659706,1,1,2) [2025-03-11 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659706', 'tblTempUsageDetail_20' ) start [2025-03-11 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659706', 'tblTempUsageDetail_20' ) end [2025-03-11 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:53:21] Production.INFO: ==10990== Releasing lock... [2025-03-11 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:53:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:54:05 [end_date_ymd] => 2025-03-11 21:54:05 [RateCDR] => 1 ) [2025-03-11 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:54:05' and `end` < '2025-03-11 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:54:18] Production.INFO: count ==1431 [2025-03-11 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:54:05 - End Time 2025-03-11 21:54:05 [2025-03-11 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659711', 'tblTempUsageDetail_20' ) start [2025-03-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659711', 'tblTempUsageDetail_20' ) end [2025-03-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659711', 'tblTempVendorCDR_20' ) start [2025-03-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659711', 'tblTempVendorCDR_20' ) end [2025-03-11 21:54:18] Production.INFO: ProcessCDR(1,14659711,1,1,2) [2025-03-11 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659711', 'tblTempUsageDetail_20' ) start [2025-03-11 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659711', 'tblTempUsageDetail_20' ) end [2025-03-11 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:54:21] Production.INFO: ==11064== Releasing lock... [2025-03-11 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:54:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-11 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:55:05 [end_date_ymd] => 2025-03-11 21:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:55:05' and `end` < '2025-03-11 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-11 21:55:17] Production.INFO: count ==1423 [2025-03-11 21:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:55:05 - End Time 2025-03-11 21:55:05 [2025-03-11 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659716', 'tblTempUsageDetail_20' ) start [2025-03-11 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659716', 'tblTempUsageDetail_20' ) end [2025-03-11 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659716', 'tblTempVendorCDR_20' ) start [2025-03-11 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659716', 'tblTempVendorCDR_20' ) end [2025-03-11 21:55:17] Production.INFO: ProcessCDR(1,14659716,1,1,2) [2025-03-11 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659716', 'tblTempUsageDetail_20' ) start [2025-03-11 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659716', 'tblTempUsageDetail_20' ) end [2025-03-11 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:55:21] Production.INFO: ==11143== Releasing lock... [2025-03-11 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:55:21] Production.INFO: 39 MB #Memory Used# [2025-03-11 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:56:05 [end_date_ymd] => 2025-03-11 21:56:05 [RateCDR] => 1 ) [2025-03-11 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:56:05' and `end` < '2025-03-11 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:56:17] Production.INFO: count ==1415 [2025-03-11 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:56:05 - End Time 2025-03-11 21:56:05 [2025-03-11 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659721', 'tblTempUsageDetail_20' ) start [2025-03-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659721', 'tblTempUsageDetail_20' ) end [2025-03-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659721', 'tblTempVendorCDR_20' ) start [2025-03-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659721', 'tblTempVendorCDR_20' ) end [2025-03-11 21:56:18] Production.INFO: ProcessCDR(1,14659721,1,1,2) [2025-03-11 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659721', 'tblTempUsageDetail_20' ) start [2025-03-11 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659721', 'tblTempUsageDetail_20' ) end [2025-03-11 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:56:21] Production.INFO: ==11219== Releasing lock... [2025-03-11 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:56:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:57:04 [end_date_ymd] => 2025-03-11 21:57:04 [RateCDR] => 1 ) [2025-03-11 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:57:04' and `end` < '2025-03-11 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:57:17] Production.INFO: count ==1416 [2025-03-11 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:57:04 - End Time 2025-03-11 21:57:04 [2025-03-11 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659726', 'tblTempUsageDetail_20' ) start [2025-03-11 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659726', 'tblTempUsageDetail_20' ) end [2025-03-11 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659726', 'tblTempVendorCDR_20' ) start [2025-03-11 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659726', 'tblTempVendorCDR_20' ) end [2025-03-11 21:57:17] Production.INFO: ProcessCDR(1,14659726,1,1,2) [2025-03-11 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659726', 'tblTempUsageDetail_20' ) start [2025-03-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659726', 'tblTempUsageDetail_20' ) end [2025-03-11 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:57:22] Production.INFO: ==11294== Releasing lock... [2025-03-11 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:58:05 [end_date_ymd] => 2025-03-11 21:58:05 [RateCDR] => 1 ) [2025-03-11 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-11 18:58:05' and `end` < '2025-03-11 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-11 21:58:17] Production.INFO: count ==1409 [2025-03-11 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-11 18:58:05 - End Time 2025-03-11 21:58:05 [2025-03-11 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659731', 'tblTempUsageDetail_20' ) start [2025-03-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659731', 'tblTempUsageDetail_20' ) end [2025-03-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659731', 'tblTempVendorCDR_20' ) start [2025-03-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659731', 'tblTempVendorCDR_20' ) end [2025-03-11 21:58:18] Production.INFO: ProcessCDR(1,14659731,1,1,2) [2025-03-11 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659731', 'tblTempUsageDetail_20' ) start [2025-03-11 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659731', 'tblTempUsageDetail_20' ) end [2025-03-11 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:58:21] Production.INFO: ==11369== Releasing lock... [2025-03-11 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:58:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 18:59:04 [end_date_ymd] => 2025-03-11 21:59:04 [RateCDR] => 1 ) [2025-03-11 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 18:59:04' and `end` < '2025-03-11 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 21:59:16] Production.INFO: count ==1405 [2025-03-11 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 18:59:04 - End Time 2025-03-11 21:59:04 [2025-03-11 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659736', 'tblTempUsageDetail_20' ) start [2025-03-11 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659736', 'tblTempUsageDetail_20' ) end [2025-03-11 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659736', 'tblTempVendorCDR_20' ) start [2025-03-11 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659736', 'tblTempVendorCDR_20' ) end [2025-03-11 21:59:17] Production.INFO: ProcessCDR(1,14659736,1,1,2) [2025-03-11 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659736', 'tblTempUsageDetail_20' ) start [2025-03-11 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659736', 'tblTempUsageDetail_20' ) end [2025-03-11 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 21:59:21] Production.INFO: ==11483== Releasing lock... [2025-03-11 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 21:59:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-11 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:00:06 [end_date_ymd] => 2025-03-11 22:00:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:00:06' and `end` < '2025-03-11 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-11 22:00:18] Production.INFO: count ==1396 [2025-03-11 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:00:06 - End Time 2025-03-11 22:00:06 [2025-03-11 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659742', 'tblTempUsageDetail_20' ) start [2025-03-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659742', 'tblTempUsageDetail_20' ) end [2025-03-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659742', 'tblTempVendorCDR_20' ) start [2025-03-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659742', 'tblTempVendorCDR_20' ) end [2025-03-11 22:00:18] Production.INFO: ProcessCDR(1,14659742,1,1,2) [2025-03-11 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659742', 'tblTempUsageDetail_20' ) start [2025-03-11 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659742', 'tblTempUsageDetail_20' ) end [2025-03-11 22:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:00:21] Production.INFO: ==11565== Releasing lock... [2025-03-11 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:00:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-11 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:01:05 [end_date_ymd] => 2025-03-11 22:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:01:05' and `end` < '2025-03-11 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-11 22:01:17] Production.INFO: count ==1389 [2025-03-11 22:01:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:01:05 - End Time 2025-03-11 22:01:05 [2025-03-11 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659747', 'tblTempUsageDetail_20' ) start [2025-03-11 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659747', 'tblTempUsageDetail_20' ) end [2025-03-11 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659747', 'tblTempVendorCDR_20' ) start [2025-03-11 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659747', 'tblTempVendorCDR_20' ) end [2025-03-11 22:01:17] Production.INFO: ProcessCDR(1,14659747,1,1,2) [2025-03-11 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659747', 'tblTempUsageDetail_20' ) start [2025-03-11 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659747', 'tblTempUsageDetail_20' ) end [2025-03-11 22:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:01:21] Production.INFO: ==11653== Releasing lock... [2025-03-11 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:01:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-11 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:02:05 [end_date_ymd] => 2025-03-11 22:02:05 [RateCDR] => 1 ) [2025-03-11 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:02:05' and `end` < '2025-03-11 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:02:17] Production.INFO: count ==1377 [2025-03-11 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:02:05 - End Time 2025-03-11 22:02:05 [2025-03-11 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659752', 'tblTempUsageDetail_20' ) start [2025-03-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659752', 'tblTempUsageDetail_20' ) end [2025-03-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659752', 'tblTempVendorCDR_20' ) start [2025-03-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659752', 'tblTempVendorCDR_20' ) end [2025-03-11 22:02:18] Production.INFO: ProcessCDR(1,14659752,1,1,2) [2025-03-11 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659752', 'tblTempUsageDetail_20' ) start [2025-03-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659752', 'tblTempUsageDetail_20' ) end [2025-03-11 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:02:21] Production.INFO: ==11727== Releasing lock... [2025-03-11 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:02:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:03:05 [end_date_ymd] => 2025-03-11 22:03:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:03:05' and `end` < '2025-03-11 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-11 22:03:17] Production.INFO: count ==1372 [2025-03-11 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:03:05 - End Time 2025-03-11 22:03:05 [2025-03-11 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659757', 'tblTempUsageDetail_20' ) start [2025-03-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659757', 'tblTempUsageDetail_20' ) end [2025-03-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659757', 'tblTempVendorCDR_20' ) start [2025-03-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659757', 'tblTempVendorCDR_20' ) end [2025-03-11 22:03:18] Production.INFO: ProcessCDR(1,14659757,1,1,2) [2025-03-11 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659757', 'tblTempUsageDetail_20' ) start [2025-03-11 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659757', 'tblTempUsageDetail_20' ) end [2025-03-11 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:03:21] Production.INFO: ==11801== Releasing lock... [2025-03-11 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:03:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:04:05 [end_date_ymd] => 2025-03-11 22:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:04:05' and `end` < '2025-03-11 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-11 22:04:17] Production.INFO: count ==1367 [2025-03-11 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:04:05 - End Time 2025-03-11 22:04:05 [2025-03-11 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659762', 'tblTempUsageDetail_20' ) start [2025-03-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659762', 'tblTempUsageDetail_20' ) end [2025-03-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659762', 'tblTempVendorCDR_20' ) start [2025-03-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659762', 'tblTempVendorCDR_20' ) end [2025-03-11 22:04:18] Production.INFO: ProcessCDR(1,14659762,1,1,2) [2025-03-11 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659762', 'tblTempUsageDetail_20' ) start [2025-03-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659762', 'tblTempUsageDetail_20' ) end [2025-03-11 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:04:21] Production.INFO: ==11874== Releasing lock... [2025-03-11 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:04:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:05:04 [end_date_ymd] => 2025-03-11 22:05:04 [RateCDR] => 1 ) [2025-03-11 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:05:04' and `end` < '2025-03-11 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:05:17] Production.INFO: count ==1371 [2025-03-11 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:05:04 - End Time 2025-03-11 22:05:04 [2025-03-11 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659767', 'tblTempUsageDetail_20' ) start [2025-03-11 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659767', 'tblTempUsageDetail_20' ) end [2025-03-11 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659767', 'tblTempVendorCDR_20' ) start [2025-03-11 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659767', 'tblTempVendorCDR_20' ) end [2025-03-11 22:05:17] Production.INFO: ProcessCDR(1,14659767,1,1,2) [2025-03-11 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659767', 'tblTempUsageDetail_20' ) start [2025-03-11 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659767', 'tblTempUsageDetail_20' ) end [2025-03-11 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:05:20] Production.INFO: ==11947== Releasing lock... [2025-03-11 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:05:20] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:06:05 [end_date_ymd] => 2025-03-11 22:06:05 [RateCDR] => 1 ) [2025-03-11 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:06:05' and `end` < '2025-03-11 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:06:17] Production.INFO: count ==1371 [2025-03-11 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:06:05 - End Time 2025-03-11 22:06:05 [2025-03-11 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659772', 'tblTempUsageDetail_20' ) start [2025-03-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659772', 'tblTempUsageDetail_20' ) end [2025-03-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659772', 'tblTempVendorCDR_20' ) start [2025-03-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659772', 'tblTempVendorCDR_20' ) end [2025-03-11 22:06:18] Production.INFO: ProcessCDR(1,14659772,1,1,2) [2025-03-11 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659772', 'tblTempUsageDetail_20' ) start [2025-03-11 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659772', 'tblTempUsageDetail_20' ) end [2025-03-11 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:06:21] Production.INFO: ==12022== Releasing lock... [2025-03-11 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:06:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:07:05 [end_date_ymd] => 2025-03-11 22:07:05 [RateCDR] => 1 ) [2025-03-11 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:07:05' and `end` < '2025-03-11 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:07:17] Production.INFO: count ==1370 [2025-03-11 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:07:05 - End Time 2025-03-11 22:07:05 [2025-03-11 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659777', 'tblTempUsageDetail_20' ) start [2025-03-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659777', 'tblTempUsageDetail_20' ) end [2025-03-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659777', 'tblTempVendorCDR_20' ) start [2025-03-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659777', 'tblTempVendorCDR_20' ) end [2025-03-11 22:07:18] Production.INFO: ProcessCDR(1,14659777,1,1,2) [2025-03-11 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659777', 'tblTempUsageDetail_20' ) start [2025-03-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659777', 'tblTempUsageDetail_20' ) end [2025-03-11 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:07:22] Production.INFO: ==12101== Releasing lock... [2025-03-11 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:07:22] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:08:05 [end_date_ymd] => 2025-03-11 22:08:05 [RateCDR] => 1 ) [2025-03-11 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:08:05' and `end` < '2025-03-11 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:08:17] Production.INFO: count ==1369 [2025-03-11 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:08:05 - End Time 2025-03-11 22:08:05 [2025-03-11 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659782', 'tblTempUsageDetail_20' ) start [2025-03-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659782', 'tblTempUsageDetail_20' ) end [2025-03-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659782', 'tblTempVendorCDR_20' ) start [2025-03-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659782', 'tblTempVendorCDR_20' ) end [2025-03-11 22:08:18] Production.INFO: ProcessCDR(1,14659782,1,1,2) [2025-03-11 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659782', 'tblTempUsageDetail_20' ) start [2025-03-11 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659782', 'tblTempUsageDetail_20' ) end [2025-03-11 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:08:21] Production.INFO: ==12176== Releasing lock... [2025-03-11 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:08:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:09:04 [end_date_ymd] => 2025-03-11 22:09:04 [RateCDR] => 1 ) [2025-03-11 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:09:04' and `end` < '2025-03-11 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:09:17] Production.INFO: count ==1369 [2025-03-11 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:09:04 - End Time 2025-03-11 22:09:04 [2025-03-11 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659787', 'tblTempUsageDetail_20' ) start [2025-03-11 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659787', 'tblTempUsageDetail_20' ) end [2025-03-11 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659787', 'tblTempVendorCDR_20' ) start [2025-03-11 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659787', 'tblTempVendorCDR_20' ) end [2025-03-11 22:09:17] Production.INFO: ProcessCDR(1,14659787,1,1,2) [2025-03-11 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659787', 'tblTempUsageDetail_20' ) start [2025-03-11 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659787', 'tblTempUsageDetail_20' ) end [2025-03-11 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:09:20] Production.INFO: ==12252== Releasing lock... [2025-03-11 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:09:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:10:06 [end_date_ymd] => 2025-03-11 22:10:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:10:06' and `end` < '2025-03-11 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-11 22:10:18] Production.INFO: count ==1369 [2025-03-11 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:10:06 - End Time 2025-03-11 22:10:06 [2025-03-11 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659793', 'tblTempUsageDetail_20' ) start [2025-03-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659793', 'tblTempUsageDetail_20' ) end [2025-03-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659793', 'tblTempVendorCDR_20' ) start [2025-03-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659793', 'tblTempVendorCDR_20' ) end [2025-03-11 22:10:18] Production.INFO: ProcessCDR(1,14659793,1,1,2) [2025-03-11 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659793', 'tblTempUsageDetail_20' ) start [2025-03-11 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659793', 'tblTempUsageDetail_20' ) end [2025-03-11 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:10:21] Production.INFO: ==12330== Releasing lock... [2025-03-11 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:10:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:11:05 [end_date_ymd] => 2025-03-11 22:11:05 [RateCDR] => 1 ) [2025-03-11 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:11:05' and `end` < '2025-03-11 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:11:17] Production.INFO: count ==1364 [2025-03-11 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:11:05 - End Time 2025-03-11 22:11:05 [2025-03-11 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659798', 'tblTempUsageDetail_20' ) start [2025-03-11 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659798', 'tblTempUsageDetail_20' ) end [2025-03-11 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659798', 'tblTempVendorCDR_20' ) start [2025-03-11 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659798', 'tblTempVendorCDR_20' ) end [2025-03-11 22:11:18] Production.INFO: ProcessCDR(1,14659798,1,1,2) [2025-03-11 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659798', 'tblTempUsageDetail_20' ) start [2025-03-11 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659798', 'tblTempUsageDetail_20' ) end [2025-03-11 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:11:21] Production.INFO: ==12408== Releasing lock... [2025-03-11 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:11:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:12:05 [end_date_ymd] => 2025-03-11 22:12:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:12:05' and `end` < '2025-03-11 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-11 22:12:17] Production.INFO: count ==1367 [2025-03-11 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:12:05 - End Time 2025-03-11 22:12:05 [2025-03-11 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659803', 'tblTempUsageDetail_20' ) start [2025-03-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659803', 'tblTempUsageDetail_20' ) end [2025-03-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659803', 'tblTempVendorCDR_20' ) start [2025-03-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659803', 'tblTempVendorCDR_20' ) end [2025-03-11 22:12:18] Production.INFO: ProcessCDR(1,14659803,1,1,2) [2025-03-11 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659803', 'tblTempUsageDetail_20' ) start [2025-03-11 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659803', 'tblTempUsageDetail_20' ) end [2025-03-11 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:12:21] Production.INFO: ==12500== Releasing lock... [2025-03-11 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:12:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:13:06 [end_date_ymd] => 2025-03-11 22:13:06 [RateCDR] => 1 ) [2025-03-11 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:13:06' and `end` < '2025-03-11 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:13:18] Production.INFO: count ==1372 [2025-03-11 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:13:06 - End Time 2025-03-11 22:13:06 [2025-03-11 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659808', 'tblTempUsageDetail_20' ) start [2025-03-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659808', 'tblTempUsageDetail_20' ) end [2025-03-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659808', 'tblTempVendorCDR_20' ) start [2025-03-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659808', 'tblTempVendorCDR_20' ) end [2025-03-11 22:13:18] Production.INFO: ProcessCDR(1,14659808,1,1,2) [2025-03-11 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659808', 'tblTempUsageDetail_20' ) start [2025-03-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659808', 'tblTempUsageDetail_20' ) end [2025-03-11 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:13:23] Production.INFO: ==12607== Releasing lock... [2025-03-11 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:13:23] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:14:05 [end_date_ymd] => 2025-03-11 22:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:14:05' and `end` < '2025-03-11 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-11 22:14:17] Production.INFO: count ==1373 [2025-03-11 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:14:05 - End Time 2025-03-11 22:14:05 [2025-03-11 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659813', 'tblTempUsageDetail_20' ) start [2025-03-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659813', 'tblTempUsageDetail_20' ) end [2025-03-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659813', 'tblTempVendorCDR_20' ) start [2025-03-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659813', 'tblTempVendorCDR_20' ) end [2025-03-11 22:14:18] Production.INFO: ProcessCDR(1,14659813,1,1,2) [2025-03-11 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659813', 'tblTempUsageDetail_20' ) start [2025-03-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659813', 'tblTempUsageDetail_20' ) end [2025-03-11 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:14:22] Production.INFO: ==12713== Releasing lock... [2025-03-11 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:14:22] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:15:06 [end_date_ymd] => 2025-03-11 22:15:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:15:06' and `end` < '2025-03-11 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-11 22:15:18] Production.INFO: count ==1376 [2025-03-11 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:15:06 - End Time 2025-03-11 22:15:06 [2025-03-11 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659818', 'tblTempUsageDetail_20' ) start [2025-03-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659818', 'tblTempUsageDetail_20' ) end [2025-03-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659818', 'tblTempVendorCDR_20' ) start [2025-03-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659818', 'tblTempVendorCDR_20' ) end [2025-03-11 22:15:18] Production.INFO: ProcessCDR(1,14659818,1,1,2) [2025-03-11 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659818', 'tblTempUsageDetail_20' ) start [2025-03-11 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659818', 'tblTempUsageDetail_20' ) end [2025-03-11 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:15:21] Production.INFO: ==12838== Releasing lock... [2025-03-11 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:16:05 [end_date_ymd] => 2025-03-11 22:16:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:16:05' and `end` < '2025-03-11 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-11 22:16:17] Production.INFO: count ==1375 [2025-03-11 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:16:05 - End Time 2025-03-11 22:16:05 [2025-03-11 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659823', 'tblTempUsageDetail_20' ) start [2025-03-11 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659823', 'tblTempUsageDetail_20' ) end [2025-03-11 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659823', 'tblTempVendorCDR_20' ) start [2025-03-11 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659823', 'tblTempVendorCDR_20' ) end [2025-03-11 22:16:17] Production.INFO: ProcessCDR(1,14659823,1,1,2) [2025-03-11 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659823', 'tblTempUsageDetail_20' ) start [2025-03-11 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659823', 'tblTempUsageDetail_20' ) end [2025-03-11 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:16:21] Production.INFO: ==12917== Releasing lock... [2025-03-11 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:16:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:17:05 [end_date_ymd] => 2025-03-11 22:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:17:05' and `end` < '2025-03-11 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-11 22:17:17] Production.INFO: count ==1378 [2025-03-11 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:17:05 - End Time 2025-03-11 22:17:05 [2025-03-11 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659828', 'tblTempUsageDetail_20' ) start [2025-03-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659828', 'tblTempUsageDetail_20' ) end [2025-03-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659828', 'tblTempVendorCDR_20' ) start [2025-03-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659828', 'tblTempVendorCDR_20' ) end [2025-03-11 22:17:18] Production.INFO: ProcessCDR(1,14659828,1,1,2) [2025-03-11 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659828', 'tblTempUsageDetail_20' ) start [2025-03-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659828', 'tblTempUsageDetail_20' ) end [2025-03-11 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:17:21] Production.INFO: ==12993== Releasing lock... [2025-03-11 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:17:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:18:04 [end_date_ymd] => 2025-03-11 22:18:04 [RateCDR] => 1 ) [2025-03-11 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:18:04' and `end` < '2025-03-11 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:18:17] Production.INFO: count ==1376 [2025-03-11 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:18:04 - End Time 2025-03-11 22:18:04 [2025-03-11 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659833', 'tblTempUsageDetail_20' ) start [2025-03-11 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659833', 'tblTempUsageDetail_20' ) end [2025-03-11 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659833', 'tblTempVendorCDR_20' ) start [2025-03-11 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659833', 'tblTempVendorCDR_20' ) end [2025-03-11 22:18:17] Production.INFO: ProcessCDR(1,14659833,1,1,2) [2025-03-11 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659833', 'tblTempUsageDetail_20' ) start [2025-03-11 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659833', 'tblTempUsageDetail_20' ) end [2025-03-11 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:18:20] Production.INFO: ==13070== Releasing lock... [2025-03-11 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:18:20] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:19:06 [end_date_ymd] => 2025-03-11 22:19:06 [RateCDR] => 1 ) [2025-03-11 22: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-11 19:19:06' and `end` < '2025-03-11 22: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-11 22:19:18] Production.INFO: count ==1381 [2025-03-11 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:19:06 - End Time 2025-03-11 22:19:06 [2025-03-11 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659838', 'tblTempUsageDetail_20' ) start [2025-03-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659838', 'tblTempUsageDetail_20' ) end [2025-03-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659838', 'tblTempVendorCDR_20' ) start [2025-03-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659838', 'tblTempVendorCDR_20' ) end [2025-03-11 22:19:18] Production.INFO: ProcessCDR(1,14659838,1,1,2) [2025-03-11 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659838', 'tblTempUsageDetail_20' ) start [2025-03-11 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659838', 'tblTempUsageDetail_20' ) end [2025-03-11 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:19:23] Production.INFO: ==13147== Releasing lock... [2025-03-11 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:20:05 [end_date_ymd] => 2025-03-11 22:20:05 [RateCDR] => 1 ) [2025-03-11 22: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-11 19:20:05' and `end` < '2025-03-11 22: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-11 22:20:17] Production.INFO: count ==1378 [2025-03-11 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:20:05 - End Time 2025-03-11 22:20:05 [2025-03-11 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659843', 'tblTempUsageDetail_20' ) start [2025-03-11 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659843', 'tblTempUsageDetail_20' ) end [2025-03-11 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659843', 'tblTempVendorCDR_20' ) start [2025-03-11 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659843', 'tblTempVendorCDR_20' ) end [2025-03-11 22:20:18] Production.INFO: ProcessCDR(1,14659843,1,1,2) [2025-03-11 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659843', 'tblTempUsageDetail_20' ) start [2025-03-11 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659843', 'tblTempUsageDetail_20' ) end [2025-03-11 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:20:21] Production.INFO: ==13225== Releasing lock... [2025-03-11 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:20:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-11 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:21:06 [end_date_ymd] => 2025-03-11 22:21:06 [RateCDR] => 1 ) [2025-03-11 22: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-11 19:21:06' and `end` < '2025-03-11 22: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-11 22:21:18] Production.INFO: count ==1367 [2025-03-11 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:21:06 - End Time 2025-03-11 22:21:06 [2025-03-11 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659849', 'tblTempUsageDetail_20' ) start [2025-03-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659849', 'tblTempUsageDetail_20' ) end [2025-03-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659849', 'tblTempVendorCDR_20' ) start [2025-03-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659849', 'tblTempVendorCDR_20' ) end [2025-03-11 22:21:18] Production.INFO: ProcessCDR(1,14659849,1,1,2) [2025-03-11 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659849', 'tblTempUsageDetail_20' ) start [2025-03-11 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659849', 'tblTempUsageDetail_20' ) end [2025-03-11 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:21:23] Production.INFO: ==13312== Releasing lock... [2025-03-11 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:21:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:22:05 [end_date_ymd] => 2025-03-11 22:22:05 [RateCDR] => 1 ) [2025-03-11 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:22:05' and `end` < '2025-03-11 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:22:17] Production.INFO: count ==1366 [2025-03-11 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:22:05 - End Time 2025-03-11 22:22:05 [2025-03-11 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659854', 'tblTempUsageDetail_20' ) start [2025-03-11 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659854', 'tblTempUsageDetail_20' ) end [2025-03-11 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659854', 'tblTempVendorCDR_20' ) start [2025-03-11 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659854', 'tblTempVendorCDR_20' ) end [2025-03-11 22:22:18] Production.INFO: ProcessCDR(1,14659854,1,1,2) [2025-03-11 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659854', 'tblTempUsageDetail_20' ) start [2025-03-11 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659854', 'tblTempUsageDetail_20' ) end [2025-03-11 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:22:21] Production.INFO: ==13390== Releasing lock... [2025-03-11 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:22:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:23:05 [end_date_ymd] => 2025-03-11 22:23:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:23:05' and `end` < '2025-03-11 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-11 22:23:17] Production.INFO: count ==1353 [2025-03-11 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:23:05 - End Time 2025-03-11 22:23:05 [2025-03-11 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659859', 'tblTempUsageDetail_20' ) start [2025-03-11 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659859', 'tblTempUsageDetail_20' ) end [2025-03-11 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659859', 'tblTempVendorCDR_20' ) start [2025-03-11 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659859', 'tblTempVendorCDR_20' ) end [2025-03-11 22:23:17] Production.INFO: ProcessCDR(1,14659859,1,1,2) [2025-03-11 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659859', 'tblTempUsageDetail_20' ) start [2025-03-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659859', 'tblTempUsageDetail_20' ) end [2025-03-11 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:23:22] Production.INFO: ==13467== Releasing lock... [2025-03-11 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:24:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:24:06 [end_date_ymd] => 2025-03-11 22:24:06 [RateCDR] => 1 ) [2025-03-11 22:24: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-11 19:24:06' and `end` < '2025-03-11 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-11 22:24:19] Production.INFO: count ==1356 [2025-03-11 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-11 19:24:06 - End Time 2025-03-11 22:24:06 [2025-03-11 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659864', 'tblTempUsageDetail_20' ) start [2025-03-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659864', 'tblTempUsageDetail_20' ) end [2025-03-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659864', 'tblTempVendorCDR_20' ) start [2025-03-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659864', 'tblTempVendorCDR_20' ) end [2025-03-11 22:24:19] Production.INFO: ProcessCDR(1,14659864,1,1,2) [2025-03-11 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659864', 'tblTempUsageDetail_20' ) start [2025-03-11 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659864', 'tblTempUsageDetail_20' ) end [2025-03-11 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:24:23] Production.INFO: ==13545== Releasing lock... [2025-03-11 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:24:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:25:05 [end_date_ymd] => 2025-03-11 22:25:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:25:05' and `end` < '2025-03-11 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-11 22:25:17] Production.INFO: count ==1355 [2025-03-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:25:05 - End Time 2025-03-11 22:25:05 [2025-03-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659869', 'tblTempUsageDetail_20' ) start [2025-03-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659869', 'tblTempUsageDetail_20' ) end [2025-03-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659869', 'tblTempVendorCDR_20' ) start [2025-03-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659869', 'tblTempVendorCDR_20' ) end [2025-03-11 22:25:18] Production.INFO: ProcessCDR(1,14659869,1,1,2) [2025-03-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659869', 'tblTempUsageDetail_20' ) start [2025-03-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659869', 'tblTempUsageDetail_20' ) end [2025-03-11 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:25:21] Production.INFO: ==13624== Releasing lock... [2025-03-11 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:26:05 [end_date_ymd] => 2025-03-11 22:26:05 [RateCDR] => 1 ) [2025-03-11 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:26:05' and `end` < '2025-03-11 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:26:18] Production.INFO: count ==1341 [2025-03-11 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:26:05 - End Time 2025-03-11 22:26:05 [2025-03-11 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659874', 'tblTempUsageDetail_20' ) start [2025-03-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659874', 'tblTempUsageDetail_20' ) end [2025-03-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659874', 'tblTempVendorCDR_20' ) start [2025-03-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659874', 'tblTempVendorCDR_20' ) end [2025-03-11 22:26:18] Production.INFO: ProcessCDR(1,14659874,1,1,2) [2025-03-11 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659874', 'tblTempUsageDetail_20' ) start [2025-03-11 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659874', 'tblTempUsageDetail_20' ) end [2025-03-11 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:26:21] Production.INFO: ==13708== Releasing lock... [2025-03-11 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:26:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:27:05 [end_date_ymd] => 2025-03-11 22:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:27:05' and `end` < '2025-03-11 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-11 22:27:17] Production.INFO: count ==1334 [2025-03-11 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:27:05 - End Time 2025-03-11 22:27:05 [2025-03-11 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659879', 'tblTempUsageDetail_20' ) start [2025-03-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659879', 'tblTempUsageDetail_20' ) end [2025-03-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659879', 'tblTempVendorCDR_20' ) start [2025-03-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659879', 'tblTempVendorCDR_20' ) end [2025-03-11 22:27:18] Production.INFO: ProcessCDR(1,14659879,1,1,2) [2025-03-11 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659879', 'tblTempUsageDetail_20' ) start [2025-03-11 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659879', 'tblTempUsageDetail_20' ) end [2025-03-11 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:27:21] Production.INFO: ==13788== Releasing lock... [2025-03-11 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:27:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-11 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:28:05 [end_date_ymd] => 2025-03-11 22:28:05 [RateCDR] => 1 ) [2025-03-11 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:28:05' and `end` < '2025-03-11 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:28:17] Production.INFO: count ==1338 [2025-03-11 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:28:05 - End Time 2025-03-11 22:28:05 [2025-03-11 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659884', 'tblTempUsageDetail_20' ) start [2025-03-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659884', 'tblTempUsageDetail_20' ) end [2025-03-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659884', 'tblTempVendorCDR_20' ) start [2025-03-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659884', 'tblTempVendorCDR_20' ) end [2025-03-11 22:28:18] Production.INFO: ProcessCDR(1,14659884,1,1,2) [2025-03-11 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659884', 'tblTempUsageDetail_20' ) start [2025-03-11 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659884', 'tblTempUsageDetail_20' ) end [2025-03-11 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:28:21] Production.INFO: ==13865== Releasing lock... [2025-03-11 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:28:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:29:05 [end_date_ymd] => 2025-03-11 22:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:29:05' and `end` < '2025-03-11 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-11 22:29:17] Production.INFO: count ==1327 [2025-03-11 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:29:05 - End Time 2025-03-11 22:29:05 [2025-03-11 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659889', 'tblTempUsageDetail_20' ) start [2025-03-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659889', 'tblTempUsageDetail_20' ) end [2025-03-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659889', 'tblTempVendorCDR_20' ) start [2025-03-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659889', 'tblTempVendorCDR_20' ) end [2025-03-11 22:29:17] Production.INFO: ProcessCDR(1,14659889,1,1,2) [2025-03-11 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659889', 'tblTempUsageDetail_20' ) start [2025-03-11 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659889', 'tblTempUsageDetail_20' ) end [2025-03-11 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:29:21] Production.INFO: ==13939== Releasing lock... [2025-03-11 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:29:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:30:06 [end_date_ymd] => 2025-03-11 22:30:06 [RateCDR] => 1 ) [2025-03-11 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:30:06' and `end` < '2025-03-11 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:30:18] Production.INFO: count ==1326 [2025-03-11 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:30:06 - End Time 2025-03-11 22:30:06 [2025-03-11 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659895', 'tblTempUsageDetail_20' ) start [2025-03-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659895', 'tblTempUsageDetail_20' ) end [2025-03-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659895', 'tblTempVendorCDR_20' ) start [2025-03-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659895', 'tblTempVendorCDR_20' ) end [2025-03-11 22:30:18] Production.INFO: ProcessCDR(1,14659895,1,1,2) [2025-03-11 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659895', 'tblTempUsageDetail_20' ) start [2025-03-11 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659895', 'tblTempUsageDetail_20' ) end [2025-03-11 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:30:21] Production.INFO: ==14064== Releasing lock... [2025-03-11 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:30:21] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:31:05 [end_date_ymd] => 2025-03-11 22:31:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:31:05' and `end` < '2025-03-11 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-11 22:31:17] Production.INFO: count ==1308 [2025-03-11 22:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:31:05 - End Time 2025-03-11 22:31:05 [2025-03-11 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659900', 'tblTempUsageDetail_20' ) start [2025-03-11 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659900', 'tblTempUsageDetail_20' ) end [2025-03-11 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659900', 'tblTempVendorCDR_20' ) start [2025-03-11 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659900', 'tblTempVendorCDR_20' ) end [2025-03-11 22:31:17] Production.INFO: ProcessCDR(1,14659900,1,1,2) [2025-03-11 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659900', 'tblTempUsageDetail_20' ) start [2025-03-11 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659900', 'tblTempUsageDetail_20' ) end [2025-03-11 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:31:20] Production.INFO: ==14173== Releasing lock... [2025-03-11 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:31:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:32:06 [end_date_ymd] => 2025-03-11 22:32:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:32:06' and `end` < '2025-03-11 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-11 22:32:18] Production.INFO: count ==1309 [2025-03-11 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:32:06 - End Time 2025-03-11 22:32:06 [2025-03-11 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659905', 'tblTempUsageDetail_20' ) start [2025-03-11 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659905', 'tblTempUsageDetail_20' ) end [2025-03-11 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659905', 'tblTempVendorCDR_20' ) start [2025-03-11 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659905', 'tblTempVendorCDR_20' ) end [2025-03-11 22:32:18] Production.INFO: ProcessCDR(1,14659905,1,1,2) [2025-03-11 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659905', 'tblTempUsageDetail_20' ) start [2025-03-11 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659905', 'tblTempUsageDetail_20' ) end [2025-03-11 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:32:23] Production.INFO: ==14283== Releasing lock... [2025-03-11 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:32:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:33:05 [end_date_ymd] => 2025-03-11 22:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:33:05' and `end` < '2025-03-11 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-11 22:33:17] Production.INFO: count ==1311 [2025-03-11 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:33:05 - End Time 2025-03-11 22:33:05 [2025-03-11 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659910', 'tblTempUsageDetail_20' ) start [2025-03-11 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659910', 'tblTempUsageDetail_20' ) end [2025-03-11 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659910', 'tblTempVendorCDR_20' ) start [2025-03-11 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659910', 'tblTempVendorCDR_20' ) end [2025-03-11 22:33:17] Production.INFO: ProcessCDR(1,14659910,1,1,2) [2025-03-11 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659910', 'tblTempUsageDetail_20' ) start [2025-03-11 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659910', 'tblTempUsageDetail_20' ) end [2025-03-11 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:33:20] Production.INFO: ==14388== Releasing lock... [2025-03-11 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:33:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:34:05 [end_date_ymd] => 2025-03-11 22:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:34:05' and `end` < '2025-03-11 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-11 22:34:18] Production.INFO: count ==1308 [2025-03-11 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:34:05 - End Time 2025-03-11 22:34:05 [2025-03-11 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659915', 'tblTempUsageDetail_20' ) start [2025-03-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659915', 'tblTempUsageDetail_20' ) end [2025-03-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659915', 'tblTempVendorCDR_20' ) start [2025-03-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659915', 'tblTempVendorCDR_20' ) end [2025-03-11 22:34:18] Production.INFO: ProcessCDR(1,14659915,1,1,2) [2025-03-11 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659915', 'tblTempUsageDetail_20' ) start [2025-03-11 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659915', 'tblTempUsageDetail_20' ) end [2025-03-11 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:34:21] Production.INFO: ==14472== Releasing lock... [2025-03-11 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:34:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:35:05 [end_date_ymd] => 2025-03-11 22:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:35:05' and `end` < '2025-03-11 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-11 22:35:17] Production.INFO: count ==1316 [2025-03-11 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:35:05 - End Time 2025-03-11 22:35:05 [2025-03-11 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659920', 'tblTempUsageDetail_20' ) start [2025-03-11 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659920', 'tblTempUsageDetail_20' ) end [2025-03-11 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659920', 'tblTempVendorCDR_20' ) start [2025-03-11 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659920', 'tblTempVendorCDR_20' ) end [2025-03-11 22:35:17] Production.INFO: ProcessCDR(1,14659920,1,1,2) [2025-03-11 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659920', 'tblTempUsageDetail_20' ) start [2025-03-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659920', 'tblTempUsageDetail_20' ) end [2025-03-11 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:35:21] Production.INFO: ==14550== Releasing lock... [2025-03-11 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:35:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:36:05 [end_date_ymd] => 2025-03-11 22:36:05 [RateCDR] => 1 ) [2025-03-11 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:36:05' and `end` < '2025-03-11 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:36:18] Production.INFO: count ==1322 [2025-03-11 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:36:05 - End Time 2025-03-11 22:36:05 [2025-03-11 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659925', 'tblTempUsageDetail_20' ) start [2025-03-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659925', 'tblTempUsageDetail_20' ) end [2025-03-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659925', 'tblTempVendorCDR_20' ) start [2025-03-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659925', 'tblTempVendorCDR_20' ) end [2025-03-11 22:36:18] Production.INFO: ProcessCDR(1,14659925,1,1,2) [2025-03-11 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659925', 'tblTempUsageDetail_20' ) start [2025-03-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659925', 'tblTempUsageDetail_20' ) end [2025-03-11 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:36:22] Production.INFO: ==14630== Releasing lock... [2025-03-11 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:36:22] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:37:04 [end_date_ymd] => 2025-03-11 22:37:04 [RateCDR] => 1 ) [2025-03-11 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:37:04' and `end` < '2025-03-11 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:37:16] Production.INFO: count ==1336 [2025-03-11 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:37:04 - End Time 2025-03-11 22:37:04 [2025-03-11 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659930', 'tblTempUsageDetail_20' ) start [2025-03-11 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659930', 'tblTempUsageDetail_20' ) end [2025-03-11 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659930', 'tblTempVendorCDR_20' ) start [2025-03-11 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659930', 'tblTempVendorCDR_20' ) end [2025-03-11 22:37:17] Production.INFO: ProcessCDR(1,14659930,1,1,2) [2025-03-11 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659930', 'tblTempUsageDetail_20' ) start [2025-03-11 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659930', 'tblTempUsageDetail_20' ) end [2025-03-11 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:37:20] Production.INFO: ==14710== Releasing lock... [2025-03-11 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:37:20] Production.INFO: 38 MB #Memory Used# [2025-03-11 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:38:06 [end_date_ymd] => 2025-03-11 22:38:06 [RateCDR] => 1 ) [2025-03-11 22: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-11 19:38:06' and `end` < '2025-03-11 22: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-11 22:38:18] Production.INFO: count ==1334 [2025-03-11 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:38:06 - End Time 2025-03-11 22:38:06 [2025-03-11 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659935', 'tblTempUsageDetail_20' ) start [2025-03-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659935', 'tblTempUsageDetail_20' ) end [2025-03-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659935', 'tblTempVendorCDR_20' ) start [2025-03-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659935', 'tblTempVendorCDR_20' ) end [2025-03-11 22:38:18] Production.INFO: ProcessCDR(1,14659935,1,1,2) [2025-03-11 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659935', 'tblTempUsageDetail_20' ) start [2025-03-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659935', 'tblTempUsageDetail_20' ) end [2025-03-11 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:38:23] Production.INFO: ==14788== Releasing lock... [2025-03-11 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:39:05 [end_date_ymd] => 2025-03-11 22:39:05 [RateCDR] => 1 ) [2025-03-11 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:39:05' and `end` < '2025-03-11 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:39:17] Production.INFO: count ==1333 [2025-03-11 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:39:05 - End Time 2025-03-11 22:39:05 [2025-03-11 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659940', 'tblTempUsageDetail_20' ) start [2025-03-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659940', 'tblTempUsageDetail_20' ) end [2025-03-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659940', 'tblTempVendorCDR_20' ) start [2025-03-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659940', 'tblTempVendorCDR_20' ) end [2025-03-11 22:39:17] Production.INFO: ProcessCDR(1,14659940,1,1,2) [2025-03-11 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659940', 'tblTempUsageDetail_20' ) start [2025-03-11 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659940', 'tblTempUsageDetail_20' ) end [2025-03-11 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:39:20] Production.INFO: ==14865== Releasing lock... [2025-03-11 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:39:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:40:06 [end_date_ymd] => 2025-03-11 22:40:06 [RateCDR] => 1 ) [2025-03-11 22: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-11 19:40:06' and `end` < '2025-03-11 22: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-11 22:40:18] Production.INFO: count ==1310 [2025-03-11 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:40:06 - End Time 2025-03-11 22:40:06 [2025-03-11 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659946', 'tblTempUsageDetail_20' ) start [2025-03-11 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659946', 'tblTempUsageDetail_20' ) end [2025-03-11 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659946', 'tblTempVendorCDR_20' ) start [2025-03-11 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659946', 'tblTempVendorCDR_20' ) end [2025-03-11 22:40:18] Production.INFO: ProcessCDR(1,14659946,1,1,2) [2025-03-11 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659946', 'tblTempUsageDetail_20' ) start [2025-03-11 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659946', 'tblTempUsageDetail_20' ) end [2025-03-11 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:40:22] Production.INFO: ==14945== Releasing lock... [2025-03-11 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-11 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:41:05 [end_date_ymd] => 2025-03-11 22:41:05 [RateCDR] => 1 ) [2025-03-11 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:41:05' and `end` < '2025-03-11 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:41:17] Production.INFO: count ==1256 [2025-03-11 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:41:05 - End Time 2025-03-11 22:41:05 [2025-03-11 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659951', 'tblTempUsageDetail_20' ) start [2025-03-11 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659951', 'tblTempUsageDetail_20' ) end [2025-03-11 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659951', 'tblTempVendorCDR_20' ) start [2025-03-11 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659951', 'tblTempVendorCDR_20' ) end [2025-03-11 22:41:17] Production.INFO: ProcessCDR(1,14659951,1,1,2) [2025-03-11 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659951', 'tblTempUsageDetail_20' ) start [2025-03-11 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659951', 'tblTempUsageDetail_20' ) end [2025-03-11 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:41:22] Production.INFO: ==15029== Releasing lock... [2025-03-11 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:42:05 [end_date_ymd] => 2025-03-11 22:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:42:05' and `end` < '2025-03-11 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-11 22:42:18] Production.INFO: count ==1253 [2025-03-11 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:42:05 - End Time 2025-03-11 22:42:05 [2025-03-11 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659956', 'tblTempUsageDetail_20' ) start [2025-03-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659956', 'tblTempUsageDetail_20' ) end [2025-03-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659956', 'tblTempVendorCDR_20' ) start [2025-03-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659956', 'tblTempVendorCDR_20' ) end [2025-03-11 22:42:18] Production.INFO: ProcessCDR(1,14659956,1,1,2) [2025-03-11 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659956', 'tblTempUsageDetail_20' ) start [2025-03-11 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659956', 'tblTempUsageDetail_20' ) end [2025-03-11 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:42:23] Production.INFO: ==15112== Releasing lock... [2025-03-11 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:42:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:43:05 [end_date_ymd] => 2025-03-11 22:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:43:05' and `end` < '2025-03-11 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-11 22:43:17] Production.INFO: count ==1249 [2025-03-11 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:43:05 - End Time 2025-03-11 22:43:05 [2025-03-11 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659961', 'tblTempUsageDetail_20' ) start [2025-03-11 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659961', 'tblTempUsageDetail_20' ) end [2025-03-11 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659961', 'tblTempVendorCDR_20' ) start [2025-03-11 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659961', 'tblTempVendorCDR_20' ) end [2025-03-11 22:43:17] Production.INFO: ProcessCDR(1,14659961,1,1,2) [2025-03-11 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659961', 'tblTempUsageDetail_20' ) start [2025-03-11 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659961', 'tblTempUsageDetail_20' ) end [2025-03-11 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:43:20] Production.INFO: ==15190== Releasing lock... [2025-03-11 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:43:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:44:05 [end_date_ymd] => 2025-03-11 22:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:44:05' and `end` < '2025-03-11 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-11 22:44:17] Production.INFO: count ==1252 [2025-03-11 22:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:44:05 - End Time 2025-03-11 22:44:05 [2025-03-11 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659966', 'tblTempUsageDetail_20' ) start [2025-03-11 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659966', 'tblTempUsageDetail_20' ) end [2025-03-11 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659966', 'tblTempVendorCDR_20' ) start [2025-03-11 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659966', 'tblTempVendorCDR_20' ) end [2025-03-11 22:44:17] Production.INFO: ProcessCDR(1,14659966,1,1,2) [2025-03-11 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659966', 'tblTempUsageDetail_20' ) start [2025-03-11 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659966', 'tblTempUsageDetail_20' ) end [2025-03-11 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:44:21] Production.INFO: ==15271== Releasing lock... [2025-03-11 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:44:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:45:05 [end_date_ymd] => 2025-03-11 22:45:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:45:05' and `end` < '2025-03-11 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-11 22:45:17] Production.INFO: count ==1252 [2025-03-11 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:45:05 - End Time 2025-03-11 22:45:05 [2025-03-11 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659971', 'tblTempUsageDetail_20' ) start [2025-03-11 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659971', 'tblTempUsageDetail_20' ) end [2025-03-11 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659971', 'tblTempVendorCDR_20' ) start [2025-03-11 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659971', 'tblTempVendorCDR_20' ) end [2025-03-11 22:45:17] Production.INFO: ProcessCDR(1,14659971,1,1,2) [2025-03-11 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659971', 'tblTempUsageDetail_20' ) start [2025-03-11 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659971', 'tblTempUsageDetail_20' ) end [2025-03-11 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:45:21] Production.INFO: ==15354== Releasing lock... [2025-03-11 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:46:06 [end_date_ymd] => 2025-03-11 22:46:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:46:06' and `end` < '2025-03-11 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-11 22:46:18] Production.INFO: count ==1250 [2025-03-11 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:46:06 - End Time 2025-03-11 22:46:06 [2025-03-11 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659976', 'tblTempUsageDetail_20' ) start [2025-03-11 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659976', 'tblTempUsageDetail_20' ) end [2025-03-11 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659976', 'tblTempVendorCDR_20' ) start [2025-03-11 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659976', 'tblTempVendorCDR_20' ) end [2025-03-11 22:46:18] Production.INFO: ProcessCDR(1,14659976,1,1,2) [2025-03-11 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659976', 'tblTempUsageDetail_20' ) start [2025-03-11 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659976', 'tblTempUsageDetail_20' ) end [2025-03-11 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:46:21] Production.INFO: ==15473== Releasing lock... [2025-03-11 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:46:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-11 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:47:05 [end_date_ymd] => 2025-03-11 22:47:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:47:05' and `end` < '2025-03-11 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-11 22:47:17] Production.INFO: count ==1246 [2025-03-11 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:47:05 - End Time 2025-03-11 22:47:05 [2025-03-11 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659981', 'tblTempUsageDetail_20' ) start [2025-03-11 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659981', 'tblTempUsageDetail_20' ) end [2025-03-11 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659981', 'tblTempVendorCDR_20' ) start [2025-03-11 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659981', 'tblTempVendorCDR_20' ) end [2025-03-11 22:47:17] Production.INFO: ProcessCDR(1,14659981,1,1,2) [2025-03-11 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659981', 'tblTempUsageDetail_20' ) start [2025-03-11 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659981', 'tblTempUsageDetail_20' ) end [2025-03-11 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:47:21] Production.INFO: ==15551== Releasing lock... [2025-03-11 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:47:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:48:05 [end_date_ymd] => 2025-03-11 22:48:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:48:05' and `end` < '2025-03-11 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-11 22:48:17] Production.INFO: count ==1239 [2025-03-11 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:48:05 - End Time 2025-03-11 22:48:05 [2025-03-11 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659986', 'tblTempUsageDetail_20' ) start [2025-03-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659986', 'tblTempUsageDetail_20' ) end [2025-03-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659986', 'tblTempVendorCDR_20' ) start [2025-03-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659986', 'tblTempVendorCDR_20' ) end [2025-03-11 22:48:18] Production.INFO: ProcessCDR(1,14659986,1,1,2) [2025-03-11 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659986', 'tblTempUsageDetail_20' ) start [2025-03-11 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659986', 'tblTempUsageDetail_20' ) end [2025-03-11 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:48:21] Production.INFO: ==15640== Releasing lock... [2025-03-11 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:48:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:49:05 [end_date_ymd] => 2025-03-11 22:49:05 [RateCDR] => 1 ) [2025-03-11 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:49:05' and `end` < '2025-03-11 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:49:17] Production.INFO: count ==1237 [2025-03-11 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:49:05 - End Time 2025-03-11 22:49:05 [2025-03-11 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659991', 'tblTempUsageDetail_20' ) start [2025-03-11 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659991', 'tblTempUsageDetail_20' ) end [2025-03-11 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659991', 'tblTempVendorCDR_20' ) start [2025-03-11 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659991', 'tblTempVendorCDR_20' ) end [2025-03-11 22:49:17] Production.INFO: ProcessCDR(1,14659991,1,1,2) [2025-03-11 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659991', 'tblTempUsageDetail_20' ) start [2025-03-11 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659991', 'tblTempUsageDetail_20' ) end [2025-03-11 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:49:22] Production.INFO: ==15722== Releasing lock... [2025-03-11 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:49:22] Production.INFO: 37 MB #Memory Used# [2025-03-11 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:50:06 [end_date_ymd] => 2025-03-11 22:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 19:50:06' and `end` < '2025-03-11 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-11 22:50:18] Production.INFO: count ==1239 [2025-03-11 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:50:06 - End Time 2025-03-11 22:50:06 [2025-03-11 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659997', 'tblTempUsageDetail_20' ) start [2025-03-11 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14659997', 'tblTempUsageDetail_20' ) end [2025-03-11 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659997', 'tblTempVendorCDR_20' ) start [2025-03-11 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14659997', 'tblTempVendorCDR_20' ) end [2025-03-11 22:50:18] Production.INFO: ProcessCDR(1,14659997,1,1,2) [2025-03-11 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14659997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14659997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14659997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14659997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659997', 'tblTempUsageDetail_20' ) start [2025-03-11 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14659997', 'tblTempUsageDetail_20' ) end [2025-03-11 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:50:22] Production.INFO: ==15802== Releasing lock... [2025-03-11 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:50:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:51:05 [end_date_ymd] => 2025-03-11 22:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:51:05' and `end` < '2025-03-11 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-11 22:51:17] Production.INFO: count ==1223 [2025-03-11 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:51:05 - End Time 2025-03-11 22:51:05 [2025-03-11 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660002', 'tblTempUsageDetail_20' ) start [2025-03-11 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660002', 'tblTempUsageDetail_20' ) end [2025-03-11 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660002', 'tblTempVendorCDR_20' ) start [2025-03-11 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660002', 'tblTempVendorCDR_20' ) end [2025-03-11 22:51:17] Production.INFO: ProcessCDR(1,14660002,1,1,2) [2025-03-11 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660002', 'tblTempUsageDetail_20' ) start [2025-03-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660002', 'tblTempUsageDetail_20' ) end [2025-03-11 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:51:22] Production.INFO: ==15881== Releasing lock... [2025-03-11 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:51:22] Production.INFO: 37 MB #Memory Used# [2025-03-11 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:52:05 [end_date_ymd] => 2025-03-11 22:52:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:52:05' and `end` < '2025-03-11 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-11 22:52:18] Production.INFO: count ==1224 [2025-03-11 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:52:05 - End Time 2025-03-11 22:52:05 [2025-03-11 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660007', 'tblTempUsageDetail_20' ) start [2025-03-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660007', 'tblTempUsageDetail_20' ) end [2025-03-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660007', 'tblTempVendorCDR_20' ) start [2025-03-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660007', 'tblTempVendorCDR_20' ) end [2025-03-11 22:52:18] Production.INFO: ProcessCDR(1,14660007,1,1,2) [2025-03-11 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660007', 'tblTempUsageDetail_20' ) start [2025-03-11 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660007', 'tblTempUsageDetail_20' ) end [2025-03-11 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:52:22] Production.INFO: ==15959== Releasing lock... [2025-03-11 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:53:05 [end_date_ymd] => 2025-03-11 22:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:53:05' and `end` < '2025-03-11 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-11 22:53:17] Production.INFO: count ==1220 [2025-03-11 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:53:05 - End Time 2025-03-11 22:53:05 [2025-03-11 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660012', 'tblTempUsageDetail_20' ) start [2025-03-11 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660012', 'tblTempUsageDetail_20' ) end [2025-03-11 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660012', 'tblTempVendorCDR_20' ) start [2025-03-11 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660012', 'tblTempVendorCDR_20' ) end [2025-03-11 22:53:17] Production.INFO: ProcessCDR(1,14660012,1,1,2) [2025-03-11 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660012', 'tblTempUsageDetail_20' ) start [2025-03-11 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660012', 'tblTempUsageDetail_20' ) end [2025-03-11 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:53:20] Production.INFO: ==16037== Releasing lock... [2025-03-11 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:53:20] Production.INFO: 37 MB #Memory Used# [2025-03-11 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:54:05 [end_date_ymd] => 2025-03-11 22:54:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:54:05' and `end` < '2025-03-11 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-11 22:54:17] Production.INFO: count ==1213 [2025-03-11 22:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:54:05 - End Time 2025-03-11 22:54:05 [2025-03-11 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660017', 'tblTempUsageDetail_20' ) start [2025-03-11 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660017', 'tblTempUsageDetail_20' ) end [2025-03-11 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660017', 'tblTempVendorCDR_20' ) start [2025-03-11 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660017', 'tblTempVendorCDR_20' ) end [2025-03-11 22:54:17] Production.INFO: ProcessCDR(1,14660017,1,1,2) [2025-03-11 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660017', 'tblTempUsageDetail_20' ) start [2025-03-11 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660017', 'tblTempUsageDetail_20' ) end [2025-03-11 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:54:21] Production.INFO: ==16113== Releasing lock... [2025-03-11 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:54:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-11 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:55:05 [end_date_ymd] => 2025-03-11 22:55:05 [RateCDR] => 1 ) [2025-03-11 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:55:05' and `end` < '2025-03-11 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:55:17] Production.INFO: count ==1211 [2025-03-11 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:55:05 - End Time 2025-03-11 22:55:05 [2025-03-11 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660022', 'tblTempUsageDetail_20' ) start [2025-03-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660022', 'tblTempUsageDetail_20' ) end [2025-03-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660022', 'tblTempVendorCDR_20' ) start [2025-03-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660022', 'tblTempVendorCDR_20' ) end [2025-03-11 22:55:18] Production.INFO: ProcessCDR(1,14660022,1,1,2) [2025-03-11 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660022', 'tblTempUsageDetail_20' ) start [2025-03-11 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660022', 'tblTempUsageDetail_20' ) end [2025-03-11 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:55:21] Production.INFO: ==16190== Releasing lock... [2025-03-11 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:55:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:56:05 [end_date_ymd] => 2025-03-11 22:56:05 [RateCDR] => 1 ) [2025-03-11 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:56:05' and `end` < '2025-03-11 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:56:17] Production.INFO: count ==1207 [2025-03-11 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:56:05 - End Time 2025-03-11 22:56:05 [2025-03-11 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660027', 'tblTempUsageDetail_20' ) start [2025-03-11 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660027', 'tblTempUsageDetail_20' ) end [2025-03-11 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660027', 'tblTempVendorCDR_20' ) start [2025-03-11 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660027', 'tblTempVendorCDR_20' ) end [2025-03-11 22:56:17] Production.INFO: ProcessCDR(1,14660027,1,1,2) [2025-03-11 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660027', 'tblTempUsageDetail_20' ) start [2025-03-11 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660027', 'tblTempUsageDetail_20' ) end [2025-03-11 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:56:21] Production.INFO: ==16270== Releasing lock... [2025-03-11 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:56:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:57:06 [end_date_ymd] => 2025-03-11 22:57:06 [RateCDR] => 1 ) [2025-03-11 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:57:06' and `end` < '2025-03-11 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:57:18] Production.INFO: count ==1205 [2025-03-11 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-11 19:57:06 - End Time 2025-03-11 22:57:06 [2025-03-11 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660032', 'tblTempUsageDetail_20' ) start [2025-03-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660032', 'tblTempUsageDetail_20' ) end [2025-03-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660032', 'tblTempVendorCDR_20' ) start [2025-03-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660032', 'tblTempVendorCDR_20' ) end [2025-03-11 22:57:18] Production.INFO: ProcessCDR(1,14660032,1,1,2) [2025-03-11 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660032', 'tblTempUsageDetail_20' ) start [2025-03-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660032', 'tblTempUsageDetail_20' ) end [2025-03-11 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:57:21] Production.INFO: ==16348== Releasing lock... [2025-03-11 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:57:21] Production.INFO: 37 MB #Memory Used# [2025-03-11 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:58:05 [end_date_ymd] => 2025-03-11 22:58:05 [RateCDR] => 1 ) [2025-03-11 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 19:58:05' and `end` < '2025-03-11 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 22:58:17] Production.INFO: count ==1205 [2025-03-11 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:58:05 - End Time 2025-03-11 22:58:05 [2025-03-11 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660037', 'tblTempUsageDetail_20' ) start [2025-03-11 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660037', 'tblTempUsageDetail_20' ) end [2025-03-11 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660037', 'tblTempVendorCDR_20' ) start [2025-03-11 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660037', 'tblTempVendorCDR_20' ) end [2025-03-11 22:58:17] Production.INFO: ProcessCDR(1,14660037,1,1,2) [2025-03-11 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660037', 'tblTempUsageDetail_20' ) start [2025-03-11 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660037', 'tblTempUsageDetail_20' ) end [2025-03-11 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:58:21] Production.INFO: ==16424== Releasing lock... [2025-03-11 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:58:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 19:59:05 [end_date_ymd] => 2025-03-11 22:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 19:59:05' and `end` < '2025-03-11 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-11 22:59:17] Production.INFO: count ==1205 [2025-03-11 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 19:59:05 - End Time 2025-03-11 22:59:05 [2025-03-11 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660042', 'tblTempUsageDetail_20' ) start [2025-03-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660042', 'tblTempUsageDetail_20' ) end [2025-03-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660042', 'tblTempVendorCDR_20' ) start [2025-03-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660042', 'tblTempVendorCDR_20' ) end [2025-03-11 22:59:18] Production.INFO: ProcessCDR(1,14660042,1,1,2) [2025-03-11 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660042', 'tblTempUsageDetail_20' ) start [2025-03-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660042', 'tblTempUsageDetail_20' ) end [2025-03-11 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 22:59:21] Production.INFO: ==16507== Releasing lock... [2025-03-11 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 22:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:00:06 [end_date_ymd] => 2025-03-11 23:00:06 [RateCDR] => 1 ) [2025-03-11 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:00:06' and `end` < '2025-03-11 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:00:18] Production.INFO: count ==1202 [2025-03-11 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:00:06 - End Time 2025-03-11 23:00:06 [2025-03-11 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660047', 'tblTempUsageDetail_20' ) start [2025-03-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660047', 'tblTempUsageDetail_20' ) end [2025-03-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660047', 'tblTempVendorCDR_20' ) start [2025-03-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660047', 'tblTempVendorCDR_20' ) end [2025-03-11 23:00:18] Production.INFO: ProcessCDR(1,14660047,1,1,2) [2025-03-11 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660047', 'tblTempUsageDetail_20' ) start [2025-03-11 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660047', 'tblTempUsageDetail_20' ) end [2025-03-11 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:00:22] Production.INFO: ==16590== Releasing lock... [2025-03-11 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:00:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:01:05 [end_date_ymd] => 2025-03-11 23:01:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:01:05' and `end` < '2025-03-11 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-11 23:01:17] Production.INFO: count ==1165 [2025-03-11 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:01:05 - End Time 2025-03-11 23:01:05 [2025-03-11 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660053', 'tblTempUsageDetail_20' ) start [2025-03-11 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660053', 'tblTempUsageDetail_20' ) end [2025-03-11 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660053', 'tblTempVendorCDR_20' ) start [2025-03-11 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660053', 'tblTempVendorCDR_20' ) end [2025-03-11 23:01:18] Production.INFO: ProcessCDR(1,14660053,1,1,2) [2025-03-11 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660053', 'tblTempUsageDetail_20' ) start [2025-03-11 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660053', 'tblTempUsageDetail_20' ) end [2025-03-11 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:01:21] Production.INFO: ==16725== Releasing lock... [2025-03-11 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:01:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:02:05 [end_date_ymd] => 2025-03-11 23:02:05 [RateCDR] => 1 ) [2025-03-11 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:02:05' and `end` < '2025-03-11 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:02:17] Production.INFO: count ==1159 [2025-03-11 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:02:05 - End Time 2025-03-11 23:02:05 [2025-03-11 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660058', 'tblTempUsageDetail_20' ) start [2025-03-11 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660058', 'tblTempUsageDetail_20' ) end [2025-03-11 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660058', 'tblTempVendorCDR_20' ) start [2025-03-11 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660058', 'tblTempVendorCDR_20' ) end [2025-03-11 23:02:17] Production.INFO: ProcessCDR(1,14660058,1,1,2) [2025-03-11 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660058', 'tblTempUsageDetail_20' ) start [2025-03-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660058', 'tblTempUsageDetail_20' ) end [2025-03-11 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:02:21] Production.INFO: ==16876== Releasing lock... [2025-03-11 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:02:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:03:06 [end_date_ymd] => 2025-03-11 23:03:06 [RateCDR] => 1 ) [2025-03-11 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:03:06' and `end` < '2025-03-11 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:03:18] Production.INFO: count ==1157 [2025-03-11 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:03:06 - End Time 2025-03-11 23:03:06 [2025-03-11 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660063', 'tblTempUsageDetail_20' ) start [2025-03-11 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660063', 'tblTempUsageDetail_20' ) end [2025-03-11 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660063', 'tblTempVendorCDR_20' ) start [2025-03-11 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660063', 'tblTempVendorCDR_20' ) end [2025-03-11 23:03:18] Production.INFO: ProcessCDR(1,14660063,1,1,2) [2025-03-11 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660063', 'tblTempUsageDetail_20' ) start [2025-03-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660063', 'tblTempUsageDetail_20' ) end [2025-03-11 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:03:22] Production.INFO: ==16951== Releasing lock... [2025-03-11 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:03:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:04:05 [end_date_ymd] => 2025-03-11 23:04:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:04:05' and `end` < '2025-03-11 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-11 23:04:17] Production.INFO: count ==1154 [2025-03-11 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:04:05 - End Time 2025-03-11 23:04:05 [2025-03-11 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660068', 'tblTempUsageDetail_20' ) start [2025-03-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660068', 'tblTempUsageDetail_20' ) end [2025-03-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660068', 'tblTempVendorCDR_20' ) start [2025-03-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660068', 'tblTempVendorCDR_20' ) end [2025-03-11 23:04:18] Production.INFO: ProcessCDR(1,14660068,1,1,2) [2025-03-11 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660068', 'tblTempUsageDetail_20' ) start [2025-03-11 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660068', 'tblTempUsageDetail_20' ) end [2025-03-11 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:04:21] Production.INFO: ==17026== Releasing lock... [2025-03-11 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:04:21] Production.INFO: 37 MB #Memory Used# [2025-03-11 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:05:05 [end_date_ymd] => 2025-03-11 23:05:05 [RateCDR] => 1 ) [2025-03-11 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:05:05' and `end` < '2025-03-11 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:05:18] Production.INFO: count ==1152 [2025-03-11 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:05:05 - End Time 2025-03-11 23:05:05 [2025-03-11 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660073', 'tblTempUsageDetail_20' ) start [2025-03-11 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660073', 'tblTempUsageDetail_20' ) end [2025-03-11 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660073', 'tblTempVendorCDR_20' ) start [2025-03-11 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660073', 'tblTempVendorCDR_20' ) end [2025-03-11 23:05:18] Production.INFO: ProcessCDR(1,14660073,1,1,2) [2025-03-11 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660073', 'tblTempUsageDetail_20' ) start [2025-03-11 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660073', 'tblTempUsageDetail_20' ) end [2025-03-11 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:05:21] Production.INFO: ==17186== Releasing lock... [2025-03-11 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:05:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:06:05 [end_date_ymd] => 2025-03-11 23:06:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:06:05' and `end` < '2025-03-11 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-11 23:06:17] Production.INFO: count ==1152 [2025-03-11 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:06:05 - End Time 2025-03-11 23:06:05 [2025-03-11 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660078', 'tblTempUsageDetail_20' ) start [2025-03-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660078', 'tblTempUsageDetail_20' ) end [2025-03-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660078', 'tblTempVendorCDR_20' ) start [2025-03-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660078', 'tblTempVendorCDR_20' ) end [2025-03-11 23:06:18] Production.INFO: ProcessCDR(1,14660078,1,1,2) [2025-03-11 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660078', 'tblTempUsageDetail_20' ) start [2025-03-11 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660078', 'tblTempUsageDetail_20' ) end [2025-03-11 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:06:21] Production.INFO: ==17263== Releasing lock... [2025-03-11 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:06:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:07:05 [end_date_ymd] => 2025-03-11 23:07:05 [RateCDR] => 1 ) [2025-03-11 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:07:05' and `end` < '2025-03-11 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:07:18] Production.INFO: count ==1156 [2025-03-11 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:07:05 - End Time 2025-03-11 23:07:05 [2025-03-11 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660083', 'tblTempUsageDetail_20' ) start [2025-03-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660083', 'tblTempUsageDetail_20' ) end [2025-03-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660083', 'tblTempVendorCDR_20' ) start [2025-03-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660083', 'tblTempVendorCDR_20' ) end [2025-03-11 23:07:18] Production.INFO: ProcessCDR(1,14660083,1,1,2) [2025-03-11 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660083', 'tblTempUsageDetail_20' ) start [2025-03-11 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660083', 'tblTempUsageDetail_20' ) end [2025-03-11 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:07:21] Production.INFO: ==17335== Releasing lock... [2025-03-11 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:07:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:08:06 [end_date_ymd] => 2025-03-11 23:08:06 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:08:06' and `end` < '2025-03-11 23: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-11 23:08:18] Production.INFO: count ==1155 [2025-03-11 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:08:06 - End Time 2025-03-11 23:08:06 [2025-03-11 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660088', 'tblTempUsageDetail_20' ) start [2025-03-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660088', 'tblTempUsageDetail_20' ) end [2025-03-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660088', 'tblTempVendorCDR_20' ) start [2025-03-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660088', 'tblTempVendorCDR_20' ) end [2025-03-11 23:08:18] Production.INFO: ProcessCDR(1,14660088,1,1,2) [2025-03-11 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660088', 'tblTempUsageDetail_20' ) start [2025-03-11 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660088', 'tblTempUsageDetail_20' ) end [2025-03-11 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:08:22] Production.INFO: ==17489== Releasing lock... [2025-03-11 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:08:22] Production.INFO: 37 MB #Memory Used# [2025-03-11 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:09:05 [end_date_ymd] => 2025-03-11 23:09:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:09:05' and `end` < '2025-03-11 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-11 23:09:17] Production.INFO: count ==1149 [2025-03-11 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:09:05 - End Time 2025-03-11 23:09:05 [2025-03-11 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660093', 'tblTempUsageDetail_20' ) start [2025-03-11 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660093', 'tblTempUsageDetail_20' ) end [2025-03-11 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660093', 'tblTempVendorCDR_20' ) start [2025-03-11 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660093', 'tblTempVendorCDR_20' ) end [2025-03-11 23:09:17] Production.INFO: ProcessCDR(1,14660093,1,1,2) [2025-03-11 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660093', 'tblTempUsageDetail_20' ) start [2025-03-11 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660093', 'tblTempUsageDetail_20' ) end [2025-03-11 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:09:20] Production.INFO: ==17561== Releasing lock... [2025-03-11 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:09:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-11 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:10:05 [end_date_ymd] => 2025-03-11 23:10:05 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:10:05' and `end` < '2025-03-11 23: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-11 23:10:18] Production.INFO: count ==1141 [2025-03-11 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:10:05 - End Time 2025-03-11 23:10:05 [2025-03-11 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660099', 'tblTempUsageDetail_20' ) start [2025-03-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660099', 'tblTempUsageDetail_20' ) end [2025-03-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660099', 'tblTempVendorCDR_20' ) start [2025-03-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660099', 'tblTempVendorCDR_20' ) end [2025-03-11 23:10:18] Production.INFO: ProcessCDR(1,14660099,1,1,2) [2025-03-11 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660099', 'tblTempUsageDetail_20' ) start [2025-03-11 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660099', 'tblTempUsageDetail_20' ) end [2025-03-11 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:10:21] Production.INFO: ==17635== Releasing lock... [2025-03-11 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:10:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:11:05 [end_date_ymd] => 2025-03-11 23:11:05 [RateCDR] => 1 ) [2025-03-11 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:11:05' and `end` < '2025-03-11 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:11:17] Production.INFO: count ==1115 [2025-03-11 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:11:05 - End Time 2025-03-11 23:11:05 [2025-03-11 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660104', 'tblTempUsageDetail_20' ) start [2025-03-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660104', 'tblTempUsageDetail_20' ) end [2025-03-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660104', 'tblTempVendorCDR_20' ) start [2025-03-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660104', 'tblTempVendorCDR_20' ) end [2025-03-11 23:11:18] Production.INFO: ProcessCDR(1,14660104,1,1,2) [2025-03-11 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660104', 'tblTempUsageDetail_20' ) start [2025-03-11 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660104', 'tblTempUsageDetail_20' ) end [2025-03-11 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:11:21] Production.INFO: ==17715== Releasing lock... [2025-03-11 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:11:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:12:06 [end_date_ymd] => 2025-03-11 23:12:06 [RateCDR] => 1 ) [2025-03-11 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:12:06' and `end` < '2025-03-11 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:12:18] Production.INFO: count ==1114 [2025-03-11 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:12:06 - End Time 2025-03-11 23:12:06 [2025-03-11 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660109', 'tblTempUsageDetail_20' ) start [2025-03-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660109', 'tblTempUsageDetail_20' ) end [2025-03-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660109', 'tblTempVendorCDR_20' ) start [2025-03-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660109', 'tblTempVendorCDR_20' ) end [2025-03-11 23:12:18] Production.INFO: ProcessCDR(1,14660109,1,1,2) [2025-03-11 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660109', 'tblTempUsageDetail_20' ) start [2025-03-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660109', 'tblTempUsageDetail_20' ) end [2025-03-11 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:12:21] Production.INFO: ==17867== Releasing lock... [2025-03-11 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:12:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:13:05 [end_date_ymd] => 2025-03-11 23:13:05 [RateCDR] => 1 ) [2025-03-11 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:13:05' and `end` < '2025-03-11 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:13:17] Production.INFO: count ==1114 [2025-03-11 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:13:05 - End Time 2025-03-11 23:13:05 [2025-03-11 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660114', 'tblTempUsageDetail_20' ) start [2025-03-11 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660114', 'tblTempUsageDetail_20' ) end [2025-03-11 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660114', 'tblTempVendorCDR_20' ) start [2025-03-11 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660114', 'tblTempVendorCDR_20' ) end [2025-03-11 23:13:17] Production.INFO: ProcessCDR(1,14660114,1,1,2) [2025-03-11 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660114', 'tblTempUsageDetail_20' ) start [2025-03-11 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660114', 'tblTempUsageDetail_20' ) end [2025-03-11 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:13:21] Production.INFO: ==17943== Releasing lock... [2025-03-11 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:14:05 [end_date_ymd] => 2025-03-11 23:14:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:14:05' and `end` < '2025-03-11 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-11 23:14:17] Production.INFO: count ==1114 [2025-03-11 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:14:05 - End Time 2025-03-11 23:14:05 [2025-03-11 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660119', 'tblTempUsageDetail_20' ) start [2025-03-11 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660119', 'tblTempUsageDetail_20' ) end [2025-03-11 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660119', 'tblTempVendorCDR_20' ) start [2025-03-11 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660119', 'tblTempVendorCDR_20' ) end [2025-03-11 23:14:17] Production.INFO: ProcessCDR(1,14660119,1,1,2) [2025-03-11 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660119', 'tblTempUsageDetail_20' ) start [2025-03-11 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660119', 'tblTempUsageDetail_20' ) end [2025-03-11 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:14:21] Production.INFO: ==18019== Releasing lock... [2025-03-11 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:14:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:15:05 [end_date_ymd] => 2025-03-11 23:15:05 [RateCDR] => 1 ) [2025-03-11 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:15:05' and `end` < '2025-03-11 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:15:17] Production.INFO: count ==1110 [2025-03-11 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:15:05 - End Time 2025-03-11 23:15:05 [2025-03-11 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660124', 'tblTempUsageDetail_20' ) start [2025-03-11 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660124', 'tblTempUsageDetail_20' ) end [2025-03-11 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660124', 'tblTempVendorCDR_20' ) start [2025-03-11 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660124', 'tblTempVendorCDR_20' ) end [2025-03-11 23:15:17] Production.INFO: ProcessCDR(1,14660124,1,1,2) [2025-03-11 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660124', 'tblTempUsageDetail_20' ) start [2025-03-11 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660124', 'tblTempUsageDetail_20' ) end [2025-03-11 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:15:21] Production.INFO: ==18176== Releasing lock... [2025-03-11 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:15:21] Production.INFO: 36 MB #Memory Used# [2025-03-11 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:16:05 [end_date_ymd] => 2025-03-11 23:16:05 [RateCDR] => 1 ) [2025-03-11 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:16:05' and `end` < '2025-03-11 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:16:17] Production.INFO: count ==1106 [2025-03-11 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:16:05 - End Time 2025-03-11 23:16:05 [2025-03-11 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660129', 'tblTempUsageDetail_20' ) start [2025-03-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660129', 'tblTempUsageDetail_20' ) end [2025-03-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660129', 'tblTempVendorCDR_20' ) start [2025-03-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660129', 'tblTempVendorCDR_20' ) end [2025-03-11 23:16:18] Production.INFO: ProcessCDR(1,14660129,1,1,2) [2025-03-11 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660129', 'tblTempUsageDetail_20' ) start [2025-03-11 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660129', 'tblTempUsageDetail_20' ) end [2025-03-11 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:16:21] Production.INFO: ==18259== Releasing lock... [2025-03-11 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:16:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:17:05 [end_date_ymd] => 2025-03-11 23:17:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:17:05' and `end` < '2025-03-11 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-11 23:17:17] Production.INFO: count ==1107 [2025-03-11 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:17:05 - End Time 2025-03-11 23:17:05 [2025-03-11 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660134', 'tblTempUsageDetail_20' ) start [2025-03-11 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660134', 'tblTempUsageDetail_20' ) end [2025-03-11 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660134', 'tblTempVendorCDR_20' ) start [2025-03-11 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660134', 'tblTempVendorCDR_20' ) end [2025-03-11 23:17:17] Production.INFO: ProcessCDR(1,14660134,1,1,2) [2025-03-11 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660134', 'tblTempUsageDetail_20' ) start [2025-03-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660134', 'tblTempUsageDetail_20' ) end [2025-03-11 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:17:22] Production.INFO: ==18374== Releasing lock... [2025-03-11 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:17:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:18:06 [end_date_ymd] => 2025-03-11 23:18:06 [RateCDR] => 1 ) [2025-03-11 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:18:06' and `end` < '2025-03-11 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:18:18] Production.INFO: count ==1108 [2025-03-11 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:18:06 - End Time 2025-03-11 23:18:06 [2025-03-11 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660139', 'tblTempUsageDetail_20' ) start [2025-03-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660139', 'tblTempUsageDetail_20' ) end [2025-03-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660139', 'tblTempVendorCDR_20' ) start [2025-03-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660139', 'tblTempVendorCDR_20' ) end [2025-03-11 23:18:18] Production.INFO: ProcessCDR(1,14660139,1,1,2) [2025-03-11 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660139', 'tblTempUsageDetail_20' ) start [2025-03-11 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660139', 'tblTempUsageDetail_20' ) end [2025-03-11 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:18:23] Production.INFO: ==18451== Releasing lock... [2025-03-11 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:18:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:19:05 [end_date_ymd] => 2025-03-11 23:19:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:19:05' and `end` < '2025-03-11 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-11 23:19:17] Production.INFO: count ==1108 [2025-03-11 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:19:05 - End Time 2025-03-11 23:19:05 [2025-03-11 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660144', 'tblTempUsageDetail_20' ) start [2025-03-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660144', 'tblTempUsageDetail_20' ) end [2025-03-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660144', 'tblTempVendorCDR_20' ) start [2025-03-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660144', 'tblTempVendorCDR_20' ) end [2025-03-11 23:19:17] Production.INFO: ProcessCDR(1,14660144,1,1,2) [2025-03-11 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660144', 'tblTempUsageDetail_20' ) start [2025-03-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660144', 'tblTempUsageDetail_20' ) end [2025-03-11 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:19:21] Production.INFO: ==18527== Releasing lock... [2025-03-11 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:19:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-11 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:20:06 [end_date_ymd] => 2025-03-11 23:20:06 [RateCDR] => 1 ) [2025-03-11 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:20:06' and `end` < '2025-03-11 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:20:19] Production.INFO: count ==1097 [2025-03-11 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-11 20:20:06 - End Time 2025-03-11 23:20:06 [2025-03-11 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660150', 'tblTempUsageDetail_20' ) start [2025-03-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660150', 'tblTempUsageDetail_20' ) end [2025-03-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660150', 'tblTempVendorCDR_20' ) start [2025-03-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660150', 'tblTempVendorCDR_20' ) end [2025-03-11 23:20:19] Production.INFO: ProcessCDR(1,14660150,1,1,2) [2025-03-11 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660150', 'tblTempUsageDetail_20' ) start [2025-03-11 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660150', 'tblTempUsageDetail_20' ) end [2025-03-11 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:20:22] Production.INFO: ==18600== Releasing lock... [2025-03-11 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:20:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-11 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:21:05 [end_date_ymd] => 2025-03-11 23:21:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:21:05' and `end` < '2025-03-11 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-11 23:21:17] Production.INFO: count ==1041 [2025-03-11 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:21:05 - End Time 2025-03-11 23:21:05 [2025-03-11 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660155', 'tblTempUsageDetail_20' ) start [2025-03-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660155', 'tblTempUsageDetail_20' ) end [2025-03-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660155', 'tblTempVendorCDR_20' ) start [2025-03-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660155', 'tblTempVendorCDR_20' ) end [2025-03-11 23:21:18] Production.INFO: ProcessCDR(1,14660155,1,1,2) [2025-03-11 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660155', 'tblTempUsageDetail_20' ) start [2025-03-11 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660155', 'tblTempUsageDetail_20' ) end [2025-03-11 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:21:21] Production.INFO: ==18681== Releasing lock... [2025-03-11 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:21:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:22:05 [end_date_ymd] => 2025-03-11 23:22:05 [RateCDR] => 1 ) [2025-03-11 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:22:05' and `end` < '2025-03-11 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:22:18] Production.INFO: count ==1041 [2025-03-11 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:22:05 - End Time 2025-03-11 23:22:05 [2025-03-11 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660160', 'tblTempUsageDetail_20' ) start [2025-03-11 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660160', 'tblTempUsageDetail_20' ) end [2025-03-11 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660160', 'tblTempVendorCDR_20' ) start [2025-03-11 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660160', 'tblTempVendorCDR_20' ) end [2025-03-11 23:22:18] Production.INFO: ProcessCDR(1,14660160,1,1,2) [2025-03-11 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660160', 'tblTempUsageDetail_20' ) start [2025-03-11 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660160', 'tblTempUsageDetail_20' ) end [2025-03-11 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:22:21] Production.INFO: ==18755== Releasing lock... [2025-03-11 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:23:05 [end_date_ymd] => 2025-03-11 23:23:05 [RateCDR] => 1 ) [2025-03-11 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:23:05' and `end` < '2025-03-11 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:23:17] Production.INFO: count ==1039 [2025-03-11 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:23:05 - End Time 2025-03-11 23:23:05 [2025-03-11 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660165', 'tblTempUsageDetail_20' ) start [2025-03-11 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660165', 'tblTempUsageDetail_20' ) end [2025-03-11 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660165', 'tblTempVendorCDR_20' ) start [2025-03-11 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660165', 'tblTempVendorCDR_20' ) end [2025-03-11 23:23:17] Production.INFO: ProcessCDR(1,14660165,1,1,2) [2025-03-11 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660165', 'tblTempUsageDetail_20' ) start [2025-03-11 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660165', 'tblTempUsageDetail_20' ) end [2025-03-11 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:23:21] Production.INFO: ==18834== Releasing lock... [2025-03-11 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:23:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-11 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:24:06 [end_date_ymd] => 2025-03-11 23:24:06 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:24:06' and `end` < '2025-03-11 23: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-11 23:24:18] Production.INFO: count ==1033 [2025-03-11 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:24:06 - End Time 2025-03-11 23:24:06 [2025-03-11 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660170', 'tblTempUsageDetail_20' ) start [2025-03-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660170', 'tblTempUsageDetail_20' ) end [2025-03-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660170', 'tblTempVendorCDR_20' ) start [2025-03-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660170', 'tblTempVendorCDR_20' ) end [2025-03-11 23:24:18] Production.INFO: ProcessCDR(1,14660170,1,1,2) [2025-03-11 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660170', 'tblTempUsageDetail_20' ) start [2025-03-11 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660170', 'tblTempUsageDetail_20' ) end [2025-03-11 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:24:21] Production.INFO: ==18916== Releasing lock... [2025-03-11 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:25:05 [end_date_ymd] => 2025-03-11 23:25:05 [RateCDR] => 1 ) [2025-03-11 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:25:05' and `end` < '2025-03-11 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:25:17] Production.INFO: count ==1027 [2025-03-11 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:25:05 - End Time 2025-03-11 23:25:05 [2025-03-11 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660175', 'tblTempUsageDetail_20' ) start [2025-03-11 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660175', 'tblTempUsageDetail_20' ) end [2025-03-11 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660175', 'tblTempVendorCDR_20' ) start [2025-03-11 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660175', 'tblTempVendorCDR_20' ) end [2025-03-11 23:25:17] Production.INFO: ProcessCDR(1,14660175,1,1,2) [2025-03-11 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660175', 'tblTempUsageDetail_20' ) start [2025-03-11 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660175', 'tblTempUsageDetail_20' ) end [2025-03-11 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:25:20] Production.INFO: ==18988== Releasing lock... [2025-03-11 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:25:20] Production.INFO: 36 MB #Memory Used# [2025-03-11 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:26:05 [end_date_ymd] => 2025-03-11 23:26:05 [RateCDR] => 1 ) [2025-03-11 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:26:05' and `end` < '2025-03-11 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:26:17] Production.INFO: count ==1030 [2025-03-11 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:26:05 - End Time 2025-03-11 23:26:05 [2025-03-11 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660180', 'tblTempUsageDetail_20' ) start [2025-03-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660180', 'tblTempUsageDetail_20' ) end [2025-03-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660180', 'tblTempVendorCDR_20' ) start [2025-03-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660180', 'tblTempVendorCDR_20' ) end [2025-03-11 23:26:18] Production.INFO: ProcessCDR(1,14660180,1,1,2) [2025-03-11 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660180', 'tblTempUsageDetail_20' ) start [2025-03-11 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660180', 'tblTempUsageDetail_20' ) end [2025-03-11 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:26:21] Production.INFO: ==19065== Releasing lock... [2025-03-11 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:26:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:27:05 [end_date_ymd] => 2025-03-11 23:27:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:27:05' and `end` < '2025-03-11 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-11 23:27:17] Production.INFO: count ==1030 [2025-03-11 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:27:05 - End Time 2025-03-11 23:27:05 [2025-03-11 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660185', 'tblTempUsageDetail_20' ) start [2025-03-11 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660185', 'tblTempUsageDetail_20' ) end [2025-03-11 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660185', 'tblTempVendorCDR_20' ) start [2025-03-11 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660185', 'tblTempVendorCDR_20' ) end [2025-03-11 23:27:17] Production.INFO: ProcessCDR(1,14660185,1,1,2) [2025-03-11 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660185', 'tblTempUsageDetail_20' ) start [2025-03-11 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660185', 'tblTempUsageDetail_20' ) end [2025-03-11 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:27:20] Production.INFO: ==19149== Releasing lock... [2025-03-11 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:27:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:28:05 [end_date_ymd] => 2025-03-11 23:28:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:28:05' and `end` < '2025-03-11 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-11 23:28:17] Production.INFO: count ==1038 [2025-03-11 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:28:05 - End Time 2025-03-11 23:28:05 [2025-03-11 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660190', 'tblTempUsageDetail_20' ) start [2025-03-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660190', 'tblTempUsageDetail_20' ) end [2025-03-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660190', 'tblTempVendorCDR_20' ) start [2025-03-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660190', 'tblTempVendorCDR_20' ) end [2025-03-11 23:28:18] Production.INFO: ProcessCDR(1,14660190,1,1,2) [2025-03-11 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660190', 'tblTempUsageDetail_20' ) start [2025-03-11 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660190', 'tblTempUsageDetail_20' ) end [2025-03-11 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:28:21] Production.INFO: ==19225== Releasing lock... [2025-03-11 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-11 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:29:05 [end_date_ymd] => 2025-03-11 23:29:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:29:05' and `end` < '2025-03-11 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-11 23:29:17] Production.INFO: count ==1041 [2025-03-11 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:29:05 - End Time 2025-03-11 23:29:05 [2025-03-11 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660195', 'tblTempUsageDetail_20' ) start [2025-03-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660195', 'tblTempUsageDetail_20' ) end [2025-03-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660195', 'tblTempVendorCDR_20' ) start [2025-03-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660195', 'tblTempVendorCDR_20' ) end [2025-03-11 23:29:17] Production.INFO: ProcessCDR(1,14660195,1,1,2) [2025-03-11 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660195', 'tblTempUsageDetail_20' ) start [2025-03-11 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660195', 'tblTempUsageDetail_20' ) end [2025-03-11 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:29:21] Production.INFO: ==19299== Releasing lock... [2025-03-11 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:29:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:30:06 [end_date_ymd] => 2025-03-11 23:30:06 [RateCDR] => 1 ) [2025-03-11 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-11 20:30:06' and `end` < '2025-03-11 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-11 23:30:18] Production.INFO: count ==1043 [2025-03-11 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-11 20:30:06 - End Time 2025-03-11 23:30:06 [2025-03-11 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660201', 'tblTempUsageDetail_20' ) start [2025-03-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660201', 'tblTempUsageDetail_20' ) end [2025-03-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660201', 'tblTempVendorCDR_20' ) start [2025-03-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660201', 'tblTempVendorCDR_20' ) end [2025-03-11 23:30:19] Production.INFO: ProcessCDR(1,14660201,1,1,2) [2025-03-11 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660201', 'tblTempUsageDetail_20' ) start [2025-03-11 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660201', 'tblTempUsageDetail_20' ) end [2025-03-11 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:30:23] Production.INFO: ==19376== Releasing lock... [2025-03-11 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:30:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:31:04 [end_date_ymd] => 2025-03-11 23:31:04 [RateCDR] => 1 ) [2025-03-11 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:31:04' and `end` < '2025-03-11 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:31:17] Production.INFO: count ==1019 [2025-03-11 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:31:04 - End Time 2025-03-11 23:31:04 [2025-03-11 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660206', 'tblTempUsageDetail_20' ) start [2025-03-11 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660206', 'tblTempUsageDetail_20' ) end [2025-03-11 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660206', 'tblTempVendorCDR_20' ) start [2025-03-11 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660206', 'tblTempVendorCDR_20' ) end [2025-03-11 23:31:17] Production.INFO: ProcessCDR(1,14660206,1,1,2) [2025-03-11 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660206', 'tblTempUsageDetail_20' ) start [2025-03-11 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660206', 'tblTempUsageDetail_20' ) end [2025-03-11 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:31:20] Production.INFO: ==19456== Releasing lock... [2025-03-11 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:31:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:32:05 [end_date_ymd] => 2025-03-11 23:32:05 [RateCDR] => 1 ) [2025-03-11 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:32:05' and `end` < '2025-03-11 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:32:17] Production.INFO: count ==1017 [2025-03-11 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:32:05 - End Time 2025-03-11 23:32:05 [2025-03-11 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660211', 'tblTempUsageDetail_20' ) start [2025-03-11 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660211', 'tblTempUsageDetail_20' ) end [2025-03-11 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660211', 'tblTempVendorCDR_20' ) start [2025-03-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660211', 'tblTempVendorCDR_20' ) end [2025-03-11 23:32:18] Production.INFO: ProcessCDR(1,14660211,1,1,2) [2025-03-11 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660211', 'tblTempUsageDetail_20' ) start [2025-03-11 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660211', 'tblTempUsageDetail_20' ) end [2025-03-11 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:32:22] Production.INFO: ==19571== Releasing lock... [2025-03-11 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:32:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:33:05 [end_date_ymd] => 2025-03-11 23:33:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:33:05' and `end` < '2025-03-11 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-11 23:33:17] Production.INFO: count ==1012 [2025-03-11 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:33:05 - End Time 2025-03-11 23:33:05 [2025-03-11 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660216', 'tblTempUsageDetail_20' ) start [2025-03-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660216', 'tblTempUsageDetail_20' ) end [2025-03-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660216', 'tblTempVendorCDR_20' ) start [2025-03-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660216', 'tblTempVendorCDR_20' ) end [2025-03-11 23:33:18] Production.INFO: ProcessCDR(1,14660216,1,1,2) [2025-03-11 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660216', 'tblTempUsageDetail_20' ) start [2025-03-11 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660216', 'tblTempUsageDetail_20' ) end [2025-03-11 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:33:21] Production.INFO: ==19647== Releasing lock... [2025-03-11 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:33:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:34:05 [end_date_ymd] => 2025-03-11 23:34:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:34:05' and `end` < '2025-03-11 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-11 23:34:17] Production.INFO: count ==999 [2025-03-11 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:34:05 - End Time 2025-03-11 23:34:05 [2025-03-11 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660221', 'tblTempUsageDetail_20' ) start [2025-03-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660221', 'tblTempUsageDetail_20' ) end [2025-03-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660221', 'tblTempVendorCDR_20' ) start [2025-03-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660221', 'tblTempVendorCDR_20' ) end [2025-03-11 23:34:18] Production.INFO: ProcessCDR(1,14660221,1,1,2) [2025-03-11 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660221', 'tblTempUsageDetail_20' ) start [2025-03-11 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660221', 'tblTempUsageDetail_20' ) end [2025-03-11 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:34:22] Production.INFO: ==19725== Releasing lock... [2025-03-11 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:35:05 [end_date_ymd] => 2025-03-11 23:35:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:35:05' and `end` < '2025-03-11 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-11 23:35:17] Production.INFO: count ==999 [2025-03-11 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:35:05 - End Time 2025-03-11 23:35:05 [2025-03-11 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660226', 'tblTempUsageDetail_20' ) start [2025-03-11 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660226', 'tblTempUsageDetail_20' ) end [2025-03-11 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660226', 'tblTempVendorCDR_20' ) start [2025-03-11 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660226', 'tblTempVendorCDR_20' ) end [2025-03-11 23:35:17] Production.INFO: ProcessCDR(1,14660226,1,1,2) [2025-03-11 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660226', 'tblTempUsageDetail_20' ) start [2025-03-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660226', 'tblTempUsageDetail_20' ) end [2025-03-11 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:35:22] Production.INFO: ==19800== Releasing lock... [2025-03-11 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:35:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:36:05 [end_date_ymd] => 2025-03-11 23:36:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:36:05' and `end` < '2025-03-11 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-11 23:36:17] Production.INFO: count ==995 [2025-03-11 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:36:05 - End Time 2025-03-11 23:36:05 [2025-03-11 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660231', 'tblTempUsageDetail_20' ) start [2025-03-11 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660231', 'tblTempUsageDetail_20' ) end [2025-03-11 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660231', 'tblTempVendorCDR_20' ) start [2025-03-11 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660231', 'tblTempVendorCDR_20' ) end [2025-03-11 23:36:17] Production.INFO: ProcessCDR(1,14660231,1,1,2) [2025-03-11 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660231', 'tblTempUsageDetail_20' ) start [2025-03-11 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660231', 'tblTempUsageDetail_20' ) end [2025-03-11 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:36:21] Production.INFO: ==19875== Releasing lock... [2025-03-11 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:36:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-11 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:37:04 [end_date_ymd] => 2025-03-11 23:37:04 [RateCDR] => 1 ) [2025-03-11 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:37:04' and `end` < '2025-03-11 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:37:16] Production.INFO: count ==986 [2025-03-11 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:37:04 - End Time 2025-03-11 23:37:04 [2025-03-11 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660236', 'tblTempUsageDetail_20' ) start [2025-03-11 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660236', 'tblTempUsageDetail_20' ) end [2025-03-11 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660236', 'tblTempVendorCDR_20' ) start [2025-03-11 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660236', 'tblTempVendorCDR_20' ) end [2025-03-11 23:37:17] Production.INFO: ProcessCDR(1,14660236,1,1,2) [2025-03-11 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660236', 'tblTempUsageDetail_20' ) start [2025-03-11 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660236', 'tblTempUsageDetail_20' ) end [2025-03-11 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:37:20] Production.INFO: ==19949== Releasing lock... [2025-03-11 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:37:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:38:05 [end_date_ymd] => 2025-03-11 23:38:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:38:05' and `end` < '2025-03-11 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-11 23:38:17] Production.INFO: count ==988 [2025-03-11 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:38:05 - End Time 2025-03-11 23:38:05 [2025-03-11 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660241', 'tblTempUsageDetail_20' ) start [2025-03-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660241', 'tblTempUsageDetail_20' ) end [2025-03-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660241', 'tblTempVendorCDR_20' ) start [2025-03-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660241', 'tblTempVendorCDR_20' ) end [2025-03-11 23:38:18] Production.INFO: ProcessCDR(1,14660241,1,1,2) [2025-03-11 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660241', 'tblTempUsageDetail_20' ) start [2025-03-11 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660241', 'tblTempUsageDetail_20' ) end [2025-03-11 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:38:21] Production.INFO: ==20025== Releasing lock... [2025-03-11 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:39:06 [end_date_ymd] => 2025-03-11 23:39:06 [RateCDR] => 1 ) [2025-03-11 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-11 20:39:06' and `end` < '2025-03-11 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-11 23:39:18] Production.INFO: count ==985 [2025-03-11 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:39:06 - End Time 2025-03-11 23:39:06 [2025-03-11 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660246', 'tblTempUsageDetail_20' ) start [2025-03-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660246', 'tblTempUsageDetail_20' ) end [2025-03-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660246', 'tblTempVendorCDR_20' ) start [2025-03-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660246', 'tblTempVendorCDR_20' ) end [2025-03-11 23:39:18] Production.INFO: ProcessCDR(1,14660246,1,1,2) [2025-03-11 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660246', 'tblTempUsageDetail_20' ) start [2025-03-11 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660246', 'tblTempUsageDetail_20' ) end [2025-03-11 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:39:21] Production.INFO: ==20106== Releasing lock... [2025-03-11 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:40:06 [end_date_ymd] => 2025-03-11 23:40:06 [RateCDR] => 1 ) [2025-03-11 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-11 20:40:06' and `end` < '2025-03-11 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-11 23:40:18] Production.INFO: count ==981 [2025-03-11 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:40:06 - End Time 2025-03-11 23:40:06 [2025-03-11 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660252', 'tblTempUsageDetail_20' ) start [2025-03-11 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660252', 'tblTempUsageDetail_20' ) end [2025-03-11 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660252', 'tblTempVendorCDR_20' ) start [2025-03-11 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660252', 'tblTempVendorCDR_20' ) end [2025-03-11 23:40:18] Production.INFO: ProcessCDR(1,14660252,1,1,2) [2025-03-11 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660252', 'tblTempUsageDetail_20' ) start [2025-03-11 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660252', 'tblTempUsageDetail_20' ) end [2025-03-11 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:40:22] Production.INFO: ==20185== Releasing lock... [2025-03-11 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:41:05 [end_date_ymd] => 2025-03-11 23:41:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:41:05' and `end` < '2025-03-11 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-11 23:41:17] Production.INFO: count ==955 [2025-03-11 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:41:05 - End Time 2025-03-11 23:41:05 [2025-03-11 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660257', 'tblTempUsageDetail_20' ) start [2025-03-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660257', 'tblTempUsageDetail_20' ) end [2025-03-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660257', 'tblTempVendorCDR_20' ) start [2025-03-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660257', 'tblTempVendorCDR_20' ) end [2025-03-11 23:41:18] Production.INFO: ProcessCDR(1,14660257,1,1,2) [2025-03-11 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660257', 'tblTempUsageDetail_20' ) start [2025-03-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660257', 'tblTempUsageDetail_20' ) end [2025-03-11 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:41:21] Production.INFO: ==20266== Releasing lock... [2025-03-11 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:42:05 [end_date_ymd] => 2025-03-11 23:42:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:42:05' and `end` < '2025-03-11 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-11 23:42:17] Production.INFO: count ==955 [2025-03-11 23:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:42:05 - End Time 2025-03-11 23:42:05 [2025-03-11 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660262', 'tblTempUsageDetail_20' ) start [2025-03-11 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660262', 'tblTempUsageDetail_20' ) end [2025-03-11 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660262', 'tblTempVendorCDR_20' ) start [2025-03-11 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660262', 'tblTempVendorCDR_20' ) end [2025-03-11 23:42:17] Production.INFO: ProcessCDR(1,14660262,1,1,2) [2025-03-11 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660262', 'tblTempUsageDetail_20' ) start [2025-03-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660262', 'tblTempUsageDetail_20' ) end [2025-03-11 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:42:21] Production.INFO: ==20340== Releasing lock... [2025-03-11 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:42:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:43:05 [end_date_ymd] => 2025-03-11 23:43:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:43:05' and `end` < '2025-03-11 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-11 23:43:17] Production.INFO: count ==955 [2025-03-11 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:43:05 - End Time 2025-03-11 23:43:05 [2025-03-11 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660267', 'tblTempUsageDetail_20' ) start [2025-03-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660267', 'tblTempUsageDetail_20' ) end [2025-03-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660267', 'tblTempVendorCDR_20' ) start [2025-03-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660267', 'tblTempVendorCDR_20' ) end [2025-03-11 23:43:17] Production.INFO: ProcessCDR(1,14660267,1,1,2) [2025-03-11 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660267', 'tblTempUsageDetail_20' ) start [2025-03-11 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660267', 'tblTempUsageDetail_20' ) end [2025-03-11 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:43:21] Production.INFO: ==20422== Releasing lock... [2025-03-11 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:43:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:44:05 [end_date_ymd] => 2025-03-11 23:44:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:44:05' and `end` < '2025-03-11 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-11 23:44:17] Production.INFO: count ==958 [2025-03-11 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:44:05 - End Time 2025-03-11 23:44:05 [2025-03-11 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660272', 'tblTempUsageDetail_20' ) start [2025-03-11 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660272', 'tblTempUsageDetail_20' ) end [2025-03-11 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660272', 'tblTempVendorCDR_20' ) start [2025-03-11 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660272', 'tblTempVendorCDR_20' ) end [2025-03-11 23:44:17] Production.INFO: ProcessCDR(1,14660272,1,1,2) [2025-03-11 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660272', 'tblTempUsageDetail_20' ) start [2025-03-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660272', 'tblTempUsageDetail_20' ) end [2025-03-11 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:44:21] Production.INFO: ==20507== Releasing lock... [2025-03-11 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:44:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:45:06 [end_date_ymd] => 2025-03-11 23:45:06 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:45:06' and `end` < '2025-03-11 23: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-11 23:45:18] Production.INFO: count ==958 [2025-03-11 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:45:06 - End Time 2025-03-11 23:45:06 [2025-03-11 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660277', 'tblTempUsageDetail_20' ) start [2025-03-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660277', 'tblTempUsageDetail_20' ) end [2025-03-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660277', 'tblTempVendorCDR_20' ) start [2025-03-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660277', 'tblTempVendorCDR_20' ) end [2025-03-11 23:45:18] Production.INFO: ProcessCDR(1,14660277,1,1,2) [2025-03-11 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660277', 'tblTempUsageDetail_20' ) start [2025-03-11 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660277', 'tblTempUsageDetail_20' ) end [2025-03-11 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:45:21] Production.INFO: ==20586== Releasing lock... [2025-03-11 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:45:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:46:05 [end_date_ymd] => 2025-03-11 23:46:05 [RateCDR] => 1 ) [2025-03-11 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:46:05' and `end` < '2025-03-11 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:46:17] Production.INFO: count ==953 [2025-03-11 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:46:05 - End Time 2025-03-11 23:46:05 [2025-03-11 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660282', 'tblTempUsageDetail_20' ) start [2025-03-11 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660282', 'tblTempUsageDetail_20' ) end [2025-03-11 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660282', 'tblTempVendorCDR_20' ) start [2025-03-11 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660282', 'tblTempVendorCDR_20' ) end [2025-03-11 23:46:17] Production.INFO: ProcessCDR(1,14660282,1,1,2) [2025-03-11 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660282', 'tblTempUsageDetail_20' ) start [2025-03-11 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660282', 'tblTempUsageDetail_20' ) end [2025-03-11 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:46:20] Production.INFO: ==20661== Releasing lock... [2025-03-11 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:46:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:47:06 [end_date_ymd] => 2025-03-11 23:47:06 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:47:06' and `end` < '2025-03-11 23: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-11 23:47:18] Production.INFO: count ==946 [2025-03-11 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:47:06 - End Time 2025-03-11 23:47:06 [2025-03-11 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660287', 'tblTempUsageDetail_20' ) start [2025-03-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660287', 'tblTempUsageDetail_20' ) end [2025-03-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660287', 'tblTempVendorCDR_20' ) start [2025-03-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660287', 'tblTempVendorCDR_20' ) end [2025-03-11 23:47:18] Production.INFO: ProcessCDR(1,14660287,1,1,2) [2025-03-11 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660287', 'tblTempUsageDetail_20' ) start [2025-03-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660287', 'tblTempUsageDetail_20' ) end [2025-03-11 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:47:21] Production.INFO: ==20781== Releasing lock... [2025-03-11 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:48:05 [end_date_ymd] => 2025-03-11 23:48:05 [RateCDR] => 1 ) [2025-03-11 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:48:05' and `end` < '2025-03-11 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:48:17] Production.INFO: count ==946 [2025-03-11 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:48:05 - End Time 2025-03-11 23:48:05 [2025-03-11 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660292', 'tblTempUsageDetail_20' ) start [2025-03-11 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660292', 'tblTempUsageDetail_20' ) end [2025-03-11 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660292', 'tblTempVendorCDR_20' ) start [2025-03-11 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660292', 'tblTempVendorCDR_20' ) end [2025-03-11 23:48:17] Production.INFO: ProcessCDR(1,14660292,1,1,2) [2025-03-11 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660292', 'tblTempUsageDetail_20' ) start [2025-03-11 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660292', 'tblTempUsageDetail_20' ) end [2025-03-11 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:48:21] Production.INFO: ==20868== Releasing lock... [2025-03-11 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:49:05 [end_date_ymd] => 2025-03-11 23:49:05 [RateCDR] => 1 ) [2025-03-11 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:49:05' and `end` < '2025-03-11 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-11 23:49:17] Production.INFO: count ==944 [2025-03-11 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:49:05 - End Time 2025-03-11 23:49:05 [2025-03-11 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660297', 'tblTempUsageDetail_20' ) start [2025-03-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660297', 'tblTempUsageDetail_20' ) end [2025-03-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660297', 'tblTempVendorCDR_20' ) start [2025-03-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660297', 'tblTempVendorCDR_20' ) end [2025-03-11 23:49:18] Production.INFO: ProcessCDR(1,14660297,1,1,2) [2025-03-11 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660297', 'tblTempUsageDetail_20' ) start [2025-03-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660297', 'tblTempUsageDetail_20' ) end [2025-03-11 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:49:21] Production.INFO: ==20950== Releasing lock... [2025-03-11 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:49:21] Production.INFO: 35 MB #Memory Used# [2025-03-11 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:50:06 [end_date_ymd] => 2025-03-11 23:50:06 [RateCDR] => 1 ) [2025-03-11 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-11 20:50:06' and `end` < '2025-03-11 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-11 23:50:18] Production.INFO: count ==945 [2025-03-11 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:50:06 - End Time 2025-03-11 23:50:06 [2025-03-11 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660303', 'tblTempUsageDetail_20' ) start [2025-03-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660303', 'tblTempUsageDetail_20' ) end [2025-03-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660303', 'tblTempVendorCDR_20' ) start [2025-03-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660303', 'tblTempVendorCDR_20' ) end [2025-03-11 23:50:18] Production.INFO: ProcessCDR(1,14660303,1,1,2) [2025-03-11 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660303', 'tblTempUsageDetail_20' ) start [2025-03-11 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660303', 'tblTempUsageDetail_20' ) end [2025-03-11 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:50:21] Production.INFO: ==21031== Releasing lock... [2025-03-11 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:50:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-11 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:51:05 [end_date_ymd] => 2025-03-11 23:51:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:51:05' and `end` < '2025-03-11 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-11 23:51:17] Production.INFO: count ==919 [2025-03-11 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:51:05 - End Time 2025-03-11 23:51:05 [2025-03-11 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660308', 'tblTempUsageDetail_20' ) start [2025-03-11 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660308', 'tblTempUsageDetail_20' ) end [2025-03-11 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660308', 'tblTempVendorCDR_20' ) start [2025-03-11 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660308', 'tblTempVendorCDR_20' ) end [2025-03-11 23:51:17] Production.INFO: ProcessCDR(1,14660308,1,1,2) [2025-03-11 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660308', 'tblTempUsageDetail_20' ) start [2025-03-11 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660308', 'tblTempUsageDetail_20' ) end [2025-03-11 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:51:20] Production.INFO: ==21117== Releasing lock... [2025-03-11 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:51:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:52:04 [end_date_ymd] => 2025-03-11 23:52:04 [RateCDR] => 1 ) [2025-03-11 23:52: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-11 20:52:04' and `end` < '2025-03-11 23:52: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-11 23:52:16] Production.INFO: count ==926 [2025-03-11 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:52:04 - End Time 2025-03-11 23:52:04 [2025-03-11 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660313', 'tblTempUsageDetail_20' ) start [2025-03-11 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660313', 'tblTempUsageDetail_20' ) end [2025-03-11 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660313', 'tblTempVendorCDR_20' ) start [2025-03-11 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660313', 'tblTempVendorCDR_20' ) end [2025-03-11 23:52:17] Production.INFO: ProcessCDR(1,14660313,1,1,2) [2025-03-11 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660313', 'tblTempUsageDetail_20' ) start [2025-03-11 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660313', 'tblTempUsageDetail_20' ) end [2025-03-11 23:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:52:20] Production.INFO: ==21203== Releasing lock... [2025-03-11 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:52:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:53:05 [end_date_ymd] => 2025-03-11 23:53:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:53:05' and `end` < '2025-03-11 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-11 23:53:17] Production.INFO: count ==924 [2025-03-11 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:53:05 - End Time 2025-03-11 23:53:05 [2025-03-11 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660318', 'tblTempUsageDetail_20' ) start [2025-03-11 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660318', 'tblTempUsageDetail_20' ) end [2025-03-11 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660318', 'tblTempVendorCDR_20' ) start [2025-03-11 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660318', 'tblTempVendorCDR_20' ) end [2025-03-11 23:53:17] Production.INFO: ProcessCDR(1,14660318,1,1,2) [2025-03-11 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660318', 'tblTempUsageDetail_20' ) start [2025-03-11 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660318', 'tblTempUsageDetail_20' ) end [2025-03-11 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:53:20] Production.INFO: ==21285== Releasing lock... [2025-03-11 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:53:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:54:05 [end_date_ymd] => 2025-03-11 23:54:05 [RateCDR] => 1 ) [2025-03-11 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 20:54:05' and `end` < '2025-03-11 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-11 23:54:17] Production.INFO: count ==920 [2025-03-11 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:54:05 - End Time 2025-03-11 23:54:05 [2025-03-11 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660323', 'tblTempUsageDetail_20' ) start [2025-03-11 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660323', 'tblTempUsageDetail_20' ) end [2025-03-11 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660323', 'tblTempVendorCDR_20' ) start [2025-03-11 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660323', 'tblTempVendorCDR_20' ) end [2025-03-11 23:54:17] Production.INFO: ProcessCDR(1,14660323,1,1,2) [2025-03-11 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660323', 'tblTempUsageDetail_20' ) start [2025-03-11 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660323', 'tblTempUsageDetail_20' ) end [2025-03-11 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:54:21] Production.INFO: ==21370== Releasing lock... [2025-03-11 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:55:05 [end_date_ymd] => 2025-03-11 23:55:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:55:05' and `end` < '2025-03-11 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-11 23:55:17] Production.INFO: count ==920 [2025-03-11 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:55:05 - End Time 2025-03-11 23:55:05 [2025-03-11 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660328', 'tblTempUsageDetail_20' ) start [2025-03-11 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660328', 'tblTempUsageDetail_20' ) end [2025-03-11 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660328', 'tblTempVendorCDR_20' ) start [2025-03-11 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660328', 'tblTempVendorCDR_20' ) end [2025-03-11 23:55:17] Production.INFO: ProcessCDR(1,14660328,1,1,2) [2025-03-11 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660328', 'tblTempUsageDetail_20' ) start [2025-03-11 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660328', 'tblTempUsageDetail_20' ) end [2025-03-11 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:55:21] Production.INFO: ==21448== Releasing lock... [2025-03-11 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:56:05 [end_date_ymd] => 2025-03-11 23:56:05 [RateCDR] => 1 ) [2025-03-11 23: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-11 20:56:05' and `end` < '2025-03-11 23: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-11 23:56:18] Production.INFO: count ==920 [2025-03-11 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:56:05 - End Time 2025-03-11 23:56:05 [2025-03-11 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660333', 'tblTempUsageDetail_20' ) start [2025-03-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660333', 'tblTempUsageDetail_20' ) end [2025-03-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660333', 'tblTempVendorCDR_20' ) start [2025-03-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660333', 'tblTempVendorCDR_20' ) end [2025-03-11 23:56:18] Production.INFO: ProcessCDR(1,14660333,1,1,2) [2025-03-11 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660333', 'tblTempUsageDetail_20' ) start [2025-03-11 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660333', 'tblTempUsageDetail_20' ) end [2025-03-11 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:56:21] Production.INFO: ==21532== Releasing lock... [2025-03-11 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-11 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:57:05 [end_date_ymd] => 2025-03-11 23:57:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:57:05' and `end` < '2025-03-11 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-11 23:57:17] Production.INFO: count ==919 [2025-03-11 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:57:05 - End Time 2025-03-11 23:57:05 [2025-03-11 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660338', 'tblTempUsageDetail_20' ) start [2025-03-11 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660338', 'tblTempUsageDetail_20' ) end [2025-03-11 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660338', 'tblTempVendorCDR_20' ) start [2025-03-11 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660338', 'tblTempVendorCDR_20' ) end [2025-03-11 23:57:17] Production.INFO: ProcessCDR(1,14660338,1,1,2) [2025-03-11 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660338', 'tblTempUsageDetail_20' ) start [2025-03-11 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660338', 'tblTempUsageDetail_20' ) end [2025-03-11 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:57:20] Production.INFO: ==21610== Releasing lock... [2025-03-11 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:57:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:58:06 [end_date_ymd] => 2025-03-11 23:58:06 [RateCDR] => 1 ) [2025-03-11 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-11 20:58:06' and `end` < '2025-03-11 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-11 23:58:18] Production.INFO: count ==919 [2025-03-11 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-11 20:58:06 - End Time 2025-03-11 23:58:06 [2025-03-11 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660343', 'tblTempUsageDetail_20' ) start [2025-03-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660343', 'tblTempUsageDetail_20' ) end [2025-03-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660343', 'tblTempVendorCDR_20' ) start [2025-03-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660343', 'tblTempVendorCDR_20' ) end [2025-03-11 23:58:18] Production.INFO: ProcessCDR(1,14660343,1,1,2) [2025-03-11 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660343', 'tblTempUsageDetail_20' ) start [2025-03-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660343', 'tblTempUsageDetail_20' ) end [2025-03-11 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:58:21] Production.INFO: ==21693== Releasing lock... [2025-03-11 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:58:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-11 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 20:59:05 [end_date_ymd] => 2025-03-11 23:59:05 [RateCDR] => 1 ) [2025-03-11 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-11 20:59:05' and `end` < '2025-03-11 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-11 23:59:17] Production.INFO: count ==921 [2025-03-11 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 20:59:05 - End Time 2025-03-11 23:59:05 [2025-03-11 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-11 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660348', 'tblTempUsageDetail_20' ) start [2025-03-11 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660348', 'tblTempUsageDetail_20' ) end [2025-03-11 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660348', 'tblTempVendorCDR_20' ) start [2025-03-11 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660348', 'tblTempVendorCDR_20' ) end [2025-03-11 23:59:17] Production.INFO: ProcessCDR(1,14660348,1,1,2) [2025-03-11 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-11 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-11 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660348', 'tblTempUsageDetail_20' ) start [2025-03-11 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660348', 'tblTempUsageDetail_20' ) end [2025-03-11 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-11 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-11 23:59:20] Production.INFO: ==21768== Releasing lock... [2025-03-11 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-11 23:59:20] Production.INFO: 34.25 MB #Memory Used#