[2024-12-26 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:00:06 [end_date_ymd] => 2024-12-26 00:00:06 [RateCDR] => 1 ) [2024-12-26 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:00:06' and `end` < '2024-12-26 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:00:19] Production.INFO: count ==1727 [2024-12-26 00:00:20] Production.ERROR: pbx CDR StartTime 2024-12-25 21:00:06 - End Time 2024-12-26 00:00:06 [2024-12-26 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103043', 'tblTempUsageDetail_20' ) start [2024-12-26 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103043', 'tblTempUsageDetail_20' ) end [2024-12-26 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103043', 'tblTempVendorCDR_20' ) start [2024-12-26 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103043', 'tblTempVendorCDR_20' ) end [2024-12-26 00:00:20] Production.INFO: ProcessCDR(1,14103043,1,1,2) [2024-12-26 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103043', 'tblTempUsageDetail_20' ) start [2024-12-26 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103043', 'tblTempUsageDetail_20' ) end [2024-12-26 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:00:25] Production.INFO: ==17431== Releasing lock... [2024-12-26 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:00:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:01:04 [end_date_ymd] => 2024-12-26 00:01:04 [RateCDR] => 1 ) [2024-12-26 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:01:04' and `end` < '2024-12-26 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:01:17] Production.INFO: count ==1699 [2024-12-26 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:01:04 - End Time 2024-12-26 00:01:04 [2024-12-26 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103048', 'tblTempUsageDetail_20' ) start [2024-12-26 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103048', 'tblTempUsageDetail_20' ) end [2024-12-26 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103048', 'tblTempVendorCDR_20' ) start [2024-12-26 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103048', 'tblTempVendorCDR_20' ) end [2024-12-26 00:01:17] Production.INFO: ProcessCDR(1,14103048,1,1,2) [2024-12-26 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103048', 'tblTempUsageDetail_20' ) start [2024-12-26 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103048', 'tblTempUsageDetail_20' ) end [2024-12-26 00:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:01:20] Production.INFO: ==17526== Releasing lock... [2024-12-26 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:01:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:02:04 [end_date_ymd] => 2024-12-26 00:02:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:02:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:02:17] Production.INFO: count ==937 [2024-12-26 00:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:02:04 - End Time 2024-12-26 00:02:04 [2024-12-26 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103053', 'tblTempUsageDetail_20' ) start [2024-12-26 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103053', 'tblTempUsageDetail_20' ) end [2024-12-26 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103053', 'tblTempVendorCDR_20' ) start [2024-12-26 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103053', 'tblTempVendorCDR_20' ) end [2024-12-26 00:02:17] Production.INFO: ProcessCDR(1,14103053,1,1,2) [2024-12-26 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103053', 'tblTempUsageDetail_20' ) start [2024-12-26 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103053', 'tblTempUsageDetail_20' ) end [2024-12-26 00:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:02:20] Production.INFO: ==17604== Releasing lock... [2024-12-26 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:02:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:03:05 [end_date_ymd] => 2024-12-26 00:03:05 [RateCDR] => 1 ) [2024-12-26 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:03:05' and `end` < '2024-12-26 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:03:17] Production.INFO: count ==935 [2024-12-26 00:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:03:05 - End Time 2024-12-26 00:03:05 [2024-12-26 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103058', 'tblTempUsageDetail_20' ) start [2024-12-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103058', 'tblTempUsageDetail_20' ) end [2024-12-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103058', 'tblTempVendorCDR_20' ) start [2024-12-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103058', 'tblTempVendorCDR_20' ) end [2024-12-26 00:03:18] Production.INFO: ProcessCDR(1,14103058,1,1,2) [2024-12-26 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103058', 'tblTempUsageDetail_20' ) start [2024-12-26 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103058', 'tblTempUsageDetail_20' ) end [2024-12-26 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:03:21] Production.INFO: ==17681== Releasing lock... [2024-12-26 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:03:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:04:04 [end_date_ymd] => 2024-12-26 00:04:04 [RateCDR] => 1 ) [2024-12-26 00:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:04:04' and `end` < '2024-12-26 00:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:04:17] Production.INFO: count ==931 [2024-12-26 00:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:04:04 - End Time 2024-12-26 00:04:04 [2024-12-26 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103063', 'tblTempUsageDetail_20' ) start [2024-12-26 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103063', 'tblTempUsageDetail_20' ) end [2024-12-26 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103063', 'tblTempVendorCDR_20' ) start [2024-12-26 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103063', 'tblTempVendorCDR_20' ) end [2024-12-26 00:04:17] Production.INFO: ProcessCDR(1,14103063,1,1,2) [2024-12-26 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103063', 'tblTempUsageDetail_20' ) start [2024-12-26 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103063', 'tblTempUsageDetail_20' ) end [2024-12-26 00:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:04:20] Production.INFO: ==17763== Releasing lock... [2024-12-26 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:04:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:05:04 [end_date_ymd] => 2024-12-26 00:05:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:05:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:05:17] Production.INFO: count ==927 [2024-12-26 00:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:05:04 - End Time 2024-12-26 00:05:04 [2024-12-26 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103068', 'tblTempUsageDetail_20' ) start [2024-12-26 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103068', 'tblTempUsageDetail_20' ) end [2024-12-26 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103068', 'tblTempVendorCDR_20' ) start [2024-12-26 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103068', 'tblTempVendorCDR_20' ) end [2024-12-26 00:05:17] Production.INFO: ProcessCDR(1,14103068,1,1,2) [2024-12-26 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103068', 'tblTempUsageDetail_20' ) start [2024-12-26 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103068', 'tblTempUsageDetail_20' ) end [2024-12-26 00:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:05:20] Production.INFO: ==17839== Releasing lock... [2024-12-26 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:05:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:06:05 [end_date_ymd] => 2024-12-26 00:06:05 [RateCDR] => 1 ) [2024-12-26 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:06:05' and `end` < '2024-12-26 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:06:17] Production.INFO: count ==923 [2024-12-26 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:06:05 - End Time 2024-12-26 00:06:05 [2024-12-26 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103073', 'tblTempUsageDetail_20' ) start [2024-12-26 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103073', 'tblTempUsageDetail_20' ) end [2024-12-26 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103073', 'tblTempVendorCDR_20' ) start [2024-12-26 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103073', 'tblTempVendorCDR_20' ) end [2024-12-26 00:06:18] Production.INFO: ProcessCDR(1,14103073,1,1,2) [2024-12-26 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103073', 'tblTempUsageDetail_20' ) start [2024-12-26 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103073', 'tblTempUsageDetail_20' ) end [2024-12-26 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:06:21] Production.INFO: ==17921== Releasing lock... [2024-12-26 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:06:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:07:04 [end_date_ymd] => 2024-12-26 00:07:04 [RateCDR] => 1 ) [2024-12-26 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:07:04' and `end` < '2024-12-26 00:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:07:18] Production.INFO: count ==923 [2024-12-26 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:07:04 - End Time 2024-12-26 00:07:04 [2024-12-26 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103078', 'tblTempUsageDetail_20' ) start [2024-12-26 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103078', 'tblTempUsageDetail_20' ) end [2024-12-26 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103078', 'tblTempVendorCDR_20' ) start [2024-12-26 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103078', 'tblTempVendorCDR_20' ) end [2024-12-26 00:07:19] Production.INFO: ProcessCDR(1,14103078,1,1,2) [2024-12-26 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103078', 'tblTempUsageDetail_20' ) start [2024-12-26 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103078', 'tblTempUsageDetail_20' ) end [2024-12-26 00:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:07:22] Production.INFO: ==17996== Releasing lock... [2024-12-26 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:07:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:08:05 [end_date_ymd] => 2024-12-26 00:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:08:17] Production.INFO: count ==917 [2024-12-26 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:08:05 - End Time 2024-12-26 00:08:05 [2024-12-26 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103083', 'tblTempUsageDetail_20' ) start [2024-12-26 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103083', 'tblTempUsageDetail_20' ) end [2024-12-26 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103083', 'tblTempVendorCDR_20' ) start [2024-12-26 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103083', 'tblTempVendorCDR_20' ) end [2024-12-26 00:08:18] Production.INFO: ProcessCDR(1,14103083,1,1,2) [2024-12-26 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103083', 'tblTempUsageDetail_20' ) start [2024-12-26 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103083', 'tblTempUsageDetail_20' ) end [2024-12-26 00:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:08:21] Production.INFO: ==18111== Releasing lock... [2024-12-26 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:08:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:09:04 [end_date_ymd] => 2024-12-26 00:09:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:09:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:09:16] Production.INFO: count ==902 [2024-12-26 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:09:04 - End Time 2024-12-26 00:09:04 [2024-12-26 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103088', 'tblTempUsageDetail_20' ) start [2024-12-26 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103088', 'tblTempUsageDetail_20' ) end [2024-12-26 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103088', 'tblTempVendorCDR_20' ) start [2024-12-26 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103088', 'tblTempVendorCDR_20' ) end [2024-12-26 00:09:17] Production.INFO: ProcessCDR(1,14103088,1,1,2) [2024-12-26 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103088', 'tblTempUsageDetail_20' ) start [2024-12-26 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103088', 'tblTempUsageDetail_20' ) end [2024-12-26 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:09:20] Production.INFO: ==18184== Releasing lock... [2024-12-26 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:09:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:10:05 [end_date_ymd] => 2024-12-26 00:10:05 [RateCDR] => 1 ) [2024-12-26 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:10:05' and `end` < '2024-12-26 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:10:17] Production.INFO: count ==906 [2024-12-26 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:10:05 - End Time 2024-12-26 00:10:05 [2024-12-26 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103094', 'tblTempUsageDetail_20' ) start [2024-12-26 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103094', 'tblTempUsageDetail_20' ) end [2024-12-26 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103094', 'tblTempVendorCDR_20' ) start [2024-12-26 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103094', 'tblTempVendorCDR_20' ) end [2024-12-26 00:10:18] Production.INFO: ProcessCDR(1,14103094,1,1,2) [2024-12-26 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103094', 'tblTempUsageDetail_20' ) start [2024-12-26 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103094', 'tblTempUsageDetail_20' ) end [2024-12-26 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:10:21] Production.INFO: ==18264== Releasing lock... [2024-12-26 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:10:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:11:05 [end_date_ymd] => 2024-12-26 00:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:11:17] Production.INFO: count ==940 [2024-12-26 00:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:11:05 - End Time 2024-12-26 00:11:05 [2024-12-26 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103099', 'tblTempUsageDetail_20' ) start [2024-12-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103099', 'tblTempUsageDetail_20' ) end [2024-12-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103099', 'tblTempVendorCDR_20' ) start [2024-12-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103099', 'tblTempVendorCDR_20' ) end [2024-12-26 00:11:18] Production.INFO: ProcessCDR(1,14103099,1,1,2) [2024-12-26 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103099', 'tblTempUsageDetail_20' ) start [2024-12-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103099', 'tblTempUsageDetail_20' ) end [2024-12-26 00:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:11:21] Production.INFO: ==18344== Releasing lock... [2024-12-26 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:11:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:12:05 [end_date_ymd] => 2024-12-26 00:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:12:19] Production.INFO: count ==931 [2024-12-26 00:12:19] Production.ERROR: pbx CDR StartTime 2024-12-25 21:12:05 - End Time 2024-12-26 00:12:05 [2024-12-26 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103104', 'tblTempUsageDetail_20' ) start [2024-12-26 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103104', 'tblTempUsageDetail_20' ) end [2024-12-26 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103104', 'tblTempVendorCDR_20' ) start [2024-12-26 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103104', 'tblTempVendorCDR_20' ) end [2024-12-26 00:12:19] Production.INFO: ProcessCDR(1,14103104,1,1,2) [2024-12-26 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103104', 'tblTempUsageDetail_20' ) start [2024-12-26 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103104', 'tblTempUsageDetail_20' ) end [2024-12-26 00:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:12:22] Production.INFO: ==18424== Releasing lock... [2024-12-26 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:12:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:13:04 [end_date_ymd] => 2024-12-26 00:13:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:13:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:13:18] Production.INFO: count ==927 [2024-12-26 00:13:19] Production.ERROR: pbx CDR StartTime 2024-12-25 21:13:04 - End Time 2024-12-26 00:13:04 [2024-12-26 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103109', 'tblTempUsageDetail_20' ) start [2024-12-26 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103109', 'tblTempUsageDetail_20' ) end [2024-12-26 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103109', 'tblTempVendorCDR_20' ) start [2024-12-26 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103109', 'tblTempVendorCDR_20' ) end [2024-12-26 00:13:19] Production.INFO: ProcessCDR(1,14103109,1,1,2) [2024-12-26 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103109', 'tblTempUsageDetail_20' ) start [2024-12-26 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103109', 'tblTempUsageDetail_20' ) end [2024-12-26 00:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:13:22] Production.INFO: ==18502== Releasing lock... [2024-12-26 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:13:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:14:04 [end_date_ymd] => 2024-12-26 00:14:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:14:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:14:17] Production.INFO: count ==914 [2024-12-26 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:14:04 - End Time 2024-12-26 00:14:04 [2024-12-26 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103114', 'tblTempUsageDetail_20' ) start [2024-12-26 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103114', 'tblTempUsageDetail_20' ) end [2024-12-26 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103114', 'tblTempVendorCDR_20' ) start [2024-12-26 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103114', 'tblTempVendorCDR_20' ) end [2024-12-26 00:14:17] Production.INFO: ProcessCDR(1,14103114,1,1,2) [2024-12-26 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103114', 'tblTempUsageDetail_20' ) start [2024-12-26 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103114', 'tblTempUsageDetail_20' ) end [2024-12-26 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:14:21] Production.INFO: ==18580== Releasing lock... [2024-12-26 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:14:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:15:05 [end_date_ymd] => 2024-12-26 00:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:15:17] Production.INFO: count ==909 [2024-12-26 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:15:05 - End Time 2024-12-26 00:15:05 [2024-12-26 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103119', 'tblTempUsageDetail_20' ) start [2024-12-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103119', 'tblTempUsageDetail_20' ) end [2024-12-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103119', 'tblTempVendorCDR_20' ) start [2024-12-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103119', 'tblTempVendorCDR_20' ) end [2024-12-26 00:15:17] Production.INFO: ProcessCDR(1,14103119,1,1,2) [2024-12-26 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103119', 'tblTempUsageDetail_20' ) start [2024-12-26 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103119', 'tblTempUsageDetail_20' ) end [2024-12-26 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:15:20] Production.INFO: ==18657== Releasing lock... [2024-12-26 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:15:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:16:05 [end_date_ymd] => 2024-12-26 00:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:16:17] Production.INFO: count ==899 [2024-12-26 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:16:05 - End Time 2024-12-26 00:16:05 [2024-12-26 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103124', 'tblTempUsageDetail_20' ) start [2024-12-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103124', 'tblTempUsageDetail_20' ) end [2024-12-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103124', 'tblTempVendorCDR_20' ) start [2024-12-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103124', 'tblTempVendorCDR_20' ) end [2024-12-26 00:16:17] Production.INFO: ProcessCDR(1,14103124,1,1,2) [2024-12-26 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103124', 'tblTempUsageDetail_20' ) start [2024-12-26 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103124', 'tblTempUsageDetail_20' ) end [2024-12-26 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:16:20] Production.INFO: ==18739== Releasing lock... [2024-12-26 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:16:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:17:04 [end_date_ymd] => 2024-12-26 00:17:04 [RateCDR] => 1 ) [2024-12-26 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:17:04' and `end` < '2024-12-26 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:17:17] Production.INFO: count ==896 [2024-12-26 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:17:04 - End Time 2024-12-26 00:17:04 [2024-12-26 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103129', 'tblTempUsageDetail_20' ) start [2024-12-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103129', 'tblTempUsageDetail_20' ) end [2024-12-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103129', 'tblTempVendorCDR_20' ) start [2024-12-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103129', 'tblTempVendorCDR_20' ) end [2024-12-26 00:17:17] Production.INFO: ProcessCDR(1,14103129,1,1,2) [2024-12-26 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103129', 'tblTempUsageDetail_20' ) start [2024-12-26 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103129', 'tblTempUsageDetail_20' ) end [2024-12-26 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:17:20] Production.INFO: ==18824== Releasing lock... [2024-12-26 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:17:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:18:05 [end_date_ymd] => 2024-12-26 00:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:18:17] Production.INFO: count ==898 [2024-12-26 00:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:18:05 - End Time 2024-12-26 00:18:05 [2024-12-26 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103134', 'tblTempUsageDetail_20' ) start [2024-12-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103134', 'tblTempUsageDetail_20' ) end [2024-12-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103134', 'tblTempVendorCDR_20' ) start [2024-12-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103134', 'tblTempVendorCDR_20' ) end [2024-12-26 00:18:18] Production.INFO: ProcessCDR(1,14103134,1,1,2) [2024-12-26 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103134', 'tblTempUsageDetail_20' ) start [2024-12-26 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103134', 'tblTempUsageDetail_20' ) end [2024-12-26 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:18:21] Production.INFO: ==18901== Releasing lock... [2024-12-26 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:18:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:19:04 [end_date_ymd] => 2024-12-26 00:19:04 [RateCDR] => 1 ) [2024-12-26 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:19:04' and `end` < '2024-12-26 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:19:18] Production.INFO: count ==900 [2024-12-26 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:19:04 - End Time 2024-12-26 00:19:04 [2024-12-26 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103139', 'tblTempUsageDetail_20' ) start [2024-12-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103139', 'tblTempUsageDetail_20' ) end [2024-12-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103139', 'tblTempVendorCDR_20' ) start [2024-12-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103139', 'tblTempVendorCDR_20' ) end [2024-12-26 00:19:18] Production.INFO: ProcessCDR(1,14103139,1,1,2) [2024-12-26 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103139', 'tblTempUsageDetail_20' ) start [2024-12-26 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103139', 'tblTempUsageDetail_20' ) end [2024-12-26 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:19:21] Production.INFO: ==18983== Releasing lock... [2024-12-26 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:19:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:20:06 [end_date_ymd] => 2024-12-26 00:20:06 [RateCDR] => 1 ) [2024-12-26 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:20:06' and `end` < '2024-12-26 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:20:18] Production.INFO: count ==910 [2024-12-26 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:20:06 - End Time 2024-12-26 00:20:06 [2024-12-26 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103145', 'tblTempUsageDetail_20' ) start [2024-12-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103145', 'tblTempUsageDetail_20' ) end [2024-12-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103145', 'tblTempVendorCDR_20' ) start [2024-12-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103145', 'tblTempVendorCDR_20' ) end [2024-12-26 00:20:18] Production.INFO: ProcessCDR(1,14103145,1,1,2) [2024-12-26 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103145', 'tblTempUsageDetail_20' ) start [2024-12-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103145', 'tblTempUsageDetail_20' ) end [2024-12-26 00:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:20:22] Production.INFO: ==19061== Releasing lock... [2024-12-26 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:20:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:21:05 [end_date_ymd] => 2024-12-26 00:21:05 [RateCDR] => 1 ) [2024-12-26 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:21:05' and `end` < '2024-12-26 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:21:17] Production.INFO: count ==920 [2024-12-26 00:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:21:05 - End Time 2024-12-26 00:21:05 [2024-12-26 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103150', 'tblTempUsageDetail_20' ) start [2024-12-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103150', 'tblTempUsageDetail_20' ) end [2024-12-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103150', 'tblTempVendorCDR_20' ) start [2024-12-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103150', 'tblTempVendorCDR_20' ) end [2024-12-26 00:21:18] Production.INFO: ProcessCDR(1,14103150,1,1,2) [2024-12-26 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103150', 'tblTempUsageDetail_20' ) start [2024-12-26 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103150', 'tblTempUsageDetail_20' ) end [2024-12-26 00:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:21:21] Production.INFO: ==19138== Releasing lock... [2024-12-26 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:21:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:22:04 [end_date_ymd] => 2024-12-26 00:22:04 [RateCDR] => 1 ) [2024-12-26 00:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:22:04' and `end` < '2024-12-26 00:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:22:17] Production.INFO: count ==917 [2024-12-26 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:22:04 - End Time 2024-12-26 00:22:04 [2024-12-26 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103155', 'tblTempUsageDetail_20' ) start [2024-12-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103155', 'tblTempUsageDetail_20' ) end [2024-12-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103155', 'tblTempVendorCDR_20' ) start [2024-12-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103155', 'tblTempVendorCDR_20' ) end [2024-12-26 00:22:17] Production.INFO: ProcessCDR(1,14103155,1,1,2) [2024-12-26 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103155', 'tblTempUsageDetail_20' ) start [2024-12-26 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103155', 'tblTempUsageDetail_20' ) end [2024-12-26 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:22:20] Production.INFO: ==19215== Releasing lock... [2024-12-26 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:22:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:23:05 [end_date_ymd] => 2024-12-26 00:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:23:17] Production.INFO: count ==932 [2024-12-26 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:23:05 - End Time 2024-12-26 00:23:05 [2024-12-26 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103160', 'tblTempUsageDetail_20' ) start [2024-12-26 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103160', 'tblTempUsageDetail_20' ) end [2024-12-26 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103160', 'tblTempVendorCDR_20' ) start [2024-12-26 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103160', 'tblTempVendorCDR_20' ) end [2024-12-26 00:23:17] Production.INFO: ProcessCDR(1,14103160,1,1,2) [2024-12-26 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103160', 'tblTempUsageDetail_20' ) start [2024-12-26 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103160', 'tblTempUsageDetail_20' ) end [2024-12-26 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:23:20] Production.INFO: ==19292== Releasing lock... [2024-12-26 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:23:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:24:04 [end_date_ymd] => 2024-12-26 00:24:04 [RateCDR] => 1 ) [2024-12-26 00:24: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` >= '2024-12-25 21:24:04' and `end` < '2024-12-26 00:24: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 ,'') [2024-12-26 00:24:17] Production.INFO: count ==931 [2024-12-26 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:24:04 - End Time 2024-12-26 00:24:04 [2024-12-26 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103165', 'tblTempUsageDetail_20' ) start [2024-12-26 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103165', 'tblTempUsageDetail_20' ) end [2024-12-26 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103165', 'tblTempVendorCDR_20' ) start [2024-12-26 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103165', 'tblTempVendorCDR_20' ) end [2024-12-26 00:24:17] Production.INFO: ProcessCDR(1,14103165,1,1,2) [2024-12-26 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103165', 'tblTempUsageDetail_20' ) start [2024-12-26 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103165', 'tblTempUsageDetail_20' ) end [2024-12-26 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:24:21] Production.INFO: ==19406== Releasing lock... [2024-12-26 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:24:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:25:04 [end_date_ymd] => 2024-12-26 00:25:04 [RateCDR] => 1 ) [2024-12-26 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:25:04' and `end` < '2024-12-26 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:25:17] Production.INFO: count ==928 [2024-12-26 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:25:04 - End Time 2024-12-26 00:25:04 [2024-12-26 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103170', 'tblTempUsageDetail_20' ) start [2024-12-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103170', 'tblTempUsageDetail_20' ) end [2024-12-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103170', 'tblTempVendorCDR_20' ) start [2024-12-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103170', 'tblTempVendorCDR_20' ) end [2024-12-26 00:25:17] Production.INFO: ProcessCDR(1,14103170,1,1,2) [2024-12-26 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103170', 'tblTempUsageDetail_20' ) start [2024-12-26 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103170', 'tblTempUsageDetail_20' ) end [2024-12-26 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:25:20] Production.INFO: ==19481== Releasing lock... [2024-12-26 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:25:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:26:05 [end_date_ymd] => 2024-12-26 00:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:26:17] Production.INFO: count ==925 [2024-12-26 00:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:26:05 - End Time 2024-12-26 00:26:05 [2024-12-26 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103175', 'tblTempUsageDetail_20' ) start [2024-12-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103175', 'tblTempUsageDetail_20' ) end [2024-12-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103175', 'tblTempVendorCDR_20' ) start [2024-12-26 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103175', 'tblTempVendorCDR_20' ) end [2024-12-26 00:26:18] Production.INFO: ProcessCDR(1,14103175,1,1,2) [2024-12-26 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103175', 'tblTempUsageDetail_20' ) start [2024-12-26 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103175', 'tblTempUsageDetail_20' ) end [2024-12-26 00:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:26:21] Production.INFO: ==19567== Releasing lock... [2024-12-26 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:26:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:27:04 [end_date_ymd] => 2024-12-26 00:27:04 [RateCDR] => 1 ) [2024-12-26 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:27:04' and `end` < '2024-12-26 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:27:16] Production.INFO: count ==922 [2024-12-26 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:27:04 - End Time 2024-12-26 00:27:04 [2024-12-26 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103177', 'tblTempUsageDetail_20' ) start [2024-12-26 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103177', 'tblTempUsageDetail_20' ) end [2024-12-26 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103177', 'tblTempVendorCDR_20' ) start [2024-12-26 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103177', 'tblTempVendorCDR_20' ) end [2024-12-26 00:27:17] Production.INFO: ProcessCDR(1,14103177,1,1,2) [2024-12-26 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103177', 'tblTempUsageDetail_20' ) start [2024-12-26 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103177', 'tblTempUsageDetail_20' ) end [2024-12-26 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:27:20] Production.INFO: ==19644== Releasing lock... [2024-12-26 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:27:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:28:05 [end_date_ymd] => 2024-12-26 00:28:05 [RateCDR] => 1 ) [2024-12-26 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:28:05' and `end` < '2024-12-26 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:28:17] Production.INFO: count ==918 [2024-12-26 00:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:28:05 - End Time 2024-12-26 00:28:05 [2024-12-26 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103185', 'tblTempUsageDetail_20' ) start [2024-12-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103185', 'tblTempUsageDetail_20' ) end [2024-12-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103185', 'tblTempVendorCDR_20' ) start [2024-12-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103185', 'tblTempVendorCDR_20' ) end [2024-12-26 00:28:18] Production.INFO: ProcessCDR(1,14103185,1,1,2) [2024-12-26 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103185', 'tblTempUsageDetail_20' ) start [2024-12-26 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103185', 'tblTempUsageDetail_20' ) end [2024-12-26 00:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:28:21] Production.INFO: ==19724== Releasing lock... [2024-12-26 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:28:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:29:04 [end_date_ymd] => 2024-12-26 00:29:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:29:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:29:17] Production.INFO: count ==908 [2024-12-26 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:29:04 - End Time 2024-12-26 00:29:04 [2024-12-26 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103190', 'tblTempUsageDetail_20' ) start [2024-12-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103190', 'tblTempUsageDetail_20' ) end [2024-12-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103190', 'tblTempVendorCDR_20' ) start [2024-12-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103190', 'tblTempVendorCDR_20' ) end [2024-12-26 00:29:17] Production.INFO: ProcessCDR(1,14103190,1,1,2) [2024-12-26 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103190', 'tblTempUsageDetail_20' ) start [2024-12-26 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103190', 'tblTempUsageDetail_20' ) end [2024-12-26 00:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:29:20] Production.INFO: ==19800== Releasing lock... [2024-12-26 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:29:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:30:05 [end_date_ymd] => 2024-12-26 00:30:05 [RateCDR] => 1 ) [2024-12-26 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:30:05' and `end` < '2024-12-26 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:30:18] Production.INFO: count ==901 [2024-12-26 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:30:05 - End Time 2024-12-26 00:30:05 [2024-12-26 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103196', 'tblTempUsageDetail_20' ) start [2024-12-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103196', 'tblTempUsageDetail_20' ) end [2024-12-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103196', 'tblTempVendorCDR_20' ) start [2024-12-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103196', 'tblTempVendorCDR_20' ) end [2024-12-26 00:30:18] Production.INFO: ProcessCDR(1,14103196,1,1,2) [2024-12-26 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103196', 'tblTempUsageDetail_20' ) start [2024-12-26 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103196', 'tblTempUsageDetail_20' ) end [2024-12-26 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:30:21] Production.INFO: ==19881== Releasing lock... [2024-12-26 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:30:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:31:04 [end_date_ymd] => 2024-12-26 00:31:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:31:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:31:17] Production.INFO: count ==914 [2024-12-26 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:31:04 - End Time 2024-12-26 00:31:04 [2024-12-26 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103201', 'tblTempUsageDetail_20' ) start [2024-12-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103201', 'tblTempUsageDetail_20' ) end [2024-12-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103201', 'tblTempVendorCDR_20' ) start [2024-12-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103201', 'tblTempVendorCDR_20' ) end [2024-12-26 00:31:17] Production.INFO: ProcessCDR(1,14103201,1,1,2) [2024-12-26 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103201', 'tblTempUsageDetail_20' ) start [2024-12-26 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103201', 'tblTempUsageDetail_20' ) end [2024-12-26 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:31:20] Production.INFO: ==19959== Releasing lock... [2024-12-26 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:31:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:32:05 [end_date_ymd] => 2024-12-26 00:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:32:17] Production.INFO: count ==910 [2024-12-26 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:32:05 - End Time 2024-12-26 00:32:05 [2024-12-26 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103206', 'tblTempUsageDetail_20' ) start [2024-12-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103206', 'tblTempUsageDetail_20' ) end [2024-12-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103206', 'tblTempVendorCDR_20' ) start [2024-12-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103206', 'tblTempVendorCDR_20' ) end [2024-12-26 00:32:18] Production.INFO: ProcessCDR(1,14103206,1,1,2) [2024-12-26 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103206', 'tblTempUsageDetail_20' ) start [2024-12-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103206', 'tblTempUsageDetail_20' ) end [2024-12-26 00:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:32:21] Production.INFO: ==20035== Releasing lock... [2024-12-26 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:32:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:33:05 [end_date_ymd] => 2024-12-26 00:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:33:18] Production.INFO: count ==912 [2024-12-26 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:33:05 - End Time 2024-12-26 00:33:05 [2024-12-26 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103211', 'tblTempUsageDetail_20' ) start [2024-12-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103211', 'tblTempUsageDetail_20' ) end [2024-12-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103211', 'tblTempVendorCDR_20' ) start [2024-12-26 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103211', 'tblTempVendorCDR_20' ) end [2024-12-26 00:33:18] Production.INFO: ProcessCDR(1,14103211,1,1,2) [2024-12-26 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103211', 'tblTempUsageDetail_20' ) start [2024-12-26 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103211', 'tblTempUsageDetail_20' ) end [2024-12-26 00:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:33:22] Production.INFO: ==20118== Releasing lock... [2024-12-26 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:33:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:34:05 [end_date_ymd] => 2024-12-26 00:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:34:18] Production.INFO: count ==921 [2024-12-26 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:34:05 - End Time 2024-12-26 00:34:05 [2024-12-26 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103216', 'tblTempUsageDetail_20' ) start [2024-12-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103216', 'tblTempUsageDetail_20' ) end [2024-12-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103216', 'tblTempVendorCDR_20' ) start [2024-12-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103216', 'tblTempVendorCDR_20' ) end [2024-12-26 00:34:18] Production.INFO: ProcessCDR(1,14103216,1,1,2) [2024-12-26 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103216', 'tblTempUsageDetail_20' ) start [2024-12-26 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103216', 'tblTempUsageDetail_20' ) end [2024-12-26 00:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:34:22] Production.INFO: ==20197== Releasing lock... [2024-12-26 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:34:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:35:04 [end_date_ymd] => 2024-12-26 00:35:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:35:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:35:17] Production.INFO: count ==912 [2024-12-26 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:35:04 - End Time 2024-12-26 00:35:04 [2024-12-26 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103221', 'tblTempUsageDetail_20' ) start [2024-12-26 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103221', 'tblTempUsageDetail_20' ) end [2024-12-26 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103221', 'tblTempVendorCDR_20' ) start [2024-12-26 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103221', 'tblTempVendorCDR_20' ) end [2024-12-26 00:35:17] Production.INFO: ProcessCDR(1,14103221,1,1,2) [2024-12-26 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103221', 'tblTempUsageDetail_20' ) start [2024-12-26 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103221', 'tblTempUsageDetail_20' ) end [2024-12-26 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:35:20] Production.INFO: ==20275== Releasing lock... [2024-12-26 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:35:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:36:05 [end_date_ymd] => 2024-12-26 00:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:36:17] Production.INFO: count ==908 [2024-12-26 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:36:05 - End Time 2024-12-26 00:36:05 [2024-12-26 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103226', 'tblTempUsageDetail_20' ) start [2024-12-26 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103226', 'tblTempUsageDetail_20' ) end [2024-12-26 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103226', 'tblTempVendorCDR_20' ) start [2024-12-26 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103226', 'tblTempVendorCDR_20' ) end [2024-12-26 00:36:17] Production.INFO: ProcessCDR(1,14103226,1,1,2) [2024-12-26 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103226', 'tblTempUsageDetail_20' ) start [2024-12-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103226', 'tblTempUsageDetail_20' ) end [2024-12-26 00:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:36:21] Production.INFO: ==20353== Releasing lock... [2024-12-26 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:36:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:37:05 [end_date_ymd] => 2024-12-26 00:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:37:17] Production.INFO: count ==906 [2024-12-26 00:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:37:05 - End Time 2024-12-26 00:37:05 [2024-12-26 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103231', 'tblTempUsageDetail_20' ) start [2024-12-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103231', 'tblTempUsageDetail_20' ) end [2024-12-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103231', 'tblTempVendorCDR_20' ) start [2024-12-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103231', 'tblTempVendorCDR_20' ) end [2024-12-26 00:37:18] Production.INFO: ProcessCDR(1,14103231,1,1,2) [2024-12-26 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103231', 'tblTempUsageDetail_20' ) start [2024-12-26 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103231', 'tblTempUsageDetail_20' ) end [2024-12-26 00:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:37:21] Production.INFO: ==20428== Releasing lock... [2024-12-26 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:37:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:38:05 [end_date_ymd] => 2024-12-26 00:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:38:18] Production.INFO: count ==904 [2024-12-26 00:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:38:05 - End Time 2024-12-26 00:38:05 [2024-12-26 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103236', 'tblTempUsageDetail_20' ) start [2024-12-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103236', 'tblTempUsageDetail_20' ) end [2024-12-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103236', 'tblTempVendorCDR_20' ) start [2024-12-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103236', 'tblTempVendorCDR_20' ) end [2024-12-26 00:38:18] Production.INFO: ProcessCDR(1,14103236,1,1,2) [2024-12-26 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103236', 'tblTempUsageDetail_20' ) start [2024-12-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103236', 'tblTempUsageDetail_20' ) end [2024-12-26 00:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:38:21] Production.INFO: ==20503== Releasing lock... [2024-12-26 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:38:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:39:05 [end_date_ymd] => 2024-12-26 00:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:39:17] Production.INFO: count ==902 [2024-12-26 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:39:05 - End Time 2024-12-26 00:39:05 [2024-12-26 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103241', 'tblTempUsageDetail_20' ) start [2024-12-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103241', 'tblTempUsageDetail_20' ) end [2024-12-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103241', 'tblTempVendorCDR_20' ) start [2024-12-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103241', 'tblTempVendorCDR_20' ) end [2024-12-26 00:39:18] Production.INFO: ProcessCDR(1,14103241,1,1,2) [2024-12-26 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103241', 'tblTempUsageDetail_20' ) start [2024-12-26 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103241', 'tblTempUsageDetail_20' ) end [2024-12-26 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:39:21] Production.INFO: ==20618== Releasing lock... [2024-12-26 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:39:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:40:06 [end_date_ymd] => 2024-12-26 00:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:40:18] Production.INFO: count ==910 [2024-12-26 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:40:06 - End Time 2024-12-26 00:40:06 [2024-12-26 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103247', 'tblTempUsageDetail_20' ) start [2024-12-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103247', 'tblTempUsageDetail_20' ) end [2024-12-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103247', 'tblTempVendorCDR_20' ) start [2024-12-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103247', 'tblTempVendorCDR_20' ) end [2024-12-26 00:40:18] Production.INFO: ProcessCDR(1,14103247,1,1,2) [2024-12-26 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103247', 'tblTempUsageDetail_20' ) start [2024-12-26 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103247', 'tblTempUsageDetail_20' ) end [2024-12-26 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:40:21] Production.INFO: ==20701== Releasing lock... [2024-12-26 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:40:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:41:05 [end_date_ymd] => 2024-12-26 00:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:41:18] Production.INFO: count ==905 [2024-12-26 00:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:41:05 - End Time 2024-12-26 00:41:05 [2024-12-26 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103252', 'tblTempUsageDetail_20' ) start [2024-12-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103252', 'tblTempUsageDetail_20' ) end [2024-12-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103252', 'tblTempVendorCDR_20' ) start [2024-12-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103252', 'tblTempVendorCDR_20' ) end [2024-12-26 00:41:18] Production.INFO: ProcessCDR(1,14103252,1,1,2) [2024-12-26 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103252', 'tblTempUsageDetail_20' ) start [2024-12-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103252', 'tblTempUsageDetail_20' ) end [2024-12-26 00:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:41:21] Production.INFO: ==20780== Releasing lock... [2024-12-26 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:41:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:42:04 [end_date_ymd] => 2024-12-26 00:42:04 [RateCDR] => 1 ) [2024-12-26 00: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` >= '2024-12-25 21:42:04' and `end` < '2024-12-26 00: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 ,'') [2024-12-26 00:42:16] Production.INFO: count ==899 [2024-12-26 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:42:04 - End Time 2024-12-26 00:42:04 [2024-12-26 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103257', 'tblTempUsageDetail_20' ) start [2024-12-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103257', 'tblTempUsageDetail_20' ) end [2024-12-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103257', 'tblTempVendorCDR_20' ) start [2024-12-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103257', 'tblTempVendorCDR_20' ) end [2024-12-26 00:42:17] Production.INFO: ProcessCDR(1,14103257,1,1,2) [2024-12-26 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103257', 'tblTempUsageDetail_20' ) start [2024-12-26 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103257', 'tblTempUsageDetail_20' ) end [2024-12-26 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:42:20] Production.INFO: ==20858== Releasing lock... [2024-12-26 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:42:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:43:05 [end_date_ymd] => 2024-12-26 00:43:05 [RateCDR] => 1 ) [2024-12-26 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:43:05' and `end` < '2024-12-26 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:43:17] Production.INFO: count ==892 [2024-12-26 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:43:05 - End Time 2024-12-26 00:43:05 [2024-12-26 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103262', 'tblTempUsageDetail_20' ) start [2024-12-26 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103262', 'tblTempUsageDetail_20' ) end [2024-12-26 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103262', 'tblTempVendorCDR_20' ) start [2024-12-26 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103262', 'tblTempVendorCDR_20' ) end [2024-12-26 00:43:17] Production.INFO: ProcessCDR(1,14103262,1,1,2) [2024-12-26 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103262', 'tblTempUsageDetail_20' ) start [2024-12-26 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103262', 'tblTempUsageDetail_20' ) end [2024-12-26 00:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:43:22] Production.INFO: ==20934== Releasing lock... [2024-12-26 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:43:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:44:05 [end_date_ymd] => 2024-12-26 00:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:44:17] Production.INFO: count ==887 [2024-12-26 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:44:05 - End Time 2024-12-26 00:44:05 [2024-12-26 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103267', 'tblTempUsageDetail_20' ) start [2024-12-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103267', 'tblTempUsageDetail_20' ) end [2024-12-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103267', 'tblTempVendorCDR_20' ) start [2024-12-26 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103267', 'tblTempVendorCDR_20' ) end [2024-12-26 00:44:17] Production.INFO: ProcessCDR(1,14103267,1,1,2) [2024-12-26 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103267', 'tblTempUsageDetail_20' ) start [2024-12-26 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103267', 'tblTempUsageDetail_20' ) end [2024-12-26 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:44:20] Production.INFO: ==21012== Releasing lock... [2024-12-26 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:44:20] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:45:05 [end_date_ymd] => 2024-12-26 00:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:45:17] Production.INFO: count ==878 [2024-12-26 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:45:05 - End Time 2024-12-26 00:45:05 [2024-12-26 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103272', 'tblTempUsageDetail_20' ) start [2024-12-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103272', 'tblTempUsageDetail_20' ) end [2024-12-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103272', 'tblTempVendorCDR_20' ) start [2024-12-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103272', 'tblTempVendorCDR_20' ) end [2024-12-26 00:45:17] Production.INFO: ProcessCDR(1,14103272,1,1,2) [2024-12-26 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103272', 'tblTempUsageDetail_20' ) start [2024-12-26 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103272', 'tblTempUsageDetail_20' ) end [2024-12-26 00:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:45:22] Production.INFO: ==21093== Releasing lock... [2024-12-26 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:45:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:46:05 [end_date_ymd] => 2024-12-26 00:46:05 [RateCDR] => 1 ) [2024-12-26 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:46:05' and `end` < '2024-12-26 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:46:18] Production.INFO: count ==878 [2024-12-26 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:46:05 - End Time 2024-12-26 00:46:05 [2024-12-26 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103277', 'tblTempUsageDetail_20' ) start [2024-12-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103277', 'tblTempUsageDetail_20' ) end [2024-12-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103277', 'tblTempVendorCDR_20' ) start [2024-12-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103277', 'tblTempVendorCDR_20' ) end [2024-12-26 00:46:18] Production.INFO: ProcessCDR(1,14103277,1,1,2) [2024-12-26 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103277', 'tblTempUsageDetail_20' ) start [2024-12-26 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103277', 'tblTempUsageDetail_20' ) end [2024-12-26 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:46:21] Production.INFO: ==21173== Releasing lock... [2024-12-26 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:46:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:47:05 [end_date_ymd] => 2024-12-26 00:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:47:17] Production.INFO: count ==880 [2024-12-26 00:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:47:05 - End Time 2024-12-26 00:47:05 [2024-12-26 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103282', 'tblTempUsageDetail_20' ) start [2024-12-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103282', 'tblTempUsageDetail_20' ) end [2024-12-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103282', 'tblTempVendorCDR_20' ) start [2024-12-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103282', 'tblTempVendorCDR_20' ) end [2024-12-26 00:47:18] Production.INFO: ProcessCDR(1,14103282,1,1,2) [2024-12-26 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103282', 'tblTempUsageDetail_20' ) start [2024-12-26 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103282', 'tblTempUsageDetail_20' ) end [2024-12-26 00:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:47:21] Production.INFO: ==21254== Releasing lock... [2024-12-26 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:47:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:48:05 [end_date_ymd] => 2024-12-26 00:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:48:18] Production.INFO: count ==880 [2024-12-26 00:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:48:05 - End Time 2024-12-26 00:48:05 [2024-12-26 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103287', 'tblTempUsageDetail_20' ) start [2024-12-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103287', 'tblTempUsageDetail_20' ) end [2024-12-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103287', 'tblTempVendorCDR_20' ) start [2024-12-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103287', 'tblTempVendorCDR_20' ) end [2024-12-26 00:48:18] Production.INFO: ProcessCDR(1,14103287,1,1,2) [2024-12-26 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103287', 'tblTempUsageDetail_20' ) start [2024-12-26 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103287', 'tblTempUsageDetail_20' ) end [2024-12-26 00:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:48:22] Production.INFO: ==21335== Releasing lock... [2024-12-26 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:48:22] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:49:04 [end_date_ymd] => 2024-12-26 00:49:04 [RateCDR] => 1 ) [2024-12-26 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:49:04' and `end` < '2024-12-26 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:49:17] Production.INFO: count ==881 [2024-12-26 00:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:49:04 - End Time 2024-12-26 00:49:04 [2024-12-26 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103292', 'tblTempUsageDetail_20' ) start [2024-12-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103292', 'tblTempUsageDetail_20' ) end [2024-12-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103292', 'tblTempVendorCDR_20' ) start [2024-12-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103292', 'tblTempVendorCDR_20' ) end [2024-12-26 00:49:17] Production.INFO: ProcessCDR(1,14103292,1,1,2) [2024-12-26 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103292', 'tblTempUsageDetail_20' ) start [2024-12-26 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103292', 'tblTempUsageDetail_20' ) end [2024-12-26 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:49:21] Production.INFO: ==21415== Releasing lock... [2024-12-26 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:49:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:50:05 [end_date_ymd] => 2024-12-26 00:50:05 [RateCDR] => 1 ) [2024-12-26 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:50:05' and `end` < '2024-12-26 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:50:17] Production.INFO: count ==893 [2024-12-26 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:50:05 - End Time 2024-12-26 00:50:05 [2024-12-26 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103298', 'tblTempUsageDetail_20' ) start [2024-12-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103298', 'tblTempUsageDetail_20' ) end [2024-12-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103298', 'tblTempVendorCDR_20' ) start [2024-12-26 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103298', 'tblTempVendorCDR_20' ) end [2024-12-26 00:50:18] Production.INFO: ProcessCDR(1,14103298,1,1,2) [2024-12-26 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103298', 'tblTempUsageDetail_20' ) start [2024-12-26 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103298', 'tblTempUsageDetail_20' ) end [2024-12-26 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:50:21] Production.INFO: ==21497== Releasing lock... [2024-12-26 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:50:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:51:04 [end_date_ymd] => 2024-12-26 00:51:04 [RateCDR] => 1 ) [2024-12-26 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 21:51:04' and `end` < '2024-12-26 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 00:51:17] Production.INFO: count ==908 [2024-12-26 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:51:04 - End Time 2024-12-26 00:51:04 [2024-12-26 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103303', 'tblTempUsageDetail_20' ) start [2024-12-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103303', 'tblTempUsageDetail_20' ) end [2024-12-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103303', 'tblTempVendorCDR_20' ) start [2024-12-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103303', 'tblTempVendorCDR_20' ) end [2024-12-26 00:51:17] Production.INFO: ProcessCDR(1,14103303,1,1,2) [2024-12-26 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103303', 'tblTempUsageDetail_20' ) start [2024-12-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103303', 'tblTempUsageDetail_20' ) end [2024-12-26 00:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:51:21] Production.INFO: ==21577== Releasing lock... [2024-12-26 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:51:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:52:05 [end_date_ymd] => 2024-12-26 00:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:52:18] Production.INFO: count ==901 [2024-12-26 00:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:52:05 - End Time 2024-12-26 00:52:05 [2024-12-26 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103308', 'tblTempUsageDetail_20' ) start [2024-12-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103308', 'tblTempUsageDetail_20' ) end [2024-12-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103308', 'tblTempVendorCDR_20' ) start [2024-12-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103308', 'tblTempVendorCDR_20' ) end [2024-12-26 00:52:18] Production.INFO: ProcessCDR(1,14103308,1,1,2) [2024-12-26 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103308', 'tblTempUsageDetail_20' ) start [2024-12-26 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103308', 'tblTempUsageDetail_20' ) end [2024-12-26 00:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:52:21] Production.INFO: ==21654== Releasing lock... [2024-12-26 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:52:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:53:05 [end_date_ymd] => 2024-12-26 00:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:53:18] Production.INFO: count ==896 [2024-12-26 00:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:53:05 - End Time 2024-12-26 00:53:05 [2024-12-26 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103313', 'tblTempUsageDetail_20' ) start [2024-12-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103313', 'tblTempUsageDetail_20' ) end [2024-12-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103313', 'tblTempVendorCDR_20' ) start [2024-12-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103313', 'tblTempVendorCDR_20' ) end [2024-12-26 00:53:18] Production.INFO: ProcessCDR(1,14103313,1,1,2) [2024-12-26 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103313', 'tblTempUsageDetail_20' ) start [2024-12-26 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103313', 'tblTempUsageDetail_20' ) end [2024-12-26 00:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:53:23] Production.INFO: ==21732== Releasing lock... [2024-12-26 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:53:23] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:54:05 [end_date_ymd] => 2024-12-26 00:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:54:17] Production.INFO: count ==894 [2024-12-26 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:54:05 - End Time 2024-12-26 00:54:05 [2024-12-26 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103318', 'tblTempUsageDetail_20' ) start [2024-12-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103318', 'tblTempUsageDetail_20' ) end [2024-12-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103318', 'tblTempVendorCDR_20' ) start [2024-12-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103318', 'tblTempVendorCDR_20' ) end [2024-12-26 00:54:17] Production.INFO: ProcessCDR(1,14103318,1,1,2) [2024-12-26 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103318', 'tblTempUsageDetail_20' ) start [2024-12-26 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103318', 'tblTempUsageDetail_20' ) end [2024-12-26 00:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:54:22] Production.INFO: ==21815== Releasing lock... [2024-12-26 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:54:22] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:55:05 [end_date_ymd] => 2024-12-26 00:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:55:17] Production.INFO: count ==892 [2024-12-26 00:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:55:05 - End Time 2024-12-26 00:55:05 [2024-12-26 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103323', 'tblTempUsageDetail_20' ) start [2024-12-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103323', 'tblTempUsageDetail_20' ) end [2024-12-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103323', 'tblTempVendorCDR_20' ) start [2024-12-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103323', 'tblTempVendorCDR_20' ) end [2024-12-26 00:55:18] Production.INFO: ProcessCDR(1,14103323,1,1,2) [2024-12-26 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103323', 'tblTempUsageDetail_20' ) start [2024-12-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103323', 'tblTempUsageDetail_20' ) end [2024-12-26 00:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:55:21] Production.INFO: ==21938== Releasing lock... [2024-12-26 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:55:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:56:04 [end_date_ymd] => 2024-12-26 00:56:04 [RateCDR] => 1 ) [2024-12-26 00:56: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` >= '2024-12-25 21:56:04' and `end` < '2024-12-26 00:56: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 ,'') [2024-12-26 00:56:17] Production.INFO: count ==888 [2024-12-26 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:56:04 - End Time 2024-12-26 00:56:04 [2024-12-26 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103328', 'tblTempUsageDetail_20' ) start [2024-12-26 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103328', 'tblTempUsageDetail_20' ) end [2024-12-26 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103328', 'tblTempVendorCDR_20' ) start [2024-12-26 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103328', 'tblTempVendorCDR_20' ) end [2024-12-26 00:56:17] Production.INFO: ProcessCDR(1,14103328,1,1,2) [2024-12-26 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103328', 'tblTempUsageDetail_20' ) start [2024-12-26 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103328', 'tblTempUsageDetail_20' ) end [2024-12-26 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:56:20] Production.INFO: ==22014== Releasing lock... [2024-12-26 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:56:20] Production.INFO: 35 MB #Memory Used# [2024-12-26 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:57:05 [end_date_ymd] => 2024-12-26 00:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:57:18] Production.INFO: count ==886 [2024-12-26 00:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:57:05 - End Time 2024-12-26 00:57:05 [2024-12-26 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103333', 'tblTempUsageDetail_20' ) start [2024-12-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103333', 'tblTempUsageDetail_20' ) end [2024-12-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103333', 'tblTempVendorCDR_20' ) start [2024-12-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103333', 'tblTempVendorCDR_20' ) end [2024-12-26 00:57:18] Production.INFO: ProcessCDR(1,14103333,1,1,2) [2024-12-26 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103333', 'tblTempUsageDetail_20' ) start [2024-12-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103333', 'tblTempUsageDetail_20' ) end [2024-12-26 00:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:57:21] Production.INFO: ==22091== Releasing lock... [2024-12-26 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:57:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:58:05 [end_date_ymd] => 2024-12-26 00:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:58:17] Production.INFO: count ==879 [2024-12-26 00:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 21:58:05 - End Time 2024-12-26 00:58:05 [2024-12-26 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103338', 'tblTempUsageDetail_20' ) start [2024-12-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103338', 'tblTempUsageDetail_20' ) end [2024-12-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103338', 'tblTempVendorCDR_20' ) start [2024-12-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103338', 'tblTempVendorCDR_20' ) end [2024-12-26 00:58:18] Production.INFO: ProcessCDR(1,14103338,1,1,2) [2024-12-26 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103338', 'tblTempUsageDetail_20' ) start [2024-12-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103338', 'tblTempUsageDetail_20' ) end [2024-12-26 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:58:21] Production.INFO: ==22171== Releasing lock... [2024-12-26 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:58:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 21:59:05 [end_date_ymd] => 2024-12-26 00:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 21:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 00:59:17] Production.INFO: count ==878 [2024-12-26 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 21:59:05 - End Time 2024-12-26 00:59:05 [2024-12-26 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103343', 'tblTempUsageDetail_20' ) start [2024-12-26 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103343', 'tblTempUsageDetail_20' ) end [2024-12-26 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103343', 'tblTempVendorCDR_20' ) start [2024-12-26 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103343', 'tblTempVendorCDR_20' ) end [2024-12-26 00:59:17] Production.INFO: ProcessCDR(1,14103343,1,1,2) [2024-12-26 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103343', 'tblTempUsageDetail_20' ) start [2024-12-26 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103343', 'tblTempUsageDetail_20' ) end [2024-12-26 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 00:59:20] Production.INFO: ==22248== Releasing lock... [2024-12-26 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 00:59:20] Production.INFO: 35 MB #Memory Used# [2024-12-26 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:00:05 [end_date_ymd] => 2024-12-26 01:00:05 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:00:05' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:00:17] Production.INFO: count ==873 [2024-12-26 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:00:05 - End Time 2024-12-26 01:00:05 [2024-12-26 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103349', 'tblTempUsageDetail_20' ) start [2024-12-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103349', 'tblTempUsageDetail_20' ) end [2024-12-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103349', 'tblTempVendorCDR_20' ) start [2024-12-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103349', 'tblTempVendorCDR_20' ) end [2024-12-26 01:00:18] Production.INFO: ProcessCDR(1,14103349,1,1,2) [2024-12-26 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103349', 'tblTempUsageDetail_20' ) start [2024-12-26 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103349', 'tblTempUsageDetail_20' ) end [2024-12-26 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:00:21] Production.INFO: ==22326== Releasing lock... [2024-12-26 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:00:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:01:05 [end_date_ymd] => 2024-12-26 01:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:01:17] Production.INFO: count ==866 [2024-12-26 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:01:05 - End Time 2024-12-26 01:01:05 [2024-12-26 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103354', 'tblTempUsageDetail_20' ) start [2024-12-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103354', 'tblTempUsageDetail_20' ) end [2024-12-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103354', 'tblTempVendorCDR_20' ) start [2024-12-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103354', 'tblTempVendorCDR_20' ) end [2024-12-26 01:01:18] Production.INFO: ProcessCDR(1,14103354,1,1,2) [2024-12-26 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103354', 'tblTempUsageDetail_20' ) start [2024-12-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103354', 'tblTempUsageDetail_20' ) end [2024-12-26 01:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:01:21] Production.INFO: ==22429== Releasing lock... [2024-12-26 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:01:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:02:05 [end_date_ymd] => 2024-12-26 01:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:02:17] Production.INFO: count ==854 [2024-12-26 01:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:02:05 - End Time 2024-12-26 01:02:05 [2024-12-26 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103359', 'tblTempUsageDetail_20' ) start [2024-12-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103359', 'tblTempUsageDetail_20' ) end [2024-12-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103359', 'tblTempVendorCDR_20' ) start [2024-12-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103359', 'tblTempVendorCDR_20' ) end [2024-12-26 01:02:18] Production.INFO: ProcessCDR(1,14103359,1,1,2) [2024-12-26 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103359', 'tblTempUsageDetail_20' ) start [2024-12-26 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103359', 'tblTempUsageDetail_20' ) end [2024-12-26 01:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:02:21] Production.INFO: ==22511== Releasing lock... [2024-12-26 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:02:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:03:04 [end_date_ymd] => 2024-12-26 01:03:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:03:04' and `end` < '2024-12-26 01:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:03:17] Production.INFO: count ==846 [2024-12-26 01:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:03:04 - End Time 2024-12-26 01:03:04 [2024-12-26 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103364', 'tblTempUsageDetail_20' ) start [2024-12-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103364', 'tblTempUsageDetail_20' ) end [2024-12-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103364', 'tblTempVendorCDR_20' ) start [2024-12-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103364', 'tblTempVendorCDR_20' ) end [2024-12-26 01:03:18] Production.INFO: ProcessCDR(1,14103364,1,1,2) [2024-12-26 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103364', 'tblTempUsageDetail_20' ) start [2024-12-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103364', 'tblTempUsageDetail_20' ) end [2024-12-26 01:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:03:21] Production.INFO: ==22587== Releasing lock... [2024-12-26 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:03:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:04:05 [end_date_ymd] => 2024-12-26 01:04:05 [RateCDR] => 1 ) [2024-12-26 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:04:05' and `end` < '2024-12-26 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:04:17] Production.INFO: count ==835 [2024-12-26 01:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:04:05 - End Time 2024-12-26 01:04:05 [2024-12-26 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103369', 'tblTempUsageDetail_20' ) start [2024-12-26 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103369', 'tblTempUsageDetail_20' ) end [2024-12-26 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103369', 'tblTempVendorCDR_20' ) start [2024-12-26 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103369', 'tblTempVendorCDR_20' ) end [2024-12-26 01:04:17] Production.INFO: ProcessCDR(1,14103369,1,1,2) [2024-12-26 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103369', 'tblTempUsageDetail_20' ) start [2024-12-26 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103369', 'tblTempUsageDetail_20' ) end [2024-12-26 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:04:21] Production.INFO: ==22666== Releasing lock... [2024-12-26 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:04:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:05:05 [end_date_ymd] => 2024-12-26 01:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:05:17] Production.INFO: count ==823 [2024-12-26 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:05:05 - End Time 2024-12-26 01:05:05 [2024-12-26 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103374', 'tblTempUsageDetail_20' ) start [2024-12-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103374', 'tblTempUsageDetail_20' ) end [2024-12-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103374', 'tblTempVendorCDR_20' ) start [2024-12-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103374', 'tblTempVendorCDR_20' ) end [2024-12-26 01:05:17] Production.INFO: ProcessCDR(1,14103374,1,1,2) [2024-12-26 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103374', 'tblTempUsageDetail_20' ) start [2024-12-26 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103374', 'tblTempUsageDetail_20' ) end [2024-12-26 01:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:05:21] Production.INFO: ==22744== Releasing lock... [2024-12-26 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:05:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:06:05 [end_date_ymd] => 2024-12-26 01:06:05 [RateCDR] => 1 ) [2024-12-26 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:06:05' and `end` < '2024-12-26 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:06:18] Production.INFO: count ==818 [2024-12-26 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:06:05 - End Time 2024-12-26 01:06:05 [2024-12-26 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103379', 'tblTempUsageDetail_20' ) start [2024-12-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103379', 'tblTempUsageDetail_20' ) end [2024-12-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103379', 'tblTempVendorCDR_20' ) start [2024-12-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103379', 'tblTempVendorCDR_20' ) end [2024-12-26 01:06:18] Production.INFO: ProcessCDR(1,14103379,1,1,2) [2024-12-26 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103379', 'tblTempUsageDetail_20' ) start [2024-12-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103379', 'tblTempUsageDetail_20' ) end [2024-12-26 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:06:21] Production.INFO: ==22837== Releasing lock... [2024-12-26 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:06:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:07:04 [end_date_ymd] => 2024-12-26 01:07:04 [RateCDR] => 1 ) [2024-12-26 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:07:04' and `end` < '2024-12-26 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:07:16] Production.INFO: count ==815 [2024-12-26 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:07:04 - End Time 2024-12-26 01:07:04 [2024-12-26 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103384', 'tblTempUsageDetail_20' ) start [2024-12-26 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103384', 'tblTempUsageDetail_20' ) end [2024-12-26 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103384', 'tblTempVendorCDR_20' ) start [2024-12-26 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103384', 'tblTempVendorCDR_20' ) end [2024-12-26 01:07:17] Production.INFO: ProcessCDR(1,14103384,1,1,2) [2024-12-26 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103384', 'tblTempUsageDetail_20' ) start [2024-12-26 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103384', 'tblTempUsageDetail_20' ) end [2024-12-26 01:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:07:21] Production.INFO: ==22925== Releasing lock... [2024-12-26 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:07:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:08:05 [end_date_ymd] => 2024-12-26 01:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:08:17] Production.INFO: count ==814 [2024-12-26 01:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:08:05 - End Time 2024-12-26 01:08:05 [2024-12-26 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103389', 'tblTempUsageDetail_20' ) start [2024-12-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103389', 'tblTempUsageDetail_20' ) end [2024-12-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103389', 'tblTempVendorCDR_20' ) start [2024-12-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103389', 'tblTempVendorCDR_20' ) end [2024-12-26 01:08:18] Production.INFO: ProcessCDR(1,14103389,1,1,2) [2024-12-26 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103389', 'tblTempUsageDetail_20' ) start [2024-12-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103389', 'tblTempUsageDetail_20' ) end [2024-12-26 01:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:08:21] Production.INFO: ==23010== Releasing lock... [2024-12-26 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:08:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:09:05 [end_date_ymd] => 2024-12-26 01:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:09:17] Production.INFO: count ==813 [2024-12-26 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:09:05 - End Time 2024-12-26 01:09:05 [2024-12-26 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103394', 'tblTempUsageDetail_20' ) start [2024-12-26 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103394', 'tblTempUsageDetail_20' ) end [2024-12-26 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103394', 'tblTempVendorCDR_20' ) start [2024-12-26 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103394', 'tblTempVendorCDR_20' ) end [2024-12-26 01:09:17] Production.INFO: ProcessCDR(1,14103394,1,1,2) [2024-12-26 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103394', 'tblTempUsageDetail_20' ) start [2024-12-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103394', 'tblTempUsageDetail_20' ) end [2024-12-26 01:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:09:21] Production.INFO: ==23101== Releasing lock... [2024-12-26 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:09:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:10:05 [end_date_ymd] => 2024-12-26 01:10:05 [RateCDR] => 1 ) [2024-12-26 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:10:05' and `end` < '2024-12-26 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:10:18] Production.INFO: count ==801 [2024-12-26 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:10:05 - End Time 2024-12-26 01:10:05 [2024-12-26 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103400', 'tblTempUsageDetail_20' ) start [2024-12-26 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103400', 'tblTempUsageDetail_20' ) end [2024-12-26 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103400', 'tblTempVendorCDR_20' ) start [2024-12-26 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103400', 'tblTempVendorCDR_20' ) end [2024-12-26 01:10:18] Production.INFO: ProcessCDR(1,14103400,1,1,2) [2024-12-26 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103400', 'tblTempUsageDetail_20' ) start [2024-12-26 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103400', 'tblTempUsageDetail_20' ) end [2024-12-26 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:10:21] Production.INFO: ==23194== Releasing lock... [2024-12-26 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:10:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:11:06 [end_date_ymd] => 2024-12-26 01:11:06 [RateCDR] => 1 ) [2024-12-26 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:11:06' and `end` < '2024-12-26 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:11:18] Production.INFO: count ==800 [2024-12-26 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:11:06 - End Time 2024-12-26 01:11:06 [2024-12-26 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103405', 'tblTempUsageDetail_20' ) start [2024-12-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103405', 'tblTempUsageDetail_20' ) end [2024-12-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103405', 'tblTempVendorCDR_20' ) start [2024-12-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103405', 'tblTempVendorCDR_20' ) end [2024-12-26 01:11:18] Production.INFO: ProcessCDR(1,14103405,1,1,2) [2024-12-26 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103405', 'tblTempUsageDetail_20' ) start [2024-12-26 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103405', 'tblTempUsageDetail_20' ) end [2024-12-26 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:11:21] Production.INFO: ==23325== Releasing lock... [2024-12-26 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:11:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:12:05 [end_date_ymd] => 2024-12-26 01:12:05 [RateCDR] => 1 ) [2024-12-26 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:12:05' and `end` < '2024-12-26 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:12:17] Production.INFO: count ==800 [2024-12-26 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:12:05 - End Time 2024-12-26 01:12:05 [2024-12-26 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103410', 'tblTempUsageDetail_20' ) start [2024-12-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103410', 'tblTempUsageDetail_20' ) end [2024-12-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103410', 'tblTempVendorCDR_20' ) start [2024-12-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103410', 'tblTempVendorCDR_20' ) end [2024-12-26 01:12:18] Production.INFO: ProcessCDR(1,14103410,1,1,2) [2024-12-26 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103410', 'tblTempUsageDetail_20' ) start [2024-12-26 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103410', 'tblTempUsageDetail_20' ) end [2024-12-26 01:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:12:21] Production.INFO: ==23413== Releasing lock... [2024-12-26 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:12:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:13:06 [end_date_ymd] => 2024-12-26 01:13:06 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:13:06' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:13:18] Production.INFO: count ==800 [2024-12-26 01:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:13:06 - End Time 2024-12-26 01:13:06 [2024-12-26 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103415', 'tblTempUsageDetail_20' ) start [2024-12-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103415', 'tblTempUsageDetail_20' ) end [2024-12-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103415', 'tblTempVendorCDR_20' ) start [2024-12-26 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103415', 'tblTempVendorCDR_20' ) end [2024-12-26 01:13:18] Production.INFO: ProcessCDR(1,14103415,1,1,2) [2024-12-26 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103415', 'tblTempUsageDetail_20' ) start [2024-12-26 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103415', 'tblTempUsageDetail_20' ) end [2024-12-26 01:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:13:21] Production.INFO: ==23499== Releasing lock... [2024-12-26 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:13:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:14:05 [end_date_ymd] => 2024-12-26 01:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:14:18] Production.INFO: count ==796 [2024-12-26 01:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:14:05 - End Time 2024-12-26 01:14:05 [2024-12-26 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103420', 'tblTempUsageDetail_20' ) start [2024-12-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103420', 'tblTempUsageDetail_20' ) end [2024-12-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103420', 'tblTempVendorCDR_20' ) start [2024-12-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103420', 'tblTempVendorCDR_20' ) end [2024-12-26 01:14:18] Production.INFO: ProcessCDR(1,14103420,1,1,2) [2024-12-26 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103420', 'tblTempUsageDetail_20' ) start [2024-12-26 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103420', 'tblTempUsageDetail_20' ) end [2024-12-26 01:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:14:21] Production.INFO: ==23590== Releasing lock... [2024-12-26 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:14:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:15:05 [end_date_ymd] => 2024-12-26 01:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:15:18] Production.INFO: count ==788 [2024-12-26 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:15:05 - End Time 2024-12-26 01:15:05 [2024-12-26 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103425', 'tblTempUsageDetail_20' ) start [2024-12-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103425', 'tblTempUsageDetail_20' ) end [2024-12-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103425', 'tblTempVendorCDR_20' ) start [2024-12-26 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103425', 'tblTempVendorCDR_20' ) end [2024-12-26 01:15:18] Production.INFO: ProcessCDR(1,14103425,1,1,2) [2024-12-26 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103425', 'tblTempUsageDetail_20' ) start [2024-12-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103425', 'tblTempUsageDetail_20' ) end [2024-12-26 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:15:21] Production.INFO: ==23683== Releasing lock... [2024-12-26 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:15:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:16:05 [end_date_ymd] => 2024-12-26 01:16:05 [RateCDR] => 1 ) [2024-12-26 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:16:05' and `end` < '2024-12-26 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:16:17] Production.INFO: count ==790 [2024-12-26 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:16:05 - End Time 2024-12-26 01:16:05 [2024-12-26 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103430', 'tblTempUsageDetail_20' ) start [2024-12-26 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103430', 'tblTempUsageDetail_20' ) end [2024-12-26 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103430', 'tblTempVendorCDR_20' ) start [2024-12-26 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103430', 'tblTempVendorCDR_20' ) end [2024-12-26 01:16:17] Production.INFO: ProcessCDR(1,14103430,1,1,2) [2024-12-26 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103430', 'tblTempUsageDetail_20' ) start [2024-12-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103430', 'tblTempUsageDetail_20' ) end [2024-12-26 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:16:21] Production.INFO: ==23773== Releasing lock... [2024-12-26 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:16:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:17:04 [end_date_ymd] => 2024-12-26 01:17:04 [RateCDR] => 1 ) [2024-12-26 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:17:04' and `end` < '2024-12-26 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:17:17] Production.INFO: count ==791 [2024-12-26 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:17:04 - End Time 2024-12-26 01:17:04 [2024-12-26 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103435', 'tblTempUsageDetail_20' ) start [2024-12-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103435', 'tblTempUsageDetail_20' ) end [2024-12-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103435', 'tblTempVendorCDR_20' ) start [2024-12-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103435', 'tblTempVendorCDR_20' ) end [2024-12-26 01:17:17] Production.INFO: ProcessCDR(1,14103435,1,1,2) [2024-12-26 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103435', 'tblTempUsageDetail_20' ) start [2024-12-26 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103435', 'tblTempUsageDetail_20' ) end [2024-12-26 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:17:20] Production.INFO: ==23864== Releasing lock... [2024-12-26 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:17:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:18:05 [end_date_ymd] => 2024-12-26 01:18:05 [RateCDR] => 1 ) [2024-12-26 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:18:05' and `end` < '2024-12-26 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:18:18] Production.INFO: count ==776 [2024-12-26 01:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:18:05 - End Time 2024-12-26 01:18:05 [2024-12-26 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103440', 'tblTempUsageDetail_20' ) start [2024-12-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103440', 'tblTempUsageDetail_20' ) end [2024-12-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103440', 'tblTempVendorCDR_20' ) start [2024-12-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103440', 'tblTempVendorCDR_20' ) end [2024-12-26 01:18:18] Production.INFO: ProcessCDR(1,14103440,1,1,2) [2024-12-26 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103440', 'tblTempUsageDetail_20' ) start [2024-12-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103440', 'tblTempUsageDetail_20' ) end [2024-12-26 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:18:21] Production.INFO: ==23954== Releasing lock... [2024-12-26 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:18:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:19:05 [end_date_ymd] => 2024-12-26 01:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:19:17] Production.INFO: count ==771 [2024-12-26 01:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:19:05 - End Time 2024-12-26 01:19:05 [2024-12-26 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103445', 'tblTempUsageDetail_20' ) start [2024-12-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103445', 'tblTempUsageDetail_20' ) end [2024-12-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103445', 'tblTempVendorCDR_20' ) start [2024-12-26 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103445', 'tblTempVendorCDR_20' ) end [2024-12-26 01:19:17] Production.INFO: ProcessCDR(1,14103445,1,1,2) [2024-12-26 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103445', 'tblTempUsageDetail_20' ) start [2024-12-26 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103445', 'tblTempUsageDetail_20' ) end [2024-12-26 01:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:19:20] Production.INFO: ==24041== Releasing lock... [2024-12-26 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:19:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:20:05 [end_date_ymd] => 2024-12-26 01:20:05 [RateCDR] => 1 ) [2024-12-26 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:20:05' and `end` < '2024-12-26 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:20:18] Production.INFO: count ==775 [2024-12-26 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:20:05 - End Time 2024-12-26 01:20:05 [2024-12-26 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103450', 'tblTempUsageDetail_20' ) start [2024-12-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103450', 'tblTempUsageDetail_20' ) end [2024-12-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103450', 'tblTempVendorCDR_20' ) start [2024-12-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103450', 'tblTempVendorCDR_20' ) end [2024-12-26 01:20:18] Production.INFO: ProcessCDR(1,14103450,1,1,2) [2024-12-26 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103450', 'tblTempUsageDetail_20' ) start [2024-12-26 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103450', 'tblTempUsageDetail_20' ) end [2024-12-26 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:20:21] Production.INFO: ==24132== Releasing lock... [2024-12-26 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:20:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:21:05 [end_date_ymd] => 2024-12-26 01:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:21:17] Production.INFO: count ==774 [2024-12-26 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:21:05 - End Time 2024-12-26 01:21:05 [2024-12-26 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103456', 'tblTempUsageDetail_20' ) start [2024-12-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103456', 'tblTempUsageDetail_20' ) end [2024-12-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103456', 'tblTempVendorCDR_20' ) start [2024-12-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103456', 'tblTempVendorCDR_20' ) end [2024-12-26 01:21:18] Production.INFO: ProcessCDR(1,14103456,1,1,2) [2024-12-26 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103456', 'tblTempUsageDetail_20' ) start [2024-12-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103456', 'tblTempUsageDetail_20' ) end [2024-12-26 01:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:21:21] Production.INFO: ==24226== Releasing lock... [2024-12-26 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:21:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:22:05 [end_date_ymd] => 2024-12-26 01:22:05 [RateCDR] => 1 ) [2024-12-26 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:22:05' and `end` < '2024-12-26 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:22:20] Production.INFO: count ==766 [2024-12-26 01:22:20] Production.ERROR: pbx CDR StartTime 2024-12-25 22:22:05 - End Time 2024-12-26 01:22:05 [2024-12-26 01:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103461', 'tblTempUsageDetail_20' ) start [2024-12-26 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103461', 'tblTempUsageDetail_20' ) end [2024-12-26 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103461', 'tblTempVendorCDR_20' ) start [2024-12-26 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103461', 'tblTempVendorCDR_20' ) end [2024-12-26 01:22:20] Production.INFO: ProcessCDR(1,14103461,1,1,2) [2024-12-26 01:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103461', 'tblTempUsageDetail_20' ) start [2024-12-26 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103461', 'tblTempUsageDetail_20' ) end [2024-12-26 01:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:22:23] Production.INFO: ==24318== Releasing lock... [2024-12-26 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:22:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:23:05 [end_date_ymd] => 2024-12-26 01:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:23:18] Production.INFO: count ==750 [2024-12-26 01:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:23:05 - End Time 2024-12-26 01:23:05 [2024-12-26 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103466', 'tblTempUsageDetail_20' ) start [2024-12-26 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103466', 'tblTempUsageDetail_20' ) end [2024-12-26 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103466', 'tblTempVendorCDR_20' ) start [2024-12-26 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103466', 'tblTempVendorCDR_20' ) end [2024-12-26 01:23:19] Production.INFO: ProcessCDR(1,14103466,1,1,2) [2024-12-26 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103466', 'tblTempUsageDetail_20' ) start [2024-12-26 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103466', 'tblTempUsageDetail_20' ) end [2024-12-26 01:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:23:22] Production.INFO: ==24407== Releasing lock... [2024-12-26 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:23:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:24:04 [end_date_ymd] => 2024-12-26 01:24:04 [RateCDR] => 1 ) [2024-12-26 01:24: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` >= '2024-12-25 22:24:04' and `end` < '2024-12-26 01:24: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 ,'') [2024-12-26 01:24:17] Production.INFO: count ==748 [2024-12-26 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:24:04 - End Time 2024-12-26 01:24:04 [2024-12-26 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103471', 'tblTempUsageDetail_20' ) start [2024-12-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103471', 'tblTempUsageDetail_20' ) end [2024-12-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103471', 'tblTempVendorCDR_20' ) start [2024-12-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103471', 'tblTempVendorCDR_20' ) end [2024-12-26 01:24:17] Production.INFO: ProcessCDR(1,14103471,1,1,2) [2024-12-26 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103471', 'tblTempUsageDetail_20' ) start [2024-12-26 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103471', 'tblTempUsageDetail_20' ) end [2024-12-26 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:24:20] Production.INFO: ==24498== Releasing lock... [2024-12-26 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:24:20] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:25:05 [end_date_ymd] => 2024-12-26 01:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:25:17] Production.INFO: count ==742 [2024-12-26 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:25:05 - End Time 2024-12-26 01:25:05 [2024-12-26 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103476', 'tblTempUsageDetail_20' ) start [2024-12-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103476', 'tblTempUsageDetail_20' ) end [2024-12-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103476', 'tblTempVendorCDR_20' ) start [2024-12-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103476', 'tblTempVendorCDR_20' ) end [2024-12-26 01:25:17] Production.INFO: ProcessCDR(1,14103476,1,1,2) [2024-12-26 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103476', 'tblTempUsageDetail_20' ) start [2024-12-26 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103476', 'tblTempUsageDetail_20' ) end [2024-12-26 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:25:21] Production.INFO: ==24580== Releasing lock... [2024-12-26 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:25:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:26:04 [end_date_ymd] => 2024-12-26 01:26:04 [RateCDR] => 1 ) [2024-12-26 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:26:04' and `end` < '2024-12-26 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:26:16] Production.INFO: count ==741 [2024-12-26 01:26:16] Production.ERROR: pbx CDR StartTime 2024-12-25 22:26:04 - End Time 2024-12-26 01:26:04 [2024-12-26 01:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103481', 'tblTempUsageDetail_20' ) start [2024-12-26 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103481', 'tblTempUsageDetail_20' ) end [2024-12-26 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103481', 'tblTempVendorCDR_20' ) start [2024-12-26 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103481', 'tblTempVendorCDR_20' ) end [2024-12-26 01:26:16] Production.INFO: ProcessCDR(1,14103481,1,1,2) [2024-12-26 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103481', 'tblTempUsageDetail_20' ) start [2024-12-26 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103481', 'tblTempUsageDetail_20' ) end [2024-12-26 01:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:26:20] Production.INFO: ==24709== Releasing lock... [2024-12-26 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:26:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:27:04 [end_date_ymd] => 2024-12-26 01:27:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:27:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:27:17] Production.INFO: count ==741 [2024-12-26 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:27:04 - End Time 2024-12-26 01:27:04 [2024-12-26 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103486', 'tblTempUsageDetail_20' ) start [2024-12-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103486', 'tblTempUsageDetail_20' ) end [2024-12-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103486', 'tblTempVendorCDR_20' ) start [2024-12-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103486', 'tblTempVendorCDR_20' ) end [2024-12-26 01:27:17] Production.INFO: ProcessCDR(1,14103486,1,1,2) [2024-12-26 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103486', 'tblTempUsageDetail_20' ) start [2024-12-26 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103486', 'tblTempUsageDetail_20' ) end [2024-12-26 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:27:20] Production.INFO: ==24795== Releasing lock... [2024-12-26 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:27:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:28:04 [end_date_ymd] => 2024-12-26 01:28:04 [RateCDR] => 1 ) [2024-12-26 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:28:04' and `end` < '2024-12-26 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:28:18] Production.INFO: count ==736 [2024-12-26 01:28:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:28:04 - End Time 2024-12-26 01:28:04 [2024-12-26 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103491', 'tblTempUsageDetail_20' ) start [2024-12-26 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103491', 'tblTempUsageDetail_20' ) end [2024-12-26 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103491', 'tblTempVendorCDR_20' ) start [2024-12-26 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103491', 'tblTempVendorCDR_20' ) end [2024-12-26 01:28:19] Production.INFO: ProcessCDR(1,14103491,1,1,2) [2024-12-26 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103491', 'tblTempUsageDetail_20' ) start [2024-12-26 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103491', 'tblTempUsageDetail_20' ) end [2024-12-26 01:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:28:22] Production.INFO: ==24882== Releasing lock... [2024-12-26 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:28:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:29:05 [end_date_ymd] => 2024-12-26 01:29:05 [RateCDR] => 1 ) [2024-12-26 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:29:05' and `end` < '2024-12-26 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:29:18] Production.INFO: count ==732 [2024-12-26 01:29:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:29:05 - End Time 2024-12-26 01:29:05 [2024-12-26 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103496', 'tblTempUsageDetail_20' ) start [2024-12-26 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103496', 'tblTempUsageDetail_20' ) end [2024-12-26 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103496', 'tblTempVendorCDR_20' ) start [2024-12-26 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103496', 'tblTempVendorCDR_20' ) end [2024-12-26 01:29:19] Production.INFO: ProcessCDR(1,14103496,1,1,2) [2024-12-26 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103496', 'tblTempUsageDetail_20' ) start [2024-12-26 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103496', 'tblTempUsageDetail_20' ) end [2024-12-26 01:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:29:22] Production.INFO: ==24972== Releasing lock... [2024-12-26 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:29:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:30:06 [end_date_ymd] => 2024-12-26 01:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:30:18] Production.INFO: count ==730 [2024-12-26 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:30:06 - End Time 2024-12-26 01:30:06 [2024-12-26 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103502', 'tblTempUsageDetail_20' ) start [2024-12-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103502', 'tblTempUsageDetail_20' ) end [2024-12-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103502', 'tblTempVendorCDR_20' ) start [2024-12-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103502', 'tblTempVendorCDR_20' ) end [2024-12-26 01:30:19] Production.INFO: ProcessCDR(1,14103502,1,1,2) [2024-12-26 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103502', 'tblTempUsageDetail_20' ) start [2024-12-26 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103502', 'tblTempUsageDetail_20' ) end [2024-12-26 01:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:30:22] Production.INFO: ==25060== Releasing lock... [2024-12-26 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:30:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:31:05 [end_date_ymd] => 2024-12-26 01:31:05 [RateCDR] => 1 ) [2024-12-26 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:31:05' and `end` < '2024-12-26 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:31:18] Production.INFO: count ==730 [2024-12-26 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:31:05 - End Time 2024-12-26 01:31:05 [2024-12-26 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103507', 'tblTempUsageDetail_20' ) start [2024-12-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103507', 'tblTempUsageDetail_20' ) end [2024-12-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103507', 'tblTempVendorCDR_20' ) start [2024-12-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103507', 'tblTempVendorCDR_20' ) end [2024-12-26 01:31:18] Production.INFO: ProcessCDR(1,14103507,1,1,2) [2024-12-26 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103507', 'tblTempUsageDetail_20' ) start [2024-12-26 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103507', 'tblTempUsageDetail_20' ) end [2024-12-26 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:31:21] Production.INFO: ==25149== Releasing lock... [2024-12-26 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:31:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:32:05 [end_date_ymd] => 2024-12-26 01:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:32:19] Production.INFO: count ==725 [2024-12-26 01:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:32:05 - End Time 2024-12-26 01:32:05 [2024-12-26 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103512', 'tblTempUsageDetail_20' ) start [2024-12-26 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103512', 'tblTempUsageDetail_20' ) end [2024-12-26 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103512', 'tblTempVendorCDR_20' ) start [2024-12-26 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103512', 'tblTempVendorCDR_20' ) end [2024-12-26 01:32:19] Production.INFO: ProcessCDR(1,14103512,1,1,2) [2024-12-26 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103512', 'tblTempUsageDetail_20' ) start [2024-12-26 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103512', 'tblTempUsageDetail_20' ) end [2024-12-26 01:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:32:22] Production.INFO: ==25240== Releasing lock... [2024-12-26 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:32:22] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:33:05 [end_date_ymd] => 2024-12-26 01:33:05 [RateCDR] => 1 ) [2024-12-26 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:33:05' and `end` < '2024-12-26 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:33:17] Production.INFO: count ==724 [2024-12-26 01:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:33:05 - End Time 2024-12-26 01:33:05 [2024-12-26 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103517', 'tblTempUsageDetail_20' ) start [2024-12-26 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103517', 'tblTempUsageDetail_20' ) end [2024-12-26 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103517', 'tblTempVendorCDR_20' ) start [2024-12-26 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103517', 'tblTempVendorCDR_20' ) end [2024-12-26 01:33:17] Production.INFO: ProcessCDR(1,14103517,1,1,2) [2024-12-26 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103517', 'tblTempUsageDetail_20' ) start [2024-12-26 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103517', 'tblTempUsageDetail_20' ) end [2024-12-26 01:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:33:20] Production.INFO: ==25327== Releasing lock... [2024-12-26 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:33:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:34:05 [end_date_ymd] => 2024-12-26 01:34:05 [RateCDR] => 1 ) [2024-12-26 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:34:05' and `end` < '2024-12-26 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:34:17] Production.INFO: count ==721 [2024-12-26 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:34:05 - End Time 2024-12-26 01:34:05 [2024-12-26 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103522', 'tblTempUsageDetail_20' ) start [2024-12-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103522', 'tblTempUsageDetail_20' ) end [2024-12-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103522', 'tblTempVendorCDR_20' ) start [2024-12-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103522', 'tblTempVendorCDR_20' ) end [2024-12-26 01:34:18] Production.INFO: ProcessCDR(1,14103522,1,1,2) [2024-12-26 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103522', 'tblTempUsageDetail_20' ) start [2024-12-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103522', 'tblTempUsageDetail_20' ) end [2024-12-26 01:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:34:21] Production.INFO: ==25412== Releasing lock... [2024-12-26 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:34:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:35:04 [end_date_ymd] => 2024-12-26 01:35:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:35:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:35:18] Production.INFO: count ==721 [2024-12-26 01:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:35:04 - End Time 2024-12-26 01:35:04 [2024-12-26 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103527', 'tblTempUsageDetail_20' ) start [2024-12-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103527', 'tblTempUsageDetail_20' ) end [2024-12-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103527', 'tblTempVendorCDR_20' ) start [2024-12-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103527', 'tblTempVendorCDR_20' ) end [2024-12-26 01:35:18] Production.INFO: ProcessCDR(1,14103527,1,1,2) [2024-12-26 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103527', 'tblTempUsageDetail_20' ) start [2024-12-26 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103527', 'tblTempUsageDetail_20' ) end [2024-12-26 01:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:35:21] Production.INFO: ==25497== Releasing lock... [2024-12-26 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:35:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:36:05 [end_date_ymd] => 2024-12-26 01:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:36:17] Production.INFO: count ==720 [2024-12-26 01:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:36:05 - End Time 2024-12-26 01:36:05 [2024-12-26 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103532', 'tblTempUsageDetail_20' ) start [2024-12-26 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103532', 'tblTempUsageDetail_20' ) end [2024-12-26 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103532', 'tblTempVendorCDR_20' ) start [2024-12-26 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103532', 'tblTempVendorCDR_20' ) end [2024-12-26 01:36:17] Production.INFO: ProcessCDR(1,14103532,1,1,2) [2024-12-26 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103532', 'tblTempUsageDetail_20' ) start [2024-12-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103532', 'tblTempUsageDetail_20' ) end [2024-12-26 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:36:21] Production.INFO: ==25587== Releasing lock... [2024-12-26 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:36:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:37:04 [end_date_ymd] => 2024-12-26 01:37:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:37:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:37:17] Production.INFO: count ==714 [2024-12-26 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:37:04 - End Time 2024-12-26 01:37:04 [2024-12-26 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103537', 'tblTempUsageDetail_20' ) start [2024-12-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103537', 'tblTempUsageDetail_20' ) end [2024-12-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103537', 'tblTempVendorCDR_20' ) start [2024-12-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103537', 'tblTempVendorCDR_20' ) end [2024-12-26 01:37:18] Production.INFO: ProcessCDR(1,14103537,1,1,2) [2024-12-26 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103537', 'tblTempUsageDetail_20' ) start [2024-12-26 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103537', 'tblTempUsageDetail_20' ) end [2024-12-26 01:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:37:21] Production.INFO: ==25663== Releasing lock... [2024-12-26 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:37:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:38:05 [end_date_ymd] => 2024-12-26 01:38:05 [RateCDR] => 1 ) [2024-12-26 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:38:05' and `end` < '2024-12-26 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:38:17] Production.INFO: count ==708 [2024-12-26 01:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:38:05 - End Time 2024-12-26 01:38:05 [2024-12-26 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103542', 'tblTempUsageDetail_20' ) start [2024-12-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103542', 'tblTempUsageDetail_20' ) end [2024-12-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103542', 'tblTempVendorCDR_20' ) start [2024-12-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103542', 'tblTempVendorCDR_20' ) end [2024-12-26 01:38:18] Production.INFO: ProcessCDR(1,14103542,1,1,2) [2024-12-26 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103542', 'tblTempUsageDetail_20' ) start [2024-12-26 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103542', 'tblTempUsageDetail_20' ) end [2024-12-26 01:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:38:21] Production.INFO: ==25739== Releasing lock... [2024-12-26 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:38:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:39:05 [end_date_ymd] => 2024-12-26 01:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:39:19] Production.INFO: count ==697 [2024-12-26 01:39:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:39:05 - End Time 2024-12-26 01:39:05 [2024-12-26 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103547', 'tblTempUsageDetail_20' ) start [2024-12-26 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103547', 'tblTempUsageDetail_20' ) end [2024-12-26 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103547', 'tblTempVendorCDR_20' ) start [2024-12-26 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103547', 'tblTempVendorCDR_20' ) end [2024-12-26 01:39:19] Production.INFO: ProcessCDR(1,14103547,1,1,2) [2024-12-26 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103547', 'tblTempUsageDetail_20' ) start [2024-12-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103547', 'tblTempUsageDetail_20' ) end [2024-12-26 01:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:39:22] Production.INFO: ==25818== Releasing lock... [2024-12-26 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:39:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:40:05 [end_date_ymd] => 2024-12-26 01:40:05 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:40:05' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:40:17] Production.INFO: count ==688 [2024-12-26 01:40:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:40:05 - End Time 2024-12-26 01:40:05 [2024-12-26 01:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103552', 'tblTempUsageDetail_20' ) start [2024-12-26 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103552', 'tblTempUsageDetail_20' ) end [2024-12-26 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103552', 'tblTempVendorCDR_20' ) start [2024-12-26 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103552', 'tblTempVendorCDR_20' ) end [2024-12-26 01:40:17] Production.INFO: ProcessCDR(1,14103552,1,1,2) [2024-12-26 01:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103552', 'tblTempUsageDetail_20' ) start [2024-12-26 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103552', 'tblTempUsageDetail_20' ) end [2024-12-26 01:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:40:20] Production.INFO: ==25896== Releasing lock... [2024-12-26 01:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:40:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:41:05 [end_date_ymd] => 2024-12-26 01:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:41:17] Production.INFO: count ==689 [2024-12-26 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:41:05 - End Time 2024-12-26 01:41:05 [2024-12-26 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103558', 'tblTempUsageDetail_20' ) start [2024-12-26 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103558', 'tblTempUsageDetail_20' ) end [2024-12-26 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103558', 'tblTempVendorCDR_20' ) start [2024-12-26 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103558', 'tblTempVendorCDR_20' ) end [2024-12-26 01:41:17] Production.INFO: ProcessCDR(1,14103558,1,1,2) [2024-12-26 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103558', 'tblTempUsageDetail_20' ) start [2024-12-26 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103558', 'tblTempUsageDetail_20' ) end [2024-12-26 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:41:21] Production.INFO: ==25972== Releasing lock... [2024-12-26 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:41:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 01:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:42:04 [end_date_ymd] => 2024-12-26 01:42:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:42:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:42:17] Production.INFO: count ==686 [2024-12-26 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:42:04 - End Time 2024-12-26 01:42:04 [2024-12-26 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103563', 'tblTempUsageDetail_20' ) start [2024-12-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103563', 'tblTempUsageDetail_20' ) end [2024-12-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103563', 'tblTempVendorCDR_20' ) start [2024-12-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103563', 'tblTempVendorCDR_20' ) end [2024-12-26 01:42:18] Production.INFO: ProcessCDR(1,14103563,1,1,2) [2024-12-26 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103563', 'tblTempUsageDetail_20' ) start [2024-12-26 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103563', 'tblTempUsageDetail_20' ) end [2024-12-26 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:42:21] Production.INFO: ==26091== Releasing lock... [2024-12-26 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:42:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:43:05 [end_date_ymd] => 2024-12-26 01:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:43:18] Production.INFO: count ==683 [2024-12-26 01:43:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:43:05 - End Time 2024-12-26 01:43:05 [2024-12-26 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103568', 'tblTempUsageDetail_20' ) start [2024-12-26 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103568', 'tblTempUsageDetail_20' ) end [2024-12-26 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103568', 'tblTempVendorCDR_20' ) start [2024-12-26 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103568', 'tblTempVendorCDR_20' ) end [2024-12-26 01:43:19] Production.INFO: ProcessCDR(1,14103568,1,1,2) [2024-12-26 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103568', 'tblTempUsageDetail_20' ) start [2024-12-26 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103568', 'tblTempUsageDetail_20' ) end [2024-12-26 01:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:43:22] Production.INFO: ==26172== Releasing lock... [2024-12-26 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:43:22] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:44:05 [end_date_ymd] => 2024-12-26 01:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:44:18] Production.INFO: count ==679 [2024-12-26 01:44:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:44:05 - End Time 2024-12-26 01:44:05 [2024-12-26 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103573', 'tblTempUsageDetail_20' ) start [2024-12-26 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103573', 'tblTempUsageDetail_20' ) end [2024-12-26 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103573', 'tblTempVendorCDR_20' ) start [2024-12-26 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103573', 'tblTempVendorCDR_20' ) end [2024-12-26 01:44:19] Production.INFO: ProcessCDR(1,14103573,1,1,2) [2024-12-26 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103573', 'tblTempUsageDetail_20' ) start [2024-12-26 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103573', 'tblTempUsageDetail_20' ) end [2024-12-26 01:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:44:22] Production.INFO: ==26250== Releasing lock... [2024-12-26 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:44:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:45:05 [end_date_ymd] => 2024-12-26 01:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:45:17] Production.INFO: count ==659 [2024-12-26 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:45:05 - End Time 2024-12-26 01:45:05 [2024-12-26 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103578', 'tblTempUsageDetail_20' ) start [2024-12-26 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103578', 'tblTempUsageDetail_20' ) end [2024-12-26 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103578', 'tblTempVendorCDR_20' ) start [2024-12-26 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103578', 'tblTempVendorCDR_20' ) end [2024-12-26 01:45:17] Production.INFO: ProcessCDR(1,14103578,1,1,2) [2024-12-26 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103578', 'tblTempUsageDetail_20' ) start [2024-12-26 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103578', 'tblTempUsageDetail_20' ) end [2024-12-26 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:45:20] Production.INFO: ==26324== Releasing lock... [2024-12-26 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:45:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:46:05 [end_date_ymd] => 2024-12-26 01:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:46:19] Production.INFO: count ==637 [2024-12-26 01:46:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:46:05 - End Time 2024-12-26 01:46:05 [2024-12-26 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103583', 'tblTempUsageDetail_20' ) start [2024-12-26 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103583', 'tblTempUsageDetail_20' ) end [2024-12-26 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103583', 'tblTempVendorCDR_20' ) start [2024-12-26 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103583', 'tblTempVendorCDR_20' ) end [2024-12-26 01:46:19] Production.INFO: ProcessCDR(1,14103583,1,1,2) [2024-12-26 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103583', 'tblTempUsageDetail_20' ) start [2024-12-26 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103583', 'tblTempUsageDetail_20' ) end [2024-12-26 01:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:46:22] Production.INFO: ==26409== Releasing lock... [2024-12-26 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:46:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:47:04 [end_date_ymd] => 2024-12-26 01:47:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:47:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:47:17] Production.INFO: count ==613 [2024-12-26 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:47:04 - End Time 2024-12-26 01:47:04 [2024-12-26 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103588', 'tblTempUsageDetail_20' ) start [2024-12-26 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103588', 'tblTempUsageDetail_20' ) end [2024-12-26 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103588', 'tblTempVendorCDR_20' ) start [2024-12-26 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103588', 'tblTempVendorCDR_20' ) end [2024-12-26 01:47:17] Production.INFO: ProcessCDR(1,14103588,1,1,2) [2024-12-26 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103588', 'tblTempUsageDetail_20' ) start [2024-12-26 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103588', 'tblTempUsageDetail_20' ) end [2024-12-26 01:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:47:20] Production.INFO: ==26486== Releasing lock... [2024-12-26 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:47:20] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:48:05 [end_date_ymd] => 2024-12-26 01:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:48:18] Production.INFO: count ==600 [2024-12-26 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:48:05 - End Time 2024-12-26 01:48:05 [2024-12-26 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103593', 'tblTempUsageDetail_20' ) start [2024-12-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103593', 'tblTempUsageDetail_20' ) end [2024-12-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103593', 'tblTempVendorCDR_20' ) start [2024-12-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103593', 'tblTempVendorCDR_20' ) end [2024-12-26 01:48:18] Production.INFO: ProcessCDR(1,14103593,1,1,2) [2024-12-26 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103593', 'tblTempUsageDetail_20' ) start [2024-12-26 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103593', 'tblTempUsageDetail_20' ) end [2024-12-26 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:48:21] Production.INFO: ==26564== Releasing lock... [2024-12-26 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:48:21] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:49:04 [end_date_ymd] => 2024-12-26 01:49:04 [RateCDR] => 1 ) [2024-12-26 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:49:04' and `end` < '2024-12-26 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:49:18] Production.INFO: count ==588 [2024-12-26 01:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:49:04 - End Time 2024-12-26 01:49:04 [2024-12-26 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103598', 'tblTempUsageDetail_20' ) start [2024-12-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103598', 'tblTempUsageDetail_20' ) end [2024-12-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103598', 'tblTempVendorCDR_20' ) start [2024-12-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103598', 'tblTempVendorCDR_20' ) end [2024-12-26 01:49:18] Production.INFO: ProcessCDR(1,14103598,1,1,2) [2024-12-26 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103598', 'tblTempUsageDetail_20' ) start [2024-12-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103598', 'tblTempUsageDetail_20' ) end [2024-12-26 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:49:21] Production.INFO: ==26642== Releasing lock... [2024-12-26 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:49:21] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:50:06 [end_date_ymd] => 2024-12-26 01:50:06 [RateCDR] => 1 ) [2024-12-26 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:50:06' and `end` < '2024-12-26 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:50:18] Production.INFO: count ==578 [2024-12-26 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:50:06 - End Time 2024-12-26 01:50:06 [2024-12-26 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103604', 'tblTempUsageDetail_20' ) start [2024-12-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103604', 'tblTempUsageDetail_20' ) end [2024-12-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103604', 'tblTempVendorCDR_20' ) start [2024-12-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103604', 'tblTempVendorCDR_20' ) end [2024-12-26 01:50:18] Production.INFO: ProcessCDR(1,14103604,1,1,2) [2024-12-26 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103604', 'tblTempUsageDetail_20' ) start [2024-12-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103604', 'tblTempUsageDetail_20' ) end [2024-12-26 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:50:21] Production.INFO: ==26719== Releasing lock... [2024-12-26 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:50:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:51:04 [end_date_ymd] => 2024-12-26 01:51:04 [RateCDR] => 1 ) [2024-12-26 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:51:04' and `end` < '2024-12-26 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:51:17] Production.INFO: count ==566 [2024-12-26 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:51:04 - End Time 2024-12-26 01:51:04 [2024-12-26 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103609', 'tblTempUsageDetail_20' ) start [2024-12-26 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103609', 'tblTempUsageDetail_20' ) end [2024-12-26 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103609', 'tblTempVendorCDR_20' ) start [2024-12-26 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103609', 'tblTempVendorCDR_20' ) end [2024-12-26 01:51:17] Production.INFO: ProcessCDR(1,14103609,1,1,2) [2024-12-26 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103609', 'tblTempUsageDetail_20' ) start [2024-12-26 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103609', 'tblTempUsageDetail_20' ) end [2024-12-26 01:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:51:20] Production.INFO: ==26799== Releasing lock... [2024-12-26 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:51:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:52:05 [end_date_ymd] => 2024-12-26 01:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:52:17] Production.INFO: count ==553 [2024-12-26 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:52:05 - End Time 2024-12-26 01:52:05 [2024-12-26 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103614', 'tblTempUsageDetail_20' ) start [2024-12-26 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103614', 'tblTempUsageDetail_20' ) end [2024-12-26 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103614', 'tblTempVendorCDR_20' ) start [2024-12-26 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103614', 'tblTempVendorCDR_20' ) end [2024-12-26 01:52:17] Production.INFO: ProcessCDR(1,14103614,1,1,2) [2024-12-26 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103614', 'tblTempUsageDetail_20' ) start [2024-12-26 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103614', 'tblTempUsageDetail_20' ) end [2024-12-26 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:52:20] Production.INFO: ==26877== Releasing lock... [2024-12-26 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:52:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:53:04 [end_date_ymd] => 2024-12-26 01:53:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:53:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:53:16] Production.INFO: count ==542 [2024-12-26 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:53:04 - End Time 2024-12-26 01:53:04 [2024-12-26 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103619', 'tblTempUsageDetail_20' ) start [2024-12-26 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103619', 'tblTempUsageDetail_20' ) end [2024-12-26 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103619', 'tblTempVendorCDR_20' ) start [2024-12-26 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103619', 'tblTempVendorCDR_20' ) end [2024-12-26 01:53:17] Production.INFO: ProcessCDR(1,14103619,1,1,2) [2024-12-26 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103619', 'tblTempUsageDetail_20' ) start [2024-12-26 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103619', 'tblTempUsageDetail_20' ) end [2024-12-26 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:53:20] Production.INFO: ==26963== Releasing lock... [2024-12-26 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:53:20] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:54:05 [end_date_ymd] => 2024-12-26 01:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:54:18] Production.INFO: count ==531 [2024-12-26 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:54:05 - End Time 2024-12-26 01:54:05 [2024-12-26 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103624', 'tblTempUsageDetail_20' ) start [2024-12-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103624', 'tblTempUsageDetail_20' ) end [2024-12-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103624', 'tblTempVendorCDR_20' ) start [2024-12-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103624', 'tblTempVendorCDR_20' ) end [2024-12-26 01:54:18] Production.INFO: ProcessCDR(1,14103624,1,1,2) [2024-12-26 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103624', 'tblTempUsageDetail_20' ) start [2024-12-26 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103624', 'tblTempUsageDetail_20' ) end [2024-12-26 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:54:21] Production.INFO: ==27038== Releasing lock... [2024-12-26 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:54:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:55:05 [end_date_ymd] => 2024-12-26 01:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:55:17] Production.INFO: count ==519 [2024-12-26 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 22:55:05 - End Time 2024-12-26 01:55:05 [2024-12-26 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103629', 'tblTempUsageDetail_20' ) start [2024-12-26 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103629', 'tblTempUsageDetail_20' ) end [2024-12-26 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103629', 'tblTempVendorCDR_20' ) start [2024-12-26 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103629', 'tblTempVendorCDR_20' ) end [2024-12-26 01:55:17] Production.INFO: ProcessCDR(1,14103629,1,1,2) [2024-12-26 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103629', 'tblTempUsageDetail_20' ) start [2024-12-26 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103629', 'tblTempUsageDetail_20' ) end [2024-12-26 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:55:20] Production.INFO: ==27115== Releasing lock... [2024-12-26 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:55:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:56:04 [end_date_ymd] => 2024-12-26 01:56:04 [RateCDR] => 1 ) [2024-12-26 01:56: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` >= '2024-12-25 22:56:04' and `end` < '2024-12-26 01:56: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 ,'') [2024-12-26 01:56:17] Production.INFO: count ==509 [2024-12-26 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:56:04 - End Time 2024-12-26 01:56:04 [2024-12-26 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103634', 'tblTempUsageDetail_20' ) start [2024-12-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103634', 'tblTempUsageDetail_20' ) end [2024-12-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103634', 'tblTempVendorCDR_20' ) start [2024-12-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103634', 'tblTempVendorCDR_20' ) end [2024-12-26 01:56:18] Production.INFO: ProcessCDR(1,14103634,1,1,2) [2024-12-26 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103634', 'tblTempUsageDetail_20' ) start [2024-12-26 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103634', 'tblTempUsageDetail_20' ) end [2024-12-26 01:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:56:21] Production.INFO: ==27192== Releasing lock... [2024-12-26 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:56:21] Production.INFO: 33 MB #Memory Used# [2024-12-26 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:57:05 [end_date_ymd] => 2024-12-26 01:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 22:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 01:57:17] Production.INFO: count ==497 [2024-12-26 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:57:05 - End Time 2024-12-26 01:57:05 [2024-12-26 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103639', 'tblTempUsageDetail_20' ) start [2024-12-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103639', 'tblTempUsageDetail_20' ) end [2024-12-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103639', 'tblTempVendorCDR_20' ) start [2024-12-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103639', 'tblTempVendorCDR_20' ) end [2024-12-26 01:57:18] Production.INFO: ProcessCDR(1,14103639,1,1,2) [2024-12-26 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103639', 'tblTempUsageDetail_20' ) start [2024-12-26 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103639', 'tblTempUsageDetail_20' ) end [2024-12-26 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:57:21] Production.INFO: ==27268== Releasing lock... [2024-12-26 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:57:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:58:06 [end_date_ymd] => 2024-12-26 01:58:06 [RateCDR] => 1 ) [2024-12-26 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 22:58:06' and `end` < '2024-12-26 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 01:58:19] Production.INFO: count ==487 [2024-12-26 01:58:19] Production.ERROR: pbx CDR StartTime 2024-12-25 22:58:06 - End Time 2024-12-26 01:58:06 [2024-12-26 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103644', 'tblTempUsageDetail_20' ) start [2024-12-26 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103644', 'tblTempUsageDetail_20' ) end [2024-12-26 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103644', 'tblTempVendorCDR_20' ) start [2024-12-26 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103644', 'tblTempVendorCDR_20' ) end [2024-12-26 01:58:19] Production.INFO: ProcessCDR(1,14103644,1,1,2) [2024-12-26 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103644', 'tblTempUsageDetail_20' ) start [2024-12-26 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103644', 'tblTempUsageDetail_20' ) end [2024-12-26 01:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:58:22] Production.INFO: ==27390== Releasing lock... [2024-12-26 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:58:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 22:59:04 [end_date_ymd] => 2024-12-26 01:59:04 [RateCDR] => 1 ) [2024-12-26 01: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` >= '2024-12-25 22:59:04' and `end` < '2024-12-26 01: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 ,'') [2024-12-26 01:59:18] Production.INFO: count ==477 [2024-12-26 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 22:59:04 - End Time 2024-12-26 01:59:04 [2024-12-26 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103649', 'tblTempUsageDetail_20' ) start [2024-12-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103649', 'tblTempUsageDetail_20' ) end [2024-12-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103649', 'tblTempVendorCDR_20' ) start [2024-12-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103649', 'tblTempVendorCDR_20' ) end [2024-12-26 01:59:18] Production.INFO: ProcessCDR(1,14103649,1,1,2) [2024-12-26 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103649', 'tblTempUsageDetail_20' ) start [2024-12-26 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103649', 'tblTempUsageDetail_20' ) end [2024-12-26 01:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 01:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 01:59:22] Production.INFO: ==27468== Releasing lock... [2024-12-26 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 01:59:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:00:06 [end_date_ymd] => 2024-12-26 02:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:00:18] Production.INFO: count ==479 [2024-12-26 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:00:06 - End Time 2024-12-26 02:00:06 [2024-12-26 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103655', 'tblTempUsageDetail_20' ) start [2024-12-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103655', 'tblTempUsageDetail_20' ) end [2024-12-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103655', 'tblTempVendorCDR_20' ) start [2024-12-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103655', 'tblTempVendorCDR_20' ) end [2024-12-26 02:00:18] Production.INFO: ProcessCDR(1,14103655,1,1,2) [2024-12-26 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103655', 'tblTempUsageDetail_20' ) start [2024-12-26 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103655', 'tblTempUsageDetail_20' ) end [2024-12-26 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:00:21] Production.INFO: ==27546== Releasing lock... [2024-12-26 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:00:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:01:04 [end_date_ymd] => 2024-12-26 02:01:04 [RateCDR] => 1 ) [2024-12-26 02:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:01:04' and `end` < '2024-12-26 02:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:01:16] Production.INFO: count ==477 [2024-12-26 02:01:16] Production.ERROR: pbx CDR StartTime 2024-12-25 23:01:04 - End Time 2024-12-26 02:01:04 [2024-12-26 02:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103660', 'tblTempUsageDetail_20' ) start [2024-12-26 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103660', 'tblTempUsageDetail_20' ) end [2024-12-26 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103660', 'tblTempVendorCDR_20' ) start [2024-12-26 02:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103660', 'tblTempVendorCDR_20' ) end [2024-12-26 02:01:16] Production.INFO: ProcessCDR(1,14103660,1,1,2) [2024-12-26 02:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103660', 'tblTempUsageDetail_20' ) start [2024-12-26 02:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103660', 'tblTempUsageDetail_20' ) end [2024-12-26 02:01:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:01:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:01:19] Production.INFO: ==27730== Releasing lock... [2024-12-26 02:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:01:19] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:02:05 [end_date_ymd] => 2024-12-26 02:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:02:17] Production.INFO: count ==465 [2024-12-26 02:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:02:05 - End Time 2024-12-26 02:02:05 [2024-12-26 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103665', 'tblTempUsageDetail_20' ) start [2024-12-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103665', 'tblTempUsageDetail_20' ) end [2024-12-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103665', 'tblTempVendorCDR_20' ) start [2024-12-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103665', 'tblTempVendorCDR_20' ) end [2024-12-26 02:02:18] Production.INFO: ProcessCDR(1,14103665,1,1,2) [2024-12-26 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103665', 'tblTempUsageDetail_20' ) start [2024-12-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103665', 'tblTempUsageDetail_20' ) end [2024-12-26 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:02:21] Production.INFO: ==27808== Releasing lock... [2024-12-26 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:02:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:03:05 [end_date_ymd] => 2024-12-26 02:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:03:18] Production.INFO: count ==461 [2024-12-26 02:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:03:05 - End Time 2024-12-26 02:03:05 [2024-12-26 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103670', 'tblTempUsageDetail_20' ) start [2024-12-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103670', 'tblTempUsageDetail_20' ) end [2024-12-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103670', 'tblTempVendorCDR_20' ) start [2024-12-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103670', 'tblTempVendorCDR_20' ) end [2024-12-26 02:03:18] Production.INFO: ProcessCDR(1,14103670,1,1,2) [2024-12-26 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103670', 'tblTempUsageDetail_20' ) start [2024-12-26 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103670', 'tblTempUsageDetail_20' ) end [2024-12-26 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:03:21] Production.INFO: ==27883== Releasing lock... [2024-12-26 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:03:21] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:04:04 [end_date_ymd] => 2024-12-26 02:04:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:04:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:04:17] Production.INFO: count ==461 [2024-12-26 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:04:04 - End Time 2024-12-26 02:04:04 [2024-12-26 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103675', 'tblTempUsageDetail_20' ) start [2024-12-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103675', 'tblTempUsageDetail_20' ) end [2024-12-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103675', 'tblTempVendorCDR_20' ) start [2024-12-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103675', 'tblTempVendorCDR_20' ) end [2024-12-26 02:04:18] Production.INFO: ProcessCDR(1,14103675,1,1,2) [2024-12-26 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103675', 'tblTempUsageDetail_20' ) start [2024-12-26 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103675', 'tblTempUsageDetail_20' ) end [2024-12-26 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:04:21] Production.INFO: ==27966== Releasing lock... [2024-12-26 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:04:21] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:05:05 [end_date_ymd] => 2024-12-26 02:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:05:18] Production.INFO: count ==461 [2024-12-26 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:05:05 - End Time 2024-12-26 02:05:05 [2024-12-26 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103680', 'tblTempUsageDetail_20' ) start [2024-12-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103680', 'tblTempUsageDetail_20' ) end [2024-12-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103680', 'tblTempVendorCDR_20' ) start [2024-12-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103680', 'tblTempVendorCDR_20' ) end [2024-12-26 02:05:18] Production.INFO: ProcessCDR(1,14103680,1,1,2) [2024-12-26 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103680', 'tblTempUsageDetail_20' ) start [2024-12-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103680', 'tblTempUsageDetail_20' ) end [2024-12-26 02:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:05:21] Production.INFO: ==28042== Releasing lock... [2024-12-26 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:05:21] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:06:05 [end_date_ymd] => 2024-12-26 02:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:06:17] Production.INFO: count ==455 [2024-12-26 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:06:05 - End Time 2024-12-26 02:06:05 [2024-12-26 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103685', 'tblTempUsageDetail_20' ) start [2024-12-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103685', 'tblTempUsageDetail_20' ) end [2024-12-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103685', 'tblTempVendorCDR_20' ) start [2024-12-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103685', 'tblTempVendorCDR_20' ) end [2024-12-26 02:06:17] Production.INFO: ProcessCDR(1,14103685,1,1,2) [2024-12-26 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103685', 'tblTempUsageDetail_20' ) start [2024-12-26 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103685', 'tblTempUsageDetail_20' ) end [2024-12-26 02:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:06:20] Production.INFO: ==28119== Releasing lock... [2024-12-26 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:06:20] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:07:05 [end_date_ymd] => 2024-12-26 02:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:07:17] Production.INFO: count ==445 [2024-12-26 02:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:07:05 - End Time 2024-12-26 02:07:05 [2024-12-26 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103690', 'tblTempUsageDetail_20' ) start [2024-12-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103690', 'tblTempUsageDetail_20' ) end [2024-12-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103690', 'tblTempVendorCDR_20' ) start [2024-12-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103690', 'tblTempVendorCDR_20' ) end [2024-12-26 02:07:17] Production.INFO: ProcessCDR(1,14103690,1,1,2) [2024-12-26 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103690', 'tblTempUsageDetail_20' ) start [2024-12-26 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103690', 'tblTempUsageDetail_20' ) end [2024-12-26 02:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:07:20] Production.INFO: ==28194== Releasing lock... [2024-12-26 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:07:20] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:08:04 [end_date_ymd] => 2024-12-26 02:08:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:08:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:08:17] Production.INFO: count ==433 [2024-12-26 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:08:04 - End Time 2024-12-26 02:08:04 [2024-12-26 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103695', 'tblTempUsageDetail_20' ) start [2024-12-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103695', 'tblTempUsageDetail_20' ) end [2024-12-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103695', 'tblTempVendorCDR_20' ) start [2024-12-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103695', 'tblTempVendorCDR_20' ) end [2024-12-26 02:08:17] Production.INFO: ProcessCDR(1,14103695,1,1,2) [2024-12-26 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103695', 'tblTempUsageDetail_20' ) start [2024-12-26 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103695', 'tblTempUsageDetail_20' ) end [2024-12-26 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:08:20] Production.INFO: ==28272== Releasing lock... [2024-12-26 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:08:20] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:09:05 [end_date_ymd] => 2024-12-26 02:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:09:20] Production.INFO: count ==421 [2024-12-26 02:09:20] Production.ERROR: pbx CDR StartTime 2024-12-25 23:09:05 - End Time 2024-12-26 02:09:05 [2024-12-26 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103700', 'tblTempUsageDetail_20' ) start [2024-12-26 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103700', 'tblTempUsageDetail_20' ) end [2024-12-26 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103700', 'tblTempVendorCDR_20' ) start [2024-12-26 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103700', 'tblTempVendorCDR_20' ) end [2024-12-26 02:09:20] Production.INFO: ProcessCDR(1,14103700,1,1,2) [2024-12-26 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103700', 'tblTempUsageDetail_20' ) start [2024-12-26 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103700', 'tblTempUsageDetail_20' ) end [2024-12-26 02:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:09:23] Production.INFO: ==28351== Releasing lock... [2024-12-26 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:09:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:10:05 [end_date_ymd] => 2024-12-26 02:10:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:10:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:10:17] Production.INFO: count ==417 [2024-12-26 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:10:05 - End Time 2024-12-26 02:10:05 [2024-12-26 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103705', 'tblTempUsageDetail_20' ) start [2024-12-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103705', 'tblTempUsageDetail_20' ) end [2024-12-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103705', 'tblTempVendorCDR_20' ) start [2024-12-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103705', 'tblTempVendorCDR_20' ) end [2024-12-26 02:10:18] Production.INFO: ProcessCDR(1,14103705,1,1,2) [2024-12-26 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103705', 'tblTempUsageDetail_20' ) start [2024-12-26 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103705', 'tblTempUsageDetail_20' ) end [2024-12-26 02:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:10:21] Production.INFO: ==28432== Releasing lock... [2024-12-26 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:10:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:11:04 [end_date_ymd] => 2024-12-26 02:11:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:11:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:11:17] Production.INFO: count ==415 [2024-12-26 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:11:04 - End Time 2024-12-26 02:11:04 [2024-12-26 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103711', 'tblTempUsageDetail_20' ) start [2024-12-26 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103711', 'tblTempUsageDetail_20' ) end [2024-12-26 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103711', 'tblTempVendorCDR_20' ) start [2024-12-26 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103711', 'tblTempVendorCDR_20' ) end [2024-12-26 02:11:17] Production.INFO: ProcessCDR(1,14103711,1,1,2) [2024-12-26 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103711', 'tblTempUsageDetail_20' ) start [2024-12-26 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103711', 'tblTempUsageDetail_20' ) end [2024-12-26 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:11:20] Production.INFO: ==28515== Releasing lock... [2024-12-26 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:11:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:12:05 [end_date_ymd] => 2024-12-26 02:12:05 [RateCDR] => 1 ) [2024-12-26 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:12:05' and `end` < '2024-12-26 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:12:17] Production.INFO: count ==412 [2024-12-26 02:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:12:05 - End Time 2024-12-26 02:12:05 [2024-12-26 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103716', 'tblTempUsageDetail_20' ) start [2024-12-26 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103716', 'tblTempUsageDetail_20' ) end [2024-12-26 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103716', 'tblTempVendorCDR_20' ) start [2024-12-26 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103716', 'tblTempVendorCDR_20' ) end [2024-12-26 02:12:17] Production.INFO: ProcessCDR(1,14103716,1,1,2) [2024-12-26 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103716', 'tblTempUsageDetail_20' ) start [2024-12-26 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103716', 'tblTempUsageDetail_20' ) end [2024-12-26 02:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:12:20] Production.INFO: ==28593== Releasing lock... [2024-12-26 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:12:20] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:13:05 [end_date_ymd] => 2024-12-26 02:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:13:19] Production.INFO: count ==412 [2024-12-26 02:13:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:13:05 - End Time 2024-12-26 02:13:05 [2024-12-26 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103721', 'tblTempUsageDetail_20' ) start [2024-12-26 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103721', 'tblTempUsageDetail_20' ) end [2024-12-26 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103721', 'tblTempVendorCDR_20' ) start [2024-12-26 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103721', 'tblTempVendorCDR_20' ) end [2024-12-26 02:13:19] Production.INFO: ProcessCDR(1,14103721,1,1,2) [2024-12-26 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103721', 'tblTempUsageDetail_20' ) start [2024-12-26 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103721', 'tblTempUsageDetail_20' ) end [2024-12-26 02:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:13:22] Production.INFO: ==28708== Releasing lock... [2024-12-26 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:13:22] Production.INFO: 32 MB #Memory Used# [2024-12-26 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:14:05 [end_date_ymd] => 2024-12-26 02:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:14:19] Production.INFO: count ==410 [2024-12-26 02:14:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:14:05 - End Time 2024-12-26 02:14:05 [2024-12-26 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103726', 'tblTempUsageDetail_20' ) start [2024-12-26 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103726', 'tblTempUsageDetail_20' ) end [2024-12-26 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103726', 'tblTempVendorCDR_20' ) start [2024-12-26 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103726', 'tblTempVendorCDR_20' ) end [2024-12-26 02:14:19] Production.INFO: ProcessCDR(1,14103726,1,1,2) [2024-12-26 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103726', 'tblTempUsageDetail_20' ) start [2024-12-26 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103726', 'tblTempUsageDetail_20' ) end [2024-12-26 02:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:14:22] Production.INFO: ==28785== Releasing lock... [2024-12-26 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:14:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:15:05 [end_date_ymd] => 2024-12-26 02:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:15:18] Production.INFO: count ==410 [2024-12-26 02:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:15:05 - End Time 2024-12-26 02:15:05 [2024-12-26 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103731', 'tblTempUsageDetail_20' ) start [2024-12-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103731', 'tblTempUsageDetail_20' ) end [2024-12-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103731', 'tblTempVendorCDR_20' ) start [2024-12-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103731', 'tblTempVendorCDR_20' ) end [2024-12-26 02:15:18] Production.INFO: ProcessCDR(1,14103731,1,1,2) [2024-12-26 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103731', 'tblTempUsageDetail_20' ) start [2024-12-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103731', 'tblTempUsageDetail_20' ) end [2024-12-26 02:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:15:21] Production.INFO: ==28864== Releasing lock... [2024-12-26 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:15:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:16:04 [end_date_ymd] => 2024-12-26 02:16:04 [RateCDR] => 1 ) [2024-12-26 02:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:16:04' and `end` < '2024-12-26 02:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:16:17] Production.INFO: count ==410 [2024-12-26 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:16:04 - End Time 2024-12-26 02:16:04 [2024-12-26 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103736', 'tblTempUsageDetail_20' ) start [2024-12-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103736', 'tblTempUsageDetail_20' ) end [2024-12-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103736', 'tblTempVendorCDR_20' ) start [2024-12-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103736', 'tblTempVendorCDR_20' ) end [2024-12-26 02:16:17] Production.INFO: ProcessCDR(1,14103736,1,1,2) [2024-12-26 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103736', 'tblTempUsageDetail_20' ) start [2024-12-26 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103736', 'tblTempUsageDetail_20' ) end [2024-12-26 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:16:20] Production.INFO: ==28941== Releasing lock... [2024-12-26 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:16:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:17:05 [end_date_ymd] => 2024-12-26 02:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:17:17] Production.INFO: count ==409 [2024-12-26 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:17:05 - End Time 2024-12-26 02:17:05 [2024-12-26 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103741', 'tblTempUsageDetail_20' ) start [2024-12-26 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103741', 'tblTempUsageDetail_20' ) end [2024-12-26 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103741', 'tblTempVendorCDR_20' ) start [2024-12-26 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103741', 'tblTempVendorCDR_20' ) end [2024-12-26 02:17:17] Production.INFO: ProcessCDR(1,14103741,1,1,2) [2024-12-26 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103741', 'tblTempUsageDetail_20' ) start [2024-12-26 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103741', 'tblTempUsageDetail_20' ) end [2024-12-26 02:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:17:20] Production.INFO: ==29018== Releasing lock... [2024-12-26 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:17:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:18:05 [end_date_ymd] => 2024-12-26 02:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:18:17] Production.INFO: count ==409 [2024-12-26 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:18:05 - End Time 2024-12-26 02:18:05 [2024-12-26 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103746', 'tblTempUsageDetail_20' ) start [2024-12-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103746', 'tblTempUsageDetail_20' ) end [2024-12-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103746', 'tblTempVendorCDR_20' ) start [2024-12-26 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103746', 'tblTempVendorCDR_20' ) end [2024-12-26 02:18:17] Production.INFO: ProcessCDR(1,14103746,1,1,2) [2024-12-26 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103746', 'tblTempUsageDetail_20' ) start [2024-12-26 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103746', 'tblTempUsageDetail_20' ) end [2024-12-26 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:18:20] Production.INFO: ==29095== Releasing lock... [2024-12-26 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:18:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:19:05 [end_date_ymd] => 2024-12-26 02:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:19:18] Production.INFO: count ==405 [2024-12-26 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:19:05 - End Time 2024-12-26 02:19:05 [2024-12-26 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103751', 'tblTempUsageDetail_20' ) start [2024-12-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103751', 'tblTempUsageDetail_20' ) end [2024-12-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103751', 'tblTempVendorCDR_20' ) start [2024-12-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103751', 'tblTempVendorCDR_20' ) end [2024-12-26 02:19:18] Production.INFO: ProcessCDR(1,14103751,1,1,2) [2024-12-26 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103751', 'tblTempUsageDetail_20' ) start [2024-12-26 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103751', 'tblTempUsageDetail_20' ) end [2024-12-26 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:19:21] Production.INFO: ==29177== Releasing lock... [2024-12-26 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:19:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:20:06 [end_date_ymd] => 2024-12-26 02:20:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:20:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:20:18] Production.INFO: count ==402 [2024-12-26 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:20:06 - End Time 2024-12-26 02:20:06 [2024-12-26 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103756', 'tblTempUsageDetail_20' ) start [2024-12-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103756', 'tblTempUsageDetail_20' ) end [2024-12-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103756', 'tblTempVendorCDR_20' ) start [2024-12-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103756', 'tblTempVendorCDR_20' ) end [2024-12-26 02:20:18] Production.INFO: ProcessCDR(1,14103756,1,1,2) [2024-12-26 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103756', 'tblTempUsageDetail_20' ) start [2024-12-26 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103756', 'tblTempUsageDetail_20' ) end [2024-12-26 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:20:21] Production.INFO: ==29256== Releasing lock... [2024-12-26 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:20:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:21:04 [end_date_ymd] => 2024-12-26 02:21:04 [RateCDR] => 1 ) [2024-12-26 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:21:04' and `end` < '2024-12-26 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:21:17] Production.INFO: count ==402 [2024-12-26 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:21:04 - End Time 2024-12-26 02:21:04 [2024-12-26 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103762', 'tblTempUsageDetail_20' ) start [2024-12-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103762', 'tblTempUsageDetail_20' ) end [2024-12-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103762', 'tblTempVendorCDR_20' ) start [2024-12-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103762', 'tblTempVendorCDR_20' ) end [2024-12-26 02:21:17] Production.INFO: ProcessCDR(1,14103762,1,1,2) [2024-12-26 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103762', 'tblTempUsageDetail_20' ) start [2024-12-26 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103762', 'tblTempUsageDetail_20' ) end [2024-12-26 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:21:20] Production.INFO: ==29333== Releasing lock... [2024-12-26 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:21:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:22:05 [end_date_ymd] => 2024-12-26 02:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:22:18] Production.INFO: count ==399 [2024-12-26 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:22:05 - End Time 2024-12-26 02:22:05 [2024-12-26 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103767', 'tblTempUsageDetail_20' ) start [2024-12-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103767', 'tblTempUsageDetail_20' ) end [2024-12-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103767', 'tblTempVendorCDR_20' ) start [2024-12-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103767', 'tblTempVendorCDR_20' ) end [2024-12-26 02:22:18] Production.INFO: ProcessCDR(1,14103767,1,1,2) [2024-12-26 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103767', 'tblTempUsageDetail_20' ) start [2024-12-26 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103767', 'tblTempUsageDetail_20' ) end [2024-12-26 02:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:22:22] Production.INFO: ==29408== Releasing lock... [2024-12-26 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:22:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:23:04 [end_date_ymd] => 2024-12-26 02:23:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:23:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:23:17] Production.INFO: count ==399 [2024-12-26 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:23:04 - End Time 2024-12-26 02:23:04 [2024-12-26 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103768', 'tblTempUsageDetail_20' ) start [2024-12-26 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103768', 'tblTempUsageDetail_20' ) end [2024-12-26 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103768', 'tblTempVendorCDR_20' ) start [2024-12-26 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103768', 'tblTempVendorCDR_20' ) end [2024-12-26 02:23:17] Production.INFO: ProcessCDR(1,14103768,1,1,2) [2024-12-26 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103768', 'tblTempUsageDetail_20' ) start [2024-12-26 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103768', 'tblTempUsageDetail_20' ) end [2024-12-26 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:23:20] Production.INFO: ==29490== Releasing lock... [2024-12-26 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:23:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:24:05 [end_date_ymd] => 2024-12-26 02:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:24:17] Production.INFO: count ==397 [2024-12-26 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:24:05 - End Time 2024-12-26 02:24:05 [2024-12-26 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103777', 'tblTempUsageDetail_20' ) start [2024-12-26 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103777', 'tblTempUsageDetail_20' ) end [2024-12-26 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103777', 'tblTempVendorCDR_20' ) start [2024-12-26 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103777', 'tblTempVendorCDR_20' ) end [2024-12-26 02:24:17] Production.INFO: ProcessCDR(1,14103777,1,1,2) [2024-12-26 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103777', 'tblTempUsageDetail_20' ) start [2024-12-26 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103777', 'tblTempUsageDetail_20' ) end [2024-12-26 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:24:20] Production.INFO: ==29566== Releasing lock... [2024-12-26 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:24:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:25:05 [end_date_ymd] => 2024-12-26 02:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:25:17] Production.INFO: count ==396 [2024-12-26 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:25:05 - End Time 2024-12-26 02:25:05 [2024-12-26 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103782', 'tblTempUsageDetail_20' ) start [2024-12-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103782', 'tblTempUsageDetail_20' ) end [2024-12-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103782', 'tblTempVendorCDR_20' ) start [2024-12-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103782', 'tblTempVendorCDR_20' ) end [2024-12-26 02:25:17] Production.INFO: ProcessCDR(1,14103782,1,1,2) [2024-12-26 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103782', 'tblTempUsageDetail_20' ) start [2024-12-26 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103782', 'tblTempUsageDetail_20' ) end [2024-12-26 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:25:20] Production.INFO: ==29646== Releasing lock... [2024-12-26 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:25:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:26:05 [end_date_ymd] => 2024-12-26 02:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:26:18] Production.INFO: count ==396 [2024-12-26 02:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:26:05 - End Time 2024-12-26 02:26:05 [2024-12-26 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103787', 'tblTempUsageDetail_20' ) start [2024-12-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103787', 'tblTempUsageDetail_20' ) end [2024-12-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103787', 'tblTempVendorCDR_20' ) start [2024-12-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103787', 'tblTempVendorCDR_20' ) end [2024-12-26 02:26:18] Production.INFO: ProcessCDR(1,14103787,1,1,2) [2024-12-26 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103787', 'tblTempUsageDetail_20' ) start [2024-12-26 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103787', 'tblTempUsageDetail_20' ) end [2024-12-26 02:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:26:21] Production.INFO: ==29733== Releasing lock... [2024-12-26 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:26:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:27:05 [end_date_ymd] => 2024-12-26 02:27:05 [RateCDR] => 1 ) [2024-12-26 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:27:05' and `end` < '2024-12-26 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:27:18] Production.INFO: count ==396 [2024-12-26 02:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:27:05 - End Time 2024-12-26 02:27:05 [2024-12-26 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103792', 'tblTempUsageDetail_20' ) start [2024-12-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103792', 'tblTempUsageDetail_20' ) end [2024-12-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103792', 'tblTempVendorCDR_20' ) start [2024-12-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103792', 'tblTempVendorCDR_20' ) end [2024-12-26 02:27:18] Production.INFO: ProcessCDR(1,14103792,1,1,2) [2024-12-26 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103792', 'tblTempUsageDetail_20' ) start [2024-12-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103792', 'tblTempUsageDetail_20' ) end [2024-12-26 02:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:27:21] Production.INFO: ==29812== Releasing lock... [2024-12-26 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:27:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:28:05 [end_date_ymd] => 2024-12-26 02:28:05 [RateCDR] => 1 ) [2024-12-26 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:28:05' and `end` < '2024-12-26 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:28:18] Production.INFO: count ==391 [2024-12-26 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:28:05 - End Time 2024-12-26 02:28:05 [2024-12-26 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103797', 'tblTempUsageDetail_20' ) start [2024-12-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103797', 'tblTempUsageDetail_20' ) end [2024-12-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103797', 'tblTempVendorCDR_20' ) start [2024-12-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103797', 'tblTempVendorCDR_20' ) end [2024-12-26 02:28:18] Production.INFO: ProcessCDR(1,14103797,1,1,2) [2024-12-26 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103797', 'tblTempUsageDetail_20' ) start [2024-12-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103797', 'tblTempUsageDetail_20' ) end [2024-12-26 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:28:21] Production.INFO: ==29893== Releasing lock... [2024-12-26 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:28:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:29:05 [end_date_ymd] => 2024-12-26 02:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:29:18] Production.INFO: count ==376 [2024-12-26 02:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:29:05 - End Time 2024-12-26 02:29:05 [2024-12-26 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103802', 'tblTempUsageDetail_20' ) start [2024-12-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103802', 'tblTempUsageDetail_20' ) end [2024-12-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103802', 'tblTempVendorCDR_20' ) start [2024-12-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103802', 'tblTempVendorCDR_20' ) end [2024-12-26 02:29:18] Production.INFO: ProcessCDR(1,14103802,1,1,2) [2024-12-26 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103802', 'tblTempUsageDetail_20' ) start [2024-12-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103802', 'tblTempUsageDetail_20' ) end [2024-12-26 02:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:29:21] Production.INFO: ==30013== Releasing lock... [2024-12-26 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:29:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:30:05 [end_date_ymd] => 2024-12-26 02:30:05 [RateCDR] => 1 ) [2024-12-26 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:30:05' and `end` < '2024-12-26 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:30:17] Production.INFO: count ==371 [2024-12-26 02:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:30:05 - End Time 2024-12-26 02:30:05 [2024-12-26 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103808', 'tblTempUsageDetail_20' ) start [2024-12-26 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103808', 'tblTempUsageDetail_20' ) end [2024-12-26 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103808', 'tblTempVendorCDR_20' ) start [2024-12-26 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103808', 'tblTempVendorCDR_20' ) end [2024-12-26 02:30:17] Production.INFO: ProcessCDR(1,14103808,1,1,2) [2024-12-26 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103808', 'tblTempUsageDetail_20' ) start [2024-12-26 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103808', 'tblTempUsageDetail_20' ) end [2024-12-26 02:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:30:20] Production.INFO: ==30098== Releasing lock... [2024-12-26 02:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:30:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:31:04 [end_date_ymd] => 2024-12-26 02:31:04 [RateCDR] => 1 ) [2024-12-26 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:31:04' and `end` < '2024-12-26 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:31:18] Production.INFO: count ==371 [2024-12-26 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:31:04 - End Time 2024-12-26 02:31:04 [2024-12-26 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103813', 'tblTempUsageDetail_20' ) start [2024-12-26 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103813', 'tblTempUsageDetail_20' ) end [2024-12-26 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103813', 'tblTempVendorCDR_20' ) start [2024-12-26 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103813', 'tblTempVendorCDR_20' ) end [2024-12-26 02:31:18] Production.INFO: ProcessCDR(1,14103813,1,1,2) [2024-12-26 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103813', 'tblTempUsageDetail_20' ) start [2024-12-26 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103813', 'tblTempUsageDetail_20' ) end [2024-12-26 02:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:31:22] Production.INFO: ==30180== Releasing lock... [2024-12-26 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:31:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:32:05 [end_date_ymd] => 2024-12-26 02:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:32:18] Production.INFO: count ==370 [2024-12-26 02:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:32:05 - End Time 2024-12-26 02:32:05 [2024-12-26 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103818', 'tblTempUsageDetail_20' ) start [2024-12-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103818', 'tblTempUsageDetail_20' ) end [2024-12-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103818', 'tblTempVendorCDR_20' ) start [2024-12-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103818', 'tblTempVendorCDR_20' ) end [2024-12-26 02:32:18] Production.INFO: ProcessCDR(1,14103818,1,1,2) [2024-12-26 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103818', 'tblTempUsageDetail_20' ) start [2024-12-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103818', 'tblTempUsageDetail_20' ) end [2024-12-26 02:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:32:21] Production.INFO: ==30264== Releasing lock... [2024-12-26 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:32:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:33:05 [end_date_ymd] => 2024-12-26 02:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:33:17] Production.INFO: count ==370 [2024-12-26 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:33:05 - End Time 2024-12-26 02:33:05 [2024-12-26 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103823', 'tblTempUsageDetail_20' ) start [2024-12-26 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103823', 'tblTempUsageDetail_20' ) end [2024-12-26 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103823', 'tblTempVendorCDR_20' ) start [2024-12-26 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103823', 'tblTempVendorCDR_20' ) end [2024-12-26 02:33:17] Production.INFO: ProcessCDR(1,14103823,1,1,2) [2024-12-26 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103823', 'tblTempUsageDetail_20' ) start [2024-12-26 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103823', 'tblTempUsageDetail_20' ) end [2024-12-26 02:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:33:20] Production.INFO: ==30344== Releasing lock... [2024-12-26 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:33:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:34:05 [end_date_ymd] => 2024-12-26 02:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:34:19] Production.INFO: count ==370 [2024-12-26 02:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:34:05 - End Time 2024-12-26 02:34:05 [2024-12-26 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103828', 'tblTempUsageDetail_20' ) start [2024-12-26 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103828', 'tblTempUsageDetail_20' ) end [2024-12-26 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103828', 'tblTempVendorCDR_20' ) start [2024-12-26 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103828', 'tblTempVendorCDR_20' ) end [2024-12-26 02:34:19] Production.INFO: ProcessCDR(1,14103828,1,1,2) [2024-12-26 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103828', 'tblTempUsageDetail_20' ) start [2024-12-26 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103828', 'tblTempUsageDetail_20' ) end [2024-12-26 02:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:34:22] Production.INFO: ==30425== Releasing lock... [2024-12-26 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:34:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:35:05 [end_date_ymd] => 2024-12-26 02:35:05 [RateCDR] => 1 ) [2024-12-26 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:35:05' and `end` < '2024-12-26 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:35:17] Production.INFO: count ==370 [2024-12-26 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:35:05 - End Time 2024-12-26 02:35:05 [2024-12-26 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103833', 'tblTempUsageDetail_20' ) start [2024-12-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103833', 'tblTempUsageDetail_20' ) end [2024-12-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103833', 'tblTempVendorCDR_20' ) start [2024-12-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103833', 'tblTempVendorCDR_20' ) end [2024-12-26 02:35:18] Production.INFO: ProcessCDR(1,14103833,1,1,2) [2024-12-26 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103833', 'tblTempUsageDetail_20' ) start [2024-12-26 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103833', 'tblTempUsageDetail_20' ) end [2024-12-26 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:35:21] Production.INFO: ==30505== Releasing lock... [2024-12-26 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:35:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:36:05 [end_date_ymd] => 2024-12-26 02:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:36:18] Production.INFO: count ==369 [2024-12-26 02:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:36:05 - End Time 2024-12-26 02:36:05 [2024-12-26 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103838', 'tblTempUsageDetail_20' ) start [2024-12-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103838', 'tblTempUsageDetail_20' ) end [2024-12-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103838', 'tblTempVendorCDR_20' ) start [2024-12-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103838', 'tblTempVendorCDR_20' ) end [2024-12-26 02:36:18] Production.INFO: ProcessCDR(1,14103838,1,1,2) [2024-12-26 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103838', 'tblTempUsageDetail_20' ) start [2024-12-26 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103838', 'tblTempUsageDetail_20' ) end [2024-12-26 02:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:36:21] Production.INFO: ==30592== Releasing lock... [2024-12-26 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:36:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:37:04 [end_date_ymd] => 2024-12-26 02:37:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:37:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:37:18] Production.INFO: count ==369 [2024-12-26 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:37:04 - End Time 2024-12-26 02:37:04 [2024-12-26 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103843', 'tblTempUsageDetail_20' ) start [2024-12-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103843', 'tblTempUsageDetail_20' ) end [2024-12-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103843', 'tblTempVendorCDR_20' ) start [2024-12-26 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103843', 'tblTempVendorCDR_20' ) end [2024-12-26 02:37:18] Production.INFO: ProcessCDR(1,14103843,1,1,2) [2024-12-26 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103843', 'tblTempUsageDetail_20' ) start [2024-12-26 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103843', 'tblTempUsageDetail_20' ) end [2024-12-26 02:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:37:21] Production.INFO: ==30674== Releasing lock... [2024-12-26 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:37:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:38:05 [end_date_ymd] => 2024-12-26 02:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:38:18] Production.INFO: count ==368 [2024-12-26 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:38:05 - End Time 2024-12-26 02:38:05 [2024-12-26 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103844', 'tblTempUsageDetail_20' ) start [2024-12-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103844', 'tblTempUsageDetail_20' ) end [2024-12-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103844', 'tblTempVendorCDR_20' ) start [2024-12-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103844', 'tblTempVendorCDR_20' ) end [2024-12-26 02:38:18] Production.INFO: ProcessCDR(1,14103844,1,1,2) [2024-12-26 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103844', 'tblTempUsageDetail_20' ) start [2024-12-26 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103844', 'tblTempUsageDetail_20' ) end [2024-12-26 02:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:38:22] Production.INFO: ==30759== Releasing lock... [2024-12-26 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:38:22] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:39:05 [end_date_ymd] => 2024-12-26 02:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:39:17] Production.INFO: count ==366 [2024-12-26 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:39:05 - End Time 2024-12-26 02:39:05 [2024-12-26 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103853', 'tblTempUsageDetail_20' ) start [2024-12-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103853', 'tblTempUsageDetail_20' ) end [2024-12-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103853', 'tblTempVendorCDR_20' ) start [2024-12-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103853', 'tblTempVendorCDR_20' ) end [2024-12-26 02:39:17] Production.INFO: ProcessCDR(1,14103853,1,1,2) [2024-12-26 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103853', 'tblTempUsageDetail_20' ) start [2024-12-26 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103853', 'tblTempUsageDetail_20' ) end [2024-12-26 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:39:20] Production.INFO: ==30846== Releasing lock... [2024-12-26 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:39:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:40:06 [end_date_ymd] => 2024-12-26 02:40:06 [RateCDR] => 1 ) [2024-12-26 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:40:06' and `end` < '2024-12-26 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:40:18] Production.INFO: count ==362 [2024-12-26 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:40:06 - End Time 2024-12-26 02:40:06 [2024-12-26 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103859', 'tblTempUsageDetail_20' ) start [2024-12-26 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103859', 'tblTempUsageDetail_20' ) end [2024-12-26 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103859', 'tblTempVendorCDR_20' ) start [2024-12-26 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103859', 'tblTempVendorCDR_20' ) end [2024-12-26 02:40:18] Production.INFO: ProcessCDR(1,14103859,1,1,2) [2024-12-26 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103859', 'tblTempUsageDetail_20' ) start [2024-12-26 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103859', 'tblTempUsageDetail_20' ) end [2024-12-26 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:40:21] Production.INFO: ==30925== Releasing lock... [2024-12-26 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:40:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:41:05 [end_date_ymd] => 2024-12-26 02:41:05 [RateCDR] => 1 ) [2024-12-26 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:41:05' and `end` < '2024-12-26 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:41:19] Production.INFO: count ==363 [2024-12-26 02:41:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:41:05 - End Time 2024-12-26 02:41:05 [2024-12-26 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103864', 'tblTempUsageDetail_20' ) start [2024-12-26 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103864', 'tblTempUsageDetail_20' ) end [2024-12-26 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103864', 'tblTempVendorCDR_20' ) start [2024-12-26 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103864', 'tblTempVendorCDR_20' ) end [2024-12-26 02:41:19] Production.INFO: ProcessCDR(1,14103864,1,1,2) [2024-12-26 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103864', 'tblTempUsageDetail_20' ) start [2024-12-26 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103864', 'tblTempUsageDetail_20' ) end [2024-12-26 02:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:41:22] Production.INFO: ==31016== Releasing lock... [2024-12-26 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:41:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:42:05 [end_date_ymd] => 2024-12-26 02:42:05 [RateCDR] => 1 ) [2024-12-26 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:42:05' and `end` < '2024-12-26 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:42:18] Production.INFO: count ==361 [2024-12-26 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:42:05 - End Time 2024-12-26 02:42:05 [2024-12-26 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103869', 'tblTempUsageDetail_20' ) start [2024-12-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103869', 'tblTempUsageDetail_20' ) end [2024-12-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103869', 'tblTempVendorCDR_20' ) start [2024-12-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103869', 'tblTempVendorCDR_20' ) end [2024-12-26 02:42:18] Production.INFO: ProcessCDR(1,14103869,1,1,2) [2024-12-26 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103869', 'tblTempUsageDetail_20' ) start [2024-12-26 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103869', 'tblTempUsageDetail_20' ) end [2024-12-26 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:42:21] Production.INFO: ==31099== Releasing lock... [2024-12-26 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:42:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:43:05 [end_date_ymd] => 2024-12-26 02:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:43:17] Production.INFO: count ==362 [2024-12-26 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:43:05 - End Time 2024-12-26 02:43:05 [2024-12-26 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103874', 'tblTempUsageDetail_20' ) start [2024-12-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103874', 'tblTempUsageDetail_20' ) end [2024-12-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103874', 'tblTempVendorCDR_20' ) start [2024-12-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103874', 'tblTempVendorCDR_20' ) end [2024-12-26 02:43:17] Production.INFO: ProcessCDR(1,14103874,1,1,2) [2024-12-26 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103874', 'tblTempUsageDetail_20' ) start [2024-12-26 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103874', 'tblTempUsageDetail_20' ) end [2024-12-26 02:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:43:20] Production.INFO: ==31181== Releasing lock... [2024-12-26 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:43:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:44:04 [end_date_ymd] => 2024-12-26 02:44:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:44:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:44:18] Production.INFO: count ==361 [2024-12-26 02:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:44:04 - End Time 2024-12-26 02:44:04 [2024-12-26 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103879', 'tblTempUsageDetail_20' ) start [2024-12-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103879', 'tblTempUsageDetail_20' ) end [2024-12-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103879', 'tblTempVendorCDR_20' ) start [2024-12-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103879', 'tblTempVendorCDR_20' ) end [2024-12-26 02:44:18] Production.INFO: ProcessCDR(1,14103879,1,1,2) [2024-12-26 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103879', 'tblTempUsageDetail_20' ) start [2024-12-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103879', 'tblTempUsageDetail_20' ) end [2024-12-26 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:44:21] Production.INFO: ==31269== Releasing lock... [2024-12-26 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:44:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:45:05 [end_date_ymd] => 2024-12-26 02:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:45:18] Production.INFO: count ==359 [2024-12-26 02:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:45:05 - End Time 2024-12-26 02:45:05 [2024-12-26 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103884', 'tblTempUsageDetail_20' ) start [2024-12-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103884', 'tblTempUsageDetail_20' ) end [2024-12-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103884', 'tblTempVendorCDR_20' ) start [2024-12-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103884', 'tblTempVendorCDR_20' ) end [2024-12-26 02:45:18] Production.INFO: ProcessCDR(1,14103884,1,1,2) [2024-12-26 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103884', 'tblTempUsageDetail_20' ) start [2024-12-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103884', 'tblTempUsageDetail_20' ) end [2024-12-26 02:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:45:21] Production.INFO: ==31398== Releasing lock... [2024-12-26 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:45:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:46:05 [end_date_ymd] => 2024-12-26 02:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:46:19] Production.INFO: count ==355 [2024-12-26 02:46:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:46:05 - End Time 2024-12-26 02:46:05 [2024-12-26 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103889', 'tblTempUsageDetail_20' ) start [2024-12-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103889', 'tblTempUsageDetail_20' ) end [2024-12-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103889', 'tblTempVendorCDR_20' ) start [2024-12-26 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103889', 'tblTempVendorCDR_20' ) end [2024-12-26 02:46:19] Production.INFO: ProcessCDR(1,14103889,1,1,2) [2024-12-26 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103889', 'tblTempUsageDetail_20' ) start [2024-12-26 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103889', 'tblTempUsageDetail_20' ) end [2024-12-26 02:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:46:22] Production.INFO: ==31486== Releasing lock... [2024-12-26 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:46:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:47:05 [end_date_ymd] => 2024-12-26 02:47:05 [RateCDR] => 1 ) [2024-12-26 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:47:05' and `end` < '2024-12-26 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:47:17] Production.INFO: count ==353 [2024-12-26 02:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:47:05 - End Time 2024-12-26 02:47:05 [2024-12-26 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103894', 'tblTempUsageDetail_20' ) start [2024-12-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103894', 'tblTempUsageDetail_20' ) end [2024-12-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103894', 'tblTempVendorCDR_20' ) start [2024-12-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103894', 'tblTempVendorCDR_20' ) end [2024-12-26 02:47:18] Production.INFO: ProcessCDR(1,14103894,1,1,2) [2024-12-26 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103894', 'tblTempUsageDetail_20' ) start [2024-12-26 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103894', 'tblTempUsageDetail_20' ) end [2024-12-26 02:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:47:21] Production.INFO: ==31572== Releasing lock... [2024-12-26 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:47:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:48:05 [end_date_ymd] => 2024-12-26 02:48:05 [RateCDR] => 1 ) [2024-12-26 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:48:05' and `end` < '2024-12-26 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:48:18] Production.INFO: count ==348 [2024-12-26 02:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:48:05 - End Time 2024-12-26 02:48:05 [2024-12-26 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103899', 'tblTempUsageDetail_20' ) start [2024-12-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103899', 'tblTempUsageDetail_20' ) end [2024-12-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103899', 'tblTempVendorCDR_20' ) start [2024-12-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103899', 'tblTempVendorCDR_20' ) end [2024-12-26 02:48:18] Production.INFO: ProcessCDR(1,14103899,1,1,2) [2024-12-26 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103899', 'tblTempUsageDetail_20' ) start [2024-12-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103899', 'tblTempUsageDetail_20' ) end [2024-12-26 02:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:48:21] Production.INFO: ==31660== Releasing lock... [2024-12-26 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:48:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:49:04 [end_date_ymd] => 2024-12-26 02:49:04 [RateCDR] => 1 ) [2024-12-26 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:49:04' and `end` < '2024-12-26 02:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:49:16] Production.INFO: count ==346 [2024-12-26 02:49:16] Production.ERROR: pbx CDR StartTime 2024-12-25 23:49:04 - End Time 2024-12-26 02:49:04 [2024-12-26 02:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103904', 'tblTempUsageDetail_20' ) start [2024-12-26 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103904', 'tblTempUsageDetail_20' ) end [2024-12-26 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103904', 'tblTempVendorCDR_20' ) start [2024-12-26 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103904', 'tblTempVendorCDR_20' ) end [2024-12-26 02:49:16] Production.INFO: ProcessCDR(1,14103904,1,1,2) [2024-12-26 02:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103904', 'tblTempUsageDetail_20' ) start [2024-12-26 02:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103904', 'tblTempUsageDetail_20' ) end [2024-12-26 02:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:49:20] Production.INFO: ==31744== Releasing lock... [2024-12-26 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:49:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:50:06 [end_date_ymd] => 2024-12-26 02:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:50:18] Production.INFO: count ==346 [2024-12-26 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:50:06 - End Time 2024-12-26 02:50:06 [2024-12-26 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103910', 'tblTempUsageDetail_20' ) start [2024-12-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103910', 'tblTempUsageDetail_20' ) end [2024-12-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103910', 'tblTempVendorCDR_20' ) start [2024-12-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103910', 'tblTempVendorCDR_20' ) end [2024-12-26 02:50:18] Production.INFO: ProcessCDR(1,14103910,1,1,2) [2024-12-26 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103910', 'tblTempUsageDetail_20' ) start [2024-12-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103910', 'tblTempUsageDetail_20' ) end [2024-12-26 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:50:21] Production.INFO: ==31836== Releasing lock... [2024-12-26 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:50:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:51:04 [end_date_ymd] => 2024-12-26 02:51:04 [RateCDR] => 1 ) [2024-12-26 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:51:04' and `end` < '2024-12-26 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:51:17] Production.INFO: count ==343 [2024-12-26 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:51:04 - End Time 2024-12-26 02:51:04 [2024-12-26 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103915', 'tblTempUsageDetail_20' ) start [2024-12-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103915', 'tblTempUsageDetail_20' ) end [2024-12-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103915', 'tblTempVendorCDR_20' ) start [2024-12-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103915', 'tblTempVendorCDR_20' ) end [2024-12-26 02:51:17] Production.INFO: ProcessCDR(1,14103915,1,1,2) [2024-12-26 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103915', 'tblTempUsageDetail_20' ) start [2024-12-26 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103915', 'tblTempUsageDetail_20' ) end [2024-12-26 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:51:20] Production.INFO: ==31929== Releasing lock... [2024-12-26 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:51:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:52:05 [end_date_ymd] => 2024-12-26 02:52:05 [RateCDR] => 1 ) [2024-12-26 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:52:05' and `end` < '2024-12-26 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:52:18] Production.INFO: count ==342 [2024-12-26 02:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:52:05 - End Time 2024-12-26 02:52:05 [2024-12-26 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103920', 'tblTempUsageDetail_20' ) start [2024-12-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103920', 'tblTempUsageDetail_20' ) end [2024-12-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103920', 'tblTempVendorCDR_20' ) start [2024-12-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103920', 'tblTempVendorCDR_20' ) end [2024-12-26 02:52:18] Production.INFO: ProcessCDR(1,14103920,1,1,2) [2024-12-26 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103920', 'tblTempUsageDetail_20' ) start [2024-12-26 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103920', 'tblTempUsageDetail_20' ) end [2024-12-26 02:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:52:21] Production.INFO: ==32018== Releasing lock... [2024-12-26 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:52:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:53:04 [end_date_ymd] => 2024-12-26 02:53:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:53:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:53:18] Production.INFO: count ==342 [2024-12-26 02:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:53:04 - End Time 2024-12-26 02:53:04 [2024-12-26 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103925', 'tblTempUsageDetail_20' ) start [2024-12-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103925', 'tblTempUsageDetail_20' ) end [2024-12-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103925', 'tblTempVendorCDR_20' ) start [2024-12-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103925', 'tblTempVendorCDR_20' ) end [2024-12-26 02:53:18] Production.INFO: ProcessCDR(1,14103925,1,1,2) [2024-12-26 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103925', 'tblTempUsageDetail_20' ) start [2024-12-26 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103925', 'tblTempUsageDetail_20' ) end [2024-12-26 02:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:53:21] Production.INFO: ==32111== Releasing lock... [2024-12-26 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:53:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:54:05 [end_date_ymd] => 2024-12-26 02:54:05 [RateCDR] => 1 ) [2024-12-26 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:54:05' and `end` < '2024-12-26 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:54:17] Production.INFO: count ==342 [2024-12-26 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:54:05 - End Time 2024-12-26 02:54:05 [2024-12-26 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103930', 'tblTempUsageDetail_20' ) start [2024-12-26 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103930', 'tblTempUsageDetail_20' ) end [2024-12-26 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103930', 'tblTempVendorCDR_20' ) start [2024-12-26 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103930', 'tblTempVendorCDR_20' ) end [2024-12-26 02:54:17] Production.INFO: ProcessCDR(1,14103930,1,1,2) [2024-12-26 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103930', 'tblTempUsageDetail_20' ) start [2024-12-26 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103930', 'tblTempUsageDetail_20' ) end [2024-12-26 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:54:20] Production.INFO: ==32200== Releasing lock... [2024-12-26 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:54:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:55:05 [end_date_ymd] => 2024-12-26 02:55:05 [RateCDR] => 1 ) [2024-12-26 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:55:05' and `end` < '2024-12-26 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:55:18] Production.INFO: count ==342 [2024-12-26 02:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:55:05 - End Time 2024-12-26 02:55:05 [2024-12-26 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103935', 'tblTempUsageDetail_20' ) start [2024-12-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103935', 'tblTempUsageDetail_20' ) end [2024-12-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103935', 'tblTempVendorCDR_20' ) start [2024-12-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103935', 'tblTempVendorCDR_20' ) end [2024-12-26 02:55:18] Production.INFO: ProcessCDR(1,14103935,1,1,2) [2024-12-26 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103935', 'tblTempUsageDetail_20' ) start [2024-12-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103935', 'tblTempUsageDetail_20' ) end [2024-12-26 02:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:55:21] Production.INFO: ==32289== Releasing lock... [2024-12-26 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:55:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:56:05 [end_date_ymd] => 2024-12-26 02:56:05 [RateCDR] => 1 ) [2024-12-26 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 23:56:05' and `end` < '2024-12-26 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 02:56:19] Production.INFO: count ==342 [2024-12-26 02:56:19] Production.ERROR: pbx CDR StartTime 2024-12-25 23:56:05 - End Time 2024-12-26 02:56:05 [2024-12-26 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103940', 'tblTempUsageDetail_20' ) start [2024-12-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103940', 'tblTempUsageDetail_20' ) end [2024-12-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103940', 'tblTempVendorCDR_20' ) start [2024-12-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103940', 'tblTempVendorCDR_20' ) end [2024-12-26 02:56:19] Production.INFO: ProcessCDR(1,14103940,1,1,2) [2024-12-26 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103940', 'tblTempUsageDetail_20' ) start [2024-12-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103940', 'tblTempUsageDetail_20' ) end [2024-12-26 02:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:56:22] Production.INFO: ==32427== Releasing lock... [2024-12-26 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:56:22] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:57:05 [end_date_ymd] => 2024-12-26 02:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:57:17] Production.INFO: count ==342 [2024-12-26 02:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 23:57:05 - End Time 2024-12-26 02:57:05 [2024-12-26 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103945', 'tblTempUsageDetail_20' ) start [2024-12-26 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103945', 'tblTempUsageDetail_20' ) end [2024-12-26 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103945', 'tblTempVendorCDR_20' ) start [2024-12-26 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103945', 'tblTempVendorCDR_20' ) end [2024-12-26 02:57:17] Production.INFO: ProcessCDR(1,14103945,1,1,2) [2024-12-26 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103945', 'tblTempUsageDetail_20' ) start [2024-12-26 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103945', 'tblTempUsageDetail_20' ) end [2024-12-26 02:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:57:21] Production.INFO: ==32549== Releasing lock... [2024-12-26 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:57:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:58:04 [end_date_ymd] => 2024-12-26 02:58:04 [RateCDR] => 1 ) [2024-12-26 02: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` >= '2024-12-25 23:58:04' and `end` < '2024-12-26 02: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 ,'') [2024-12-26 02:58:17] Production.INFO: count ==342 [2024-12-26 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:58:04 - End Time 2024-12-26 02:58:04 [2024-12-26 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103950', 'tblTempUsageDetail_20' ) start [2024-12-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103950', 'tblTempUsageDetail_20' ) end [2024-12-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103950', 'tblTempVendorCDR_20' ) start [2024-12-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103950', 'tblTempVendorCDR_20' ) end [2024-12-26 02:58:18] Production.INFO: ProcessCDR(1,14103950,1,1,2) [2024-12-26 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103950', 'tblTempUsageDetail_20' ) start [2024-12-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103950', 'tblTempUsageDetail_20' ) end [2024-12-26 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:58:21] Production.INFO: ==32640== Releasing lock... [2024-12-26 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:58:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 23:59:05 [end_date_ymd] => 2024-12-26 02:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-25 23:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 02:59:18] Production.INFO: count ==342 [2024-12-26 02:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 23:59:05 - End Time 2024-12-26 02:59:05 [2024-12-26 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103955', 'tblTempUsageDetail_20' ) start [2024-12-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103955', 'tblTempUsageDetail_20' ) end [2024-12-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103955', 'tblTempVendorCDR_20' ) start [2024-12-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103955', 'tblTempVendorCDR_20' ) end [2024-12-26 02:59:18] Production.INFO: ProcessCDR(1,14103955,1,1,2) [2024-12-26 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103955', 'tblTempUsageDetail_20' ) start [2024-12-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103955', 'tblTempUsageDetail_20' ) end [2024-12-26 02:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 02:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 02:59:21] Production.INFO: ==32735== Releasing lock... [2024-12-26 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 02:59:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:00:06 [end_date_ymd] => 2024-12-26 03:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:00:18] Production.INFO: count ==346 [2024-12-26 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:00:06 - End Time 2024-12-26 03:00:06 [2024-12-26 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103960', 'tblTempUsageDetail_20' ) start [2024-12-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103960', 'tblTempUsageDetail_20' ) end [2024-12-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103960', 'tblTempVendorCDR_20' ) start [2024-12-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103960', 'tblTempVendorCDR_20' ) end [2024-12-26 03:00:18] Production.INFO: ProcessCDR(1,14103960,1,1,2) [2024-12-26 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103960', 'tblTempUsageDetail_20' ) start [2024-12-26 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103960', 'tblTempUsageDetail_20' ) end [2024-12-26 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:00:21] Production.INFO: ==418== Releasing lock... [2024-12-26 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:00:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:01:04 [end_date_ymd] => 2024-12-26 03:01:04 [RateCDR] => 1 ) [2024-12-26 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:01:04' and `end` < '2024-12-26 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:01:18] Production.INFO: count ==344 [2024-12-26 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:01:04 - End Time 2024-12-26 03:01:04 [2024-12-26 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103966', 'tblTempUsageDetail_20' ) start [2024-12-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103966', 'tblTempUsageDetail_20' ) end [2024-12-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103966', 'tblTempVendorCDR_20' ) start [2024-12-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103966', 'tblTempVendorCDR_20' ) end [2024-12-26 03:01:18] Production.INFO: ProcessCDR(1,14103966,1,1,2) [2024-12-26 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103966', 'tblTempUsageDetail_20' ) start [2024-12-26 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103966', 'tblTempUsageDetail_20' ) end [2024-12-26 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:01:21] Production.INFO: ==525== Releasing lock... [2024-12-26 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:01:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:02:05 [end_date_ymd] => 2024-12-26 03:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:02:17] Production.INFO: count ==344 [2024-12-26 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:02:05 - End Time 2024-12-26 03:02:05 [2024-12-26 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103971', 'tblTempUsageDetail_20' ) start [2024-12-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103971', 'tblTempUsageDetail_20' ) end [2024-12-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103971', 'tblTempVendorCDR_20' ) start [2024-12-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103971', 'tblTempVendorCDR_20' ) end [2024-12-26 03:02:17] Production.INFO: ProcessCDR(1,14103971,1,1,2) [2024-12-26 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103971', 'tblTempUsageDetail_20' ) start [2024-12-26 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103971', 'tblTempUsageDetail_20' ) end [2024-12-26 03:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:02:20] Production.INFO: ==726== Releasing lock... [2024-12-26 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:02:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:03:04 [end_date_ymd] => 2024-12-26 03:03:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:03:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:03:16] Production.INFO: count ==344 [2024-12-26 03:03:16] Production.ERROR: pbx CDR StartTime 2024-12-26 00:03:04 - End Time 2024-12-26 03:03:04 [2024-12-26 03:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103976', 'tblTempUsageDetail_20' ) start [2024-12-26 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103976', 'tblTempUsageDetail_20' ) end [2024-12-26 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103976', 'tblTempVendorCDR_20' ) start [2024-12-26 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103976', 'tblTempVendorCDR_20' ) end [2024-12-26 03:03:16] Production.INFO: ProcessCDR(1,14103976,1,1,2) [2024-12-26 03:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103976', 'tblTempUsageDetail_20' ) start [2024-12-26 03:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103976', 'tblTempUsageDetail_20' ) end [2024-12-26 03:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:03:19] Production.INFO: ==818== Releasing lock... [2024-12-26 03:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:03:19] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:04:04 [end_date_ymd] => 2024-12-26 03:04:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:04:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:04:18] Production.INFO: count ==344 [2024-12-26 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:04:04 - End Time 2024-12-26 03:04:04 [2024-12-26 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103981', 'tblTempUsageDetail_20' ) start [2024-12-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103981', 'tblTempUsageDetail_20' ) end [2024-12-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103981', 'tblTempVendorCDR_20' ) start [2024-12-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103981', 'tblTempVendorCDR_20' ) end [2024-12-26 03:04:18] Production.INFO: ProcessCDR(1,14103981,1,1,2) [2024-12-26 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103981', 'tblTempUsageDetail_20' ) start [2024-12-26 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103981', 'tblTempUsageDetail_20' ) end [2024-12-26 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:04:21] Production.INFO: ==902== Releasing lock... [2024-12-26 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:04:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:05:05 [end_date_ymd] => 2024-12-26 03:05:05 [RateCDR] => 1 ) [2024-12-26 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:05:05' and `end` < '2024-12-26 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:05:18] Production.INFO: count ==344 [2024-12-26 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:05:05 - End Time 2024-12-26 03:05:05 [2024-12-26 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103984', 'tblTempUsageDetail_20' ) start [2024-12-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103984', 'tblTempUsageDetail_20' ) end [2024-12-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103984', 'tblTempVendorCDR_20' ) start [2024-12-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103984', 'tblTempVendorCDR_20' ) end [2024-12-26 03:05:18] Production.INFO: ProcessCDR(1,14103984,1,1,2) [2024-12-26 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103984', 'tblTempUsageDetail_20' ) start [2024-12-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103984', 'tblTempUsageDetail_20' ) end [2024-12-26 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:05:21] Production.INFO: ==990== Releasing lock... [2024-12-26 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:05:21] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:06:05 [end_date_ymd] => 2024-12-26 03:06:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:06:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:06:17] Production.INFO: count ==344 [2024-12-26 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:06:05 - End Time 2024-12-26 03:06:05 [2024-12-26 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103991', 'tblTempUsageDetail_20' ) start [2024-12-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103991', 'tblTempUsageDetail_20' ) end [2024-12-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103991', 'tblTempVendorCDR_20' ) start [2024-12-26 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103991', 'tblTempVendorCDR_20' ) end [2024-12-26 03:06:17] Production.INFO: ProcessCDR(1,14103991,1,1,2) [2024-12-26 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103991', 'tblTempUsageDetail_20' ) start [2024-12-26 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103991', 'tblTempUsageDetail_20' ) end [2024-12-26 03:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:06:20] Production.INFO: ==1161== Releasing lock... [2024-12-26 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:06:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:07:05 [end_date_ymd] => 2024-12-26 03:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:07:17] Production.INFO: count ==340 [2024-12-26 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:07:05 - End Time 2024-12-26 03:07:05 [2024-12-26 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103996', 'tblTempUsageDetail_20' ) start [2024-12-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103996', 'tblTempUsageDetail_20' ) end [2024-12-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103996', 'tblTempVendorCDR_20' ) start [2024-12-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103996', 'tblTempVendorCDR_20' ) end [2024-12-26 03:07:17] Production.INFO: ProcessCDR(1,14103996,1,1,2) [2024-12-26 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103996', 'tblTempUsageDetail_20' ) start [2024-12-26 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103996', 'tblTempUsageDetail_20' ) end [2024-12-26 03:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:07:20] Production.INFO: ==1270== Releasing lock... [2024-12-26 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:07:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:08:05 [end_date_ymd] => 2024-12-26 03:08:05 [RateCDR] => 1 ) [2024-12-26 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:08:05' and `end` < '2024-12-26 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:08:18] Production.INFO: count ==330 [2024-12-26 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:08:05 - End Time 2024-12-26 03:08:05 [2024-12-26 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104001', 'tblTempUsageDetail_20' ) start [2024-12-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104001', 'tblTempUsageDetail_20' ) end [2024-12-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104001', 'tblTempVendorCDR_20' ) start [2024-12-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104001', 'tblTempVendorCDR_20' ) end [2024-12-26 03:08:18] Production.INFO: ProcessCDR(1,14104001,1,1,2) [2024-12-26 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104001', 'tblTempUsageDetail_20' ) start [2024-12-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104001', 'tblTempUsageDetail_20' ) end [2024-12-26 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:08:21] Production.INFO: ==1359== Releasing lock... [2024-12-26 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:08:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-26 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:09:05 [end_date_ymd] => 2024-12-26 03:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:09:17] Production.INFO: count ==325 [2024-12-26 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:09:05 - End Time 2024-12-26 03:09:05 [2024-12-26 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104006', 'tblTempUsageDetail_20' ) start [2024-12-26 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104006', 'tblTempUsageDetail_20' ) end [2024-12-26 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104006', 'tblTempVendorCDR_20' ) start [2024-12-26 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104006', 'tblTempVendorCDR_20' ) end [2024-12-26 03:09:17] Production.INFO: ProcessCDR(1,14104006,1,1,2) [2024-12-26 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104006', 'tblTempUsageDetail_20' ) start [2024-12-26 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104006', 'tblTempUsageDetail_20' ) end [2024-12-26 03:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:09:20] Production.INFO: ==1551== Releasing lock... [2024-12-26 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:09:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:10:05 [end_date_ymd] => 2024-12-26 03:10:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:10:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:10:17] Production.INFO: count ==311 [2024-12-26 03:10:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:10:05 - End Time 2024-12-26 03:10:05 [2024-12-26 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104011', 'tblTempUsageDetail_20' ) start [2024-12-26 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104011', 'tblTempUsageDetail_20' ) end [2024-12-26 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104011', 'tblTempVendorCDR_20' ) start [2024-12-26 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104011', 'tblTempVendorCDR_20' ) end [2024-12-26 03:10:17] Production.INFO: ProcessCDR(1,14104011,1,1,2) [2024-12-26 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104011', 'tblTempUsageDetail_20' ) start [2024-12-26 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104011', 'tblTempUsageDetail_20' ) end [2024-12-26 03:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:10:20] Production.INFO: ==1645== Releasing lock... [2024-12-26 03:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:10:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-26 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:11:05 [end_date_ymd] => 2024-12-26 03:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:11:17] Production.INFO: count ==274 [2024-12-26 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:11:05 - End Time 2024-12-26 03:11:05 [2024-12-26 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104017', 'tblTempUsageDetail_20' ) start [2024-12-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104017', 'tblTempUsageDetail_20' ) end [2024-12-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104017', 'tblTempVendorCDR_20' ) start [2024-12-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104017', 'tblTempVendorCDR_20' ) end [2024-12-26 03:11:17] Production.INFO: ProcessCDR(1,14104017,1,1,2) [2024-12-26 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104017', 'tblTempUsageDetail_20' ) start [2024-12-26 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104017', 'tblTempUsageDetail_20' ) end [2024-12-26 03:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:11:20] Production.INFO: ==1729== Releasing lock... [2024-12-26 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:11:20] Production.INFO: 30 MB #Memory Used# [2024-12-26 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:12:05 [end_date_ymd] => 2024-12-26 03:12:05 [RateCDR] => 1 ) [2024-12-26 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:12:05' and `end` < '2024-12-26 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:12:18] Production.INFO: count ==266 [2024-12-26 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:12:05 - End Time 2024-12-26 03:12:05 [2024-12-26 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104022', 'tblTempUsageDetail_20' ) start [2024-12-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104022', 'tblTempUsageDetail_20' ) end [2024-12-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104022', 'tblTempVendorCDR_20' ) start [2024-12-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104022', 'tblTempVendorCDR_20' ) end [2024-12-26 03:12:18] Production.INFO: ProcessCDR(1,14104022,1,1,2) [2024-12-26 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104022', 'tblTempUsageDetail_20' ) start [2024-12-26 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104022', 'tblTempUsageDetail_20' ) end [2024-12-26 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:12:21] Production.INFO: ==1819== Releasing lock... [2024-12-26 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:12:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-26 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:13:05 [end_date_ymd] => 2024-12-26 03:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:13:18] Production.INFO: count ==263 [2024-12-26 03:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:13:05 - End Time 2024-12-26 03:13:05 [2024-12-26 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104027', 'tblTempUsageDetail_20' ) start [2024-12-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104027', 'tblTempUsageDetail_20' ) end [2024-12-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104027', 'tblTempVendorCDR_20' ) start [2024-12-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104027', 'tblTempVendorCDR_20' ) end [2024-12-26 03:13:18] Production.INFO: ProcessCDR(1,14104027,1,1,2) [2024-12-26 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104027', 'tblTempUsageDetail_20' ) start [2024-12-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104027', 'tblTempUsageDetail_20' ) end [2024-12-26 03:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:13:21] Production.INFO: ==1991== Releasing lock... [2024-12-26 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:13:21] Production.INFO: 30 MB #Memory Used# [2024-12-26 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:14:04 [end_date_ymd] => 2024-12-26 03:14:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:14:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:14:18] Production.INFO: count ==262 [2024-12-26 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:14:04 - End Time 2024-12-26 03:14:04 [2024-12-26 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104032', 'tblTempUsageDetail_20' ) start [2024-12-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104032', 'tblTempUsageDetail_20' ) end [2024-12-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104032', 'tblTempVendorCDR_20' ) start [2024-12-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104032', 'tblTempVendorCDR_20' ) end [2024-12-26 03:14:18] Production.INFO: ProcessCDR(1,14104032,1,1,2) [2024-12-26 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104032', 'tblTempUsageDetail_20' ) start [2024-12-26 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104032', 'tblTempUsageDetail_20' ) end [2024-12-26 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:14:21] Production.INFO: ==2076== Releasing lock... [2024-12-26 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:15:05 [end_date_ymd] => 2024-12-26 03:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:15:17] Production.INFO: count ==262 [2024-12-26 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:15:05 - End Time 2024-12-26 03:15:05 [2024-12-26 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104037', 'tblTempUsageDetail_20' ) start [2024-12-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104037', 'tblTempUsageDetail_20' ) end [2024-12-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104037', 'tblTempVendorCDR_20' ) start [2024-12-26 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104037', 'tblTempVendorCDR_20' ) end [2024-12-26 03:15:17] Production.INFO: ProcessCDR(1,14104037,1,1,2) [2024-12-26 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104037', 'tblTempUsageDetail_20' ) start [2024-12-26 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104037', 'tblTempUsageDetail_20' ) end [2024-12-26 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:15:20] Production.INFO: ==2161== Releasing lock... [2024-12-26 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:15:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:16:05 [end_date_ymd] => 2024-12-26 03:16:05 [RateCDR] => 1 ) [2024-12-26 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:16:05' and `end` < '2024-12-26 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:16:17] Production.INFO: count ==262 [2024-12-26 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:16:05 - End Time 2024-12-26 03:16:05 [2024-12-26 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104042', 'tblTempUsageDetail_20' ) start [2024-12-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104042', 'tblTempUsageDetail_20' ) end [2024-12-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104042', 'tblTempVendorCDR_20' ) start [2024-12-26 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104042', 'tblTempVendorCDR_20' ) end [2024-12-26 03:16:18] Production.INFO: ProcessCDR(1,14104042,1,1,2) [2024-12-26 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104042', 'tblTempUsageDetail_20' ) start [2024-12-26 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104042', 'tblTempUsageDetail_20' ) end [2024-12-26 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:16:20] Production.INFO: ==2284== Releasing lock... [2024-12-26 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:16:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:17:04 [end_date_ymd] => 2024-12-26 03:17:04 [RateCDR] => 1 ) [2024-12-26 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:17:04' and `end` < '2024-12-26 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:17:17] Production.INFO: count ==254 [2024-12-26 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:17:04 - End Time 2024-12-26 03:17:04 [2024-12-26 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104047', 'tblTempUsageDetail_20' ) start [2024-12-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104047', 'tblTempUsageDetail_20' ) end [2024-12-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104047', 'tblTempVendorCDR_20' ) start [2024-12-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104047', 'tblTempVendorCDR_20' ) end [2024-12-26 03:17:17] Production.INFO: ProcessCDR(1,14104047,1,1,2) [2024-12-26 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104047', 'tblTempUsageDetail_20' ) start [2024-12-26 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104047', 'tblTempUsageDetail_20' ) end [2024-12-26 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:17:20] Production.INFO: ==2451== Releasing lock... [2024-12-26 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:17:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:18:05 [end_date_ymd] => 2024-12-26 03:18:05 [RateCDR] => 1 ) [2024-12-26 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:18:05' and `end` < '2024-12-26 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:18:17] Production.INFO: count ==250 [2024-12-26 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:18:05 - End Time 2024-12-26 03:18:05 [2024-12-26 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104052', 'tblTempUsageDetail_20' ) start [2024-12-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104052', 'tblTempUsageDetail_20' ) end [2024-12-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104052', 'tblTempVendorCDR_20' ) start [2024-12-26 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104052', 'tblTempVendorCDR_20' ) end [2024-12-26 03:18:17] Production.INFO: ProcessCDR(1,14104052,1,1,2) [2024-12-26 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104052', 'tblTempUsageDetail_20' ) start [2024-12-26 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104052', 'tblTempUsageDetail_20' ) end [2024-12-26 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:18:20] Production.INFO: ==2533== Releasing lock... [2024-12-26 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:18:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:19:04 [end_date_ymd] => 2024-12-26 03:19:04 [RateCDR] => 1 ) [2024-12-26 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:19:04' and `end` < '2024-12-26 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:19:17] Production.INFO: count ==242 [2024-12-26 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:19:04 - End Time 2024-12-26 03:19:04 [2024-12-26 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104057', 'tblTempUsageDetail_20' ) start [2024-12-26 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104057', 'tblTempUsageDetail_20' ) end [2024-12-26 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104057', 'tblTempVendorCDR_20' ) start [2024-12-26 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104057', 'tblTempVendorCDR_20' ) end [2024-12-26 03:19:17] Production.INFO: ProcessCDR(1,14104057,1,1,2) [2024-12-26 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104057', 'tblTempUsageDetail_20' ) start [2024-12-26 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104057', 'tblTempUsageDetail_20' ) end [2024-12-26 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:19:20] Production.INFO: ==2621== Releasing lock... [2024-12-26 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:19:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:20:06 [end_date_ymd] => 2024-12-26 03:20:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:20:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:20:18] Production.INFO: count ==226 [2024-12-26 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:20:06 - End Time 2024-12-26 03:20:06 [2024-12-26 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104063', 'tblTempUsageDetail_20' ) start [2024-12-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104063', 'tblTempUsageDetail_20' ) end [2024-12-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104063', 'tblTempVendorCDR_20' ) start [2024-12-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104063', 'tblTempVendorCDR_20' ) end [2024-12-26 03:20:18] Production.INFO: ProcessCDR(1,14104063,1,1,2) [2024-12-26 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104063', 'tblTempUsageDetail_20' ) start [2024-12-26 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104063', 'tblTempUsageDetail_20' ) end [2024-12-26 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:20:21] Production.INFO: ==2704== Releasing lock... [2024-12-26 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:21:05 [end_date_ymd] => 2024-12-26 03:21:05 [RateCDR] => 1 ) [2024-12-26 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:21:05' and `end` < '2024-12-26 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:21:18] Production.INFO: count ==206 [2024-12-26 03:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:21:05 - End Time 2024-12-26 03:21:05 [2024-12-26 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104068', 'tblTempUsageDetail_20' ) start [2024-12-26 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104068', 'tblTempUsageDetail_20' ) end [2024-12-26 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104068', 'tblTempVendorCDR_20' ) start [2024-12-26 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104068', 'tblTempVendorCDR_20' ) end [2024-12-26 03:21:18] Production.INFO: ProcessCDR(1,14104068,1,1,2) [2024-12-26 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104068', 'tblTempUsageDetail_20' ) start [2024-12-26 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104068', 'tblTempUsageDetail_20' ) end [2024-12-26 03:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:21:22] Production.INFO: ==2793== Releasing lock... [2024-12-26 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:21:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:22:04 [end_date_ymd] => 2024-12-26 03:22:04 [RateCDR] => 1 ) [2024-12-26 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:22:04' and `end` < '2024-12-26 03:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:22:17] Production.INFO: count ==196 [2024-12-26 03:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:22:04 - End Time 2024-12-26 03:22:04 [2024-12-26 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104073', 'tblTempUsageDetail_20' ) start [2024-12-26 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104073', 'tblTempUsageDetail_20' ) end [2024-12-26 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104073', 'tblTempVendorCDR_20' ) start [2024-12-26 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104073', 'tblTempVendorCDR_20' ) end [2024-12-26 03:22:17] Production.INFO: ProcessCDR(1,14104073,1,1,2) [2024-12-26 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104073', 'tblTempUsageDetail_20' ) start [2024-12-26 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104073', 'tblTempUsageDetail_20' ) end [2024-12-26 03:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:22:20] Production.INFO: ==2880== Releasing lock... [2024-12-26 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:22:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:23:05 [end_date_ymd] => 2024-12-26 03:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:23:17] Production.INFO: count ==186 [2024-12-26 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:23:05 - End Time 2024-12-26 03:23:05 [2024-12-26 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104078', 'tblTempUsageDetail_20' ) start [2024-12-26 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104078', 'tblTempUsageDetail_20' ) end [2024-12-26 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104078', 'tblTempVendorCDR_20' ) start [2024-12-26 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104078', 'tblTempVendorCDR_20' ) end [2024-12-26 03:23:17] Production.INFO: ProcessCDR(1,14104078,1,1,2) [2024-12-26 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104078', 'tblTempUsageDetail_20' ) start [2024-12-26 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104078', 'tblTempUsageDetail_20' ) end [2024-12-26 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:23:20] Production.INFO: ==2960== Releasing lock... [2024-12-26 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:23:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:24:05 [end_date_ymd] => 2024-12-26 03:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:24:17] Production.INFO: count ==186 [2024-12-26 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:24:05 - End Time 2024-12-26 03:24:05 [2024-12-26 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104083', 'tblTempUsageDetail_20' ) start [2024-12-26 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104083', 'tblTempUsageDetail_20' ) end [2024-12-26 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104083', 'tblTempVendorCDR_20' ) start [2024-12-26 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104083', 'tblTempVendorCDR_20' ) end [2024-12-26 03:24:17] Production.INFO: ProcessCDR(1,14104083,1,1,2) [2024-12-26 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104083', 'tblTempUsageDetail_20' ) start [2024-12-26 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104083', 'tblTempUsageDetail_20' ) end [2024-12-26 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:24:20] Production.INFO: ==3053== Releasing lock... [2024-12-26 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:24:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:25:05 [end_date_ymd] => 2024-12-26 03:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:25:17] Production.INFO: count ==186 [2024-12-26 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:25:05 - End Time 2024-12-26 03:25:05 [2024-12-26 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104088', 'tblTempUsageDetail_20' ) start [2024-12-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104088', 'tblTempUsageDetail_20' ) end [2024-12-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104088', 'tblTempVendorCDR_20' ) start [2024-12-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104088', 'tblTempVendorCDR_20' ) end [2024-12-26 03:25:17] Production.INFO: ProcessCDR(1,14104088,1,1,2) [2024-12-26 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104088', 'tblTempUsageDetail_20' ) start [2024-12-26 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104088', 'tblTempUsageDetail_20' ) end [2024-12-26 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:25:20] Production.INFO: ==3137== Releasing lock... [2024-12-26 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:25:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:26:04 [end_date_ymd] => 2024-12-26 03:26:04 [RateCDR] => 1 ) [2024-12-26 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:26:04' and `end` < '2024-12-26 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:26:16] Production.INFO: count ==186 [2024-12-26 03:26:16] Production.ERROR: pbx CDR StartTime 2024-12-26 00:26:04 - End Time 2024-12-26 03:26:04 [2024-12-26 03:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104093', 'tblTempUsageDetail_20' ) start [2024-12-26 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104093', 'tblTempUsageDetail_20' ) end [2024-12-26 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104093', 'tblTempVendorCDR_20' ) start [2024-12-26 03:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104093', 'tblTempVendorCDR_20' ) end [2024-12-26 03:26:16] Production.INFO: ProcessCDR(1,14104093,1,1,2) [2024-12-26 03:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104093', 'tblTempUsageDetail_20' ) start [2024-12-26 03:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104093', 'tblTempUsageDetail_20' ) end [2024-12-26 03:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:26:19] Production.INFO: ==3218== Releasing lock... [2024-12-26 03:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:26:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:27:05 [end_date_ymd] => 2024-12-26 03:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:27:17] Production.INFO: count ==186 [2024-12-26 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:27:05 - End Time 2024-12-26 03:27:05 [2024-12-26 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104098', 'tblTempUsageDetail_20' ) start [2024-12-26 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104098', 'tblTempUsageDetail_20' ) end [2024-12-26 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104098', 'tblTempVendorCDR_20' ) start [2024-12-26 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104098', 'tblTempVendorCDR_20' ) end [2024-12-26 03:27:17] Production.INFO: ProcessCDR(1,14104098,1,1,2) [2024-12-26 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104098', 'tblTempUsageDetail_20' ) start [2024-12-26 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104098', 'tblTempUsageDetail_20' ) end [2024-12-26 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:27:20] Production.INFO: ==3307== Releasing lock... [2024-12-26 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:27:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:28:05 [end_date_ymd] => 2024-12-26 03:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:28:17] Production.INFO: count ==186 [2024-12-26 03:28:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:28:05 - End Time 2024-12-26 03:28:05 [2024-12-26 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104103', 'tblTempUsageDetail_20' ) start [2024-12-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104103', 'tblTempUsageDetail_20' ) end [2024-12-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104103', 'tblTempVendorCDR_20' ) start [2024-12-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104103', 'tblTempVendorCDR_20' ) end [2024-12-26 03:28:17] Production.INFO: ProcessCDR(1,14104103,1,1,2) [2024-12-26 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104103', 'tblTempUsageDetail_20' ) start [2024-12-26 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104103', 'tblTempUsageDetail_20' ) end [2024-12-26 03:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:28:20] Production.INFO: ==3389== Releasing lock... [2024-12-26 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:28:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:29:04 [end_date_ymd] => 2024-12-26 03:29:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:29:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:29:17] Production.INFO: count ==186 [2024-12-26 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:29:04 - End Time 2024-12-26 03:29:04 [2024-12-26 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104108', 'tblTempUsageDetail_20' ) start [2024-12-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104108', 'tblTempUsageDetail_20' ) end [2024-12-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104108', 'tblTempVendorCDR_20' ) start [2024-12-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104108', 'tblTempVendorCDR_20' ) end [2024-12-26 03:29:17] Production.INFO: ProcessCDR(1,14104108,1,1,2) [2024-12-26 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104108', 'tblTempUsageDetail_20' ) start [2024-12-26 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104108', 'tblTempUsageDetail_20' ) end [2024-12-26 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:29:20] Production.INFO: ==3472== Releasing lock... [2024-12-26 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:30:06 [end_date_ymd] => 2024-12-26 03:30:06 [RateCDR] => 1 ) [2024-12-26 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:30:06' and `end` < '2024-12-26 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:30:18] Production.INFO: count ==183 [2024-12-26 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:30:06 - End Time 2024-12-26 03:30:06 [2024-12-26 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104114', 'tblTempUsageDetail_20' ) start [2024-12-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104114', 'tblTempUsageDetail_20' ) end [2024-12-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104114', 'tblTempVendorCDR_20' ) start [2024-12-26 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104114', 'tblTempVendorCDR_20' ) end [2024-12-26 03:30:18] Production.INFO: ProcessCDR(1,14104114,1,1,2) [2024-12-26 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104114', 'tblTempUsageDetail_20' ) start [2024-12-26 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104114', 'tblTempUsageDetail_20' ) end [2024-12-26 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:30:21] Production.INFO: ==3554== Releasing lock... [2024-12-26 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:30:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:31:05 [end_date_ymd] => 2024-12-26 03:31:05 [RateCDR] => 1 ) [2024-12-26 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:31:05' and `end` < '2024-12-26 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:31:17] Production.INFO: count ==169 [2024-12-26 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:31:05 - End Time 2024-12-26 03:31:05 [2024-12-26 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104119', 'tblTempUsageDetail_20' ) start [2024-12-26 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104119', 'tblTempUsageDetail_20' ) end [2024-12-26 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104119', 'tblTempVendorCDR_20' ) start [2024-12-26 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104119', 'tblTempVendorCDR_20' ) end [2024-12-26 03:31:17] Production.INFO: ProcessCDR(1,14104119,1,1,2) [2024-12-26 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104119', 'tblTempUsageDetail_20' ) start [2024-12-26 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104119', 'tblTempUsageDetail_20' ) end [2024-12-26 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:31:20] Production.INFO: ==3643== Releasing lock... [2024-12-26 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:31:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:32:05 [end_date_ymd] => 2024-12-26 03:32:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:32:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:32:17] Production.INFO: count ==169 [2024-12-26 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:32:05 - End Time 2024-12-26 03:32:05 [2024-12-26 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104124', 'tblTempUsageDetail_20' ) start [2024-12-26 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104124', 'tblTempUsageDetail_20' ) end [2024-12-26 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104124', 'tblTempVendorCDR_20' ) start [2024-12-26 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104124', 'tblTempVendorCDR_20' ) end [2024-12-26 03:32:17] Production.INFO: ProcessCDR(1,14104124,1,1,2) [2024-12-26 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104124', 'tblTempUsageDetail_20' ) start [2024-12-26 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104124', 'tblTempUsageDetail_20' ) end [2024-12-26 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:32:20] Production.INFO: ==3720== Releasing lock... [2024-12-26 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:32:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:33:04 [end_date_ymd] => 2024-12-26 03:33:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:33:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:33:16] Production.INFO: count ==164 [2024-12-26 03:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:33:04 - End Time 2024-12-26 03:33:04 [2024-12-26 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104129', 'tblTempUsageDetail_20' ) start [2024-12-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104129', 'tblTempUsageDetail_20' ) end [2024-12-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104129', 'tblTempVendorCDR_20' ) start [2024-12-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104129', 'tblTempVendorCDR_20' ) end [2024-12-26 03:33:17] Production.INFO: ProcessCDR(1,14104129,1,1,2) [2024-12-26 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104129', 'tblTempUsageDetail_20' ) start [2024-12-26 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104129', 'tblTempUsageDetail_20' ) end [2024-12-26 03:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:33:20] Production.INFO: ==3842== Releasing lock... [2024-12-26 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:33:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:34:05 [end_date_ymd] => 2024-12-26 03:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:34:18] Production.INFO: count ==153 [2024-12-26 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:34:05 - End Time 2024-12-26 03:34:05 [2024-12-26 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104134', 'tblTempUsageDetail_20' ) start [2024-12-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104134', 'tblTempUsageDetail_20' ) end [2024-12-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104134', 'tblTempVendorCDR_20' ) start [2024-12-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104134', 'tblTempVendorCDR_20' ) end [2024-12-26 03:34:18] Production.INFO: ProcessCDR(1,14104134,1,1,2) [2024-12-26 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104134', 'tblTempUsageDetail_20' ) start [2024-12-26 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104134', 'tblTempUsageDetail_20' ) end [2024-12-26 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:34:21] Production.INFO: ==3931== Releasing lock... [2024-12-26 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:34:21] Production.INFO: 29 MB #Memory Used# [2024-12-26 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:35:05 [end_date_ymd] => 2024-12-26 03:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:35:19] Production.INFO: count ==149 [2024-12-26 03:35:19] Production.ERROR: pbx CDR StartTime 2024-12-26 00:35:05 - End Time 2024-12-26 03:35:05 [2024-12-26 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104139', 'tblTempUsageDetail_20' ) start [2024-12-26 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104139', 'tblTempUsageDetail_20' ) end [2024-12-26 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104139', 'tblTempVendorCDR_20' ) start [2024-12-26 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104139', 'tblTempVendorCDR_20' ) end [2024-12-26 03:35:19] Production.INFO: ProcessCDR(1,14104139,1,1,2) [2024-12-26 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104139', 'tblTempUsageDetail_20' ) start [2024-12-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104139', 'tblTempUsageDetail_20' ) end [2024-12-26 03:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:35:22] Production.INFO: ==4012== Releasing lock... [2024-12-26 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:35:22] Production.INFO: 29 MB #Memory Used# [2024-12-26 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:36:05 [end_date_ymd] => 2024-12-26 03:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:36:17] Production.INFO: count ==149 [2024-12-26 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:36:05 - End Time 2024-12-26 03:36:05 [2024-12-26 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104144', 'tblTempUsageDetail_20' ) start [2024-12-26 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104144', 'tblTempUsageDetail_20' ) end [2024-12-26 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104144', 'tblTempVendorCDR_20' ) start [2024-12-26 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104144', 'tblTempVendorCDR_20' ) end [2024-12-26 03:36:17] Production.INFO: ProcessCDR(1,14104144,1,1,2) [2024-12-26 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104144', 'tblTempUsageDetail_20' ) start [2024-12-26 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104144', 'tblTempUsageDetail_20' ) end [2024-12-26 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:36:20] Production.INFO: ==4096== Releasing lock... [2024-12-26 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:36:20] Production.INFO: 29 MB #Memory Used# [2024-12-26 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:37:05 [end_date_ymd] => 2024-12-26 03:37:05 [RateCDR] => 1 ) [2024-12-26 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:37:05' and `end` < '2024-12-26 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:37:18] Production.INFO: count ==142 [2024-12-26 03:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:37:05 - End Time 2024-12-26 03:37:05 [2024-12-26 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104149', 'tblTempUsageDetail_20' ) start [2024-12-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104149', 'tblTempUsageDetail_20' ) end [2024-12-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104149', 'tblTempVendorCDR_20' ) start [2024-12-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104149', 'tblTempVendorCDR_20' ) end [2024-12-26 03:37:18] Production.INFO: ProcessCDR(1,14104149,1,1,2) [2024-12-26 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104149', 'tblTempUsageDetail_20' ) start [2024-12-26 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104149', 'tblTempUsageDetail_20' ) end [2024-12-26 03:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:37:21] Production.INFO: ==4183== Releasing lock... [2024-12-26 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:38:05 [end_date_ymd] => 2024-12-26 03:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:38:17] Production.INFO: count ==142 [2024-12-26 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:38:05 - End Time 2024-12-26 03:38:05 [2024-12-26 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104154', 'tblTempUsageDetail_20' ) start [2024-12-26 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104154', 'tblTempUsageDetail_20' ) end [2024-12-26 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104154', 'tblTempVendorCDR_20' ) start [2024-12-26 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104154', 'tblTempVendorCDR_20' ) end [2024-12-26 03:38:17] Production.INFO: ProcessCDR(1,14104154,1,1,2) [2024-12-26 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104154', 'tblTempUsageDetail_20' ) start [2024-12-26 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104154', 'tblTempUsageDetail_20' ) end [2024-12-26 03:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:38:20] Production.INFO: ==4264== Releasing lock... [2024-12-26 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:38:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:39:05 [end_date_ymd] => 2024-12-26 03:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:39:17] Production.INFO: count ==142 [2024-12-26 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:39:05 - End Time 2024-12-26 03:39:05 [2024-12-26 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104159', 'tblTempUsageDetail_20' ) start [2024-12-26 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104159', 'tblTempUsageDetail_20' ) end [2024-12-26 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104159', 'tblTempVendorCDR_20' ) start [2024-12-26 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104159', 'tblTempVendorCDR_20' ) end [2024-12-26 03:39:17] Production.INFO: ProcessCDR(1,14104159,1,1,2) [2024-12-26 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104159', 'tblTempUsageDetail_20' ) start [2024-12-26 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104159', 'tblTempUsageDetail_20' ) end [2024-12-26 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:39:20] Production.INFO: ==4388== Releasing lock... [2024-12-26 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:39:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:40:05 [end_date_ymd] => 2024-12-26 03:40:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:40:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:40:17] Production.INFO: count ==135 [2024-12-26 03:40:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:40:05 - End Time 2024-12-26 03:40:05 [2024-12-26 03:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104164', 'tblTempUsageDetail_20' ) start [2024-12-26 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104164', 'tblTempUsageDetail_20' ) end [2024-12-26 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104164', 'tblTempVendorCDR_20' ) start [2024-12-26 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104164', 'tblTempVendorCDR_20' ) end [2024-12-26 03:40:17] Production.INFO: ProcessCDR(1,14104164,1,1,2) [2024-12-26 03:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104164', 'tblTempUsageDetail_20' ) start [2024-12-26 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104164', 'tblTempUsageDetail_20' ) end [2024-12-26 03:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:40:20] Production.INFO: ==4479== Releasing lock... [2024-12-26 03:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:40:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:41:05 [end_date_ymd] => 2024-12-26 03:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:41:18] Production.INFO: count ==127 [2024-12-26 03:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:41:05 - End Time 2024-12-26 03:41:05 [2024-12-26 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104170', 'tblTempUsageDetail_20' ) start [2024-12-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104170', 'tblTempUsageDetail_20' ) end [2024-12-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104170', 'tblTempVendorCDR_20' ) start [2024-12-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104170', 'tblTempVendorCDR_20' ) end [2024-12-26 03:41:18] Production.INFO: ProcessCDR(1,14104170,1,1,2) [2024-12-26 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104170', 'tblTempUsageDetail_20' ) start [2024-12-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104170', 'tblTempUsageDetail_20' ) end [2024-12-26 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:41:21] Production.INFO: ==4560== Releasing lock... [2024-12-26 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:41:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:42:05 [end_date_ymd] => 2024-12-26 03:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:42:17] Production.INFO: count ==127 [2024-12-26 03:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:42:05 - End Time 2024-12-26 03:42:05 [2024-12-26 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104175', 'tblTempUsageDetail_20' ) start [2024-12-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104175', 'tblTempUsageDetail_20' ) end [2024-12-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104175', 'tblTempVendorCDR_20' ) start [2024-12-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104175', 'tblTempVendorCDR_20' ) end [2024-12-26 03:42:18] Production.INFO: ProcessCDR(1,14104175,1,1,2) [2024-12-26 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104175', 'tblTempUsageDetail_20' ) start [2024-12-26 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104175', 'tblTempUsageDetail_20' ) end [2024-12-26 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:42:21] Production.INFO: ==4651== Releasing lock... [2024-12-26 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:42:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:43:04 [end_date_ymd] => 2024-12-26 03:43:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:43:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:43:18] Production.INFO: count ==126 [2024-12-26 03:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:43:04 - End Time 2024-12-26 03:43:04 [2024-12-26 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104180', 'tblTempUsageDetail_20' ) start [2024-12-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104180', 'tblTempUsageDetail_20' ) end [2024-12-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104180', 'tblTempVendorCDR_20' ) start [2024-12-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104180', 'tblTempVendorCDR_20' ) end [2024-12-26 03:43:18] Production.INFO: ProcessCDR(1,14104180,1,1,2) [2024-12-26 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104180', 'tblTempUsageDetail_20' ) start [2024-12-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104180', 'tblTempUsageDetail_20' ) end [2024-12-26 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:43:21] Production.INFO: ==4732== Releasing lock... [2024-12-26 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:43:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:44:05 [end_date_ymd] => 2024-12-26 03:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:44:18] Production.INFO: count ==126 [2024-12-26 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:44:05 - End Time 2024-12-26 03:44:05 [2024-12-26 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104185', 'tblTempUsageDetail_20' ) start [2024-12-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104185', 'tblTempUsageDetail_20' ) end [2024-12-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104185', 'tblTempVendorCDR_20' ) start [2024-12-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104185', 'tblTempVendorCDR_20' ) end [2024-12-26 03:44:18] Production.INFO: ProcessCDR(1,14104185,1,1,2) [2024-12-26 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104185', 'tblTempUsageDetail_20' ) start [2024-12-26 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104185', 'tblTempUsageDetail_20' ) end [2024-12-26 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:44:21] Production.INFO: ==4820== Releasing lock... [2024-12-26 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:44:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:45:04 [end_date_ymd] => 2024-12-26 03:45:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:45:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:45:17] Production.INFO: count ==125 [2024-12-26 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:45:04 - End Time 2024-12-26 03:45:04 [2024-12-26 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104190', 'tblTempUsageDetail_20' ) start [2024-12-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104190', 'tblTempUsageDetail_20' ) end [2024-12-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104190', 'tblTempVendorCDR_20' ) start [2024-12-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104190', 'tblTempVendorCDR_20' ) end [2024-12-26 03:45:17] Production.INFO: ProcessCDR(1,14104190,1,1,2) [2024-12-26 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104190', 'tblTempUsageDetail_20' ) start [2024-12-26 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104190', 'tblTempUsageDetail_20' ) end [2024-12-26 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:45:20] Production.INFO: ==4911== Releasing lock... [2024-12-26 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:45:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:46:05 [end_date_ymd] => 2024-12-26 03:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:46:19] Production.INFO: count ==121 [2024-12-26 03:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 00:46:05 - End Time 2024-12-26 03:46:05 [2024-12-26 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104195', 'tblTempUsageDetail_20' ) start [2024-12-26 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104195', 'tblTempUsageDetail_20' ) end [2024-12-26 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104195', 'tblTempVendorCDR_20' ) start [2024-12-26 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104195', 'tblTempVendorCDR_20' ) end [2024-12-26 03:46:19] Production.INFO: ProcessCDR(1,14104195,1,1,2) [2024-12-26 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104195', 'tblTempUsageDetail_20' ) start [2024-12-26 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104195', 'tblTempUsageDetail_20' ) end [2024-12-26 03:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:46:22] Production.INFO: ==4994== Releasing lock... [2024-12-26 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:46:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:47:04 [end_date_ymd] => 2024-12-26 03:47:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:47:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:47:17] Production.INFO: count ==118 [2024-12-26 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:47:04 - End Time 2024-12-26 03:47:04 [2024-12-26 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104200', 'tblTempUsageDetail_20' ) start [2024-12-26 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104200', 'tblTempUsageDetail_20' ) end [2024-12-26 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104200', 'tblTempVendorCDR_20' ) start [2024-12-26 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104200', 'tblTempVendorCDR_20' ) end [2024-12-26 03:47:17] Production.INFO: ProcessCDR(1,14104200,1,1,2) [2024-12-26 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104200', 'tblTempUsageDetail_20' ) start [2024-12-26 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104200', 'tblTempUsageDetail_20' ) end [2024-12-26 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:47:20] Production.INFO: ==5080== Releasing lock... [2024-12-26 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:47:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:48:05 [end_date_ymd] => 2024-12-26 03:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:48:17] Production.INFO: count ==112 [2024-12-26 03:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:48:05 - End Time 2024-12-26 03:48:05 [2024-12-26 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104205', 'tblTempUsageDetail_20' ) start [2024-12-26 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104205', 'tblTempUsageDetail_20' ) end [2024-12-26 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104205', 'tblTempVendorCDR_20' ) start [2024-12-26 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104205', 'tblTempVendorCDR_20' ) end [2024-12-26 03:48:17] Production.INFO: ProcessCDR(1,14104205,1,1,2) [2024-12-26 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104205', 'tblTempUsageDetail_20' ) start [2024-12-26 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104205', 'tblTempUsageDetail_20' ) end [2024-12-26 03:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:48:20] Production.INFO: ==5170== Releasing lock... [2024-12-26 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:48:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:49:04 [end_date_ymd] => 2024-12-26 03:49:04 [RateCDR] => 1 ) [2024-12-26 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:49:04' and `end` < '2024-12-26 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:49:17] Production.INFO: count ==100 [2024-12-26 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:49:04 - End Time 2024-12-26 03:49:04 [2024-12-26 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104210', 'tblTempUsageDetail_20' ) start [2024-12-26 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104210', 'tblTempUsageDetail_20' ) end [2024-12-26 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104210', 'tblTempVendorCDR_20' ) start [2024-12-26 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104210', 'tblTempVendorCDR_20' ) end [2024-12-26 03:49:17] Production.INFO: ProcessCDR(1,14104210,1,1,2) [2024-12-26 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104210', 'tblTempUsageDetail_20' ) start [2024-12-26 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104210', 'tblTempUsageDetail_20' ) end [2024-12-26 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:49:20] Production.INFO: ==5292== Releasing lock... [2024-12-26 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:49:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:50:05 [end_date_ymd] => 2024-12-26 03:50:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:50:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:50:17] Production.INFO: count ==88 [2024-12-26 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:50:05 - End Time 2024-12-26 03:50:05 [2024-12-26 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104216', 'tblTempUsageDetail_20' ) start [2024-12-26 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104216', 'tblTempUsageDetail_20' ) end [2024-12-26 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104216', 'tblTempVendorCDR_20' ) start [2024-12-26 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104216', 'tblTempVendorCDR_20' ) end [2024-12-26 03:50:17] Production.INFO: ProcessCDR(1,14104216,1,1,2) [2024-12-26 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104216', 'tblTempUsageDetail_20' ) start [2024-12-26 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104216', 'tblTempUsageDetail_20' ) end [2024-12-26 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:50:20] Production.INFO: ==5378== Releasing lock... [2024-12-26 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:50:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:51:05 [end_date_ymd] => 2024-12-26 03:51:05 [RateCDR] => 1 ) [2024-12-26 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:51:05' and `end` < '2024-12-26 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:51:17] Production.INFO: count ==69 [2024-12-26 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:51:05 - End Time 2024-12-26 03:51:05 [2024-12-26 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104221', 'tblTempUsageDetail_20' ) start [2024-12-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104221', 'tblTempUsageDetail_20' ) end [2024-12-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104221', 'tblTempVendorCDR_20' ) start [2024-12-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104221', 'tblTempVendorCDR_20' ) end [2024-12-26 03:51:17] Production.INFO: ProcessCDR(1,14104221,1,1,2) [2024-12-26 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104221', 'tblTempUsageDetail_20' ) start [2024-12-26 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104221', 'tblTempUsageDetail_20' ) end [2024-12-26 03:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:51:20] Production.INFO: ==5472== Releasing lock... [2024-12-26 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:51:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:52:05 [end_date_ymd] => 2024-12-26 03:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:52:18] Production.INFO: count ==69 [2024-12-26 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:52:05 - End Time 2024-12-26 03:52:05 [2024-12-26 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104226', 'tblTempUsageDetail_20' ) start [2024-12-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104226', 'tblTempUsageDetail_20' ) end [2024-12-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104226', 'tblTempVendorCDR_20' ) start [2024-12-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104226', 'tblTempVendorCDR_20' ) end [2024-12-26 03:52:18] Production.INFO: ProcessCDR(1,14104226,1,1,2) [2024-12-26 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104226', 'tblTempUsageDetail_20' ) start [2024-12-26 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104226', 'tblTempUsageDetail_20' ) end [2024-12-26 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:52:21] Production.INFO: ==5553== Releasing lock... [2024-12-26 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:52:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:53:05 [end_date_ymd] => 2024-12-26 03:53:05 [RateCDR] => 1 ) [2024-12-26 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:53:05' and `end` < '2024-12-26 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:53:18] Production.INFO: count ==66 [2024-12-26 03:53:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:53:05 - End Time 2024-12-26 03:53:05 [2024-12-26 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104231', 'tblTempUsageDetail_20' ) start [2024-12-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104231', 'tblTempUsageDetail_20' ) end [2024-12-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104231', 'tblTempVendorCDR_20' ) start [2024-12-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104231', 'tblTempVendorCDR_20' ) end [2024-12-26 03:53:18] Production.INFO: ProcessCDR(1,14104231,1,1,2) [2024-12-26 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104231', 'tblTempUsageDetail_20' ) start [2024-12-26 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104231', 'tblTempUsageDetail_20' ) end [2024-12-26 03:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:53:21] Production.INFO: ==5637== Releasing lock... [2024-12-26 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:53:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:54:04 [end_date_ymd] => 2024-12-26 03:54:04 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:54:04' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:54:17] Production.INFO: count ==63 [2024-12-26 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:54:04 - End Time 2024-12-26 03:54:04 [2024-12-26 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104236', 'tblTempUsageDetail_20' ) start [2024-12-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104236', 'tblTempUsageDetail_20' ) end [2024-12-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104236', 'tblTempVendorCDR_20' ) start [2024-12-26 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104236', 'tblTempVendorCDR_20' ) end [2024-12-26 03:54:17] Production.INFO: ProcessCDR(1,14104236,1,1,2) [2024-12-26 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104236', 'tblTempUsageDetail_20' ) start [2024-12-26 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104236', 'tblTempUsageDetail_20' ) end [2024-12-26 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:54:20] Production.INFO: ==5724== Releasing lock... [2024-12-26 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:55:05 [end_date_ymd] => 2024-12-26 03:55:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:55:05' and `end` < '2024-12-26 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:55:17] Production.INFO: count ==63 [2024-12-26 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:55:05 - End Time 2024-12-26 03:55:05 [2024-12-26 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104241', 'tblTempUsageDetail_20' ) start [2024-12-26 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104241', 'tblTempUsageDetail_20' ) end [2024-12-26 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104241', 'tblTempVendorCDR_20' ) start [2024-12-26 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104241', 'tblTempVendorCDR_20' ) end [2024-12-26 03:55:17] Production.INFO: ProcessCDR(1,14104241,1,1,2) [2024-12-26 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104241', 'tblTempUsageDetail_20' ) start [2024-12-26 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104241', 'tblTempUsageDetail_20' ) end [2024-12-26 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:55:20] Production.INFO: ==5807== Releasing lock... [2024-12-26 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:55:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:56:05 [end_date_ymd] => 2024-12-26 03:56:05 [RateCDR] => 1 ) [2024-12-26 03: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` >= '2024-12-26 00:56:05' and `end` < '2024-12-26 03: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 ,'') [2024-12-26 03:56:17] Production.INFO: count ==63 [2024-12-26 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:56:05 - End Time 2024-12-26 03:56:05 [2024-12-26 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104246', 'tblTempUsageDetail_20' ) start [2024-12-26 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104246', 'tblTempUsageDetail_20' ) end [2024-12-26 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104246', 'tblTempVendorCDR_20' ) start [2024-12-26 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104246', 'tblTempVendorCDR_20' ) end [2024-12-26 03:56:17] Production.INFO: ProcessCDR(1,14104246,1,1,2) [2024-12-26 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104246', 'tblTempUsageDetail_20' ) start [2024-12-26 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104246', 'tblTempUsageDetail_20' ) end [2024-12-26 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:56:20] Production.INFO: ==5888== Releasing lock... [2024-12-26 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:57:05 [end_date_ymd] => 2024-12-26 03:57:05 [RateCDR] => 1 ) [2024-12-26 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:57:05' and `end` < '2024-12-26 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:57:17] Production.INFO: count ==63 [2024-12-26 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 00:57:05 - End Time 2024-12-26 03:57:05 [2024-12-26 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104251', 'tblTempUsageDetail_20' ) start [2024-12-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104251', 'tblTempUsageDetail_20' ) end [2024-12-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104251', 'tblTempVendorCDR_20' ) start [2024-12-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104251', 'tblTempVendorCDR_20' ) end [2024-12-26 03:57:17] Production.INFO: ProcessCDR(1,14104251,1,1,2) [2024-12-26 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104251', 'tblTempUsageDetail_20' ) start [2024-12-26 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104251', 'tblTempUsageDetail_20' ) end [2024-12-26 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:57:20] Production.INFO: ==6001== Releasing lock... [2024-12-26 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:58:05 [end_date_ymd] => 2024-12-26 03:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 00:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 03:58:19] Production.INFO: count ==63 [2024-12-26 03:58:19] Production.ERROR: pbx CDR StartTime 2024-12-26 00:58:05 - End Time 2024-12-26 03:58:05 [2024-12-26 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104256', 'tblTempUsageDetail_20' ) start [2024-12-26 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104256', 'tblTempUsageDetail_20' ) end [2024-12-26 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104256', 'tblTempVendorCDR_20' ) start [2024-12-26 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104256', 'tblTempVendorCDR_20' ) end [2024-12-26 03:58:19] Production.INFO: ProcessCDR(1,14104256,1,1,2) [2024-12-26 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104256', 'tblTempUsageDetail_20' ) start [2024-12-26 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104256', 'tblTempUsageDetail_20' ) end [2024-12-26 03:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:58:22] Production.INFO: ==6104== Releasing lock... [2024-12-26 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:58:22] Production.INFO: 28 MB #Memory Used# [2024-12-26 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 00:59:05 [end_date_ymd] => 2024-12-26 03:59:05 [RateCDR] => 1 ) [2024-12-26 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 00:59:05' and `end` < '2024-12-26 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 03:59:18] Production.INFO: count ==63 [2024-12-26 03:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 00:59:05 - End Time 2024-12-26 03:59:05 [2024-12-26 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104261', 'tblTempUsageDetail_20' ) start [2024-12-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104261', 'tblTempUsageDetail_20' ) end [2024-12-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104261', 'tblTempVendorCDR_20' ) start [2024-12-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104261', 'tblTempVendorCDR_20' ) end [2024-12-26 03:59:18] Production.INFO: ProcessCDR(1,14104261,1,1,2) [2024-12-26 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104261', 'tblTempUsageDetail_20' ) start [2024-12-26 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104261', 'tblTempUsageDetail_20' ) end [2024-12-26 03:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 03:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 03:59:21] Production.INFO: ==6208== Releasing lock... [2024-12-26 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 03:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:00:06 [end_date_ymd] => 2024-12-26 04:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:00:19] Production.INFO: count ==57 [2024-12-26 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:00:06 - End Time 2024-12-26 04:00:06 [2024-12-26 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104267', 'tblTempUsageDetail_20' ) start [2024-12-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104267', 'tblTempUsageDetail_20' ) end [2024-12-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104267', 'tblTempVendorCDR_20' ) start [2024-12-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104267', 'tblTempVendorCDR_20' ) end [2024-12-26 04:00:19] Production.INFO: ProcessCDR(1,14104267,1,1,2) [2024-12-26 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104267', 'tblTempUsageDetail_20' ) start [2024-12-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104267', 'tblTempUsageDetail_20' ) end [2024-12-26 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:00:22] Production.INFO: ==6318== Releasing lock... [2024-12-26 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:00:22] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:01:05 [end_date_ymd] => 2024-12-26 04:01:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:01:05' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:01:18] Production.INFO: count ==57 [2024-12-26 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:01:05 - End Time 2024-12-26 04:01:05 [2024-12-26 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104273', 'tblTempUsageDetail_20' ) start [2024-12-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104273', 'tblTempUsageDetail_20' ) end [2024-12-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104273', 'tblTempVendorCDR_20' ) start [2024-12-26 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104273', 'tblTempVendorCDR_20' ) end [2024-12-26 04:01:18] Production.INFO: ProcessCDR(1,14104273,1,1,2) [2024-12-26 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104273', 'tblTempUsageDetail_20' ) start [2024-12-26 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104273', 'tblTempUsageDetail_20' ) end [2024-12-26 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:01:21] Production.INFO: ==6441== Releasing lock... [2024-12-26 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:02:05 [end_date_ymd] => 2024-12-26 04:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:02:17] Production.INFO: count ==57 [2024-12-26 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:02:05 - End Time 2024-12-26 04:02:05 [2024-12-26 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104278', 'tblTempUsageDetail_20' ) start [2024-12-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104278', 'tblTempUsageDetail_20' ) end [2024-12-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104278', 'tblTempVendorCDR_20' ) start [2024-12-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104278', 'tblTempVendorCDR_20' ) end [2024-12-26 04:02:17] Production.INFO: ProcessCDR(1,14104278,1,1,2) [2024-12-26 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104278', 'tblTempUsageDetail_20' ) start [2024-12-26 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104278', 'tblTempUsageDetail_20' ) end [2024-12-26 04:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:02:20] Production.INFO: ==6547== Releasing lock... [2024-12-26 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:03:05 [end_date_ymd] => 2024-12-26 04:03:05 [RateCDR] => 1 ) [2024-12-26 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:03:05' and `end` < '2024-12-26 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:03:18] Production.INFO: count ==57 [2024-12-26 04:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:03:05 - End Time 2024-12-26 04:03:05 [2024-12-26 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104283', 'tblTempUsageDetail_20' ) start [2024-12-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104283', 'tblTempUsageDetail_20' ) end [2024-12-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104283', 'tblTempVendorCDR_20' ) start [2024-12-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104283', 'tblTempVendorCDR_20' ) end [2024-12-26 04:03:18] Production.INFO: ProcessCDR(1,14104283,1,1,2) [2024-12-26 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104283', 'tblTempUsageDetail_20' ) start [2024-12-26 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104283', 'tblTempUsageDetail_20' ) end [2024-12-26 04:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:03:21] Production.INFO: ==6656== Releasing lock... [2024-12-26 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:04:05 [end_date_ymd] => 2024-12-26 04:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:04:18] Production.INFO: count ==57 [2024-12-26 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:04:05 - End Time 2024-12-26 04:04:05 [2024-12-26 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104288', 'tblTempUsageDetail_20' ) start [2024-12-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104288', 'tblTempUsageDetail_20' ) end [2024-12-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104288', 'tblTempVendorCDR_20' ) start [2024-12-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104288', 'tblTempVendorCDR_20' ) end [2024-12-26 04:04:18] Production.INFO: ProcessCDR(1,14104288,1,1,2) [2024-12-26 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104288', 'tblTempUsageDetail_20' ) start [2024-12-26 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104288', 'tblTempUsageDetail_20' ) end [2024-12-26 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:04:21] Production.INFO: ==6762== Releasing lock... [2024-12-26 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:05:04 [end_date_ymd] => 2024-12-26 04:05:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:05:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:05:17] Production.INFO: count ==56 [2024-12-26 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:05:04 - End Time 2024-12-26 04:05:04 [2024-12-26 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104293', 'tblTempUsageDetail_20' ) start [2024-12-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104293', 'tblTempUsageDetail_20' ) end [2024-12-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104293', 'tblTempVendorCDR_20' ) start [2024-12-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104293', 'tblTempVendorCDR_20' ) end [2024-12-26 04:05:17] Production.INFO: ProcessCDR(1,14104293,1,1,2) [2024-12-26 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104293', 'tblTempUsageDetail_20' ) start [2024-12-26 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104293', 'tblTempUsageDetail_20' ) end [2024-12-26 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:05:20] Production.INFO: ==6907== Releasing lock... [2024-12-26 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:06:05 [end_date_ymd] => 2024-12-26 04:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:06:17] Production.INFO: count ==56 [2024-12-26 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:06:05 - End Time 2024-12-26 04:06:05 [2024-12-26 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104298', 'tblTempUsageDetail_20' ) start [2024-12-26 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104298', 'tblTempUsageDetail_20' ) end [2024-12-26 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104298', 'tblTempVendorCDR_20' ) start [2024-12-26 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104298', 'tblTempVendorCDR_20' ) end [2024-12-26 04:06:17] Production.INFO: ProcessCDR(1,14104298,1,1,2) [2024-12-26 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104298', 'tblTempUsageDetail_20' ) start [2024-12-26 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104298', 'tblTempUsageDetail_20' ) end [2024-12-26 04:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:06:21] Production.INFO: ==7011== Releasing lock... [2024-12-26 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:07:05 [end_date_ymd] => 2024-12-26 04:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:07:18] Production.INFO: count ==55 [2024-12-26 04:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:07:05 - End Time 2024-12-26 04:07:05 [2024-12-26 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104303', 'tblTempUsageDetail_20' ) start [2024-12-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104303', 'tblTempUsageDetail_20' ) end [2024-12-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104303', 'tblTempVendorCDR_20' ) start [2024-12-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104303', 'tblTempVendorCDR_20' ) end [2024-12-26 04:07:18] Production.INFO: ProcessCDR(1,14104303,1,1,2) [2024-12-26 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104303', 'tblTempUsageDetail_20' ) start [2024-12-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104303', 'tblTempUsageDetail_20' ) end [2024-12-26 04:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:07:21] Production.INFO: ==7116== Releasing lock... [2024-12-26 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:08:05 [end_date_ymd] => 2024-12-26 04:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:08:17] Production.INFO: count ==55 [2024-12-26 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:08:05 - End Time 2024-12-26 04:08:05 [2024-12-26 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104308', 'tblTempUsageDetail_20' ) start [2024-12-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104308', 'tblTempUsageDetail_20' ) end [2024-12-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104308', 'tblTempVendorCDR_20' ) start [2024-12-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104308', 'tblTempVendorCDR_20' ) end [2024-12-26 04:08:17] Production.INFO: ProcessCDR(1,14104308,1,1,2) [2024-12-26 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104308', 'tblTempUsageDetail_20' ) start [2024-12-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104308', 'tblTempUsageDetail_20' ) end [2024-12-26 04:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:08:21] Production.INFO: ==7226== Releasing lock... [2024-12-26 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:09:04 [end_date_ymd] => 2024-12-26 04:09:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:09:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:09:17] Production.INFO: count ==55 [2024-12-26 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:09:04 - End Time 2024-12-26 04:09:04 [2024-12-26 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104313', 'tblTempUsageDetail_20' ) start [2024-12-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104313', 'tblTempUsageDetail_20' ) end [2024-12-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104313', 'tblTempVendorCDR_20' ) start [2024-12-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104313', 'tblTempVendorCDR_20' ) end [2024-12-26 04:09:17] Production.INFO: ProcessCDR(1,14104313,1,1,2) [2024-12-26 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104313', 'tblTempUsageDetail_20' ) start [2024-12-26 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104313', 'tblTempUsageDetail_20' ) end [2024-12-26 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:09:20] Production.INFO: ==7331== Releasing lock... [2024-12-26 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:10:06 [end_date_ymd] => 2024-12-26 04:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:10:18] Production.INFO: count ==57 [2024-12-26 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:10:06 - End Time 2024-12-26 04:10:06 [2024-12-26 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104319', 'tblTempUsageDetail_20' ) start [2024-12-26 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104319', 'tblTempUsageDetail_20' ) end [2024-12-26 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104319', 'tblTempVendorCDR_20' ) start [2024-12-26 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104319', 'tblTempVendorCDR_20' ) end [2024-12-26 04:10:18] Production.INFO: ProcessCDR(1,14104319,1,1,2) [2024-12-26 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104319', 'tblTempUsageDetail_20' ) start [2024-12-26 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104319', 'tblTempUsageDetail_20' ) end [2024-12-26 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:10:21] Production.INFO: ==7436== Releasing lock... [2024-12-26 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:11:05 [end_date_ymd] => 2024-12-26 04:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:11:18] Production.INFO: count ==57 [2024-12-26 04:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:11:05 - End Time 2024-12-26 04:11:05 [2024-12-26 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104324', 'tblTempUsageDetail_20' ) start [2024-12-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104324', 'tblTempUsageDetail_20' ) end [2024-12-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104324', 'tblTempVendorCDR_20' ) start [2024-12-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104324', 'tblTempVendorCDR_20' ) end [2024-12-26 04:11:18] Production.INFO: ProcessCDR(1,14104324,1,1,2) [2024-12-26 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104324', 'tblTempUsageDetail_20' ) start [2024-12-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104324', 'tblTempUsageDetail_20' ) end [2024-12-26 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:11:21] Production.INFO: ==7542== Releasing lock... [2024-12-26 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:12:05 [end_date_ymd] => 2024-12-26 04:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:12:18] Production.INFO: count ==57 [2024-12-26 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:12:05 - End Time 2024-12-26 04:12:05 [2024-12-26 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104329', 'tblTempUsageDetail_20' ) start [2024-12-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104329', 'tblTempUsageDetail_20' ) end [2024-12-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104329', 'tblTempVendorCDR_20' ) start [2024-12-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104329', 'tblTempVendorCDR_20' ) end [2024-12-26 04:12:18] Production.INFO: ProcessCDR(1,14104329,1,1,2) [2024-12-26 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104329', 'tblTempUsageDetail_20' ) start [2024-12-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104329', 'tblTempUsageDetail_20' ) end [2024-12-26 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:12:21] Production.INFO: ==7648== Releasing lock... [2024-12-26 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:13:04 [end_date_ymd] => 2024-12-26 04:13:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:13:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:13:17] Production.INFO: count ==57 [2024-12-26 04:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:13:04 - End Time 2024-12-26 04:13:04 [2024-12-26 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104334', 'tblTempUsageDetail_20' ) start [2024-12-26 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104334', 'tblTempUsageDetail_20' ) end [2024-12-26 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104334', 'tblTempVendorCDR_20' ) start [2024-12-26 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104334', 'tblTempVendorCDR_20' ) end [2024-12-26 04:13:17] Production.INFO: ProcessCDR(1,14104334,1,1,2) [2024-12-26 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104334', 'tblTempUsageDetail_20' ) start [2024-12-26 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104334', 'tblTempUsageDetail_20' ) end [2024-12-26 04:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:13:20] Production.INFO: ==7753== Releasing lock... [2024-12-26 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:13:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:14:05 [end_date_ymd] => 2024-12-26 04:14:05 [RateCDR] => 1 ) [2024-12-26 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:14:17] Production.INFO: count ==57 [2024-12-26 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:14:05 - End Time 2024-12-26 04:14:05 [2024-12-26 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104339', 'tblTempUsageDetail_20' ) start [2024-12-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104339', 'tblTempUsageDetail_20' ) end [2024-12-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104339', 'tblTempVendorCDR_20' ) start [2024-12-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104339', 'tblTempVendorCDR_20' ) end [2024-12-26 04:14:17] Production.INFO: ProcessCDR(1,14104339,1,1,2) [2024-12-26 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104339', 'tblTempUsageDetail_20' ) start [2024-12-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104339', 'tblTempUsageDetail_20' ) end [2024-12-26 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:14:20] Production.INFO: ==7858== Releasing lock... [2024-12-26 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:15:05 [end_date_ymd] => 2024-12-26 04:15:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:15:05' and `end` < '2024-12-26 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:15:19] Production.INFO: count ==57 [2024-12-26 04:15:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:15:05 - End Time 2024-12-26 04:15:05 [2024-12-26 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104344', 'tblTempUsageDetail_20' ) start [2024-12-26 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104344', 'tblTempUsageDetail_20' ) end [2024-12-26 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104344', 'tblTempVendorCDR_20' ) start [2024-12-26 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104344', 'tblTempVendorCDR_20' ) end [2024-12-26 04:15:19] Production.INFO: ProcessCDR(1,14104344,1,1,2) [2024-12-26 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104344', 'tblTempUsageDetail_20' ) start [2024-12-26 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104344', 'tblTempUsageDetail_20' ) end [2024-12-26 04:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:15:23] Production.INFO: ==7942== Releasing lock... [2024-12-26 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:15:23] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:16:05 [end_date_ymd] => 2024-12-26 04:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:16:18] Production.INFO: count ==49 [2024-12-26 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:16:05 - End Time 2024-12-26 04:16:05 [2024-12-26 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104349', 'tblTempUsageDetail_20' ) start [2024-12-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104349', 'tblTempUsageDetail_20' ) end [2024-12-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104349', 'tblTempVendorCDR_20' ) start [2024-12-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104349', 'tblTempVendorCDR_20' ) end [2024-12-26 04:16:18] Production.INFO: ProcessCDR(1,14104349,1,1,2) [2024-12-26 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104349', 'tblTempUsageDetail_20' ) start [2024-12-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104349', 'tblTempUsageDetail_20' ) end [2024-12-26 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:16:21] Production.INFO: ==8017== Releasing lock... [2024-12-26 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:16:21] Production.INFO: 28 MB #Memory Used# [2024-12-26 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:17:05 [end_date_ymd] => 2024-12-26 04:17:05 [RateCDR] => 1 ) [2024-12-26 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:17:05' and `end` < '2024-12-26 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:17:17] Production.INFO: count ==42 [2024-12-26 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:17:05 - End Time 2024-12-26 04:17:05 [2024-12-26 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104354', 'tblTempUsageDetail_20' ) start [2024-12-26 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104354', 'tblTempUsageDetail_20' ) end [2024-12-26 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104354', 'tblTempVendorCDR_20' ) start [2024-12-26 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104354', 'tblTempVendorCDR_20' ) end [2024-12-26 04:17:17] Production.INFO: ProcessCDR(1,14104354,1,1,2) [2024-12-26 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104354', 'tblTempUsageDetail_20' ) start [2024-12-26 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104354', 'tblTempUsageDetail_20' ) end [2024-12-26 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:17:20] Production.INFO: ==8117== Releasing lock... [2024-12-26 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:18:04 [end_date_ymd] => 2024-12-26 04:18:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:18:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:18:17] Production.INFO: count ==42 [2024-12-26 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:18:04 - End Time 2024-12-26 04:18:04 [2024-12-26 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104359', 'tblTempUsageDetail_20' ) start [2024-12-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104359', 'tblTempUsageDetail_20' ) end [2024-12-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104359', 'tblTempVendorCDR_20' ) start [2024-12-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104359', 'tblTempVendorCDR_20' ) end [2024-12-26 04:18:17] Production.INFO: ProcessCDR(1,14104359,1,1,2) [2024-12-26 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104359', 'tblTempUsageDetail_20' ) start [2024-12-26 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104359', 'tblTempUsageDetail_20' ) end [2024-12-26 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:18:20] Production.INFO: ==8198== Releasing lock... [2024-12-26 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:19:05 [end_date_ymd] => 2024-12-26 04:19:05 [RateCDR] => 1 ) [2024-12-26 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:19:05' and `end` < '2024-12-26 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:19:17] Production.INFO: count ==42 [2024-12-26 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:19:05 - End Time 2024-12-26 04:19:05 [2024-12-26 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104364', 'tblTempUsageDetail_20' ) start [2024-12-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104364', 'tblTempUsageDetail_20' ) end [2024-12-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104364', 'tblTempVendorCDR_20' ) start [2024-12-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104364', 'tblTempVendorCDR_20' ) end [2024-12-26 04:19:17] Production.INFO: ProcessCDR(1,14104364,1,1,2) [2024-12-26 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104364', 'tblTempUsageDetail_20' ) start [2024-12-26 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104364', 'tblTempUsageDetail_20' ) end [2024-12-26 04:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:19:20] Production.INFO: ==8281== Releasing lock... [2024-12-26 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:20:05 [end_date_ymd] => 2024-12-26 04:20:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:20:05' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:20:17] Production.INFO: count ==40 [2024-12-26 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:20:05 - End Time 2024-12-26 04:20:05 [2024-12-26 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104370', 'tblTempUsageDetail_20' ) start [2024-12-26 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104370', 'tblTempUsageDetail_20' ) end [2024-12-26 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104370', 'tblTempVendorCDR_20' ) start [2024-12-26 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104370', 'tblTempVendorCDR_20' ) end [2024-12-26 04:20:17] Production.INFO: ProcessCDR(1,14104370,1,1,2) [2024-12-26 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104370', 'tblTempUsageDetail_20' ) start [2024-12-26 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104370', 'tblTempUsageDetail_20' ) end [2024-12-26 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:20:21] Production.INFO: ==8398== Releasing lock... [2024-12-26 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:21:05 [end_date_ymd] => 2024-12-26 04:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:21:18] Production.INFO: count ==40 [2024-12-26 04:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:21:05 - End Time 2024-12-26 04:21:05 [2024-12-26 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104375', 'tblTempUsageDetail_20' ) start [2024-12-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104375', 'tblTempUsageDetail_20' ) end [2024-12-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104375', 'tblTempVendorCDR_20' ) start [2024-12-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104375', 'tblTempVendorCDR_20' ) end [2024-12-26 04:21:18] Production.INFO: ProcessCDR(1,14104375,1,1,2) [2024-12-26 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104375', 'tblTempUsageDetail_20' ) start [2024-12-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104375', 'tblTempUsageDetail_20' ) end [2024-12-26 04:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:21:21] Production.INFO: ==8479== Releasing lock... [2024-12-26 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:22:05 [end_date_ymd] => 2024-12-26 04:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:22:18] Production.INFO: count ==40 [2024-12-26 04:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:22:05 - End Time 2024-12-26 04:22:05 [2024-12-26 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104380', 'tblTempUsageDetail_20' ) start [2024-12-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104380', 'tblTempUsageDetail_20' ) end [2024-12-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104380', 'tblTempVendorCDR_20' ) start [2024-12-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104380', 'tblTempVendorCDR_20' ) end [2024-12-26 04:22:18] Production.INFO: ProcessCDR(1,14104380,1,1,2) [2024-12-26 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104380', 'tblTempUsageDetail_20' ) start [2024-12-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104380', 'tblTempUsageDetail_20' ) end [2024-12-26 04:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:22:21] Production.INFO: ==8559== Releasing lock... [2024-12-26 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:23:05 [end_date_ymd] => 2024-12-26 04:23:05 [RateCDR] => 1 ) [2024-12-26 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:23:05' and `end` < '2024-12-26 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:23:18] Production.INFO: count ==40 [2024-12-26 04:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:23:05 - End Time 2024-12-26 04:23:05 [2024-12-26 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104385', 'tblTempUsageDetail_20' ) start [2024-12-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104385', 'tblTempUsageDetail_20' ) end [2024-12-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104385', 'tblTempVendorCDR_20' ) start [2024-12-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104385', 'tblTempVendorCDR_20' ) end [2024-12-26 04:23:18] Production.INFO: ProcessCDR(1,14104385,1,1,2) [2024-12-26 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104385', 'tblTempUsageDetail_20' ) start [2024-12-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104385', 'tblTempUsageDetail_20' ) end [2024-12-26 04:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:23:21] Production.INFO: ==8637== Releasing lock... [2024-12-26 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:24:05 [end_date_ymd] => 2024-12-26 04:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:24:17] Production.INFO: count ==40 [2024-12-26 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:24:05 - End Time 2024-12-26 04:24:05 [2024-12-26 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104390', 'tblTempUsageDetail_20' ) start [2024-12-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104390', 'tblTempUsageDetail_20' ) end [2024-12-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104390', 'tblTempVendorCDR_20' ) start [2024-12-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104390', 'tblTempVendorCDR_20' ) end [2024-12-26 04:24:17] Production.INFO: ProcessCDR(1,14104390,1,1,2) [2024-12-26 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104390', 'tblTempUsageDetail_20' ) start [2024-12-26 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104390', 'tblTempUsageDetail_20' ) end [2024-12-26 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:24:20] Production.INFO: ==8718== Releasing lock... [2024-12-26 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:25:05 [end_date_ymd] => 2024-12-26 04:25:05 [RateCDR] => 1 ) [2024-12-26 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:25:05' and `end` < '2024-12-26 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:25:17] Production.INFO: count ==40 [2024-12-26 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:25:05 - End Time 2024-12-26 04:25:05 [2024-12-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104395', 'tblTempUsageDetail_20' ) start [2024-12-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104395', 'tblTempUsageDetail_20' ) end [2024-12-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104395', 'tblTempVendorCDR_20' ) start [2024-12-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104395', 'tblTempVendorCDR_20' ) end [2024-12-26 04:25:17] Production.INFO: ProcessCDR(1,14104395,1,1,2) [2024-12-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104395', 'tblTempUsageDetail_20' ) start [2024-12-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104395', 'tblTempUsageDetail_20' ) end [2024-12-26 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:25:21] Production.INFO: ==8794== Releasing lock... [2024-12-26 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:26:04 [end_date_ymd] => 2024-12-26 04:26:04 [RateCDR] => 1 ) [2024-12-26 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:26:04' and `end` < '2024-12-26 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:26:18] Production.INFO: count ==40 [2024-12-26 04:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:26:04 - End Time 2024-12-26 04:26:04 [2024-12-26 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104400', 'tblTempUsageDetail_20' ) start [2024-12-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104400', 'tblTempUsageDetail_20' ) end [2024-12-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104400', 'tblTempVendorCDR_20' ) start [2024-12-26 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104400', 'tblTempVendorCDR_20' ) end [2024-12-26 04:26:18] Production.INFO: ProcessCDR(1,14104400,1,1,2) [2024-12-26 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104400', 'tblTempUsageDetail_20' ) start [2024-12-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104400', 'tblTempUsageDetail_20' ) end [2024-12-26 04:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:26:21] Production.INFO: ==8871== Releasing lock... [2024-12-26 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:27:05 [end_date_ymd] => 2024-12-26 04:27:05 [RateCDR] => 1 ) [2024-12-26 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:27:05' and `end` < '2024-12-26 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:27:17] Production.INFO: count ==40 [2024-12-26 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:27:05 - End Time 2024-12-26 04:27:05 [2024-12-26 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104405', 'tblTempUsageDetail_20' ) start [2024-12-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104405', 'tblTempUsageDetail_20' ) end [2024-12-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104405', 'tblTempVendorCDR_20' ) start [2024-12-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104405', 'tblTempVendorCDR_20' ) end [2024-12-26 04:27:17] Production.INFO: ProcessCDR(1,14104405,1,1,2) [2024-12-26 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104405', 'tblTempUsageDetail_20' ) start [2024-12-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104405', 'tblTempUsageDetail_20' ) end [2024-12-26 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:27:21] Production.INFO: ==8948== Releasing lock... [2024-12-26 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:27:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:28:05 [end_date_ymd] => 2024-12-26 04:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:28:18] Production.INFO: count ==40 [2024-12-26 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:28:05 - End Time 2024-12-26 04:28:05 [2024-12-26 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104410', 'tblTempUsageDetail_20' ) start [2024-12-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104410', 'tblTempUsageDetail_20' ) end [2024-12-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104410', 'tblTempVendorCDR_20' ) start [2024-12-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104410', 'tblTempVendorCDR_20' ) end [2024-12-26 04:28:18] Production.INFO: ProcessCDR(1,14104410,1,1,2) [2024-12-26 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104410', 'tblTempUsageDetail_20' ) start [2024-12-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104410', 'tblTempUsageDetail_20' ) end [2024-12-26 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:28:21] Production.INFO: ==9025== Releasing lock... [2024-12-26 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:29:05 [end_date_ymd] => 2024-12-26 04:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:29:17] Production.INFO: count ==40 [2024-12-26 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:29:05 - End Time 2024-12-26 04:29:05 [2024-12-26 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104415', 'tblTempUsageDetail_20' ) start [2024-12-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104415', 'tblTempUsageDetail_20' ) end [2024-12-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104415', 'tblTempVendorCDR_20' ) start [2024-12-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104415', 'tblTempVendorCDR_20' ) end [2024-12-26 04:29:17] Production.INFO: ProcessCDR(1,14104415,1,1,2) [2024-12-26 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104415', 'tblTempUsageDetail_20' ) start [2024-12-26 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104415', 'tblTempUsageDetail_20' ) end [2024-12-26 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:29:20] Production.INFO: ==9106== Releasing lock... [2024-12-26 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:30:06 [end_date_ymd] => 2024-12-26 04:30:06 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:30:06' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:30:18] Production.INFO: count ==42 [2024-12-26 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:30:06 - End Time 2024-12-26 04:30:06 [2024-12-26 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104422', 'tblTempUsageDetail_20' ) start [2024-12-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104422', 'tblTempUsageDetail_20' ) end [2024-12-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104422', 'tblTempVendorCDR_20' ) start [2024-12-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104422', 'tblTempVendorCDR_20' ) end [2024-12-26 04:30:18] Production.INFO: ProcessCDR(1,14104422,1,1,2) [2024-12-26 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104422', 'tblTempUsageDetail_20' ) start [2024-12-26 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104422', 'tblTempUsageDetail_20' ) end [2024-12-26 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:30:21] Production.INFO: ==9185== Releasing lock... [2024-12-26 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:31:05 [end_date_ymd] => 2024-12-26 04:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:31:18] Production.INFO: count ==43 [2024-12-26 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:31:05 - End Time 2024-12-26 04:31:05 [2024-12-26 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104427', 'tblTempUsageDetail_20' ) start [2024-12-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104427', 'tblTempUsageDetail_20' ) end [2024-12-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104427', 'tblTempVendorCDR_20' ) start [2024-12-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104427', 'tblTempVendorCDR_20' ) end [2024-12-26 04:31:18] Production.INFO: ProcessCDR(1,14104427,1,1,2) [2024-12-26 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104427', 'tblTempUsageDetail_20' ) start [2024-12-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104427', 'tblTempUsageDetail_20' ) end [2024-12-26 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:31:21] Production.INFO: ==9290== Releasing lock... [2024-12-26 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:32:04 [end_date_ymd] => 2024-12-26 04:32:04 [RateCDR] => 1 ) [2024-12-26 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:32:04' and `end` < '2024-12-26 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:32:17] Production.INFO: count ==43 [2024-12-26 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:32:04 - End Time 2024-12-26 04:32:04 [2024-12-26 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104432', 'tblTempUsageDetail_20' ) start [2024-12-26 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104432', 'tblTempUsageDetail_20' ) end [2024-12-26 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104432', 'tblTempVendorCDR_20' ) start [2024-12-26 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104432', 'tblTempVendorCDR_20' ) end [2024-12-26 04:32:17] Production.INFO: ProcessCDR(1,14104432,1,1,2) [2024-12-26 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104432', 'tblTempUsageDetail_20' ) start [2024-12-26 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104432', 'tblTempUsageDetail_20' ) end [2024-12-26 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:32:20] Production.INFO: ==9367== Releasing lock... [2024-12-26 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:33:04 [end_date_ymd] => 2024-12-26 04:33:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:33:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:33:17] Production.INFO: count ==43 [2024-12-26 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:33:04 - End Time 2024-12-26 04:33:04 [2024-12-26 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104437', 'tblTempUsageDetail_20' ) start [2024-12-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104437', 'tblTempUsageDetail_20' ) end [2024-12-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104437', 'tblTempVendorCDR_20' ) start [2024-12-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104437', 'tblTempVendorCDR_20' ) end [2024-12-26 04:33:17] Production.INFO: ProcessCDR(1,14104437,1,1,2) [2024-12-26 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104437', 'tblTempUsageDetail_20' ) start [2024-12-26 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104437', 'tblTempUsageDetail_20' ) end [2024-12-26 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:33:20] Production.INFO: ==9445== Releasing lock... [2024-12-26 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:34:05 [end_date_ymd] => 2024-12-26 04:34:05 [RateCDR] => 1 ) [2024-12-26 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:34:05' and `end` < '2024-12-26 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:34:18] Production.INFO: count ==43 [2024-12-26 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:34:05 - End Time 2024-12-26 04:34:05 [2024-12-26 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104442', 'tblTempUsageDetail_20' ) start [2024-12-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104442', 'tblTempUsageDetail_20' ) end [2024-12-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104442', 'tblTempVendorCDR_20' ) start [2024-12-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104442', 'tblTempVendorCDR_20' ) end [2024-12-26 04:34:18] Production.INFO: ProcessCDR(1,14104442,1,1,2) [2024-12-26 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104442', 'tblTempUsageDetail_20' ) start [2024-12-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104442', 'tblTempUsageDetail_20' ) end [2024-12-26 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:34:21] Production.INFO: ==9524== Releasing lock... [2024-12-26 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:35:05 [end_date_ymd] => 2024-12-26 04:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:35:18] Production.INFO: count ==43 [2024-12-26 04:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:35:05 - End Time 2024-12-26 04:35:05 [2024-12-26 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104447', 'tblTempUsageDetail_20' ) start [2024-12-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104447', 'tblTempUsageDetail_20' ) end [2024-12-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104447', 'tblTempVendorCDR_20' ) start [2024-12-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104447', 'tblTempVendorCDR_20' ) end [2024-12-26 04:35:18] Production.INFO: ProcessCDR(1,14104447,1,1,2) [2024-12-26 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104447', 'tblTempUsageDetail_20' ) start [2024-12-26 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104447', 'tblTempUsageDetail_20' ) end [2024-12-26 04:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:35:21] Production.INFO: ==9600== Releasing lock... [2024-12-26 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:36:05 [end_date_ymd] => 2024-12-26 04:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:36:19] Production.INFO: count ==43 [2024-12-26 04:36:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:36:05 - End Time 2024-12-26 04:36:05 [2024-12-26 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104452', 'tblTempUsageDetail_20' ) start [2024-12-26 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104452', 'tblTempUsageDetail_20' ) end [2024-12-26 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104452', 'tblTempVendorCDR_20' ) start [2024-12-26 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104452', 'tblTempVendorCDR_20' ) end [2024-12-26 04:36:19] Production.INFO: ProcessCDR(1,14104452,1,1,2) [2024-12-26 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104452', 'tblTempUsageDetail_20' ) start [2024-12-26 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104452', 'tblTempUsageDetail_20' ) end [2024-12-26 04:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:36:22] Production.INFO: ==9716== Releasing lock... [2024-12-26 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:36:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:37:05 [end_date_ymd] => 2024-12-26 04:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:37:18] Production.INFO: count ==43 [2024-12-26 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:37:05 - End Time 2024-12-26 04:37:05 [2024-12-26 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104457', 'tblTempUsageDetail_20' ) start [2024-12-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104457', 'tblTempUsageDetail_20' ) end [2024-12-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104457', 'tblTempVendorCDR_20' ) start [2024-12-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104457', 'tblTempVendorCDR_20' ) end [2024-12-26 04:37:18] Production.INFO: ProcessCDR(1,14104457,1,1,2) [2024-12-26 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104457', 'tblTempUsageDetail_20' ) start [2024-12-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104457', 'tblTempUsageDetail_20' ) end [2024-12-26 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:37:21] Production.INFO: ==9792== Releasing lock... [2024-12-26 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:38:05 [end_date_ymd] => 2024-12-26 04:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:38:18] Production.INFO: count ==43 [2024-12-26 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:38:05 - End Time 2024-12-26 04:38:05 [2024-12-26 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104462', 'tblTempUsageDetail_20' ) start [2024-12-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104462', 'tblTempUsageDetail_20' ) end [2024-12-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104462', 'tblTempVendorCDR_20' ) start [2024-12-26 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104462', 'tblTempVendorCDR_20' ) end [2024-12-26 04:38:18] Production.INFO: ProcessCDR(1,14104462,1,1,2) [2024-12-26 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104462', 'tblTempUsageDetail_20' ) start [2024-12-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104462', 'tblTempUsageDetail_20' ) end [2024-12-26 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:38:21] Production.INFO: ==9872== Releasing lock... [2024-12-26 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:39:05 [end_date_ymd] => 2024-12-26 04:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:39:18] Production.INFO: count ==43 [2024-12-26 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:39:05 - End Time 2024-12-26 04:39:05 [2024-12-26 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104467', 'tblTempUsageDetail_20' ) start [2024-12-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104467', 'tblTempUsageDetail_20' ) end [2024-12-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104467', 'tblTempVendorCDR_20' ) start [2024-12-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104467', 'tblTempVendorCDR_20' ) end [2024-12-26 04:39:18] Production.INFO: ProcessCDR(1,14104467,1,1,2) [2024-12-26 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104467', 'tblTempUsageDetail_20' ) start [2024-12-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104467', 'tblTempUsageDetail_20' ) end [2024-12-26 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:39:21] Production.INFO: ==9947== Releasing lock... [2024-12-26 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:40:05 [end_date_ymd] => 2024-12-26 04:40:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:40:05' and `end` < '2024-12-26 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:40:18] Production.INFO: count ==37 [2024-12-26 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:40:05 - End Time 2024-12-26 04:40:05 [2024-12-26 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104473', 'tblTempUsageDetail_20' ) start [2024-12-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104473', 'tblTempUsageDetail_20' ) end [2024-12-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104473', 'tblTempVendorCDR_20' ) start [2024-12-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104473', 'tblTempVendorCDR_20' ) end [2024-12-26 04:40:18] Production.INFO: ProcessCDR(1,14104473,1,1,2) [2024-12-26 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104473', 'tblTempUsageDetail_20' ) start [2024-12-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104473', 'tblTempUsageDetail_20' ) end [2024-12-26 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:40:21] Production.INFO: ==10026== Releasing lock... [2024-12-26 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:41:05 [end_date_ymd] => 2024-12-26 04:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:41:18] Production.INFO: count ==36 [2024-12-26 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:41:05 - End Time 2024-12-26 04:41:05 [2024-12-26 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104478', 'tblTempUsageDetail_20' ) start [2024-12-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104478', 'tblTempUsageDetail_20' ) end [2024-12-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104478', 'tblTempVendorCDR_20' ) start [2024-12-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104478', 'tblTempVendorCDR_20' ) end [2024-12-26 04:41:18] Production.INFO: ProcessCDR(1,14104478,1,1,2) [2024-12-26 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104478', 'tblTempUsageDetail_20' ) start [2024-12-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104478', 'tblTempUsageDetail_20' ) end [2024-12-26 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:41:21] Production.INFO: ==10103== Releasing lock... [2024-12-26 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:42:05 [end_date_ymd] => 2024-12-26 04:42:05 [RateCDR] => 1 ) [2024-12-26 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:42:05' and `end` < '2024-12-26 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:42:17] Production.INFO: count ==36 [2024-12-26 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:42:05 - End Time 2024-12-26 04:42:05 [2024-12-26 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104483', 'tblTempUsageDetail_20' ) start [2024-12-26 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104483', 'tblTempUsageDetail_20' ) end [2024-12-26 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104483', 'tblTempVendorCDR_20' ) start [2024-12-26 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104483', 'tblTempVendorCDR_20' ) end [2024-12-26 04:42:17] Production.INFO: ProcessCDR(1,14104483,1,1,2) [2024-12-26 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104483', 'tblTempUsageDetail_20' ) start [2024-12-26 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104483', 'tblTempUsageDetail_20' ) end [2024-12-26 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:42:20] Production.INFO: ==10182== Releasing lock... [2024-12-26 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:43:05 [end_date_ymd] => 2024-12-26 04:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:43:18] Production.INFO: count ==36 [2024-12-26 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:43:05 - End Time 2024-12-26 04:43:05 [2024-12-26 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104488', 'tblTempUsageDetail_20' ) start [2024-12-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104488', 'tblTempUsageDetail_20' ) end [2024-12-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104488', 'tblTempVendorCDR_20' ) start [2024-12-26 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104488', 'tblTempVendorCDR_20' ) end [2024-12-26 04:43:18] Production.INFO: ProcessCDR(1,14104488,1,1,2) [2024-12-26 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104488', 'tblTempUsageDetail_20' ) start [2024-12-26 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104488', 'tblTempUsageDetail_20' ) end [2024-12-26 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:43:21] Production.INFO: ==10259== Releasing lock... [2024-12-26 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:44:05 [end_date_ymd] => 2024-12-26 04:44:05 [RateCDR] => 1 ) [2024-12-26 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:44:18] Production.INFO: count ==36 [2024-12-26 04:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:44:05 - End Time 2024-12-26 04:44:05 [2024-12-26 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104493', 'tblTempUsageDetail_20' ) start [2024-12-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104493', 'tblTempUsageDetail_20' ) end [2024-12-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104493', 'tblTempVendorCDR_20' ) start [2024-12-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104493', 'tblTempVendorCDR_20' ) end [2024-12-26 04:44:18] Production.INFO: ProcessCDR(1,14104493,1,1,2) [2024-12-26 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104493', 'tblTempUsageDetail_20' ) start [2024-12-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104493', 'tblTempUsageDetail_20' ) end [2024-12-26 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:44:21] Production.INFO: ==10338== Releasing lock... [2024-12-26 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:45:04 [end_date_ymd] => 2024-12-26 04:45:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:45:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:45:17] Production.INFO: count ==36 [2024-12-26 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 01:45:04 - End Time 2024-12-26 04:45:04 [2024-12-26 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104498', 'tblTempUsageDetail_20' ) start [2024-12-26 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104498', 'tblTempUsageDetail_20' ) end [2024-12-26 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104498', 'tblTempVendorCDR_20' ) start [2024-12-26 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104498', 'tblTempVendorCDR_20' ) end [2024-12-26 04:45:17] Production.INFO: ProcessCDR(1,14104498,1,1,2) [2024-12-26 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104498', 'tblTempUsageDetail_20' ) start [2024-12-26 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104498', 'tblTempUsageDetail_20' ) end [2024-12-26 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:45:20] Production.INFO: ==10415== Releasing lock... [2024-12-26 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:46:05 [end_date_ymd] => 2024-12-26 04:46:05 [RateCDR] => 1 ) [2024-12-26 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:46:05' and `end` < '2024-12-26 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:46:40] Production.INFO: count ==36 [2024-12-26 04:46:40] Production.ERROR: pbx CDR StartTime 2024-12-26 01:46:05 - End Time 2024-12-26 04:46:05 [2024-12-26 04:46:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104503', 'tblTempUsageDetail_20' ) start [2024-12-26 04:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104503', 'tblTempUsageDetail_20' ) end [2024-12-26 04:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104503', 'tblTempVendorCDR_20' ) start [2024-12-26 04:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104503', 'tblTempVendorCDR_20' ) end [2024-12-26 04:46:40] Production.INFO: ProcessCDR(1,14104503,1,1,2) [2024-12-26 04:46:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:46:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:46:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:46:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104503', 'tblTempUsageDetail_20' ) start [2024-12-26 04:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104503', 'tblTempUsageDetail_20' ) end [2024-12-26 04:46:43] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:46:43] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:46:43] Production.INFO: ==10495== Releasing lock... [2024-12-26 04:46:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:46:43] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:47:04 [end_date_ymd] => 2024-12-26 04:47:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:47:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:47:19] Production.INFO: count ==36 [2024-12-26 04:47:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:47:04 - End Time 2024-12-26 04:47:04 [2024-12-26 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104508', 'tblTempUsageDetail_20' ) start [2024-12-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104508', 'tblTempUsageDetail_20' ) end [2024-12-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104508', 'tblTempVendorCDR_20' ) start [2024-12-26 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104508', 'tblTempVendorCDR_20' ) end [2024-12-26 04:47:19] Production.INFO: ProcessCDR(1,14104508,1,1,2) [2024-12-26 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104508', 'tblTempUsageDetail_20' ) start [2024-12-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104508', 'tblTempUsageDetail_20' ) end [2024-12-26 04:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:47:22] Production.INFO: ==10571== Releasing lock... [2024-12-26 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:47:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:48:05 [end_date_ymd] => 2024-12-26 04:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:48:19] Production.INFO: count ==36 [2024-12-26 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:48:05 - End Time 2024-12-26 04:48:05 [2024-12-26 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104513', 'tblTempUsageDetail_20' ) start [2024-12-26 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104513', 'tblTempUsageDetail_20' ) end [2024-12-26 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104513', 'tblTempVendorCDR_20' ) start [2024-12-26 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104513', 'tblTempVendorCDR_20' ) end [2024-12-26 04:48:19] Production.INFO: ProcessCDR(1,14104513,1,1,2) [2024-12-26 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104513', 'tblTempUsageDetail_20' ) start [2024-12-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104513', 'tblTempUsageDetail_20' ) end [2024-12-26 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:48:22] Production.INFO: ==10650== Releasing lock... [2024-12-26 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:48:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:49:05 [end_date_ymd] => 2024-12-26 04:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:49:20] Production.INFO: count ==36 [2024-12-26 04:49:20] Production.ERROR: pbx CDR StartTime 2024-12-26 01:49:05 - End Time 2024-12-26 04:49:05 [2024-12-26 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104518', 'tblTempUsageDetail_20' ) start [2024-12-26 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104518', 'tblTempUsageDetail_20' ) end [2024-12-26 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104518', 'tblTempVendorCDR_20' ) start [2024-12-26 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104518', 'tblTempVendorCDR_20' ) end [2024-12-26 04:49:20] Production.INFO: ProcessCDR(1,14104518,1,1,2) [2024-12-26 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104518', 'tblTempUsageDetail_20' ) start [2024-12-26 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104518', 'tblTempUsageDetail_20' ) end [2024-12-26 04:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:49:23] Production.INFO: ==10731== Releasing lock... [2024-12-26 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:49:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:50:05 [end_date_ymd] => 2024-12-26 04:50:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:50:05' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:50:19] Production.INFO: count ==36 [2024-12-26 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:50:05 - End Time 2024-12-26 04:50:05 [2024-12-26 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104523', 'tblTempUsageDetail_20' ) start [2024-12-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104523', 'tblTempUsageDetail_20' ) end [2024-12-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104523', 'tblTempVendorCDR_20' ) start [2024-12-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104523', 'tblTempVendorCDR_20' ) end [2024-12-26 04:50:19] Production.INFO: ProcessCDR(1,14104523,1,1,2) [2024-12-26 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104523', 'tblTempUsageDetail_20' ) start [2024-12-26 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104523', 'tblTempUsageDetail_20' ) end [2024-12-26 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:50:22] Production.INFO: ==10810== Releasing lock... [2024-12-26 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:50:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:51:05 [end_date_ymd] => 2024-12-26 04:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:51:19] Production.INFO: count ==36 [2024-12-26 04:51:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:51:05 - End Time 2024-12-26 04:51:05 [2024-12-26 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104529', 'tblTempUsageDetail_20' ) start [2024-12-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104529', 'tblTempUsageDetail_20' ) end [2024-12-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104529', 'tblTempVendorCDR_20' ) start [2024-12-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104529', 'tblTempVendorCDR_20' ) end [2024-12-26 04:51:19] Production.INFO: ProcessCDR(1,14104529,1,1,2) [2024-12-26 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104529', 'tblTempUsageDetail_20' ) start [2024-12-26 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104529', 'tblTempUsageDetail_20' ) end [2024-12-26 04:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:51:22] Production.INFO: ==10886== Releasing lock... [2024-12-26 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:51:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:52:04 [end_date_ymd] => 2024-12-26 04:52:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:52:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:52:19] Production.INFO: count ==36 [2024-12-26 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:52:04 - End Time 2024-12-26 04:52:04 [2024-12-26 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104534', 'tblTempUsageDetail_20' ) start [2024-12-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104534', 'tblTempUsageDetail_20' ) end [2024-12-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104534', 'tblTempVendorCDR_20' ) start [2024-12-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104534', 'tblTempVendorCDR_20' ) end [2024-12-26 04:52:19] Production.INFO: ProcessCDR(1,14104534,1,1,2) [2024-12-26 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104534', 'tblTempUsageDetail_20' ) start [2024-12-26 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104534', 'tblTempUsageDetail_20' ) end [2024-12-26 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:52:22] Production.INFO: ==11001== Releasing lock... [2024-12-26 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:52:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:53:05 [end_date_ymd] => 2024-12-26 04:53:05 [RateCDR] => 1 ) [2024-12-26 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:53:05' and `end` < '2024-12-26 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:53:20] Production.INFO: count ==36 [2024-12-26 04:53:20] Production.ERROR: pbx CDR StartTime 2024-12-26 01:53:05 - End Time 2024-12-26 04:53:05 [2024-12-26 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104539', 'tblTempUsageDetail_20' ) start [2024-12-26 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104539', 'tblTempUsageDetail_20' ) end [2024-12-26 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104539', 'tblTempVendorCDR_20' ) start [2024-12-26 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104539', 'tblTempVendorCDR_20' ) end [2024-12-26 04:53:20] Production.INFO: ProcessCDR(1,14104539,1,1,2) [2024-12-26 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104539', 'tblTempUsageDetail_20' ) start [2024-12-26 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104539', 'tblTempUsageDetail_20' ) end [2024-12-26 04:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:53:23] Production.INFO: ==11079== Releasing lock... [2024-12-26 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:53:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:54:04 [end_date_ymd] => 2024-12-26 04:54:04 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:54:04' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:54:18] Production.INFO: count ==36 [2024-12-26 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 01:54:04 - End Time 2024-12-26 04:54:04 [2024-12-26 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104544', 'tblTempUsageDetail_20' ) start [2024-12-26 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104544', 'tblTempUsageDetail_20' ) end [2024-12-26 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104544', 'tblTempVendorCDR_20' ) start [2024-12-26 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104544', 'tblTempVendorCDR_20' ) end [2024-12-26 04:54:18] Production.INFO: ProcessCDR(1,14104544,1,1,2) [2024-12-26 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104544', 'tblTempUsageDetail_20' ) start [2024-12-26 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104544', 'tblTempUsageDetail_20' ) end [2024-12-26 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:54:21] Production.INFO: ==11155== Releasing lock... [2024-12-26 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:55:05 [end_date_ymd] => 2024-12-26 04:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:55:20] Production.INFO: count ==36 [2024-12-26 04:55:20] Production.ERROR: pbx CDR StartTime 2024-12-26 01:55:05 - End Time 2024-12-26 04:55:05 [2024-12-26 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104549', 'tblTempUsageDetail_20' ) start [2024-12-26 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104549', 'tblTempUsageDetail_20' ) end [2024-12-26 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104549', 'tblTempVendorCDR_20' ) start [2024-12-26 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104549', 'tblTempVendorCDR_20' ) end [2024-12-26 04:55:20] Production.INFO: ProcessCDR(1,14104549,1,1,2) [2024-12-26 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104549', 'tblTempUsageDetail_20' ) start [2024-12-26 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104549', 'tblTempUsageDetail_20' ) end [2024-12-26 04:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:55:23] Production.INFO: ==11236== Releasing lock... [2024-12-26 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:55:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:56:05 [end_date_ymd] => 2024-12-26 04:56:05 [RateCDR] => 1 ) [2024-12-26 04: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` >= '2024-12-26 01:56:05' and `end` < '2024-12-26 04: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 ,'') [2024-12-26 04:56:20] Production.INFO: count ==36 [2024-12-26 04:56:20] Production.ERROR: pbx CDR StartTime 2024-12-26 01:56:05 - End Time 2024-12-26 04:56:05 [2024-12-26 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104554', 'tblTempUsageDetail_20' ) start [2024-12-26 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104554', 'tblTempUsageDetail_20' ) end [2024-12-26 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104554', 'tblTempVendorCDR_20' ) start [2024-12-26 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104554', 'tblTempVendorCDR_20' ) end [2024-12-26 04:56:20] Production.INFO: ProcessCDR(1,14104554,1,1,2) [2024-12-26 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104554', 'tblTempUsageDetail_20' ) start [2024-12-26 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104554', 'tblTempUsageDetail_20' ) end [2024-12-26 04:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:56:23] Production.INFO: ==11316== Releasing lock... [2024-12-26 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:56:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:57:05 [end_date_ymd] => 2024-12-26 04:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:57:19] Production.INFO: count ==36 [2024-12-26 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:57:05 - End Time 2024-12-26 04:57:05 [2024-12-26 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104559', 'tblTempUsageDetail_20' ) start [2024-12-26 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104559', 'tblTempUsageDetail_20' ) end [2024-12-26 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104559', 'tblTempVendorCDR_20' ) start [2024-12-26 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104559', 'tblTempVendorCDR_20' ) end [2024-12-26 04:57:19] Production.INFO: ProcessCDR(1,14104559,1,1,2) [2024-12-26 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104559', 'tblTempUsageDetail_20' ) start [2024-12-26 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104559', 'tblTempUsageDetail_20' ) end [2024-12-26 04:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:57:22] Production.INFO: ==11392== Releasing lock... [2024-12-26 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:57:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:58:05 [end_date_ymd] => 2024-12-26 04:58:05 [RateCDR] => 1 ) [2024-12-26 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 01:58:05' and `end` < '2024-12-26 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 04:58:20] Production.INFO: count ==36 [2024-12-26 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-26 01:58:05 - End Time 2024-12-26 04:58:05 [2024-12-26 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104564', 'tblTempUsageDetail_20' ) start [2024-12-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104564', 'tblTempUsageDetail_20' ) end [2024-12-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104564', 'tblTempVendorCDR_20' ) start [2024-12-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104564', 'tblTempVendorCDR_20' ) end [2024-12-26 04:58:20] Production.INFO: ProcessCDR(1,14104564,1,1,2) [2024-12-26 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104564', 'tblTempUsageDetail_20' ) start [2024-12-26 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104564', 'tblTempUsageDetail_20' ) end [2024-12-26 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:58:23] Production.INFO: ==11475== Releasing lock... [2024-12-26 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:58:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 01:59:05 [end_date_ymd] => 2024-12-26 04:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 01:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 04:59:19] Production.INFO: count ==36 [2024-12-26 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 01:59:05 - End Time 2024-12-26 04:59:05 [2024-12-26 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104569', 'tblTempUsageDetail_20' ) start [2024-12-26 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104569', 'tblTempUsageDetail_20' ) end [2024-12-26 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104569', 'tblTempVendorCDR_20' ) start [2024-12-26 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104569', 'tblTempVendorCDR_20' ) end [2024-12-26 04:59:19] Production.INFO: ProcessCDR(1,14104569,1,1,2) [2024-12-26 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104569', 'tblTempUsageDetail_20' ) start [2024-12-26 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104569', 'tblTempUsageDetail_20' ) end [2024-12-26 04:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 04:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 04:59:22] Production.INFO: ==11556== Releasing lock... [2024-12-26 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 04:59:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:00:06 [end_date_ymd] => 2024-12-26 05:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:00:20] Production.INFO: count ==30 [2024-12-26 05:00:20] Production.ERROR: pbx CDR StartTime 2024-12-26 02:00:06 - End Time 2024-12-26 05:00:06 [2024-12-26 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104575', 'tblTempUsageDetail_20' ) start [2024-12-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104575', 'tblTempUsageDetail_20' ) end [2024-12-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104575', 'tblTempVendorCDR_20' ) start [2024-12-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104575', 'tblTempVendorCDR_20' ) end [2024-12-26 05:00:20] Production.INFO: ProcessCDR(1,14104575,1,1,2) [2024-12-26 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104575', 'tblTempUsageDetail_20' ) start [2024-12-26 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104575', 'tblTempUsageDetail_20' ) end [2024-12-26 05:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:00:23] Production.INFO: ==11642== Releasing lock... [2024-12-26 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:00:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:01:05 [end_date_ymd] => 2024-12-26 05:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:01:19] Production.INFO: count ==30 [2024-12-26 05:01:19] Production.ERROR: pbx CDR StartTime 2024-12-26 02:01:05 - End Time 2024-12-26 05:01:05 [2024-12-26 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104580', 'tblTempUsageDetail_20' ) start [2024-12-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104580', 'tblTempUsageDetail_20' ) end [2024-12-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104580', 'tblTempVendorCDR_20' ) start [2024-12-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104580', 'tblTempVendorCDR_20' ) end [2024-12-26 05:01:19] Production.INFO: ProcessCDR(1,14104580,1,1,2) [2024-12-26 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104580', 'tblTempUsageDetail_20' ) start [2024-12-26 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104580', 'tblTempUsageDetail_20' ) end [2024-12-26 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:01:22] Production.INFO: ==11737== Releasing lock... [2024-12-26 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:01:22] Production.INFO: 28 MB #Memory Used# [2024-12-26 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:02:05 [end_date_ymd] => 2024-12-26 05:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:02:18] Production.INFO: count ==30 [2024-12-26 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:02:05 - End Time 2024-12-26 05:02:05 [2024-12-26 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104585', 'tblTempUsageDetail_20' ) start [2024-12-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104585', 'tblTempUsageDetail_20' ) end [2024-12-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104585', 'tblTempVendorCDR_20' ) start [2024-12-26 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104585', 'tblTempVendorCDR_20' ) end [2024-12-26 05:02:18] Production.INFO: ProcessCDR(1,14104585,1,1,2) [2024-12-26 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104585', 'tblTempUsageDetail_20' ) start [2024-12-26 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104585', 'tblTempUsageDetail_20' ) end [2024-12-26 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:02:21] Production.INFO: ==11813== Releasing lock... [2024-12-26 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:03:05 [end_date_ymd] => 2024-12-26 05:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:03:18] Production.INFO: count ==30 [2024-12-26 05:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:03:05 - End Time 2024-12-26 05:03:05 [2024-12-26 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104590', 'tblTempUsageDetail_20' ) start [2024-12-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104590', 'tblTempUsageDetail_20' ) end [2024-12-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104590', 'tblTempVendorCDR_20' ) start [2024-12-26 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104590', 'tblTempVendorCDR_20' ) end [2024-12-26 05:03:18] Production.INFO: ProcessCDR(1,14104590,1,1,2) [2024-12-26 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104590', 'tblTempUsageDetail_20' ) start [2024-12-26 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104590', 'tblTempUsageDetail_20' ) end [2024-12-26 05:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:03:21] Production.INFO: ==11895== Releasing lock... [2024-12-26 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:04:04 [end_date_ymd] => 2024-12-26 05:04:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:04:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:04:17] Production.INFO: count ==30 [2024-12-26 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:04:04 - End Time 2024-12-26 05:04:04 [2024-12-26 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104595', 'tblTempUsageDetail_20' ) start [2024-12-26 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104595', 'tblTempUsageDetail_20' ) end [2024-12-26 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104595', 'tblTempVendorCDR_20' ) start [2024-12-26 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104595', 'tblTempVendorCDR_20' ) end [2024-12-26 05:04:17] Production.INFO: ProcessCDR(1,14104595,1,1,2) [2024-12-26 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104595', 'tblTempUsageDetail_20' ) start [2024-12-26 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104595', 'tblTempUsageDetail_20' ) end [2024-12-26 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:04:20] Production.INFO: ==11973== Releasing lock... [2024-12-26 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:05:05 [end_date_ymd] => 2024-12-26 05:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:05:18] Production.INFO: count ==30 [2024-12-26 05:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:05:05 - End Time 2024-12-26 05:05:05 [2024-12-26 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104600', 'tblTempUsageDetail_20' ) start [2024-12-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104600', 'tblTempUsageDetail_20' ) end [2024-12-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104600', 'tblTempVendorCDR_20' ) start [2024-12-26 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104600', 'tblTempVendorCDR_20' ) end [2024-12-26 05:05:18] Production.INFO: ProcessCDR(1,14104600,1,1,2) [2024-12-26 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104600', 'tblTempUsageDetail_20' ) start [2024-12-26 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104600', 'tblTempUsageDetail_20' ) end [2024-12-26 05:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:05:21] Production.INFO: ==12056== Releasing lock... [2024-12-26 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:06:04 [end_date_ymd] => 2024-12-26 05:06:04 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:06:04' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:06:18] Production.INFO: count ==30 [2024-12-26 05:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:06:04 - End Time 2024-12-26 05:06:04 [2024-12-26 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104605', 'tblTempUsageDetail_20' ) start [2024-12-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104605', 'tblTempUsageDetail_20' ) end [2024-12-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104605', 'tblTempVendorCDR_20' ) start [2024-12-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104605', 'tblTempVendorCDR_20' ) end [2024-12-26 05:06:18] Production.INFO: ProcessCDR(1,14104605,1,1,2) [2024-12-26 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104605', 'tblTempUsageDetail_20' ) start [2024-12-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104605', 'tblTempUsageDetail_20' ) end [2024-12-26 05:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:06:21] Production.INFO: ==12134== Releasing lock... [2024-12-26 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:07:05 [end_date_ymd] => 2024-12-26 05:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:07:18] Production.INFO: count ==30 [2024-12-26 05:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:07:05 - End Time 2024-12-26 05:07:05 [2024-12-26 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104610', 'tblTempUsageDetail_20' ) start [2024-12-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104610', 'tblTempUsageDetail_20' ) end [2024-12-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104610', 'tblTempVendorCDR_20' ) start [2024-12-26 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104610', 'tblTempVendorCDR_20' ) end [2024-12-26 05:07:18] Production.INFO: ProcessCDR(1,14104610,1,1,2) [2024-12-26 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104610', 'tblTempUsageDetail_20' ) start [2024-12-26 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104610', 'tblTempUsageDetail_20' ) end [2024-12-26 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:07:21] Production.INFO: ==12215== Releasing lock... [2024-12-26 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:08:05 [end_date_ymd] => 2024-12-26 05:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:08:18] Production.INFO: count ==30 [2024-12-26 05:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:08:05 - End Time 2024-12-26 05:08:05 [2024-12-26 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104615', 'tblTempUsageDetail_20' ) start [2024-12-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104615', 'tblTempUsageDetail_20' ) end [2024-12-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104615', 'tblTempVendorCDR_20' ) start [2024-12-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104615', 'tblTempVendorCDR_20' ) end [2024-12-26 05:08:18] Production.INFO: ProcessCDR(1,14104615,1,1,2) [2024-12-26 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104615', 'tblTempUsageDetail_20' ) start [2024-12-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104615', 'tblTempUsageDetail_20' ) end [2024-12-26 05:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:08:21] Production.INFO: ==12333== Releasing lock... [2024-12-26 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:09:05 [end_date_ymd] => 2024-12-26 05:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:09:17] Production.INFO: count ==30 [2024-12-26 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:09:05 - End Time 2024-12-26 05:09:05 [2024-12-26 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104620', 'tblTempUsageDetail_20' ) start [2024-12-26 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104620', 'tblTempUsageDetail_20' ) end [2024-12-26 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104620', 'tblTempVendorCDR_20' ) start [2024-12-26 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104620', 'tblTempVendorCDR_20' ) end [2024-12-26 05:09:17] Production.INFO: ProcessCDR(1,14104620,1,1,2) [2024-12-26 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104620', 'tblTempUsageDetail_20' ) start [2024-12-26 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104620', 'tblTempUsageDetail_20' ) end [2024-12-26 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:09:20] Production.INFO: ==12410== Releasing lock... [2024-12-26 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:10:06 [end_date_ymd] => 2024-12-26 05:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:10:18] Production.INFO: count ==28 [2024-12-26 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:10:06 - End Time 2024-12-26 05:10:06 [2024-12-26 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104626', 'tblTempUsageDetail_20' ) start [2024-12-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104626', 'tblTempUsageDetail_20' ) end [2024-12-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104626', 'tblTempVendorCDR_20' ) start [2024-12-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104626', 'tblTempVendorCDR_20' ) end [2024-12-26 05:10:18] Production.INFO: ProcessCDR(1,14104626,1,1,2) [2024-12-26 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104626', 'tblTempUsageDetail_20' ) start [2024-12-26 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104626', 'tblTempUsageDetail_20' ) end [2024-12-26 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:10:21] Production.INFO: ==12494== Releasing lock... [2024-12-26 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:11:04 [end_date_ymd] => 2024-12-26 05:11:04 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:11:04' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:11:17] Production.INFO: count ==28 [2024-12-26 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:11:04 - End Time 2024-12-26 05:11:04 [2024-12-26 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104631', 'tblTempUsageDetail_20' ) start [2024-12-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104631', 'tblTempUsageDetail_20' ) end [2024-12-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104631', 'tblTempVendorCDR_20' ) start [2024-12-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104631', 'tblTempVendorCDR_20' ) end [2024-12-26 05:11:17] Production.INFO: ProcessCDR(1,14104631,1,1,2) [2024-12-26 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104631', 'tblTempUsageDetail_20' ) start [2024-12-26 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104631', 'tblTempUsageDetail_20' ) end [2024-12-26 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:11:20] Production.INFO: ==12577== Releasing lock... [2024-12-26 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:11:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:12:05 [end_date_ymd] => 2024-12-26 05:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:12:17] Production.INFO: count ==28 [2024-12-26 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:12:05 - End Time 2024-12-26 05:12:05 [2024-12-26 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104636', 'tblTempUsageDetail_20' ) start [2024-12-26 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104636', 'tblTempUsageDetail_20' ) end [2024-12-26 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104636', 'tblTempVendorCDR_20' ) start [2024-12-26 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104636', 'tblTempVendorCDR_20' ) end [2024-12-26 05:12:17] Production.INFO: ProcessCDR(1,14104636,1,1,2) [2024-12-26 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104636', 'tblTempUsageDetail_20' ) start [2024-12-26 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104636', 'tblTempUsageDetail_20' ) end [2024-12-26 05:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:12:20] Production.INFO: ==12659== Releasing lock... [2024-12-26 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:12:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:13:05 [end_date_ymd] => 2024-12-26 05:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:13:18] Production.INFO: count ==28 [2024-12-26 05:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:13:05 - End Time 2024-12-26 05:13:05 [2024-12-26 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104641', 'tblTempUsageDetail_20' ) start [2024-12-26 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104641', 'tblTempUsageDetail_20' ) end [2024-12-26 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104641', 'tblTempVendorCDR_20' ) start [2024-12-26 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104641', 'tblTempVendorCDR_20' ) end [2024-12-26 05:13:18] Production.INFO: ProcessCDR(1,14104641,1,1,2) [2024-12-26 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104641', 'tblTempUsageDetail_20' ) start [2024-12-26 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104641', 'tblTempUsageDetail_20' ) end [2024-12-26 05:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:13:21] Production.INFO: ==12740== Releasing lock... [2024-12-26 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:14:05 [end_date_ymd] => 2024-12-26 05:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:14:18] Production.INFO: count ==28 [2024-12-26 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:14:05 - End Time 2024-12-26 05:14:05 [2024-12-26 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104646', 'tblTempUsageDetail_20' ) start [2024-12-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104646', 'tblTempUsageDetail_20' ) end [2024-12-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104646', 'tblTempVendorCDR_20' ) start [2024-12-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104646', 'tblTempVendorCDR_20' ) end [2024-12-26 05:14:18] Production.INFO: ProcessCDR(1,14104646,1,1,2) [2024-12-26 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104646', 'tblTempUsageDetail_20' ) start [2024-12-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104646', 'tblTempUsageDetail_20' ) end [2024-12-26 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:14:21] Production.INFO: ==12821== Releasing lock... [2024-12-26 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:15:05 [end_date_ymd] => 2024-12-26 05:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:15:17] Production.INFO: count ==28 [2024-12-26 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:15:05 - End Time 2024-12-26 05:15:05 [2024-12-26 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104651', 'tblTempUsageDetail_20' ) start [2024-12-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104651', 'tblTempUsageDetail_20' ) end [2024-12-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104651', 'tblTempVendorCDR_20' ) start [2024-12-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104651', 'tblTempVendorCDR_20' ) end [2024-12-26 05:15:17] Production.INFO: ProcessCDR(1,14104651,1,1,2) [2024-12-26 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104651', 'tblTempUsageDetail_20' ) start [2024-12-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104651', 'tblTempUsageDetail_20' ) end [2024-12-26 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:15:20] Production.INFO: ==12901== Releasing lock... [2024-12-26 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:16:05 [end_date_ymd] => 2024-12-26 05:16:05 [RateCDR] => 1 ) [2024-12-26 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:16:05' and `end` < '2024-12-26 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:16:18] Production.INFO: count ==28 [2024-12-26 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:16:05 - End Time 2024-12-26 05:16:05 [2024-12-26 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104656', 'tblTempUsageDetail_20' ) start [2024-12-26 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104656', 'tblTempUsageDetail_20' ) end [2024-12-26 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104656', 'tblTempVendorCDR_20' ) start [2024-12-26 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104656', 'tblTempVendorCDR_20' ) end [2024-12-26 05:16:18] Production.INFO: ProcessCDR(1,14104656,1,1,2) [2024-12-26 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104656', 'tblTempUsageDetail_20' ) start [2024-12-26 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104656', 'tblTempUsageDetail_20' ) end [2024-12-26 05:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:16:21] Production.INFO: ==12985== Releasing lock... [2024-12-26 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:17:05 [end_date_ymd] => 2024-12-26 05:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:17:17] Production.INFO: count ==28 [2024-12-26 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:17:05 - End Time 2024-12-26 05:17:05 [2024-12-26 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104661', 'tblTempUsageDetail_20' ) start [2024-12-26 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104661', 'tblTempUsageDetail_20' ) end [2024-12-26 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104661', 'tblTempVendorCDR_20' ) start [2024-12-26 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104661', 'tblTempVendorCDR_20' ) end [2024-12-26 05:17:17] Production.INFO: ProcessCDR(1,14104661,1,1,2) [2024-12-26 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104661', 'tblTempUsageDetail_20' ) start [2024-12-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104661', 'tblTempUsageDetail_20' ) end [2024-12-26 05:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:17:21] Production.INFO: ==13064== Releasing lock... [2024-12-26 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:18:05 [end_date_ymd] => 2024-12-26 05:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:18:17] Production.INFO: count ==28 [2024-12-26 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:18:05 - End Time 2024-12-26 05:18:05 [2024-12-26 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104666', 'tblTempUsageDetail_20' ) start [2024-12-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104666', 'tblTempUsageDetail_20' ) end [2024-12-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104666', 'tblTempVendorCDR_20' ) start [2024-12-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104666', 'tblTempVendorCDR_20' ) end [2024-12-26 05:18:17] Production.INFO: ProcessCDR(1,14104666,1,1,2) [2024-12-26 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104666', 'tblTempUsageDetail_20' ) start [2024-12-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104666', 'tblTempUsageDetail_20' ) end [2024-12-26 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:18:20] Production.INFO: ==13147== Releasing lock... [2024-12-26 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:19:05 [end_date_ymd] => 2024-12-26 05:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:19:17] Production.INFO: count ==28 [2024-12-26 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:19:05 - End Time 2024-12-26 05:19:05 [2024-12-26 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104671', 'tblTempUsageDetail_20' ) start [2024-12-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104671', 'tblTempUsageDetail_20' ) end [2024-12-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104671', 'tblTempVendorCDR_20' ) start [2024-12-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104671', 'tblTempVendorCDR_20' ) end [2024-12-26 05:19:17] Production.INFO: ProcessCDR(1,14104671,1,1,2) [2024-12-26 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104671', 'tblTempUsageDetail_20' ) start [2024-12-26 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104671', 'tblTempUsageDetail_20' ) end [2024-12-26 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:19:20] Production.INFO: ==13224== Releasing lock... [2024-12-26 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:20:05 [end_date_ymd] => 2024-12-26 05:20:05 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:20:05' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:20:17] Production.INFO: count ==28 [2024-12-26 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:20:05 - End Time 2024-12-26 05:20:05 [2024-12-26 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104676', 'tblTempUsageDetail_20' ) start [2024-12-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104676', 'tblTempUsageDetail_20' ) end [2024-12-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104676', 'tblTempVendorCDR_20' ) start [2024-12-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104676', 'tblTempVendorCDR_20' ) end [2024-12-26 05:20:18] Production.INFO: ProcessCDR(1,14104676,1,1,2) [2024-12-26 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104676', 'tblTempUsageDetail_20' ) start [2024-12-26 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104676', 'tblTempUsageDetail_20' ) end [2024-12-26 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:20:21] Production.INFO: ==13310== Releasing lock... [2024-12-26 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:21:05 [end_date_ymd] => 2024-12-26 05:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:21:17] Production.INFO: count ==28 [2024-12-26 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:21:05 - End Time 2024-12-26 05:21:05 [2024-12-26 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104682', 'tblTempUsageDetail_20' ) start [2024-12-26 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104682', 'tblTempUsageDetail_20' ) end [2024-12-26 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104682', 'tblTempVendorCDR_20' ) start [2024-12-26 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104682', 'tblTempVendorCDR_20' ) end [2024-12-26 05:21:17] Production.INFO: ProcessCDR(1,14104682,1,1,2) [2024-12-26 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104682', 'tblTempUsageDetail_20' ) start [2024-12-26 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104682', 'tblTempUsageDetail_20' ) end [2024-12-26 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:21:20] Production.INFO: ==13392== Releasing lock... [2024-12-26 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:22:05 [end_date_ymd] => 2024-12-26 05:22:05 [RateCDR] => 1 ) [2024-12-26 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:22:05' and `end` < '2024-12-26 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:22:17] Production.INFO: count ==28 [2024-12-26 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:22:05 - End Time 2024-12-26 05:22:05 [2024-12-26 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104687', 'tblTempUsageDetail_20' ) start [2024-12-26 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104687', 'tblTempUsageDetail_20' ) end [2024-12-26 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104687', 'tblTempVendorCDR_20' ) start [2024-12-26 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104687', 'tblTempVendorCDR_20' ) end [2024-12-26 05:22:17] Production.INFO: ProcessCDR(1,14104687,1,1,2) [2024-12-26 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104687', 'tblTempUsageDetail_20' ) start [2024-12-26 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104687', 'tblTempUsageDetail_20' ) end [2024-12-26 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:22:20] Production.INFO: ==13473== Releasing lock... [2024-12-26 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:23:05 [end_date_ymd] => 2024-12-26 05:23:05 [RateCDR] => 1 ) [2024-12-26 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:23:05' and `end` < '2024-12-26 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:23:18] Production.INFO: count ==28 [2024-12-26 05:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:23:05 - End Time 2024-12-26 05:23:05 [2024-12-26 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104692', 'tblTempUsageDetail_20' ) start [2024-12-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104692', 'tblTempUsageDetail_20' ) end [2024-12-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104692', 'tblTempVendorCDR_20' ) start [2024-12-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104692', 'tblTempVendorCDR_20' ) end [2024-12-26 05:23:18] Production.INFO: ProcessCDR(1,14104692,1,1,2) [2024-12-26 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104692', 'tblTempUsageDetail_20' ) start [2024-12-26 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104692', 'tblTempUsageDetail_20' ) end [2024-12-26 05:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:23:21] Production.INFO: ==13592== Releasing lock... [2024-12-26 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:24:05 [end_date_ymd] => 2024-12-26 05:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:24:17] Production.INFO: count ==28 [2024-12-26 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:24:05 - End Time 2024-12-26 05:24:05 [2024-12-26 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104697', 'tblTempUsageDetail_20' ) start [2024-12-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104697', 'tblTempUsageDetail_20' ) end [2024-12-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104697', 'tblTempVendorCDR_20' ) start [2024-12-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104697', 'tblTempVendorCDR_20' ) end [2024-12-26 05:24:17] Production.INFO: ProcessCDR(1,14104697,1,1,2) [2024-12-26 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104697', 'tblTempUsageDetail_20' ) start [2024-12-26 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104697', 'tblTempUsageDetail_20' ) end [2024-12-26 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:24:20] Production.INFO: ==13670== Releasing lock... [2024-12-26 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:25:05 [end_date_ymd] => 2024-12-26 05:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:25:17] Production.INFO: count ==28 [2024-12-26 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:25:05 - End Time 2024-12-26 05:25:05 [2024-12-26 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104702', 'tblTempUsageDetail_20' ) start [2024-12-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104702', 'tblTempUsageDetail_20' ) end [2024-12-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104702', 'tblTempVendorCDR_20' ) start [2024-12-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104702', 'tblTempVendorCDR_20' ) end [2024-12-26 05:25:17] Production.INFO: ProcessCDR(1,14104702,1,1,2) [2024-12-26 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104702', 'tblTempUsageDetail_20' ) start [2024-12-26 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104702', 'tblTempUsageDetail_20' ) end [2024-12-26 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:25:20] Production.INFO: ==13749== Releasing lock... [2024-12-26 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:26:04 [end_date_ymd] => 2024-12-26 05:26:04 [RateCDR] => 1 ) [2024-12-26 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:26:04' and `end` < '2024-12-26 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:26:18] Production.INFO: count ==28 [2024-12-26 05:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:26:04 - End Time 2024-12-26 05:26:04 [2024-12-26 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104707', 'tblTempUsageDetail_20' ) start [2024-12-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104707', 'tblTempUsageDetail_20' ) end [2024-12-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104707', 'tblTempVendorCDR_20' ) start [2024-12-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104707', 'tblTempVendorCDR_20' ) end [2024-12-26 05:26:18] Production.INFO: ProcessCDR(1,14104707,1,1,2) [2024-12-26 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104707', 'tblTempUsageDetail_20' ) start [2024-12-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104707', 'tblTempUsageDetail_20' ) end [2024-12-26 05:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:26:21] Production.INFO: ==13827== Releasing lock... [2024-12-26 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:27:05 [end_date_ymd] => 2024-12-26 05:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:27:17] Production.INFO: count ==28 [2024-12-26 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:27:05 - End Time 2024-12-26 05:27:05 [2024-12-26 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104712', 'tblTempUsageDetail_20' ) start [2024-12-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104712', 'tblTempUsageDetail_20' ) end [2024-12-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104712', 'tblTempVendorCDR_20' ) start [2024-12-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104712', 'tblTempVendorCDR_20' ) end [2024-12-26 05:27:17] Production.INFO: ProcessCDR(1,14104712,1,1,2) [2024-12-26 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104712', 'tblTempUsageDetail_20' ) start [2024-12-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104712', 'tblTempUsageDetail_20' ) end [2024-12-26 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:27:20] Production.INFO: ==13908== Releasing lock... [2024-12-26 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:28:05 [end_date_ymd] => 2024-12-26 05:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:28:18] Production.INFO: count ==28 [2024-12-26 05:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:28:05 - End Time 2024-12-26 05:28:05 [2024-12-26 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104717', 'tblTempUsageDetail_20' ) start [2024-12-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104717', 'tblTempUsageDetail_20' ) end [2024-12-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104717', 'tblTempVendorCDR_20' ) start [2024-12-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104717', 'tblTempVendorCDR_20' ) end [2024-12-26 05:28:18] Production.INFO: ProcessCDR(1,14104717,1,1,2) [2024-12-26 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104717', 'tblTempUsageDetail_20' ) start [2024-12-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104717', 'tblTempUsageDetail_20' ) end [2024-12-26 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:28:21] Production.INFO: ==13994== Releasing lock... [2024-12-26 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:29:05 [end_date_ymd] => 2024-12-26 05:29:05 [RateCDR] => 1 ) [2024-12-26 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:29:05' and `end` < '2024-12-26 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:29:17] Production.INFO: count ==28 [2024-12-26 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:29:05 - End Time 2024-12-26 05:29:05 [2024-12-26 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104722', 'tblTempUsageDetail_20' ) start [2024-12-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104722', 'tblTempUsageDetail_20' ) end [2024-12-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104722', 'tblTempVendorCDR_20' ) start [2024-12-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104722', 'tblTempVendorCDR_20' ) end [2024-12-26 05:29:17] Production.INFO: ProcessCDR(1,14104722,1,1,2) [2024-12-26 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104722', 'tblTempUsageDetail_20' ) start [2024-12-26 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104722', 'tblTempUsageDetail_20' ) end [2024-12-26 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:29:20] Production.INFO: ==14072== Releasing lock... [2024-12-26 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:30:05 [end_date_ymd] => 2024-12-26 05:30:05 [RateCDR] => 1 ) [2024-12-26 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:30:05' and `end` < '2024-12-26 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:30:18] Production.INFO: count ==25 [2024-12-26 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:30:05 - End Time 2024-12-26 05:30:05 [2024-12-26 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104728', 'tblTempUsageDetail_20' ) start [2024-12-26 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104728', 'tblTempUsageDetail_20' ) end [2024-12-26 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104728', 'tblTempVendorCDR_20' ) start [2024-12-26 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104728', 'tblTempVendorCDR_20' ) end [2024-12-26 05:30:18] Production.INFO: ProcessCDR(1,14104728,1,1,2) [2024-12-26 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104728', 'tblTempUsageDetail_20' ) start [2024-12-26 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104728', 'tblTempUsageDetail_20' ) end [2024-12-26 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:30:21] Production.INFO: ==14155== Releasing lock... [2024-12-26 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:31:05 [end_date_ymd] => 2024-12-26 05:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:31:18] Production.INFO: count ==25 [2024-12-26 05:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:31:05 - End Time 2024-12-26 05:31:05 [2024-12-26 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104733', 'tblTempUsageDetail_20' ) start [2024-12-26 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104733', 'tblTempUsageDetail_20' ) end [2024-12-26 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104733', 'tblTempVendorCDR_20' ) start [2024-12-26 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104733', 'tblTempVendorCDR_20' ) end [2024-12-26 05:31:18] Production.INFO: ProcessCDR(1,14104733,1,1,2) [2024-12-26 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104733', 'tblTempUsageDetail_20' ) start [2024-12-26 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104733', 'tblTempUsageDetail_20' ) end [2024-12-26 05:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:31:21] Production.INFO: ==14235== Releasing lock... [2024-12-26 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:32:06 [end_date_ymd] => 2024-12-26 05:32:06 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:32:06' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:32:18] Production.INFO: count ==25 [2024-12-26 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:32:06 - End Time 2024-12-26 05:32:06 [2024-12-26 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104738', 'tblTempUsageDetail_20' ) start [2024-12-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104738', 'tblTempUsageDetail_20' ) end [2024-12-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104738', 'tblTempVendorCDR_20' ) start [2024-12-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104738', 'tblTempVendorCDR_20' ) end [2024-12-26 05:32:18] Production.INFO: ProcessCDR(1,14104738,1,1,2) [2024-12-26 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104738', 'tblTempUsageDetail_20' ) start [2024-12-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104738', 'tblTempUsageDetail_20' ) end [2024-12-26 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:32:21] Production.INFO: ==14317== Releasing lock... [2024-12-26 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:33:05 [end_date_ymd] => 2024-12-26 05:33:05 [RateCDR] => 1 ) [2024-12-26 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:33:05' and `end` < '2024-12-26 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:33:17] Production.INFO: count ==25 [2024-12-26 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:33:05 - End Time 2024-12-26 05:33:05 [2024-12-26 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104743', 'tblTempUsageDetail_20' ) start [2024-12-26 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104743', 'tblTempUsageDetail_20' ) end [2024-12-26 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104743', 'tblTempVendorCDR_20' ) start [2024-12-26 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104743', 'tblTempVendorCDR_20' ) end [2024-12-26 05:33:17] Production.INFO: ProcessCDR(1,14104743,1,1,2) [2024-12-26 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104743', 'tblTempUsageDetail_20' ) start [2024-12-26 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104743', 'tblTempUsageDetail_20' ) end [2024-12-26 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:33:20] Production.INFO: ==14396== Releasing lock... [2024-12-26 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:34:05 [end_date_ymd] => 2024-12-26 05:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:34:18] Production.INFO: count ==25 [2024-12-26 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:34:05 - End Time 2024-12-26 05:34:05 [2024-12-26 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104748', 'tblTempUsageDetail_20' ) start [2024-12-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104748', 'tblTempUsageDetail_20' ) end [2024-12-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104748', 'tblTempVendorCDR_20' ) start [2024-12-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104748', 'tblTempVendorCDR_20' ) end [2024-12-26 05:34:18] Production.INFO: ProcessCDR(1,14104748,1,1,2) [2024-12-26 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104748', 'tblTempUsageDetail_20' ) start [2024-12-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104748', 'tblTempUsageDetail_20' ) end [2024-12-26 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:34:21] Production.INFO: ==14479== Releasing lock... [2024-12-26 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:35:04 [end_date_ymd] => 2024-12-26 05:35:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:35:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:35:16] Production.INFO: count ==25 [2024-12-26 05:35:16] Production.ERROR: pbx CDR StartTime 2024-12-26 02:35:04 - End Time 2024-12-26 05:35:04 [2024-12-26 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104749', 'tblTempUsageDetail_20' ) start [2024-12-26 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104749', 'tblTempUsageDetail_20' ) end [2024-12-26 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104749', 'tblTempVendorCDR_20' ) start [2024-12-26 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104749', 'tblTempVendorCDR_20' ) end [2024-12-26 05:35:17] Production.INFO: ProcessCDR(1,14104749,1,1,2) [2024-12-26 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104749', 'tblTempUsageDetail_20' ) start [2024-12-26 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104749', 'tblTempUsageDetail_20' ) end [2024-12-26 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:35:20] Production.INFO: ==14556== Releasing lock... [2024-12-26 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:36:05 [end_date_ymd] => 2024-12-26 05:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:36:17] Production.INFO: count ==25 [2024-12-26 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:36:05 - End Time 2024-12-26 05:36:05 [2024-12-26 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104758', 'tblTempUsageDetail_20' ) start [2024-12-26 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104758', 'tblTempUsageDetail_20' ) end [2024-12-26 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104758', 'tblTempVendorCDR_20' ) start [2024-12-26 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104758', 'tblTempVendorCDR_20' ) end [2024-12-26 05:36:17] Production.INFO: ProcessCDR(1,14104758,1,1,2) [2024-12-26 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104758', 'tblTempUsageDetail_20' ) start [2024-12-26 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104758', 'tblTempUsageDetail_20' ) end [2024-12-26 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:36:20] Production.INFO: ==14638== Releasing lock... [2024-12-26 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:37:05 [end_date_ymd] => 2024-12-26 05:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:37:17] Production.INFO: count ==25 [2024-12-26 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:37:05 - End Time 2024-12-26 05:37:05 [2024-12-26 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104763', 'tblTempUsageDetail_20' ) start [2024-12-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104763', 'tblTempUsageDetail_20' ) end [2024-12-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104763', 'tblTempVendorCDR_20' ) start [2024-12-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104763', 'tblTempVendorCDR_20' ) end [2024-12-26 05:37:17] Production.INFO: ProcessCDR(1,14104763,1,1,2) [2024-12-26 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104763', 'tblTempUsageDetail_20' ) start [2024-12-26 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104763', 'tblTempUsageDetail_20' ) end [2024-12-26 05:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:37:21] Production.INFO: ==14719== Releasing lock... [2024-12-26 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:38:05 [end_date_ymd] => 2024-12-26 05:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:38:19] Production.INFO: count ==25 [2024-12-26 05:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 02:38:05 - End Time 2024-12-26 05:38:05 [2024-12-26 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104768', 'tblTempUsageDetail_20' ) start [2024-12-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104768', 'tblTempUsageDetail_20' ) end [2024-12-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104768', 'tblTempVendorCDR_20' ) start [2024-12-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104768', 'tblTempVendorCDR_20' ) end [2024-12-26 05:38:19] Production.INFO: ProcessCDR(1,14104768,1,1,2) [2024-12-26 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104768', 'tblTempUsageDetail_20' ) start [2024-12-26 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104768', 'tblTempUsageDetail_20' ) end [2024-12-26 05:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:38:22] Production.INFO: ==14796== Releasing lock... [2024-12-26 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:38:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:39:04 [end_date_ymd] => 2024-12-26 05:39:04 [RateCDR] => 1 ) [2024-12-26 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:39:04' and `end` < '2024-12-26 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:39:17] Production.INFO: count ==25 [2024-12-26 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:39:04 - End Time 2024-12-26 05:39:04 [2024-12-26 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104773', 'tblTempUsageDetail_20' ) start [2024-12-26 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104773', 'tblTempUsageDetail_20' ) end [2024-12-26 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104773', 'tblTempVendorCDR_20' ) start [2024-12-26 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104773', 'tblTempVendorCDR_20' ) end [2024-12-26 05:39:17] Production.INFO: ProcessCDR(1,14104773,1,1,2) [2024-12-26 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104773', 'tblTempUsageDetail_20' ) start [2024-12-26 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104773', 'tblTempUsageDetail_20' ) end [2024-12-26 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:39:20] Production.INFO: ==14918== Releasing lock... [2024-12-26 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:40:05 [end_date_ymd] => 2024-12-26 05:40:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:40:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:40:17] Production.INFO: count ==22 [2024-12-26 05:40:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:40:05 - End Time 2024-12-26 05:40:05 [2024-12-26 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104779', 'tblTempUsageDetail_20' ) start [2024-12-26 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104779', 'tblTempUsageDetail_20' ) end [2024-12-26 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104779', 'tblTempVendorCDR_20' ) start [2024-12-26 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104779', 'tblTempVendorCDR_20' ) end [2024-12-26 05:40:17] Production.INFO: ProcessCDR(1,14104779,1,1,2) [2024-12-26 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104779', 'tblTempUsageDetail_20' ) start [2024-12-26 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104779', 'tblTempUsageDetail_20' ) end [2024-12-26 05:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:40:20] Production.INFO: ==14997== Releasing lock... [2024-12-26 05:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:40:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:41:05 [end_date_ymd] => 2024-12-26 05:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:41:18] Production.INFO: count ==22 [2024-12-26 05:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:41:05 - End Time 2024-12-26 05:41:05 [2024-12-26 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104784', 'tblTempUsageDetail_20' ) start [2024-12-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104784', 'tblTempUsageDetail_20' ) end [2024-12-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104784', 'tblTempVendorCDR_20' ) start [2024-12-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104784', 'tblTempVendorCDR_20' ) end [2024-12-26 05:41:18] Production.INFO: ProcessCDR(1,14104784,1,1,2) [2024-12-26 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104784', 'tblTempUsageDetail_20' ) start [2024-12-26 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104784', 'tblTempUsageDetail_20' ) end [2024-12-26 05:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:41:21] Production.INFO: ==15085== Releasing lock... [2024-12-26 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:42:05 [end_date_ymd] => 2024-12-26 05:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:42:18] Production.INFO: count ==22 [2024-12-26 05:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:42:05 - End Time 2024-12-26 05:42:05 [2024-12-26 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104789', 'tblTempUsageDetail_20' ) start [2024-12-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104789', 'tblTempUsageDetail_20' ) end [2024-12-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104789', 'tblTempVendorCDR_20' ) start [2024-12-26 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104789', 'tblTempVendorCDR_20' ) end [2024-12-26 05:42:18] Production.INFO: ProcessCDR(1,14104789,1,1,2) [2024-12-26 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104789', 'tblTempUsageDetail_20' ) start [2024-12-26 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104789', 'tblTempUsageDetail_20' ) end [2024-12-26 05:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:42:21] Production.INFO: ==15165== Releasing lock... [2024-12-26 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:43:05 [end_date_ymd] => 2024-12-26 05:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:43:18] Production.INFO: count ==21 [2024-12-26 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:43:05 - End Time 2024-12-26 05:43:05 [2024-12-26 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104794', 'tblTempUsageDetail_20' ) start [2024-12-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104794', 'tblTempUsageDetail_20' ) end [2024-12-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104794', 'tblTempVendorCDR_20' ) start [2024-12-26 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104794', 'tblTempVendorCDR_20' ) end [2024-12-26 05:43:18] Production.INFO: ProcessCDR(1,14104794,1,1,2) [2024-12-26 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104794', 'tblTempUsageDetail_20' ) start [2024-12-26 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104794', 'tblTempUsageDetail_20' ) end [2024-12-26 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:43:21] Production.INFO: ==15244== Releasing lock... [2024-12-26 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:44:04 [end_date_ymd] => 2024-12-26 05:44:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:44:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:44:17] Production.INFO: count ==21 [2024-12-26 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:44:04 - End Time 2024-12-26 05:44:04 [2024-12-26 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104799', 'tblTempUsageDetail_20' ) start [2024-12-26 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104799', 'tblTempUsageDetail_20' ) end [2024-12-26 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104799', 'tblTempVendorCDR_20' ) start [2024-12-26 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104799', 'tblTempVendorCDR_20' ) end [2024-12-26 05:44:17] Production.INFO: ProcessCDR(1,14104799,1,1,2) [2024-12-26 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104799', 'tblTempUsageDetail_20' ) start [2024-12-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104799', 'tblTempUsageDetail_20' ) end [2024-12-26 05:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:44:21] Production.INFO: ==15323== Releasing lock... [2024-12-26 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:45:05 [end_date_ymd] => 2024-12-26 05:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:45:17] Production.INFO: count ==21 [2024-12-26 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:45:05 - End Time 2024-12-26 05:45:05 [2024-12-26 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104804', 'tblTempUsageDetail_20' ) start [2024-12-26 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104804', 'tblTempUsageDetail_20' ) end [2024-12-26 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104804', 'tblTempVendorCDR_20' ) start [2024-12-26 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104804', 'tblTempVendorCDR_20' ) end [2024-12-26 05:45:17] Production.INFO: ProcessCDR(1,14104804,1,1,2) [2024-12-26 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104804', 'tblTempUsageDetail_20' ) start [2024-12-26 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104804', 'tblTempUsageDetail_20' ) end [2024-12-26 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:45:20] Production.INFO: ==15401== Releasing lock... [2024-12-26 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:46:04 [end_date_ymd] => 2024-12-26 05:46:04 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:46:04' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:46:17] Production.INFO: count ==21 [2024-12-26 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:46:04 - End Time 2024-12-26 05:46:04 [2024-12-26 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104809', 'tblTempUsageDetail_20' ) start [2024-12-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104809', 'tblTempUsageDetail_20' ) end [2024-12-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104809', 'tblTempVendorCDR_20' ) start [2024-12-26 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104809', 'tblTempVendorCDR_20' ) end [2024-12-26 05:46:17] Production.INFO: ProcessCDR(1,14104809,1,1,2) [2024-12-26 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104809', 'tblTempUsageDetail_20' ) start [2024-12-26 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104809', 'tblTempUsageDetail_20' ) end [2024-12-26 05:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:46:20] Production.INFO: ==15481== Releasing lock... [2024-12-26 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:47:05 [end_date_ymd] => 2024-12-26 05:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:47:17] Production.INFO: count ==21 [2024-12-26 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:47:05 - End Time 2024-12-26 05:47:05 [2024-12-26 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104814', 'tblTempUsageDetail_20' ) start [2024-12-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104814', 'tblTempUsageDetail_20' ) end [2024-12-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104814', 'tblTempVendorCDR_20' ) start [2024-12-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104814', 'tblTempVendorCDR_20' ) end [2024-12-26 05:47:17] Production.INFO: ProcessCDR(1,14104814,1,1,2) [2024-12-26 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104814', 'tblTempUsageDetail_20' ) start [2024-12-26 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104814', 'tblTempUsageDetail_20' ) end [2024-12-26 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:47:20] Production.INFO: ==15559== Releasing lock... [2024-12-26 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:48:04 [end_date_ymd] => 2024-12-26 05:48:04 [RateCDR] => 1 ) [2024-12-26 05:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:48:04' and `end` < '2024-12-26 05:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:48:17] Production.INFO: count ==21 [2024-12-26 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:48:04 - End Time 2024-12-26 05:48:04 [2024-12-26 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104819', 'tblTempUsageDetail_20' ) start [2024-12-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104819', 'tblTempUsageDetail_20' ) end [2024-12-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104819', 'tblTempVendorCDR_20' ) start [2024-12-26 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104819', 'tblTempVendorCDR_20' ) end [2024-12-26 05:48:17] Production.INFO: ProcessCDR(1,14104819,1,1,2) [2024-12-26 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104819', 'tblTempUsageDetail_20' ) start [2024-12-26 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104819', 'tblTempUsageDetail_20' ) end [2024-12-26 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:48:20] Production.INFO: ==15640== Releasing lock... [2024-12-26 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:49:04 [end_date_ymd] => 2024-12-26 05:49:04 [RateCDR] => 1 ) [2024-12-26 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:49:04' and `end` < '2024-12-26 05:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:49:17] Production.INFO: count ==21 [2024-12-26 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:49:04 - End Time 2024-12-26 05:49:04 [2024-12-26 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104824', 'tblTempUsageDetail_20' ) start [2024-12-26 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104824', 'tblTempUsageDetail_20' ) end [2024-12-26 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104824', 'tblTempVendorCDR_20' ) start [2024-12-26 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104824', 'tblTempVendorCDR_20' ) end [2024-12-26 05:49:17] Production.INFO: ProcessCDR(1,14104824,1,1,2) [2024-12-26 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104824', 'tblTempUsageDetail_20' ) start [2024-12-26 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104824', 'tblTempUsageDetail_20' ) end [2024-12-26 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:49:20] Production.INFO: ==15719== Releasing lock... [2024-12-26 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:50:06 [end_date_ymd] => 2024-12-26 05:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:50:19] Production.INFO: count ==19 [2024-12-26 05:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 02:50:06 - End Time 2024-12-26 05:50:06 [2024-12-26 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104830', 'tblTempUsageDetail_20' ) start [2024-12-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104830', 'tblTempUsageDetail_20' ) end [2024-12-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104830', 'tblTempVendorCDR_20' ) start [2024-12-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104830', 'tblTempVendorCDR_20' ) end [2024-12-26 05:50:19] Production.INFO: ProcessCDR(1,14104830,1,1,2) [2024-12-26 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104830', 'tblTempUsageDetail_20' ) start [2024-12-26 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104830', 'tblTempUsageDetail_20' ) end [2024-12-26 05:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:50:22] Production.INFO: ==15805== Releasing lock... [2024-12-26 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:50:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:51:04 [end_date_ymd] => 2024-12-26 05:51:04 [RateCDR] => 1 ) [2024-12-26 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 02:51:04' and `end` < '2024-12-26 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 05:51:17] Production.INFO: count ==19 [2024-12-26 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:51:04 - End Time 2024-12-26 05:51:04 [2024-12-26 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104835', 'tblTempUsageDetail_20' ) start [2024-12-26 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104835', 'tblTempUsageDetail_20' ) end [2024-12-26 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104835', 'tblTempVendorCDR_20' ) start [2024-12-26 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104835', 'tblTempVendorCDR_20' ) end [2024-12-26 05:51:17] Production.INFO: ProcessCDR(1,14104835,1,1,2) [2024-12-26 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104835', 'tblTempUsageDetail_20' ) start [2024-12-26 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104835', 'tblTempUsageDetail_20' ) end [2024-12-26 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:51:20] Production.INFO: ==15886== Releasing lock... [2024-12-26 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:52:05 [end_date_ymd] => 2024-12-26 05:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:52:18] Production.INFO: count ==19 [2024-12-26 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:52:05 - End Time 2024-12-26 05:52:05 [2024-12-26 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104840', 'tblTempUsageDetail_20' ) start [2024-12-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104840', 'tblTempUsageDetail_20' ) end [2024-12-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104840', 'tblTempVendorCDR_20' ) start [2024-12-26 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104840', 'tblTempVendorCDR_20' ) end [2024-12-26 05:52:18] Production.INFO: ProcessCDR(1,14104840,1,1,2) [2024-12-26 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104840', 'tblTempUsageDetail_20' ) start [2024-12-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104840', 'tblTempUsageDetail_20' ) end [2024-12-26 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:52:21] Production.INFO: ==15967== Releasing lock... [2024-12-26 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:53:04 [end_date_ymd] => 2024-12-26 05:53:04 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:53:04' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:53:17] Production.INFO: count ==19 [2024-12-26 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:53:04 - End Time 2024-12-26 05:53:04 [2024-12-26 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104845', 'tblTempUsageDetail_20' ) start [2024-12-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104845', 'tblTempUsageDetail_20' ) end [2024-12-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104845', 'tblTempVendorCDR_20' ) start [2024-12-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104845', 'tblTempVendorCDR_20' ) end [2024-12-26 05:53:17] Production.INFO: ProcessCDR(1,14104845,1,1,2) [2024-12-26 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104845', 'tblTempUsageDetail_20' ) start [2024-12-26 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104845', 'tblTempUsageDetail_20' ) end [2024-12-26 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:53:20] Production.INFO: ==16042== Releasing lock... [2024-12-26 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:54:05 [end_date_ymd] => 2024-12-26 05:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:54:18] Production.INFO: count ==19 [2024-12-26 05:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 02:54:05 - End Time 2024-12-26 05:54:05 [2024-12-26 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104850', 'tblTempUsageDetail_20' ) start [2024-12-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104850', 'tblTempUsageDetail_20' ) end [2024-12-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104850', 'tblTempVendorCDR_20' ) start [2024-12-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104850', 'tblTempVendorCDR_20' ) end [2024-12-26 05:54:18] Production.INFO: ProcessCDR(1,14104850,1,1,2) [2024-12-26 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104850', 'tblTempUsageDetail_20' ) start [2024-12-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104850', 'tblTempUsageDetail_20' ) end [2024-12-26 05:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:54:21] Production.INFO: ==16124== Releasing lock... [2024-12-26 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:55:04 [end_date_ymd] => 2024-12-26 05:55:04 [RateCDR] => 1 ) [2024-12-26 05: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` >= '2024-12-26 02:55:04' and `end` < '2024-12-26 05: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 ,'') [2024-12-26 05:55:17] Production.INFO: count ==19 [2024-12-26 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:55:04 - End Time 2024-12-26 05:55:04 [2024-12-26 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104855', 'tblTempUsageDetail_20' ) start [2024-12-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104855', 'tblTempUsageDetail_20' ) end [2024-12-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104855', 'tblTempVendorCDR_20' ) start [2024-12-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104855', 'tblTempVendorCDR_20' ) end [2024-12-26 05:55:17] Production.INFO: ProcessCDR(1,14104855,1,1,2) [2024-12-26 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104855', 'tblTempUsageDetail_20' ) start [2024-12-26 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104855', 'tblTempUsageDetail_20' ) end [2024-12-26 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:55:20] Production.INFO: ==16242== Releasing lock... [2024-12-26 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:56:05 [end_date_ymd] => 2024-12-26 05:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:56:17] Production.INFO: count ==19 [2024-12-26 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:56:05 - End Time 2024-12-26 05:56:05 [2024-12-26 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104860', 'tblTempUsageDetail_20' ) start [2024-12-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104860', 'tblTempUsageDetail_20' ) end [2024-12-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104860', 'tblTempVendorCDR_20' ) start [2024-12-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104860', 'tblTempVendorCDR_20' ) end [2024-12-26 05:56:17] Production.INFO: ProcessCDR(1,14104860,1,1,2) [2024-12-26 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104860', 'tblTempUsageDetail_20' ) start [2024-12-26 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104860', 'tblTempUsageDetail_20' ) end [2024-12-26 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:56:20] Production.INFO: ==16324== Releasing lock... [2024-12-26 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:57:05 [end_date_ymd] => 2024-12-26 05:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:57:17] Production.INFO: count ==19 [2024-12-26 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:57:05 - End Time 2024-12-26 05:57:05 [2024-12-26 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104865', 'tblTempUsageDetail_20' ) start [2024-12-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104865', 'tblTempUsageDetail_20' ) end [2024-12-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104865', 'tblTempVendorCDR_20' ) start [2024-12-26 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104865', 'tblTempVendorCDR_20' ) end [2024-12-26 05:57:17] Production.INFO: ProcessCDR(1,14104865,1,1,2) [2024-12-26 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104865', 'tblTempUsageDetail_20' ) start [2024-12-26 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104865', 'tblTempUsageDetail_20' ) end [2024-12-26 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:57:20] Production.INFO: ==16409== Releasing lock... [2024-12-26 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:58:05 [end_date_ymd] => 2024-12-26 05:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:58:17] Production.INFO: count ==19 [2024-12-26 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:58:05 - End Time 2024-12-26 05:58:05 [2024-12-26 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104870', 'tblTempUsageDetail_20' ) start [2024-12-26 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104870', 'tblTempUsageDetail_20' ) end [2024-12-26 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104870', 'tblTempVendorCDR_20' ) start [2024-12-26 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104870', 'tblTempVendorCDR_20' ) end [2024-12-26 05:58:17] Production.INFO: ProcessCDR(1,14104870,1,1,2) [2024-12-26 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104870', 'tblTempUsageDetail_20' ) start [2024-12-26 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104870', 'tblTempUsageDetail_20' ) end [2024-12-26 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:58:20] Production.INFO: ==16495== Releasing lock... [2024-12-26 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 02:59:05 [end_date_ymd] => 2024-12-26 05:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 02:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 05:59:17] Production.INFO: count ==19 [2024-12-26 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-26 02:59:05 - End Time 2024-12-26 05:59:05 [2024-12-26 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104875', 'tblTempUsageDetail_20' ) start [2024-12-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104875', 'tblTempUsageDetail_20' ) end [2024-12-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104875', 'tblTempVendorCDR_20' ) start [2024-12-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104875', 'tblTempVendorCDR_20' ) end [2024-12-26 05:59:17] Production.INFO: ProcessCDR(1,14104875,1,1,2) [2024-12-26 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104875', 'tblTempUsageDetail_20' ) start [2024-12-26 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104875', 'tblTempUsageDetail_20' ) end [2024-12-26 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 05:59:20] Production.INFO: ==16579== Releasing lock... [2024-12-26 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 05:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:00:05 [end_date_ymd] => 2024-12-26 06:00:05 [RateCDR] => 1 ) [2024-12-26 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:00:05' and `end` < '2024-12-26 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:00:17] Production.INFO: count ==15 [2024-12-26 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:00:05 - End Time 2024-12-26 06:00:05 [2024-12-26 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104881', 'tblTempUsageDetail_20' ) start [2024-12-26 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104881', 'tblTempUsageDetail_20' ) end [2024-12-26 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104881', 'tblTempVendorCDR_20' ) start [2024-12-26 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104881', 'tblTempVendorCDR_20' ) end [2024-12-26 06:00:17] Production.INFO: ProcessCDR(1,14104881,1,1,2) [2024-12-26 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104881', 'tblTempUsageDetail_20' ) start [2024-12-26 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104881', 'tblTempUsageDetail_20' ) end [2024-12-26 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:00:21] Production.INFO: ==16671== Releasing lock... [2024-12-26 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:01:05 [end_date_ymd] => 2024-12-26 06:01:05 [RateCDR] => 1 ) [2024-12-26 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:01:05' and `end` < '2024-12-26 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:01:17] Production.INFO: count ==15 [2024-12-26 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:01:05 - End Time 2024-12-26 06:01:05 [2024-12-26 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104886', 'tblTempUsageDetail_20' ) start [2024-12-26 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104886', 'tblTempUsageDetail_20' ) end [2024-12-26 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104886', 'tblTempVendorCDR_20' ) start [2024-12-26 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104886', 'tblTempVendorCDR_20' ) end [2024-12-26 06:01:17] Production.INFO: ProcessCDR(1,14104886,1,1,2) [2024-12-26 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104886', 'tblTempUsageDetail_20' ) start [2024-12-26 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104886', 'tblTempUsageDetail_20' ) end [2024-12-26 06:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:01:20] Production.INFO: ==16778== Releasing lock... [2024-12-26 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:01:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:02:04 [end_date_ymd] => 2024-12-26 06:02:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:02:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:02:17] Production.INFO: count ==15 [2024-12-26 06:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:02:04 - End Time 2024-12-26 06:02:04 [2024-12-26 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104891', 'tblTempUsageDetail_20' ) start [2024-12-26 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104891', 'tblTempUsageDetail_20' ) end [2024-12-26 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104891', 'tblTempVendorCDR_20' ) start [2024-12-26 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104891', 'tblTempVendorCDR_20' ) end [2024-12-26 06:02:17] Production.INFO: ProcessCDR(1,14104891,1,1,2) [2024-12-26 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104891', 'tblTempUsageDetail_20' ) start [2024-12-26 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104891', 'tblTempUsageDetail_20' ) end [2024-12-26 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:02:20] Production.INFO: ==16872== Releasing lock... [2024-12-26 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:02:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:03:05 [end_date_ymd] => 2024-12-26 06:03:05 [RateCDR] => 1 ) [2024-12-26 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:03:05' and `end` < '2024-12-26 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:03:17] Production.INFO: count ==15 [2024-12-26 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:03:05 - End Time 2024-12-26 06:03:05 [2024-12-26 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104896', 'tblTempUsageDetail_20' ) start [2024-12-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104896', 'tblTempUsageDetail_20' ) end [2024-12-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104896', 'tblTempVendorCDR_20' ) start [2024-12-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104896', 'tblTempVendorCDR_20' ) end [2024-12-26 06:03:17] Production.INFO: ProcessCDR(1,14104896,1,1,2) [2024-12-26 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104896', 'tblTempUsageDetail_20' ) start [2024-12-26 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104896', 'tblTempUsageDetail_20' ) end [2024-12-26 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:03:20] Production.INFO: ==16960== Releasing lock... [2024-12-26 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:04:06 [end_date_ymd] => 2024-12-26 06:04:06 [RateCDR] => 1 ) [2024-12-26 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:04:06' and `end` < '2024-12-26 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:04:19] Production.INFO: count ==15 [2024-12-26 06:04:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:04:06 - End Time 2024-12-26 06:04:06 [2024-12-26 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104901', 'tblTempUsageDetail_20' ) start [2024-12-26 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104901', 'tblTempUsageDetail_20' ) end [2024-12-26 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104901', 'tblTempVendorCDR_20' ) start [2024-12-26 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104901', 'tblTempVendorCDR_20' ) end [2024-12-26 06:04:19] Production.INFO: ProcessCDR(1,14104901,1,1,2) [2024-12-26 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104901', 'tblTempUsageDetail_20' ) start [2024-12-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104901', 'tblTempUsageDetail_20' ) end [2024-12-26 06:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:04:22] Production.INFO: ==17050== Releasing lock... [2024-12-26 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:04:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:05:05 [end_date_ymd] => 2024-12-26 06:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:05:17] Production.INFO: count ==15 [2024-12-26 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:05:05 - End Time 2024-12-26 06:05:05 [2024-12-26 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104906', 'tblTempUsageDetail_20' ) start [2024-12-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104906', 'tblTempUsageDetail_20' ) end [2024-12-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104906', 'tblTempVendorCDR_20' ) start [2024-12-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104906', 'tblTempVendorCDR_20' ) end [2024-12-26 06:05:17] Production.INFO: ProcessCDR(1,14104906,1,1,2) [2024-12-26 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104906', 'tblTempUsageDetail_20' ) start [2024-12-26 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104906', 'tblTempUsageDetail_20' ) end [2024-12-26 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:05:20] Production.INFO: ==17137== Releasing lock... [2024-12-26 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:06:05 [end_date_ymd] => 2024-12-26 06:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:06:18] Production.INFO: count ==15 [2024-12-26 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:06:05 - End Time 2024-12-26 06:06:05 [2024-12-26 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104911', 'tblTempUsageDetail_20' ) start [2024-12-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104911', 'tblTempUsageDetail_20' ) end [2024-12-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104911', 'tblTempVendorCDR_20' ) start [2024-12-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104911', 'tblTempVendorCDR_20' ) end [2024-12-26 06:06:18] Production.INFO: ProcessCDR(1,14104911,1,1,2) [2024-12-26 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104911', 'tblTempUsageDetail_20' ) start [2024-12-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104911', 'tblTempUsageDetail_20' ) end [2024-12-26 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:06:21] Production.INFO: ==17233== Releasing lock... [2024-12-26 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:07:04 [end_date_ymd] => 2024-12-26 06:07:04 [RateCDR] => 1 ) [2024-12-26 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:07:04' and `end` < '2024-12-26 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:07:17] Production.INFO: count ==15 [2024-12-26 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:07:04 - End Time 2024-12-26 06:07:04 [2024-12-26 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104916', 'tblTempUsageDetail_20' ) start [2024-12-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104916', 'tblTempUsageDetail_20' ) end [2024-12-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104916', 'tblTempVendorCDR_20' ) start [2024-12-26 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104916', 'tblTempVendorCDR_20' ) end [2024-12-26 06:07:17] Production.INFO: ProcessCDR(1,14104916,1,1,2) [2024-12-26 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104916', 'tblTempUsageDetail_20' ) start [2024-12-26 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104916', 'tblTempUsageDetail_20' ) end [2024-12-26 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:07:20] Production.INFO: ==17325== Releasing lock... [2024-12-26 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:07:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:08:05 [end_date_ymd] => 2024-12-26 06:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:08:18] Production.INFO: count ==15 [2024-12-26 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:08:05 - End Time 2024-12-26 06:08:05 [2024-12-26 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104921', 'tblTempUsageDetail_20' ) start [2024-12-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104921', 'tblTempUsageDetail_20' ) end [2024-12-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104921', 'tblTempVendorCDR_20' ) start [2024-12-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104921', 'tblTempVendorCDR_20' ) end [2024-12-26 06:08:18] Production.INFO: ProcessCDR(1,14104921,1,1,2) [2024-12-26 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104921', 'tblTempUsageDetail_20' ) start [2024-12-26 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104921', 'tblTempUsageDetail_20' ) end [2024-12-26 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:08:21] Production.INFO: ==17417== Releasing lock... [2024-12-26 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:09:04 [end_date_ymd] => 2024-12-26 06:09:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:09:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:09:17] Production.INFO: count ==15 [2024-12-26 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:09:04 - End Time 2024-12-26 06:09:04 [2024-12-26 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104926', 'tblTempUsageDetail_20' ) start [2024-12-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104926', 'tblTempUsageDetail_20' ) end [2024-12-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104926', 'tblTempVendorCDR_20' ) start [2024-12-26 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104926', 'tblTempVendorCDR_20' ) end [2024-12-26 06:09:17] Production.INFO: ProcessCDR(1,14104926,1,1,2) [2024-12-26 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104926', 'tblTempUsageDetail_20' ) start [2024-12-26 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104926', 'tblTempUsageDetail_20' ) end [2024-12-26 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:09:20] Production.INFO: ==17509== Releasing lock... [2024-12-26 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:10:05 [end_date_ymd] => 2024-12-26 06:10:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:10:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:10:18] Production.INFO: count ==15 [2024-12-26 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:10:05 - End Time 2024-12-26 06:10:05 [2024-12-26 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104931', 'tblTempUsageDetail_20' ) start [2024-12-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104931', 'tblTempUsageDetail_20' ) end [2024-12-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104931', 'tblTempVendorCDR_20' ) start [2024-12-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104931', 'tblTempVendorCDR_20' ) end [2024-12-26 06:10:18] Production.INFO: ProcessCDR(1,14104931,1,1,2) [2024-12-26 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104931', 'tblTempUsageDetail_20' ) start [2024-12-26 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104931', 'tblTempUsageDetail_20' ) end [2024-12-26 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:10:21] Production.INFO: ==17639== Releasing lock... [2024-12-26 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:11:04 [end_date_ymd] => 2024-12-26 06:11:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:11:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:11:17] Production.INFO: count ==15 [2024-12-26 06:11:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:11:04 - End Time 2024-12-26 06:11:04 [2024-12-26 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104937', 'tblTempUsageDetail_20' ) start [2024-12-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104937', 'tblTempUsageDetail_20' ) end [2024-12-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104937', 'tblTempVendorCDR_20' ) start [2024-12-26 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104937', 'tblTempVendorCDR_20' ) end [2024-12-26 06:11:17] Production.INFO: ProcessCDR(1,14104937,1,1,2) [2024-12-26 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104937', 'tblTempUsageDetail_20' ) start [2024-12-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104937', 'tblTempUsageDetail_20' ) end [2024-12-26 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:11:21] Production.INFO: ==17737== Releasing lock... [2024-12-26 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:12:05 [end_date_ymd] => 2024-12-26 06:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:12:18] Production.INFO: count ==15 [2024-12-26 06:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:12:05 - End Time 2024-12-26 06:12:05 [2024-12-26 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104942', 'tblTempUsageDetail_20' ) start [2024-12-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104942', 'tblTempUsageDetail_20' ) end [2024-12-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104942', 'tblTempVendorCDR_20' ) start [2024-12-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104942', 'tblTempVendorCDR_20' ) end [2024-12-26 06:12:18] Production.INFO: ProcessCDR(1,14104942,1,1,2) [2024-12-26 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104942', 'tblTempUsageDetail_20' ) start [2024-12-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104942', 'tblTempUsageDetail_20' ) end [2024-12-26 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:12:21] Production.INFO: ==17829== Releasing lock... [2024-12-26 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:13:05 [end_date_ymd] => 2024-12-26 06:13:05 [RateCDR] => 1 ) [2024-12-26 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:13:05' and `end` < '2024-12-26 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:13:18] Production.INFO: count ==15 [2024-12-26 06:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:13:05 - End Time 2024-12-26 06:13:05 [2024-12-26 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104947', 'tblTempUsageDetail_20' ) start [2024-12-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104947', 'tblTempUsageDetail_20' ) end [2024-12-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104947', 'tblTempVendorCDR_20' ) start [2024-12-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104947', 'tblTempVendorCDR_20' ) end [2024-12-26 06:13:18] Production.INFO: ProcessCDR(1,14104947,1,1,2) [2024-12-26 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104947', 'tblTempUsageDetail_20' ) start [2024-12-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104947', 'tblTempUsageDetail_20' ) end [2024-12-26 06:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:13:21] Production.INFO: ==17922== Releasing lock... [2024-12-26 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:14:05 [end_date_ymd] => 2024-12-26 06:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:14:17] Production.INFO: count ==15 [2024-12-26 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:14:05 - End Time 2024-12-26 06:14:05 [2024-12-26 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104952', 'tblTempUsageDetail_20' ) start [2024-12-26 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104952', 'tblTempUsageDetail_20' ) end [2024-12-26 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104952', 'tblTempVendorCDR_20' ) start [2024-12-26 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104952', 'tblTempVendorCDR_20' ) end [2024-12-26 06:14:17] Production.INFO: ProcessCDR(1,14104952,1,1,2) [2024-12-26 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104952', 'tblTempUsageDetail_20' ) start [2024-12-26 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104952', 'tblTempUsageDetail_20' ) end [2024-12-26 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:14:20] Production.INFO: ==18015== Releasing lock... [2024-12-26 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:14:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:15:05 [end_date_ymd] => 2024-12-26 06:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:15:17] Production.INFO: count ==15 [2024-12-26 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:15:05 - End Time 2024-12-26 06:15:05 [2024-12-26 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104957', 'tblTempUsageDetail_20' ) start [2024-12-26 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104957', 'tblTempUsageDetail_20' ) end [2024-12-26 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104957', 'tblTempVendorCDR_20' ) start [2024-12-26 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104957', 'tblTempVendorCDR_20' ) end [2024-12-26 06:15:17] Production.INFO: ProcessCDR(1,14104957,1,1,2) [2024-12-26 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104957', 'tblTempUsageDetail_20' ) start [2024-12-26 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104957', 'tblTempUsageDetail_20' ) end [2024-12-26 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:15:20] Production.INFO: ==18116== Releasing lock... [2024-12-26 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:16:05 [end_date_ymd] => 2024-12-26 06:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:16:19] Production.INFO: count ==15 [2024-12-26 06:16:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:16:05 - End Time 2024-12-26 06:16:05 [2024-12-26 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104962', 'tblTempUsageDetail_20' ) start [2024-12-26 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104962', 'tblTempUsageDetail_20' ) end [2024-12-26 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104962', 'tblTempVendorCDR_20' ) start [2024-12-26 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104962', 'tblTempVendorCDR_20' ) end [2024-12-26 06:16:19] Production.INFO: ProcessCDR(1,14104962,1,1,2) [2024-12-26 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104962', 'tblTempUsageDetail_20' ) start [2024-12-26 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104962', 'tblTempUsageDetail_20' ) end [2024-12-26 06:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:16:22] Production.INFO: ==18206== Releasing lock... [2024-12-26 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:16:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:17:05 [end_date_ymd] => 2024-12-26 06:17:05 [RateCDR] => 1 ) [2024-12-26 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:17:05' and `end` < '2024-12-26 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:17:18] Production.INFO: count ==15 [2024-12-26 06:17:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:17:05 - End Time 2024-12-26 06:17:05 [2024-12-26 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104967', 'tblTempUsageDetail_20' ) start [2024-12-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104967', 'tblTempUsageDetail_20' ) end [2024-12-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104967', 'tblTempVendorCDR_20' ) start [2024-12-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104967', 'tblTempVendorCDR_20' ) end [2024-12-26 06:17:18] Production.INFO: ProcessCDR(1,14104967,1,1,2) [2024-12-26 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104967', 'tblTempUsageDetail_20' ) start [2024-12-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104967', 'tblTempUsageDetail_20' ) end [2024-12-26 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:17:21] Production.INFO: ==18300== Releasing lock... [2024-12-26 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:18:04 [end_date_ymd] => 2024-12-26 06:18:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:18:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:18:17] Production.INFO: count ==15 [2024-12-26 06:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:18:04 - End Time 2024-12-26 06:18:04 [2024-12-26 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104972', 'tblTempUsageDetail_20' ) start [2024-12-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104972', 'tblTempUsageDetail_20' ) end [2024-12-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104972', 'tblTempVendorCDR_20' ) start [2024-12-26 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104972', 'tblTempVendorCDR_20' ) end [2024-12-26 06:18:17] Production.INFO: ProcessCDR(1,14104972,1,1,2) [2024-12-26 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104972', 'tblTempUsageDetail_20' ) start [2024-12-26 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104972', 'tblTempUsageDetail_20' ) end [2024-12-26 06:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:18:20] Production.INFO: ==18388== Releasing lock... [2024-12-26 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:19:05 [end_date_ymd] => 2024-12-26 06:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:19:17] Production.INFO: count ==15 [2024-12-26 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:19:05 - End Time 2024-12-26 06:19:05 [2024-12-26 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104977', 'tblTempUsageDetail_20' ) start [2024-12-26 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104977', 'tblTempUsageDetail_20' ) end [2024-12-26 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104977', 'tblTempVendorCDR_20' ) start [2024-12-26 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104977', 'tblTempVendorCDR_20' ) end [2024-12-26 06:19:17] Production.INFO: ProcessCDR(1,14104977,1,1,2) [2024-12-26 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104977', 'tblTempUsageDetail_20' ) start [2024-12-26 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104977', 'tblTempUsageDetail_20' ) end [2024-12-26 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:19:20] Production.INFO: ==18485== Releasing lock... [2024-12-26 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:20:05 [end_date_ymd] => 2024-12-26 06:20:05 [RateCDR] => 1 ) [2024-12-26 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:20:05' and `end` < '2024-12-26 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:20:17] Production.INFO: count ==15 [2024-12-26 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:20:05 - End Time 2024-12-26 06:20:05 [2024-12-26 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104983', 'tblTempUsageDetail_20' ) start [2024-12-26 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104983', 'tblTempUsageDetail_20' ) end [2024-12-26 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104983', 'tblTempVendorCDR_20' ) start [2024-12-26 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104983', 'tblTempVendorCDR_20' ) end [2024-12-26 06:20:17] Production.INFO: ProcessCDR(1,14104983,1,1,2) [2024-12-26 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104983', 'tblTempUsageDetail_20' ) start [2024-12-26 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104983', 'tblTempUsageDetail_20' ) end [2024-12-26 06:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:20:20] Production.INFO: ==18578== Releasing lock... [2024-12-26 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:21:04 [end_date_ymd] => 2024-12-26 06:21:04 [RateCDR] => 1 ) [2024-12-26 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:21:04' and `end` < '2024-12-26 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:21:17] Production.INFO: count ==15 [2024-12-26 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:21:04 - End Time 2024-12-26 06:21:04 [2024-12-26 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104988', 'tblTempUsageDetail_20' ) start [2024-12-26 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104988', 'tblTempUsageDetail_20' ) end [2024-12-26 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104988', 'tblTempVendorCDR_20' ) start [2024-12-26 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104988', 'tblTempVendorCDR_20' ) end [2024-12-26 06:21:17] Production.INFO: ProcessCDR(1,14104988,1,1,2) [2024-12-26 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104988', 'tblTempUsageDetail_20' ) start [2024-12-26 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104988', 'tblTempUsageDetail_20' ) end [2024-12-26 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:21:20] Production.INFO: ==18673== Releasing lock... [2024-12-26 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:22:05 [end_date_ymd] => 2024-12-26 06:22:05 [RateCDR] => 1 ) [2024-12-26 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:22:05' and `end` < '2024-12-26 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:22:18] Production.INFO: count ==15 [2024-12-26 06:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:22:05 - End Time 2024-12-26 06:22:05 [2024-12-26 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104993', 'tblTempUsageDetail_20' ) start [2024-12-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104993', 'tblTempUsageDetail_20' ) end [2024-12-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104993', 'tblTempVendorCDR_20' ) start [2024-12-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104993', 'tblTempVendorCDR_20' ) end [2024-12-26 06:22:18] Production.INFO: ProcessCDR(1,14104993,1,1,2) [2024-12-26 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104993', 'tblTempUsageDetail_20' ) start [2024-12-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104993', 'tblTempUsageDetail_20' ) end [2024-12-26 06:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:22:21] Production.INFO: ==18768== Releasing lock... [2024-12-26 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:23:04 [end_date_ymd] => 2024-12-26 06:23:04 [RateCDR] => 1 ) [2024-12-26 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:23:04' and `end` < '2024-12-26 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:23:17] Production.INFO: count ==15 [2024-12-26 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:23:04 - End Time 2024-12-26 06:23:04 [2024-12-26 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104998', 'tblTempUsageDetail_20' ) start [2024-12-26 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14104998', 'tblTempUsageDetail_20' ) end [2024-12-26 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104998', 'tblTempVendorCDR_20' ) start [2024-12-26 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14104998', 'tblTempVendorCDR_20' ) end [2024-12-26 06:23:17] Production.INFO: ProcessCDR(1,14104998,1,1,2) [2024-12-26 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14104998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14104998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14104998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14104998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104998', 'tblTempUsageDetail_20' ) start [2024-12-26 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14104998', 'tblTempUsageDetail_20' ) end [2024-12-26 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:23:20] Production.INFO: ==18859== Releasing lock... [2024-12-26 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:24:05 [end_date_ymd] => 2024-12-26 06:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:24:19] Production.INFO: count ==15 [2024-12-26 06:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:24:05 - End Time 2024-12-26 06:24:05 [2024-12-26 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105003', 'tblTempUsageDetail_20' ) start [2024-12-26 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105003', 'tblTempUsageDetail_20' ) end [2024-12-26 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105003', 'tblTempVendorCDR_20' ) start [2024-12-26 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105003', 'tblTempVendorCDR_20' ) end [2024-12-26 06:24:19] Production.INFO: ProcessCDR(1,14105003,1,1,2) [2024-12-26 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105003', 'tblTempUsageDetail_20' ) start [2024-12-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105003', 'tblTempUsageDetail_20' ) end [2024-12-26 06:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:24:22] Production.INFO: ==18953== Releasing lock... [2024-12-26 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:24:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:25:05 [end_date_ymd] => 2024-12-26 06:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:25:17] Production.INFO: count ==15 [2024-12-26 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:25:05 - End Time 2024-12-26 06:25:05 [2024-12-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105008', 'tblTempUsageDetail_20' ) start [2024-12-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105008', 'tblTempUsageDetail_20' ) end [2024-12-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105008', 'tblTempVendorCDR_20' ) start [2024-12-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105008', 'tblTempVendorCDR_20' ) end [2024-12-26 06:25:17] Production.INFO: ProcessCDR(1,14105008,1,1,2) [2024-12-26 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105008', 'tblTempUsageDetail_20' ) start [2024-12-26 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105008', 'tblTempUsageDetail_20' ) end [2024-12-26 06:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:25:21] Production.INFO: ==19040== Releasing lock... [2024-12-26 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:26:05 [end_date_ymd] => 2024-12-26 06:26:05 [RateCDR] => 1 ) [2024-12-26 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:26:05' and `end` < '2024-12-26 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:26:17] Production.INFO: count ==15 [2024-12-26 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:26:05 - End Time 2024-12-26 06:26:05 [2024-12-26 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105013', 'tblTempUsageDetail_20' ) start [2024-12-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105013', 'tblTempUsageDetail_20' ) end [2024-12-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105013', 'tblTempVendorCDR_20' ) start [2024-12-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105013', 'tblTempVendorCDR_20' ) end [2024-12-26 06:26:17] Production.INFO: ProcessCDR(1,14105013,1,1,2) [2024-12-26 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105013', 'tblTempUsageDetail_20' ) start [2024-12-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105013', 'tblTempUsageDetail_20' ) end [2024-12-26 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:26:20] Production.INFO: ==19176== Releasing lock... [2024-12-26 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:27:04 [end_date_ymd] => 2024-12-26 06:27:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:27:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:27:16] Production.INFO: count ==15 [2024-12-26 06:27:16] Production.ERROR: pbx CDR StartTime 2024-12-26 03:27:04 - End Time 2024-12-26 06:27:04 [2024-12-26 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105018', 'tblTempUsageDetail_20' ) start [2024-12-26 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105018', 'tblTempUsageDetail_20' ) end [2024-12-26 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105018', 'tblTempVendorCDR_20' ) start [2024-12-26 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105018', 'tblTempVendorCDR_20' ) end [2024-12-26 06:27:16] Production.INFO: ProcessCDR(1,14105018,1,1,2) [2024-12-26 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105018', 'tblTempUsageDetail_20' ) start [2024-12-26 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105018', 'tblTempUsageDetail_20' ) end [2024-12-26 06:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:27:19] Production.INFO: ==19264== Releasing lock... [2024-12-26 06:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:27:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:28:05 [end_date_ymd] => 2024-12-26 06:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:28:18] Production.INFO: count ==15 [2024-12-26 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:28:05 - End Time 2024-12-26 06:28:05 [2024-12-26 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105023', 'tblTempUsageDetail_20' ) start [2024-12-26 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105023', 'tblTempUsageDetail_20' ) end [2024-12-26 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105023', 'tblTempVendorCDR_20' ) start [2024-12-26 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105023', 'tblTempVendorCDR_20' ) end [2024-12-26 06:28:18] Production.INFO: ProcessCDR(1,14105023,1,1,2) [2024-12-26 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105023', 'tblTempUsageDetail_20' ) start [2024-12-26 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105023', 'tblTempUsageDetail_20' ) end [2024-12-26 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:28:21] Production.INFO: ==19362== Releasing lock... [2024-12-26 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:29:05 [end_date_ymd] => 2024-12-26 06:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:29:18] Production.INFO: count ==15 [2024-12-26 06:29:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:29:05 - End Time 2024-12-26 06:29:05 [2024-12-26 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105028', 'tblTempUsageDetail_20' ) start [2024-12-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105028', 'tblTempUsageDetail_20' ) end [2024-12-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105028', 'tblTempVendorCDR_20' ) start [2024-12-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105028', 'tblTempVendorCDR_20' ) end [2024-12-26 06:29:18] Production.INFO: ProcessCDR(1,14105028,1,1,2) [2024-12-26 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105028', 'tblTempUsageDetail_20' ) start [2024-12-26 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105028', 'tblTempUsageDetail_20' ) end [2024-12-26 06:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:29:21] Production.INFO: ==19452== Releasing lock... [2024-12-26 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:30:05 [end_date_ymd] => 2024-12-26 06:30:05 [RateCDR] => 1 ) [2024-12-26 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:30:05' and `end` < '2024-12-26 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:30:18] Production.INFO: count ==11 [2024-12-26 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:30:05 - End Time 2024-12-26 06:30:05 [2024-12-26 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105033', 'tblTempUsageDetail_20' ) start [2024-12-26 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105033', 'tblTempUsageDetail_20' ) end [2024-12-26 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105033', 'tblTempVendorCDR_20' ) start [2024-12-26 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105033', 'tblTempVendorCDR_20' ) end [2024-12-26 06:30:18] Production.INFO: ProcessCDR(1,14105033,1,1,2) [2024-12-26 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105033', 'tblTempUsageDetail_20' ) start [2024-12-26 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105033', 'tblTempUsageDetail_20' ) end [2024-12-26 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:30:21] Production.INFO: ==19550== Releasing lock... [2024-12-26 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:31:05 [end_date_ymd] => 2024-12-26 06:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:31:18] Production.INFO: count ==12 [2024-12-26 06:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:31:05 - End Time 2024-12-26 06:31:05 [2024-12-26 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105039', 'tblTempUsageDetail_20' ) start [2024-12-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105039', 'tblTempUsageDetail_20' ) end [2024-12-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105039', 'tblTempVendorCDR_20' ) start [2024-12-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105039', 'tblTempVendorCDR_20' ) end [2024-12-26 06:31:18] Production.INFO: ProcessCDR(1,14105039,1,1,2) [2024-12-26 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105039', 'tblTempUsageDetail_20' ) start [2024-12-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105039', 'tblTempUsageDetail_20' ) end [2024-12-26 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:31:21] Production.INFO: ==19648== Releasing lock... [2024-12-26 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:32:04 [end_date_ymd] => 2024-12-26 06:32:04 [RateCDR] => 1 ) [2024-12-26 06:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:32:04' and `end` < '2024-12-26 06:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:32:17] Production.INFO: count ==12 [2024-12-26 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:32:04 - End Time 2024-12-26 06:32:04 [2024-12-26 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105044', 'tblTempUsageDetail_20' ) start [2024-12-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105044', 'tblTempUsageDetail_20' ) end [2024-12-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105044', 'tblTempVendorCDR_20' ) start [2024-12-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105044', 'tblTempVendorCDR_20' ) end [2024-12-26 06:32:17] Production.INFO: ProcessCDR(1,14105044,1,1,2) [2024-12-26 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105044', 'tblTempUsageDetail_20' ) start [2024-12-26 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105044', 'tblTempUsageDetail_20' ) end [2024-12-26 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:32:20] Production.INFO: ==19743== Releasing lock... [2024-12-26 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:33:05 [end_date_ymd] => 2024-12-26 06:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:33:17] Production.INFO: count ==12 [2024-12-26 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:33:05 - End Time 2024-12-26 06:33:05 [2024-12-26 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105049', 'tblTempUsageDetail_20' ) start [2024-12-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105049', 'tblTempUsageDetail_20' ) end [2024-12-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105049', 'tblTempVendorCDR_20' ) start [2024-12-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105049', 'tblTempVendorCDR_20' ) end [2024-12-26 06:33:17] Production.INFO: ProcessCDR(1,14105049,1,1,2) [2024-12-26 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105049', 'tblTempUsageDetail_20' ) start [2024-12-26 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105049', 'tblTempUsageDetail_20' ) end [2024-12-26 06:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:33:20] Production.INFO: ==19834== Releasing lock... [2024-12-26 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:34:05 [end_date_ymd] => 2024-12-26 06:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:34:19] Production.INFO: count ==12 [2024-12-26 06:34:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:34:05 - End Time 2024-12-26 06:34:05 [2024-12-26 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105054', 'tblTempUsageDetail_20' ) start [2024-12-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105054', 'tblTempUsageDetail_20' ) end [2024-12-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105054', 'tblTempVendorCDR_20' ) start [2024-12-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105054', 'tblTempVendorCDR_20' ) end [2024-12-26 06:34:19] Production.INFO: ProcessCDR(1,14105054,1,1,2) [2024-12-26 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105054', 'tblTempUsageDetail_20' ) start [2024-12-26 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105054', 'tblTempUsageDetail_20' ) end [2024-12-26 06:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:34:22] Production.INFO: ==19931== Releasing lock... [2024-12-26 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:35:05 [end_date_ymd] => 2024-12-26 06:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:35:18] Production.INFO: count ==12 [2024-12-26 06:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:35:05 - End Time 2024-12-26 06:35:05 [2024-12-26 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105059', 'tblTempUsageDetail_20' ) start [2024-12-26 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105059', 'tblTempUsageDetail_20' ) end [2024-12-26 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105059', 'tblTempVendorCDR_20' ) start [2024-12-26 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105059', 'tblTempVendorCDR_20' ) end [2024-12-26 06:35:18] Production.INFO: ProcessCDR(1,14105059,1,1,2) [2024-12-26 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105059', 'tblTempUsageDetail_20' ) start [2024-12-26 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105059', 'tblTempUsageDetail_20' ) end [2024-12-26 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:35:21] Production.INFO: ==20024== Releasing lock... [2024-12-26 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:36:05 [end_date_ymd] => 2024-12-26 06:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:36:17] Production.INFO: count ==12 [2024-12-26 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:36:05 - End Time 2024-12-26 06:36:05 [2024-12-26 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105064', 'tblTempUsageDetail_20' ) start [2024-12-26 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105064', 'tblTempUsageDetail_20' ) end [2024-12-26 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105064', 'tblTempVendorCDR_20' ) start [2024-12-26 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105064', 'tblTempVendorCDR_20' ) end [2024-12-26 06:36:17] Production.INFO: ProcessCDR(1,14105064,1,1,2) [2024-12-26 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105064', 'tblTempUsageDetail_20' ) start [2024-12-26 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105064', 'tblTempUsageDetail_20' ) end [2024-12-26 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:36:20] Production.INFO: ==20115== Releasing lock... [2024-12-26 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:37:05 [end_date_ymd] => 2024-12-26 06:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:37:17] Production.INFO: count ==12 [2024-12-26 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:37:05 - End Time 2024-12-26 06:37:05 [2024-12-26 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105069', 'tblTempUsageDetail_20' ) start [2024-12-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105069', 'tblTempUsageDetail_20' ) end [2024-12-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105069', 'tblTempVendorCDR_20' ) start [2024-12-26 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105069', 'tblTempVendorCDR_20' ) end [2024-12-26 06:37:17] Production.INFO: ProcessCDR(1,14105069,1,1,2) [2024-12-26 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105069', 'tblTempUsageDetail_20' ) start [2024-12-26 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105069', 'tblTempUsageDetail_20' ) end [2024-12-26 06:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:37:20] Production.INFO: ==20210== Releasing lock... [2024-12-26 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:38:05 [end_date_ymd] => 2024-12-26 06:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:38:18] Production.INFO: count ==12 [2024-12-26 06:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:38:05 - End Time 2024-12-26 06:38:05 [2024-12-26 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105074', 'tblTempUsageDetail_20' ) start [2024-12-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105074', 'tblTempUsageDetail_20' ) end [2024-12-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105074', 'tblTempVendorCDR_20' ) start [2024-12-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105074', 'tblTempVendorCDR_20' ) end [2024-12-26 06:38:18] Production.INFO: ProcessCDR(1,14105074,1,1,2) [2024-12-26 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105074', 'tblTempUsageDetail_20' ) start [2024-12-26 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105074', 'tblTempUsageDetail_20' ) end [2024-12-26 06:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:38:21] Production.INFO: ==20304== Releasing lock... [2024-12-26 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:39:04 [end_date_ymd] => 2024-12-26 06:39:04 [RateCDR] => 1 ) [2024-12-26 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:39:04' and `end` < '2024-12-26 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:39:17] Production.INFO: count ==12 [2024-12-26 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:39:04 - End Time 2024-12-26 06:39:04 [2024-12-26 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105079', 'tblTempUsageDetail_20' ) start [2024-12-26 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105079', 'tblTempUsageDetail_20' ) end [2024-12-26 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105079', 'tblTempVendorCDR_20' ) start [2024-12-26 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105079', 'tblTempVendorCDR_20' ) end [2024-12-26 06:39:17] Production.INFO: ProcessCDR(1,14105079,1,1,2) [2024-12-26 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105079', 'tblTempUsageDetail_20' ) start [2024-12-26 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105079', 'tblTempUsageDetail_20' ) end [2024-12-26 06:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:39:21] Production.INFO: ==20409== Releasing lock... [2024-12-26 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:40:06 [end_date_ymd] => 2024-12-26 06:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:40:18] Production.INFO: count ==10 [2024-12-26 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:40:06 - End Time 2024-12-26 06:40:06 [2024-12-26 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105085', 'tblTempUsageDetail_20' ) start [2024-12-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105085', 'tblTempUsageDetail_20' ) end [2024-12-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105085', 'tblTempVendorCDR_20' ) start [2024-12-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105085', 'tblTempVendorCDR_20' ) end [2024-12-26 06:40:18] Production.INFO: ProcessCDR(1,14105085,1,1,2) [2024-12-26 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105085', 'tblTempUsageDetail_20' ) start [2024-12-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105085', 'tblTempUsageDetail_20' ) end [2024-12-26 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:40:22] Production.INFO: ==20543== Releasing lock... [2024-12-26 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:40:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:41:05 [end_date_ymd] => 2024-12-26 06:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:41:18] Production.INFO: count ==10 [2024-12-26 06:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:41:05 - End Time 2024-12-26 06:41:05 [2024-12-26 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105090', 'tblTempUsageDetail_20' ) start [2024-12-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105090', 'tblTempUsageDetail_20' ) end [2024-12-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105090', 'tblTempVendorCDR_20' ) start [2024-12-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105090', 'tblTempVendorCDR_20' ) end [2024-12-26 06:41:18] Production.INFO: ProcessCDR(1,14105090,1,1,2) [2024-12-26 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105090', 'tblTempUsageDetail_20' ) start [2024-12-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105090', 'tblTempUsageDetail_20' ) end [2024-12-26 06:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:41:21] Production.INFO: ==20670== Releasing lock... [2024-12-26 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:42:05 [end_date_ymd] => 2024-12-26 06:42:05 [RateCDR] => 1 ) [2024-12-26 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:42:05' and `end` < '2024-12-26 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:42:17] Production.INFO: count ==10 [2024-12-26 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:42:05 - End Time 2024-12-26 06:42:05 [2024-12-26 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105095', 'tblTempUsageDetail_20' ) start [2024-12-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105095', 'tblTempUsageDetail_20' ) end [2024-12-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105095', 'tblTempVendorCDR_20' ) start [2024-12-26 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105095', 'tblTempVendorCDR_20' ) end [2024-12-26 06:42:17] Production.INFO: ProcessCDR(1,14105095,1,1,2) [2024-12-26 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105095', 'tblTempUsageDetail_20' ) start [2024-12-26 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105095', 'tblTempUsageDetail_20' ) end [2024-12-26 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:42:20] Production.INFO: ==20839== Releasing lock... [2024-12-26 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:43:04 [end_date_ymd] => 2024-12-26 06:43:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:43:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:43:18] Production.INFO: count ==10 [2024-12-26 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:43:04 - End Time 2024-12-26 06:43:04 [2024-12-26 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105100', 'tblTempUsageDetail_20' ) start [2024-12-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105100', 'tblTempUsageDetail_20' ) end [2024-12-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105100', 'tblTempVendorCDR_20' ) start [2024-12-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105100', 'tblTempVendorCDR_20' ) end [2024-12-26 06:43:18] Production.INFO: ProcessCDR(1,14105100,1,1,2) [2024-12-26 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105100', 'tblTempUsageDetail_20' ) start [2024-12-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105100', 'tblTempUsageDetail_20' ) end [2024-12-26 06:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:43:21] Production.INFO: ==20968== Releasing lock... [2024-12-26 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:44:06 [end_date_ymd] => 2024-12-26 06:44:06 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:44:06' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:44:19] Production.INFO: count ==10 [2024-12-26 06:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:44:06 - End Time 2024-12-26 06:44:06 [2024-12-26 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105105', 'tblTempUsageDetail_20' ) start [2024-12-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105105', 'tblTempUsageDetail_20' ) end [2024-12-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105105', 'tblTempVendorCDR_20' ) start [2024-12-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105105', 'tblTempVendorCDR_20' ) end [2024-12-26 06:44:19] Production.INFO: ProcessCDR(1,14105105,1,1,2) [2024-12-26 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105105', 'tblTempUsageDetail_20' ) start [2024-12-26 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105105', 'tblTempUsageDetail_20' ) end [2024-12-26 06:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:44:22] Production.INFO: ==21100== Releasing lock... [2024-12-26 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:44:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:45:04 [end_date_ymd] => 2024-12-26 06:45:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:45:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:45:17] Production.INFO: count ==10 [2024-12-26 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:45:04 - End Time 2024-12-26 06:45:04 [2024-12-26 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105110', 'tblTempUsageDetail_20' ) start [2024-12-26 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105110', 'tblTempUsageDetail_20' ) end [2024-12-26 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105110', 'tblTempVendorCDR_20' ) start [2024-12-26 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105110', 'tblTempVendorCDR_20' ) end [2024-12-26 06:45:17] Production.INFO: ProcessCDR(1,14105110,1,1,2) [2024-12-26 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105110', 'tblTempUsageDetail_20' ) start [2024-12-26 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105110', 'tblTempUsageDetail_20' ) end [2024-12-26 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:45:20] Production.INFO: ==21224== Releasing lock... [2024-12-26 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:46:05 [end_date_ymd] => 2024-12-26 06:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:46:17] Production.INFO: count ==10 [2024-12-26 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:46:05 - End Time 2024-12-26 06:46:05 [2024-12-26 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105115', 'tblTempUsageDetail_20' ) start [2024-12-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105115', 'tblTempUsageDetail_20' ) end [2024-12-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105115', 'tblTempVendorCDR_20' ) start [2024-12-26 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105115', 'tblTempVendorCDR_20' ) end [2024-12-26 06:46:17] Production.INFO: ProcessCDR(1,14105115,1,1,2) [2024-12-26 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105115', 'tblTempUsageDetail_20' ) start [2024-12-26 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105115', 'tblTempUsageDetail_20' ) end [2024-12-26 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:46:20] Production.INFO: ==21351== Releasing lock... [2024-12-26 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:47:04 [end_date_ymd] => 2024-12-26 06:47:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:47:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:47:17] Production.INFO: count ==10 [2024-12-26 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:47:04 - End Time 2024-12-26 06:47:04 [2024-12-26 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105120', 'tblTempUsageDetail_20' ) start [2024-12-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105120', 'tblTempUsageDetail_20' ) end [2024-12-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105120', 'tblTempVendorCDR_20' ) start [2024-12-26 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105120', 'tblTempVendorCDR_20' ) end [2024-12-26 06:47:17] Production.INFO: ProcessCDR(1,14105120,1,1,2) [2024-12-26 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105120', 'tblTempUsageDetail_20' ) start [2024-12-26 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105120', 'tblTempUsageDetail_20' ) end [2024-12-26 06:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:47:21] Production.INFO: ==21475== Releasing lock... [2024-12-26 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:48:05 [end_date_ymd] => 2024-12-26 06:48:05 [RateCDR] => 1 ) [2024-12-26 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:48:05' and `end` < '2024-12-26 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:48:17] Production.INFO: count ==10 [2024-12-26 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:48:05 - End Time 2024-12-26 06:48:05 [2024-12-26 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105125', 'tblTempUsageDetail_20' ) start [2024-12-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105125', 'tblTempUsageDetail_20' ) end [2024-12-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105125', 'tblTempVendorCDR_20' ) start [2024-12-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105125', 'tblTempVendorCDR_20' ) end [2024-12-26 06:48:17] Production.INFO: ProcessCDR(1,14105125,1,1,2) [2024-12-26 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105125', 'tblTempUsageDetail_20' ) start [2024-12-26 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105125', 'tblTempUsageDetail_20' ) end [2024-12-26 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:48:20] Production.INFO: ==21604== Releasing lock... [2024-12-26 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:49:05 [end_date_ymd] => 2024-12-26 06:49:05 [RateCDR] => 1 ) [2024-12-26 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 03:49:05' and `end` < '2024-12-26 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:49:19] Production.INFO: count ==10 [2024-12-26 06:49:19] Production.ERROR: pbx CDR StartTime 2024-12-26 03:49:05 - End Time 2024-12-26 06:49:05 [2024-12-26 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105130', 'tblTempUsageDetail_20' ) start [2024-12-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105130', 'tblTempUsageDetail_20' ) end [2024-12-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105130', 'tblTempVendorCDR_20' ) start [2024-12-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105130', 'tblTempVendorCDR_20' ) end [2024-12-26 06:49:19] Production.INFO: ProcessCDR(1,14105130,1,1,2) [2024-12-26 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105130', 'tblTempUsageDetail_20' ) start [2024-12-26 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105130', 'tblTempUsageDetail_20' ) end [2024-12-26 06:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:49:23] Production.INFO: ==21730== Releasing lock... [2024-12-26 06:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:49:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:50:05 [end_date_ymd] => 2024-12-26 06:50:05 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:50:05' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:50:18] Production.INFO: count ==10 [2024-12-26 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:50:05 - End Time 2024-12-26 06:50:05 [2024-12-26 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105136', 'tblTempUsageDetail_20' ) start [2024-12-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105136', 'tblTempUsageDetail_20' ) end [2024-12-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105136', 'tblTempVendorCDR_20' ) start [2024-12-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105136', 'tblTempVendorCDR_20' ) end [2024-12-26 06:50:18] Production.INFO: ProcessCDR(1,14105136,1,1,2) [2024-12-26 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105136', 'tblTempUsageDetail_20' ) start [2024-12-26 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105136', 'tblTempUsageDetail_20' ) end [2024-12-26 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:50:21] Production.INFO: ==21854== Releasing lock... [2024-12-26 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:51:05 [end_date_ymd] => 2024-12-26 06:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:51:18] Production.INFO: count ==10 [2024-12-26 06:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:51:05 - End Time 2024-12-26 06:51:05 [2024-12-26 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105141', 'tblTempUsageDetail_20' ) start [2024-12-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105141', 'tblTempUsageDetail_20' ) end [2024-12-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105141', 'tblTempVendorCDR_20' ) start [2024-12-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105141', 'tblTempVendorCDR_20' ) end [2024-12-26 06:51:18] Production.INFO: ProcessCDR(1,14105141,1,1,2) [2024-12-26 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105141', 'tblTempUsageDetail_20' ) start [2024-12-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105141', 'tblTempUsageDetail_20' ) end [2024-12-26 06:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:51:21] Production.INFO: ==21983== Releasing lock... [2024-12-26 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:52:04 [end_date_ymd] => 2024-12-26 06:52:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:52:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:52:18] Production.INFO: count ==10 [2024-12-26 06:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 03:52:04 - End Time 2024-12-26 06:52:04 [2024-12-26 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105146', 'tblTempUsageDetail_20' ) start [2024-12-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105146', 'tblTempUsageDetail_20' ) end [2024-12-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105146', 'tblTempVendorCDR_20' ) start [2024-12-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105146', 'tblTempVendorCDR_20' ) end [2024-12-26 06:52:18] Production.INFO: ProcessCDR(1,14105146,1,1,2) [2024-12-26 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105146', 'tblTempUsageDetail_20' ) start [2024-12-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105146', 'tblTempUsageDetail_20' ) end [2024-12-26 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:52:21] Production.INFO: ==22109== Releasing lock... [2024-12-26 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:53:05 [end_date_ymd] => 2024-12-26 06:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:53:17] Production.INFO: count ==10 [2024-12-26 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:53:05 - End Time 2024-12-26 06:53:05 [2024-12-26 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105151', 'tblTempUsageDetail_20' ) start [2024-12-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105151', 'tblTempUsageDetail_20' ) end [2024-12-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105151', 'tblTempVendorCDR_20' ) start [2024-12-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105151', 'tblTempVendorCDR_20' ) end [2024-12-26 06:53:17] Production.INFO: ProcessCDR(1,14105151,1,1,2) [2024-12-26 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105151', 'tblTempUsageDetail_20' ) start [2024-12-26 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105151', 'tblTempUsageDetail_20' ) end [2024-12-26 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:53:21] Production.INFO: ==22234== Releasing lock... [2024-12-26 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:54:04 [end_date_ymd] => 2024-12-26 06:54:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:54:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:54:17] Production.INFO: count ==10 [2024-12-26 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:54:04 - End Time 2024-12-26 06:54:04 [2024-12-26 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105156', 'tblTempUsageDetail_20' ) start [2024-12-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105156', 'tblTempUsageDetail_20' ) end [2024-12-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105156', 'tblTempVendorCDR_20' ) start [2024-12-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105156', 'tblTempVendorCDR_20' ) end [2024-12-26 06:54:17] Production.INFO: ProcessCDR(1,14105156,1,1,2) [2024-12-26 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105156', 'tblTempUsageDetail_20' ) start [2024-12-26 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105156', 'tblTempUsageDetail_20' ) end [2024-12-26 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:54:20] Production.INFO: ==22347== Releasing lock... [2024-12-26 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:55:05 [end_date_ymd] => 2024-12-26 06:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:55:17] Production.INFO: count ==10 [2024-12-26 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:55:05 - End Time 2024-12-26 06:55:05 [2024-12-26 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105161', 'tblTempUsageDetail_20' ) start [2024-12-26 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105161', 'tblTempUsageDetail_20' ) end [2024-12-26 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105161', 'tblTempVendorCDR_20' ) start [2024-12-26 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105161', 'tblTempVendorCDR_20' ) end [2024-12-26 06:55:17] Production.INFO: ProcessCDR(1,14105161,1,1,2) [2024-12-26 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105161', 'tblTempUsageDetail_20' ) start [2024-12-26 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105161', 'tblTempUsageDetail_20' ) end [2024-12-26 06:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:55:21] Production.INFO: ==22437== Releasing lock... [2024-12-26 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:55:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:56:04 [end_date_ymd] => 2024-12-26 06:56:04 [RateCDR] => 1 ) [2024-12-26 06:56: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` >= '2024-12-26 03:56:04' and `end` < '2024-12-26 06:56: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 ,'') [2024-12-26 06:56:17] Production.INFO: count ==10 [2024-12-26 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:56:04 - End Time 2024-12-26 06:56:04 [2024-12-26 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105166', 'tblTempUsageDetail_20' ) start [2024-12-26 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105166', 'tblTempUsageDetail_20' ) end [2024-12-26 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105166', 'tblTempVendorCDR_20' ) start [2024-12-26 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105166', 'tblTempVendorCDR_20' ) end [2024-12-26 06:56:17] Production.INFO: ProcessCDR(1,14105166,1,1,2) [2024-12-26 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105166', 'tblTempUsageDetail_20' ) start [2024-12-26 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105166', 'tblTempUsageDetail_20' ) end [2024-12-26 06:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:56:21] Production.INFO: ==22526== Releasing lock... [2024-12-26 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:56:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:57:05 [end_date_ymd] => 2024-12-26 06:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 06:57:17] Production.INFO: count ==10 [2024-12-26 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:57:05 - End Time 2024-12-26 06:57:05 [2024-12-26 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105171', 'tblTempUsageDetail_20' ) start [2024-12-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105171', 'tblTempUsageDetail_20' ) end [2024-12-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105171', 'tblTempVendorCDR_20' ) start [2024-12-26 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105171', 'tblTempVendorCDR_20' ) end [2024-12-26 06:57:17] Production.INFO: ProcessCDR(1,14105171,1,1,2) [2024-12-26 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105171', 'tblTempUsageDetail_20' ) start [2024-12-26 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105171', 'tblTempUsageDetail_20' ) end [2024-12-26 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:57:20] Production.INFO: ==22660== Releasing lock... [2024-12-26 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:58:04 [end_date_ymd] => 2024-12-26 06:58:04 [RateCDR] => 1 ) [2024-12-26 06: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` >= '2024-12-26 03:58:04' and `end` < '2024-12-26 06: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 ,'') [2024-12-26 06:58:17] Production.INFO: count ==10 [2024-12-26 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:58:04 - End Time 2024-12-26 06:58:04 [2024-12-26 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105176', 'tblTempUsageDetail_20' ) start [2024-12-26 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105176', 'tblTempUsageDetail_20' ) end [2024-12-26 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105176', 'tblTempVendorCDR_20' ) start [2024-12-26 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105176', 'tblTempVendorCDR_20' ) end [2024-12-26 06:58:17] Production.INFO: ProcessCDR(1,14105176,1,1,2) [2024-12-26 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105176', 'tblTempUsageDetail_20' ) start [2024-12-26 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105176', 'tblTempUsageDetail_20' ) end [2024-12-26 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:58:21] Production.INFO: ==22753== Releasing lock... [2024-12-26 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 03:59:04 [end_date_ymd] => 2024-12-26 06:59:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 03:59:04' and `end` < '2024-12-26 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 06:59:17] Production.INFO: count ==10 [2024-12-26 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-26 03:59:04 - End Time 2024-12-26 06:59:04 [2024-12-26 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105181', 'tblTempUsageDetail_20' ) start [2024-12-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105181', 'tblTempUsageDetail_20' ) end [2024-12-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105181', 'tblTempVendorCDR_20' ) start [2024-12-26 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105181', 'tblTempVendorCDR_20' ) end [2024-12-26 06:59:17] Production.INFO: ProcessCDR(1,14105181,1,1,2) [2024-12-26 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105181', 'tblTempUsageDetail_20' ) start [2024-12-26 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105181', 'tblTempUsageDetail_20' ) end [2024-12-26 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 06:59:20] Production.INFO: ==22844== Releasing lock... [2024-12-26 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 06:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:00:06 [end_date_ymd] => 2024-12-26 07:00:06 [RateCDR] => 1 ) [2024-12-26 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:00:06' and `end` < '2024-12-26 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:00:18] Production.INFO: count ==10 [2024-12-26 07:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:00:06 - End Time 2024-12-26 07:00:06 [2024-12-26 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105187', 'tblTempUsageDetail_20' ) start [2024-12-26 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105187', 'tblTempUsageDetail_20' ) end [2024-12-26 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105187', 'tblTempVendorCDR_20' ) start [2024-12-26 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105187', 'tblTempVendorCDR_20' ) end [2024-12-26 07:00:18] Production.INFO: ProcessCDR(1,14105187,1,1,2) [2024-12-26 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105187', 'tblTempUsageDetail_20' ) start [2024-12-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105187', 'tblTempUsageDetail_20' ) end [2024-12-26 07:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:00:22] Production.INFO: ==22947== Releasing lock... [2024-12-26 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:00:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:01:05 [end_date_ymd] => 2024-12-26 07:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:01:20] Production.INFO: count ==10 [2024-12-26 07:01:20] Production.ERROR: pbx CDR StartTime 2024-12-26 04:01:05 - End Time 2024-12-26 07:01:05 [2024-12-26 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105192', 'tblTempUsageDetail_20' ) start [2024-12-26 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105192', 'tblTempUsageDetail_20' ) end [2024-12-26 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105192', 'tblTempVendorCDR_20' ) start [2024-12-26 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105192', 'tblTempVendorCDR_20' ) end [2024-12-26 07:01:20] Production.INFO: ProcessCDR(1,14105192,1,1,2) [2024-12-26 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105192', 'tblTempUsageDetail_20' ) start [2024-12-26 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105192', 'tblTempUsageDetail_20' ) end [2024-12-26 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:01:23] Production.INFO: ==23131== Releasing lock... [2024-12-26 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:02:05 [end_date_ymd] => 2024-12-26 07:02:05 [RateCDR] => 1 ) [2024-12-26 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:02:05' and `end` < '2024-12-26 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:02:19] Production.INFO: count ==10 [2024-12-26 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:02:05 - End Time 2024-12-26 07:02:05 [2024-12-26 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105197', 'tblTempUsageDetail_20' ) start [2024-12-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105197', 'tblTempUsageDetail_20' ) end [2024-12-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105197', 'tblTempVendorCDR_20' ) start [2024-12-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105197', 'tblTempVendorCDR_20' ) end [2024-12-26 07:02:19] Production.INFO: ProcessCDR(1,14105197,1,1,2) [2024-12-26 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105197', 'tblTempUsageDetail_20' ) start [2024-12-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105197', 'tblTempUsageDetail_20' ) end [2024-12-26 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:02:22] Production.INFO: ==23223== Releasing lock... [2024-12-26 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:03:05 [end_date_ymd] => 2024-12-26 07:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:03:18] Production.INFO: count ==10 [2024-12-26 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:03:05 - End Time 2024-12-26 07:03:05 [2024-12-26 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105202', 'tblTempUsageDetail_20' ) start [2024-12-26 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105202', 'tblTempUsageDetail_20' ) end [2024-12-26 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105202', 'tblTempVendorCDR_20' ) start [2024-12-26 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105202', 'tblTempVendorCDR_20' ) end [2024-12-26 07:03:18] Production.INFO: ProcessCDR(1,14105202,1,1,2) [2024-12-26 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105202', 'tblTempUsageDetail_20' ) start [2024-12-26 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105202', 'tblTempUsageDetail_20' ) end [2024-12-26 07:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:03:22] Production.INFO: ==23314== Releasing lock... [2024-12-26 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:04:05 [end_date_ymd] => 2024-12-26 07:04:05 [RateCDR] => 1 ) [2024-12-26 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:04:05' and `end` < '2024-12-26 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:04:18] Production.INFO: count ==10 [2024-12-26 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:04:05 - End Time 2024-12-26 07:04:05 [2024-12-26 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105207', 'tblTempUsageDetail_20' ) start [2024-12-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105207', 'tblTempUsageDetail_20' ) end [2024-12-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105207', 'tblTempVendorCDR_20' ) start [2024-12-26 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105207', 'tblTempVendorCDR_20' ) end [2024-12-26 07:04:18] Production.INFO: ProcessCDR(1,14105207,1,1,2) [2024-12-26 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105207', 'tblTempUsageDetail_20' ) start [2024-12-26 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105207', 'tblTempUsageDetail_20' ) end [2024-12-26 07:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:04:21] Production.INFO: ==23400== Releasing lock... [2024-12-26 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:05:05 [end_date_ymd] => 2024-12-26 07:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:05:18] Production.INFO: count ==10 [2024-12-26 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:05:05 - End Time 2024-12-26 07:05:05 [2024-12-26 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105212', 'tblTempUsageDetail_20' ) start [2024-12-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105212', 'tblTempUsageDetail_20' ) end [2024-12-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105212', 'tblTempVendorCDR_20' ) start [2024-12-26 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105212', 'tblTempVendorCDR_20' ) end [2024-12-26 07:05:18] Production.INFO: ProcessCDR(1,14105212,1,1,2) [2024-12-26 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105212', 'tblTempUsageDetail_20' ) start [2024-12-26 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105212', 'tblTempUsageDetail_20' ) end [2024-12-26 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:05:21] Production.INFO: ==23571== Releasing lock... [2024-12-26 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:06:05 [end_date_ymd] => 2024-12-26 07:06:05 [RateCDR] => 1 ) [2024-12-26 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:06:05' and `end` < '2024-12-26 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:06:19] Production.INFO: count ==10 [2024-12-26 07:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:06:05 - End Time 2024-12-26 07:06:05 [2024-12-26 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105217', 'tblTempUsageDetail_20' ) start [2024-12-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105217', 'tblTempUsageDetail_20' ) end [2024-12-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105217', 'tblTempVendorCDR_20' ) start [2024-12-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105217', 'tblTempVendorCDR_20' ) end [2024-12-26 07:06:19] Production.INFO: ProcessCDR(1,14105217,1,1,2) [2024-12-26 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105217', 'tblTempUsageDetail_20' ) start [2024-12-26 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105217', 'tblTempUsageDetail_20' ) end [2024-12-26 07:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:06:22] Production.INFO: ==23662== Releasing lock... [2024-12-26 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:07:05 [end_date_ymd] => 2024-12-26 07:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:07:17] Production.INFO: count ==10 [2024-12-26 07:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:07:05 - End Time 2024-12-26 07:07:05 [2024-12-26 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105222', 'tblTempUsageDetail_20' ) start [2024-12-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105222', 'tblTempUsageDetail_20' ) end [2024-12-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105222', 'tblTempVendorCDR_20' ) start [2024-12-26 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105222', 'tblTempVendorCDR_20' ) end [2024-12-26 07:07:17] Production.INFO: ProcessCDR(1,14105222,1,1,2) [2024-12-26 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105222', 'tblTempUsageDetail_20' ) start [2024-12-26 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105222', 'tblTempUsageDetail_20' ) end [2024-12-26 07:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:07:20] Production.INFO: ==23754== Releasing lock... [2024-12-26 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:07:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:08:05 [end_date_ymd] => 2024-12-26 07:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:08:18] Production.INFO: count ==11 [2024-12-26 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:08:05 - End Time 2024-12-26 07:08:05 [2024-12-26 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105227', 'tblTempUsageDetail_20' ) start [2024-12-26 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105227', 'tblTempUsageDetail_20' ) end [2024-12-26 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105227', 'tblTempVendorCDR_20' ) start [2024-12-26 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105227', 'tblTempVendorCDR_20' ) end [2024-12-26 07:08:18] Production.INFO: ProcessCDR(1,14105227,1,1,2) [2024-12-26 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105227', 'tblTempUsageDetail_20' ) start [2024-12-26 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105227', 'tblTempUsageDetail_20' ) end [2024-12-26 07:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:08:23] Production.INFO: ==23925== Releasing lock... [2024-12-26 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:08:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:09:05 [end_date_ymd] => 2024-12-26 07:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:09:19] Production.INFO: count ==11 [2024-12-26 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:09:05 - End Time 2024-12-26 07:09:05 [2024-12-26 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105232', 'tblTempUsageDetail_20' ) start [2024-12-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105232', 'tblTempUsageDetail_20' ) end [2024-12-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105232', 'tblTempVendorCDR_20' ) start [2024-12-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105232', 'tblTempVendorCDR_20' ) end [2024-12-26 07:09:19] Production.INFO: ProcessCDR(1,14105232,1,1,2) [2024-12-26 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105232', 'tblTempUsageDetail_20' ) start [2024-12-26 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105232', 'tblTempUsageDetail_20' ) end [2024-12-26 07:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:09:25] Production.INFO: ==24015== Releasing lock... [2024-12-26 07:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:09:25] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:10:06 [end_date_ymd] => 2024-12-26 07:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:10:18] Production.INFO: count ==9 [2024-12-26 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:10:06 - End Time 2024-12-26 07:10:06 [2024-12-26 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105237', 'tblTempUsageDetail_20' ) start [2024-12-26 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105237', 'tblTempUsageDetail_20' ) end [2024-12-26 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105237', 'tblTempVendorCDR_20' ) start [2024-12-26 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105237', 'tblTempVendorCDR_20' ) end [2024-12-26 07:10:18] Production.INFO: ProcessCDR(1,14105237,1,1,2) [2024-12-26 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105237', 'tblTempUsageDetail_20' ) start [2024-12-26 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105237', 'tblTempUsageDetail_20' ) end [2024-12-26 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:10:22] Production.INFO: ==24115== Releasing lock... [2024-12-26 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:11:05 [end_date_ymd] => 2024-12-26 07:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:11:19] Production.INFO: count ==9 [2024-12-26 07:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:11:05 - End Time 2024-12-26 07:11:05 [2024-12-26 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105243', 'tblTempUsageDetail_20' ) start [2024-12-26 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105243', 'tblTempUsageDetail_20' ) end [2024-12-26 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105243', 'tblTempVendorCDR_20' ) start [2024-12-26 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105243', 'tblTempVendorCDR_20' ) end [2024-12-26 07:11:19] Production.INFO: ProcessCDR(1,14105243,1,1,2) [2024-12-26 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105243', 'tblTempUsageDetail_20' ) start [2024-12-26 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105243', 'tblTempUsageDetail_20' ) end [2024-12-26 07:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:11:22] Production.INFO: ==24216== Releasing lock... [2024-12-26 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:12:05 [end_date_ymd] => 2024-12-26 07:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:12:18] Production.INFO: count ==9 [2024-12-26 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:12:05 - End Time 2024-12-26 07:12:05 [2024-12-26 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105248', 'tblTempUsageDetail_20' ) start [2024-12-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105248', 'tblTempUsageDetail_20' ) end [2024-12-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105248', 'tblTempVendorCDR_20' ) start [2024-12-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105248', 'tblTempVendorCDR_20' ) end [2024-12-26 07:12:18] Production.INFO: ProcessCDR(1,14105248,1,1,2) [2024-12-26 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105248', 'tblTempUsageDetail_20' ) start [2024-12-26 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105248', 'tblTempUsageDetail_20' ) end [2024-12-26 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:12:21] Production.INFO: ==24381== Releasing lock... [2024-12-26 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:13:05 [end_date_ymd] => 2024-12-26 07:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:13:18] Production.INFO: count ==9 [2024-12-26 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:13:05 - End Time 2024-12-26 07:13:05 [2024-12-26 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105253', 'tblTempUsageDetail_20' ) start [2024-12-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105253', 'tblTempUsageDetail_20' ) end [2024-12-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105253', 'tblTempVendorCDR_20' ) start [2024-12-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105253', 'tblTempVendorCDR_20' ) end [2024-12-26 07:13:18] Production.INFO: ProcessCDR(1,14105253,1,1,2) [2024-12-26 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105253', 'tblTempUsageDetail_20' ) start [2024-12-26 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105253', 'tblTempUsageDetail_20' ) end [2024-12-26 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:13:21] Production.INFO: ==24513== Releasing lock... [2024-12-26 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:14:04 [end_date_ymd] => 2024-12-26 07:14:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:14:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:14:18] Production.INFO: count ==9 [2024-12-26 07:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:14:04 - End Time 2024-12-26 07:14:04 [2024-12-26 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105258', 'tblTempUsageDetail_20' ) start [2024-12-26 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105258', 'tblTempUsageDetail_20' ) end [2024-12-26 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105258', 'tblTempVendorCDR_20' ) start [2024-12-26 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105258', 'tblTempVendorCDR_20' ) end [2024-12-26 07:14:18] Production.INFO: ProcessCDR(1,14105258,1,1,2) [2024-12-26 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105258', 'tblTempUsageDetail_20' ) start [2024-12-26 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105258', 'tblTempUsageDetail_20' ) end [2024-12-26 07:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:14:21] Production.INFO: ==24606== Releasing lock... [2024-12-26 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:15:05 [end_date_ymd] => 2024-12-26 07:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:15:17] Production.INFO: count ==9 [2024-12-26 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:15:05 - End Time 2024-12-26 07:15:05 [2024-12-26 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105263', 'tblTempUsageDetail_20' ) start [2024-12-26 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105263', 'tblTempUsageDetail_20' ) end [2024-12-26 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105263', 'tblTempVendorCDR_20' ) start [2024-12-26 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105263', 'tblTempVendorCDR_20' ) end [2024-12-26 07:15:17] Production.INFO: ProcessCDR(1,14105263,1,1,2) [2024-12-26 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105263', 'tblTempUsageDetail_20' ) start [2024-12-26 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105263', 'tblTempUsageDetail_20' ) end [2024-12-26 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:15:20] Production.INFO: ==24777== Releasing lock... [2024-12-26 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:16:05 [end_date_ymd] => 2024-12-26 07:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:16:18] Production.INFO: count ==9 [2024-12-26 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:16:05 - End Time 2024-12-26 07:16:05 [2024-12-26 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105268', 'tblTempUsageDetail_20' ) start [2024-12-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105268', 'tblTempUsageDetail_20' ) end [2024-12-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105268', 'tblTempVendorCDR_20' ) start [2024-12-26 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105268', 'tblTempVendorCDR_20' ) end [2024-12-26 07:16:18] Production.INFO: ProcessCDR(1,14105268,1,1,2) [2024-12-26 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105268', 'tblTempUsageDetail_20' ) start [2024-12-26 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105268', 'tblTempUsageDetail_20' ) end [2024-12-26 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:16:21] Production.INFO: ==24871== Releasing lock... [2024-12-26 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:17:04 [end_date_ymd] => 2024-12-26 07:17:04 [RateCDR] => 1 ) [2024-12-26 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:17:04' and `end` < '2024-12-26 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:17:18] Production.INFO: count ==9 [2024-12-26 07:17:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:17:04 - End Time 2024-12-26 07:17:04 [2024-12-26 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105273', 'tblTempUsageDetail_20' ) start [2024-12-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105273', 'tblTempUsageDetail_20' ) end [2024-12-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105273', 'tblTempVendorCDR_20' ) start [2024-12-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105273', 'tblTempVendorCDR_20' ) end [2024-12-26 07:17:18] Production.INFO: ProcessCDR(1,14105273,1,1,2) [2024-12-26 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105273', 'tblTempUsageDetail_20' ) start [2024-12-26 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105273', 'tblTempUsageDetail_20' ) end [2024-12-26 07:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:17:21] Production.INFO: ==24961== Releasing lock... [2024-12-26 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:18:04 [end_date_ymd] => 2024-12-26 07:18:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:18:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:18:17] Production.INFO: count ==9 [2024-12-26 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:18:04 - End Time 2024-12-26 07:18:04 [2024-12-26 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105277', 'tblTempUsageDetail_20' ) start [2024-12-26 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105277', 'tblTempUsageDetail_20' ) end [2024-12-26 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105277', 'tblTempVendorCDR_20' ) start [2024-12-26 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105277', 'tblTempVendorCDR_20' ) end [2024-12-26 07:18:17] Production.INFO: ProcessCDR(1,14105277,1,1,2) [2024-12-26 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105277', 'tblTempUsageDetail_20' ) start [2024-12-26 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105277', 'tblTempUsageDetail_20' ) end [2024-12-26 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:18:20] Production.INFO: ==25050== Releasing lock... [2024-12-26 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:19:05 [end_date_ymd] => 2024-12-26 07:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:19:19] Production.INFO: count ==9 [2024-12-26 07:19:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:19:05 - End Time 2024-12-26 07:19:05 [2024-12-26 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105283', 'tblTempUsageDetail_20' ) start [2024-12-26 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105283', 'tblTempUsageDetail_20' ) end [2024-12-26 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105283', 'tblTempVendorCDR_20' ) start [2024-12-26 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105283', 'tblTempVendorCDR_20' ) end [2024-12-26 07:19:19] Production.INFO: ProcessCDR(1,14105283,1,1,2) [2024-12-26 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105283', 'tblTempUsageDetail_20' ) start [2024-12-26 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105283', 'tblTempUsageDetail_20' ) end [2024-12-26 07:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:19:22] Production.INFO: ==25156== Releasing lock... [2024-12-26 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:19:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:20:05 [end_date_ymd] => 2024-12-26 07:20:05 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:20:05' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:20:17] Production.INFO: count ==7 [2024-12-26 07:20:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:20:05 - End Time 2024-12-26 07:20:05 [2024-12-26 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105289', 'tblTempUsageDetail_20' ) start [2024-12-26 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105289', 'tblTempUsageDetail_20' ) end [2024-12-26 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105289', 'tblTempVendorCDR_20' ) start [2024-12-26 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105289', 'tblTempVendorCDR_20' ) end [2024-12-26 07:20:17] Production.INFO: ProcessCDR(1,14105289,1,1,2) [2024-12-26 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105289', 'tblTempUsageDetail_20' ) start [2024-12-26 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105289', 'tblTempUsageDetail_20' ) end [2024-12-26 07:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:20:20] Production.INFO: ==25248== Releasing lock... [2024-12-26 07:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:21:05 [end_date_ymd] => 2024-12-26 07:21:05 [RateCDR] => 1 ) [2024-12-26 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:21:05' and `end` < '2024-12-26 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:21:19] Production.INFO: count ==7 [2024-12-26 07:21:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:21:05 - End Time 2024-12-26 07:21:05 [2024-12-26 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105294', 'tblTempUsageDetail_20' ) start [2024-12-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105294', 'tblTempUsageDetail_20' ) end [2024-12-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105294', 'tblTempVendorCDR_20' ) start [2024-12-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105294', 'tblTempVendorCDR_20' ) end [2024-12-26 07:21:19] Production.INFO: ProcessCDR(1,14105294,1,1,2) [2024-12-26 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105294', 'tblTempUsageDetail_20' ) start [2024-12-26 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105294', 'tblTempUsageDetail_20' ) end [2024-12-26 07:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:21:23] Production.INFO: ==25341== Releasing lock... [2024-12-26 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:21:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:22:05 [end_date_ymd] => 2024-12-26 07:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:22:17] Production.INFO: count ==7 [2024-12-26 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:22:05 - End Time 2024-12-26 07:22:05 [2024-12-26 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105299', 'tblTempUsageDetail_20' ) start [2024-12-26 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105299', 'tblTempUsageDetail_20' ) end [2024-12-26 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105299', 'tblTempVendorCDR_20' ) start [2024-12-26 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105299', 'tblTempVendorCDR_20' ) end [2024-12-26 07:22:17] Production.INFO: ProcessCDR(1,14105299,1,1,2) [2024-12-26 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105299', 'tblTempUsageDetail_20' ) start [2024-12-26 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105299', 'tblTempUsageDetail_20' ) end [2024-12-26 07:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:22:20] Production.INFO: ==25429== Releasing lock... [2024-12-26 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:23:04 [end_date_ymd] => 2024-12-26 07:23:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:23:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:23:18] Production.INFO: count ==7 [2024-12-26 07:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:23:04 - End Time 2024-12-26 07:23:04 [2024-12-26 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105304', 'tblTempUsageDetail_20' ) start [2024-12-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105304', 'tblTempUsageDetail_20' ) end [2024-12-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105304', 'tblTempVendorCDR_20' ) start [2024-12-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105304', 'tblTempVendorCDR_20' ) end [2024-12-26 07:23:18] Production.INFO: ProcessCDR(1,14105304,1,1,2) [2024-12-26 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105304', 'tblTempUsageDetail_20' ) start [2024-12-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105304', 'tblTempUsageDetail_20' ) end [2024-12-26 07:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:23:21] Production.INFO: ==25516== Releasing lock... [2024-12-26 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:24:05 [end_date_ymd] => 2024-12-26 07:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:24:17] Production.INFO: count ==7 [2024-12-26 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:24:05 - End Time 2024-12-26 07:24:05 [2024-12-26 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105309', 'tblTempUsageDetail_20' ) start [2024-12-26 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105309', 'tblTempUsageDetail_20' ) end [2024-12-26 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105309', 'tblTempVendorCDR_20' ) start [2024-12-26 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105309', 'tblTempVendorCDR_20' ) end [2024-12-26 07:24:17] Production.INFO: ProcessCDR(1,14105309,1,1,2) [2024-12-26 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105309', 'tblTempUsageDetail_20' ) start [2024-12-26 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105309', 'tblTempUsageDetail_20' ) end [2024-12-26 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:24:21] Production.INFO: ==25605== Releasing lock... [2024-12-26 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:25:05 [end_date_ymd] => 2024-12-26 07:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:25:17] Production.INFO: count ==7 [2024-12-26 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:25:05 - End Time 2024-12-26 07:25:05 [2024-12-26 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105314', 'tblTempUsageDetail_20' ) start [2024-12-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105314', 'tblTempUsageDetail_20' ) end [2024-12-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105314', 'tblTempVendorCDR_20' ) start [2024-12-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105314', 'tblTempVendorCDR_20' ) end [2024-12-26 07:25:17] Production.INFO: ProcessCDR(1,14105314,1,1,2) [2024-12-26 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105314', 'tblTempUsageDetail_20' ) start [2024-12-26 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105314', 'tblTempUsageDetail_20' ) end [2024-12-26 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:25:20] Production.INFO: ==25693== Releasing lock... [2024-12-26 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:26:05 [end_date_ymd] => 2024-12-26 07:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:26:18] Production.INFO: count ==7 [2024-12-26 07:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:26:05 - End Time 2024-12-26 07:26:05 [2024-12-26 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105319', 'tblTempUsageDetail_20' ) start [2024-12-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105319', 'tblTempUsageDetail_20' ) end [2024-12-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105319', 'tblTempVendorCDR_20' ) start [2024-12-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105319', 'tblTempVendorCDR_20' ) end [2024-12-26 07:26:18] Production.INFO: ProcessCDR(1,14105319,1,1,2) [2024-12-26 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105319', 'tblTempUsageDetail_20' ) start [2024-12-26 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105319', 'tblTempUsageDetail_20' ) end [2024-12-26 07:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:26:21] Production.INFO: ==25782== Releasing lock... [2024-12-26 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:27:04 [end_date_ymd] => 2024-12-26 07:27:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:27:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:27:17] Production.INFO: count ==7 [2024-12-26 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:27:04 - End Time 2024-12-26 07:27:04 [2024-12-26 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105324', 'tblTempUsageDetail_20' ) start [2024-12-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105324', 'tblTempUsageDetail_20' ) end [2024-12-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105324', 'tblTempVendorCDR_20' ) start [2024-12-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105324', 'tblTempVendorCDR_20' ) end [2024-12-26 07:27:17] Production.INFO: ProcessCDR(1,14105324,1,1,2) [2024-12-26 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105324', 'tblTempUsageDetail_20' ) start [2024-12-26 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105324', 'tblTempUsageDetail_20' ) end [2024-12-26 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:27:20] Production.INFO: ==25872== Releasing lock... [2024-12-26 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:28:05 [end_date_ymd] => 2024-12-26 07:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:28:18] Production.INFO: count ==7 [2024-12-26 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:28:05 - End Time 2024-12-26 07:28:05 [2024-12-26 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105329', 'tblTempUsageDetail_20' ) start [2024-12-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105329', 'tblTempUsageDetail_20' ) end [2024-12-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105329', 'tblTempVendorCDR_20' ) start [2024-12-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105329', 'tblTempVendorCDR_20' ) end [2024-12-26 07:28:18] Production.INFO: ProcessCDR(1,14105329,1,1,2) [2024-12-26 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105329', 'tblTempUsageDetail_20' ) start [2024-12-26 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105329', 'tblTempUsageDetail_20' ) end [2024-12-26 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:28:21] Production.INFO: ==25961== Releasing lock... [2024-12-26 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:29:05 [end_date_ymd] => 2024-12-26 07:29:05 [RateCDR] => 1 ) [2024-12-26 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:29:05' and `end` < '2024-12-26 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:29:20] Production.INFO: count ==7 [2024-12-26 07:29:20] Production.ERROR: pbx CDR StartTime 2024-12-26 04:29:05 - End Time 2024-12-26 07:29:05 [2024-12-26 07:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105334', 'tblTempUsageDetail_20' ) start [2024-12-26 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105334', 'tblTempUsageDetail_20' ) end [2024-12-26 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105334', 'tblTempVendorCDR_20' ) start [2024-12-26 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105334', 'tblTempVendorCDR_20' ) end [2024-12-26 07:29:20] Production.INFO: ProcessCDR(1,14105334,1,1,2) [2024-12-26 07:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105334', 'tblTempUsageDetail_20' ) start [2024-12-26 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105334', 'tblTempUsageDetail_20' ) end [2024-12-26 07:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:29:23] Production.INFO: ==26095== Releasing lock... [2024-12-26 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:29:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:30:05 [end_date_ymd] => 2024-12-26 07:30:05 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:30:05' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:30:17] Production.INFO: count ==4 [2024-12-26 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:30:05 - End Time 2024-12-26 07:30:05 [2024-12-26 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105340', 'tblTempUsageDetail_20' ) start [2024-12-26 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105340', 'tblTempUsageDetail_20' ) end [2024-12-26 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105340', 'tblTempVendorCDR_20' ) start [2024-12-26 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105340', 'tblTempVendorCDR_20' ) end [2024-12-26 07:30:17] Production.INFO: ProcessCDR(1,14105340,1,1,2) [2024-12-26 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105340', 'tblTempUsageDetail_20' ) start [2024-12-26 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105340', 'tblTempUsageDetail_20' ) end [2024-12-26 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:30:20] Production.INFO: ==26186== Releasing lock... [2024-12-26 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:30:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:31:05 [end_date_ymd] => 2024-12-26 07:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:31:18] Production.INFO: count ==4 [2024-12-26 07:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:31:05 - End Time 2024-12-26 07:31:05 [2024-12-26 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105345', 'tblTempUsageDetail_20' ) start [2024-12-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105345', 'tblTempUsageDetail_20' ) end [2024-12-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105345', 'tblTempVendorCDR_20' ) start [2024-12-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105345', 'tblTempVendorCDR_20' ) end [2024-12-26 07:31:18] Production.INFO: ProcessCDR(1,14105345,1,1,2) [2024-12-26 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105345', 'tblTempUsageDetail_20' ) start [2024-12-26 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105345', 'tblTempUsageDetail_20' ) end [2024-12-26 07:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:31:21] Production.INFO: ==26282== Releasing lock... [2024-12-26 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:31:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:32:05 [end_date_ymd] => 2024-12-26 07:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:32:17] Production.INFO: count ==4 [2024-12-26 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:32:05 - End Time 2024-12-26 07:32:05 [2024-12-26 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105350', 'tblTempUsageDetail_20' ) start [2024-12-26 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105350', 'tblTempUsageDetail_20' ) end [2024-12-26 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105350', 'tblTempVendorCDR_20' ) start [2024-12-26 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105350', 'tblTempVendorCDR_20' ) end [2024-12-26 07:32:17] Production.INFO: ProcessCDR(1,14105350,1,1,2) [2024-12-26 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105350', 'tblTempUsageDetail_20' ) start [2024-12-26 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105350', 'tblTempUsageDetail_20' ) end [2024-12-26 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:32:20] Production.INFO: ==26374== Releasing lock... [2024-12-26 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:32:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:33:05 [end_date_ymd] => 2024-12-26 07:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:33:17] Production.INFO: count ==4 [2024-12-26 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:33:05 - End Time 2024-12-26 07:33:05 [2024-12-26 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105355', 'tblTempUsageDetail_20' ) start [2024-12-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105355', 'tblTempUsageDetail_20' ) end [2024-12-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105355', 'tblTempVendorCDR_20' ) start [2024-12-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105355', 'tblTempVendorCDR_20' ) end [2024-12-26 07:33:17] Production.INFO: ProcessCDR(1,14105355,1,1,2) [2024-12-26 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105355', 'tblTempUsageDetail_20' ) start [2024-12-26 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105355', 'tblTempUsageDetail_20' ) end [2024-12-26 07:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:33:20] Production.INFO: ==26466== Releasing lock... [2024-12-26 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:33:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:34:04 [end_date_ymd] => 2024-12-26 07:34:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:34:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:34:17] Production.INFO: count ==4 [2024-12-26 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:34:04 - End Time 2024-12-26 07:34:04 [2024-12-26 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105360', 'tblTempUsageDetail_20' ) start [2024-12-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105360', 'tblTempUsageDetail_20' ) end [2024-12-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105360', 'tblTempVendorCDR_20' ) start [2024-12-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105360', 'tblTempVendorCDR_20' ) end [2024-12-26 07:34:17] Production.INFO: ProcessCDR(1,14105360,1,1,2) [2024-12-26 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105360', 'tblTempUsageDetail_20' ) start [2024-12-26 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105360', 'tblTempUsageDetail_20' ) end [2024-12-26 07:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:34:20] Production.INFO: ==26554== Releasing lock... [2024-12-26 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:34:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:35:05 [end_date_ymd] => 2024-12-26 07:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:35:17] Production.INFO: count ==4 [2024-12-26 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:35:05 - End Time 2024-12-26 07:35:05 [2024-12-26 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105365', 'tblTempUsageDetail_20' ) start [2024-12-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105365', 'tblTempUsageDetail_20' ) end [2024-12-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105365', 'tblTempVendorCDR_20' ) start [2024-12-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105365', 'tblTempVendorCDR_20' ) end [2024-12-26 07:35:17] Production.INFO: ProcessCDR(1,14105365,1,1,2) [2024-12-26 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105365', 'tblTempUsageDetail_20' ) start [2024-12-26 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105365', 'tblTempUsageDetail_20' ) end [2024-12-26 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:35:20] Production.INFO: ==26641== Releasing lock... [2024-12-26 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:35:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:36:04 [end_date_ymd] => 2024-12-26 07:36:04 [RateCDR] => 1 ) [2024-12-26 07:36: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` >= '2024-12-26 04:36:04' and `end` < '2024-12-26 07:36: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 ,'') [2024-12-26 07:36:16] Production.INFO: count ==4 [2024-12-26 07:36:16] Production.ERROR: pbx CDR StartTime 2024-12-26 04:36:04 - End Time 2024-12-26 07:36:04 [2024-12-26 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105370', 'tblTempUsageDetail_20' ) start [2024-12-26 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105370', 'tblTempUsageDetail_20' ) end [2024-12-26 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105370', 'tblTempVendorCDR_20' ) start [2024-12-26 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105370', 'tblTempVendorCDR_20' ) end [2024-12-26 07:36:17] Production.INFO: ProcessCDR(1,14105370,1,1,2) [2024-12-26 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105370', 'tblTempUsageDetail_20' ) start [2024-12-26 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105370', 'tblTempUsageDetail_20' ) end [2024-12-26 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:36:20] Production.INFO: ==26731== Releasing lock... [2024-12-26 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:36:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:37:05 [end_date_ymd] => 2024-12-26 07:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:37:18] Production.INFO: count ==4 [2024-12-26 07:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:37:05 - End Time 2024-12-26 07:37:05 [2024-12-26 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105375', 'tblTempUsageDetail_20' ) start [2024-12-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105375', 'tblTempUsageDetail_20' ) end [2024-12-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105375', 'tblTempVendorCDR_20' ) start [2024-12-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105375', 'tblTempVendorCDR_20' ) end [2024-12-26 07:37:18] Production.INFO: ProcessCDR(1,14105375,1,1,2) [2024-12-26 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105375', 'tblTempUsageDetail_20' ) start [2024-12-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105375', 'tblTempUsageDetail_20' ) end [2024-12-26 07:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:37:21] Production.INFO: ==26817== Releasing lock... [2024-12-26 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:37:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:38:05 [end_date_ymd] => 2024-12-26 07:38:05 [RateCDR] => 1 ) [2024-12-26 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:38:05' and `end` < '2024-12-26 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:38:18] Production.INFO: count ==4 [2024-12-26 07:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:38:05 - End Time 2024-12-26 07:38:05 [2024-12-26 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105380', 'tblTempUsageDetail_20' ) start [2024-12-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105380', 'tblTempUsageDetail_20' ) end [2024-12-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105380', 'tblTempVendorCDR_20' ) start [2024-12-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105380', 'tblTempVendorCDR_20' ) end [2024-12-26 07:38:18] Production.INFO: ProcessCDR(1,14105380,1,1,2) [2024-12-26 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105380', 'tblTempUsageDetail_20' ) start [2024-12-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105380', 'tblTempUsageDetail_20' ) end [2024-12-26 07:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:38:21] Production.INFO: ==26914== Releasing lock... [2024-12-26 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:38:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:39:05 [end_date_ymd] => 2024-12-26 07:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:39:18] Production.INFO: count ==4 [2024-12-26 07:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:39:05 - End Time 2024-12-26 07:39:05 [2024-12-26 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105385', 'tblTempUsageDetail_20' ) start [2024-12-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105385', 'tblTempUsageDetail_20' ) end [2024-12-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105385', 'tblTempVendorCDR_20' ) start [2024-12-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105385', 'tblTempVendorCDR_20' ) end [2024-12-26 07:39:18] Production.INFO: ProcessCDR(1,14105385,1,1,2) [2024-12-26 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105385', 'tblTempUsageDetail_20' ) start [2024-12-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105385', 'tblTempUsageDetail_20' ) end [2024-12-26 07:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:39:21] Production.INFO: ==27035== Releasing lock... [2024-12-26 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:39:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:40:05 [end_date_ymd] => 2024-12-26 07:40:05 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:40:05' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:40:18] Production.INFO: count ==4 [2024-12-26 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:40:05 - End Time 2024-12-26 07:40:05 [2024-12-26 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105389', 'tblTempUsageDetail_20' ) start [2024-12-26 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105389', 'tblTempUsageDetail_20' ) end [2024-12-26 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105389', 'tblTempVendorCDR_20' ) start [2024-12-26 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105389', 'tblTempVendorCDR_20' ) end [2024-12-26 07:40:18] Production.INFO: ProcessCDR(1,14105389,1,1,2) [2024-12-26 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105389', 'tblTempUsageDetail_20' ) start [2024-12-26 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105389', 'tblTempUsageDetail_20' ) end [2024-12-26 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:40:21] Production.INFO: ==27155== Releasing lock... [2024-12-26 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:40:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:41:05 [end_date_ymd] => 2024-12-26 07:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:41:17] Production.INFO: count ==4 [2024-12-26 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:41:05 - End Time 2024-12-26 07:41:05 [2024-12-26 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105396', 'tblTempUsageDetail_20' ) start [2024-12-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105396', 'tblTempUsageDetail_20' ) end [2024-12-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105396', 'tblTempVendorCDR_20' ) start [2024-12-26 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105396', 'tblTempVendorCDR_20' ) end [2024-12-26 07:41:17] Production.INFO: ProcessCDR(1,14105396,1,1,2) [2024-12-26 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105396', 'tblTempUsageDetail_20' ) start [2024-12-26 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105396', 'tblTempUsageDetail_20' ) end [2024-12-26 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:41:20] Production.INFO: ==27275== Releasing lock... [2024-12-26 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:41:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:42:05 [end_date_ymd] => 2024-12-26 07:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:42:17] Production.INFO: count ==4 [2024-12-26 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:42:05 - End Time 2024-12-26 07:42:05 [2024-12-26 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105401', 'tblTempUsageDetail_20' ) start [2024-12-26 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105401', 'tblTempUsageDetail_20' ) end [2024-12-26 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105401', 'tblTempVendorCDR_20' ) start [2024-12-26 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105401', 'tblTempVendorCDR_20' ) end [2024-12-26 07:42:17] Production.INFO: ProcessCDR(1,14105401,1,1,2) [2024-12-26 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105401', 'tblTempUsageDetail_20' ) start [2024-12-26 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105401', 'tblTempUsageDetail_20' ) end [2024-12-26 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:42:20] Production.INFO: ==27398== Releasing lock... [2024-12-26 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:42:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:43:04 [end_date_ymd] => 2024-12-26 07:43:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:43:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:43:16] Production.INFO: count ==4 [2024-12-26 07:43:16] Production.ERROR: pbx CDR StartTime 2024-12-26 04:43:04 - End Time 2024-12-26 07:43:04 [2024-12-26 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105406', 'tblTempUsageDetail_20' ) start [2024-12-26 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105406', 'tblTempUsageDetail_20' ) end [2024-12-26 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105406', 'tblTempVendorCDR_20' ) start [2024-12-26 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105406', 'tblTempVendorCDR_20' ) end [2024-12-26 07:43:16] Production.INFO: ProcessCDR(1,14105406,1,1,2) [2024-12-26 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105406', 'tblTempUsageDetail_20' ) start [2024-12-26 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105406', 'tblTempUsageDetail_20' ) end [2024-12-26 07:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:43:19] Production.INFO: ==27513== Releasing lock... [2024-12-26 07:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:43:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:44:05 [end_date_ymd] => 2024-12-26 07:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:44:18] Production.INFO: count ==4 [2024-12-26 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:44:05 - End Time 2024-12-26 07:44:05 [2024-12-26 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105411', 'tblTempUsageDetail_20' ) start [2024-12-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105411', 'tblTempUsageDetail_20' ) end [2024-12-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105411', 'tblTempVendorCDR_20' ) start [2024-12-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105411', 'tblTempVendorCDR_20' ) end [2024-12-26 07:44:18] Production.INFO: ProcessCDR(1,14105411,1,1,2) [2024-12-26 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105411', 'tblTempUsageDetail_20' ) start [2024-12-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105411', 'tblTempUsageDetail_20' ) end [2024-12-26 07:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:44:21] Production.INFO: ==27672== Releasing lock... [2024-12-26 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:44:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:45:06 [end_date_ymd] => 2024-12-26 07:45:06 [RateCDR] => 1 ) [2024-12-26 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:45:06' and `end` < '2024-12-26 07:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:45:18] Production.INFO: count ==4 [2024-12-26 07:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:45:06 - End Time 2024-12-26 07:45:06 [2024-12-26 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105416', 'tblTempUsageDetail_20' ) start [2024-12-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105416', 'tblTempUsageDetail_20' ) end [2024-12-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105416', 'tblTempVendorCDR_20' ) start [2024-12-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105416', 'tblTempVendorCDR_20' ) end [2024-12-26 07:45:18] Production.INFO: ProcessCDR(1,14105416,1,1,2) [2024-12-26 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105416', 'tblTempUsageDetail_20' ) start [2024-12-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105416', 'tblTempUsageDetail_20' ) end [2024-12-26 07:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:45:21] Production.INFO: ==27788== Releasing lock... [2024-12-26 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:45:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:46:05 [end_date_ymd] => 2024-12-26 07:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:46:17] Production.INFO: count ==4 [2024-12-26 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:46:05 - End Time 2024-12-26 07:46:05 [2024-12-26 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105421', 'tblTempUsageDetail_20' ) start [2024-12-26 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105421', 'tblTempUsageDetail_20' ) end [2024-12-26 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105421', 'tblTempVendorCDR_20' ) start [2024-12-26 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105421', 'tblTempVendorCDR_20' ) end [2024-12-26 07:46:17] Production.INFO: ProcessCDR(1,14105421,1,1,2) [2024-12-26 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105421', 'tblTempUsageDetail_20' ) start [2024-12-26 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105421', 'tblTempUsageDetail_20' ) end [2024-12-26 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:46:20] Production.INFO: ==27911== Releasing lock... [2024-12-26 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:46:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:47:05 [end_date_ymd] => 2024-12-26 07:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:47:18] Production.INFO: count ==4 [2024-12-26 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:47:05 - End Time 2024-12-26 07:47:05 [2024-12-26 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105426', 'tblTempUsageDetail_20' ) start [2024-12-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105426', 'tblTempUsageDetail_20' ) end [2024-12-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105426', 'tblTempVendorCDR_20' ) start [2024-12-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105426', 'tblTempVendorCDR_20' ) end [2024-12-26 07:47:18] Production.INFO: ProcessCDR(1,14105426,1,1,2) [2024-12-26 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105426', 'tblTempUsageDetail_20' ) start [2024-12-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105426', 'tblTempUsageDetail_20' ) end [2024-12-26 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:47:21] Production.INFO: ==28026== Releasing lock... [2024-12-26 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:47:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:48:04 [end_date_ymd] => 2024-12-26 07:48:04 [RateCDR] => 1 ) [2024-12-26 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:48:04' and `end` < '2024-12-26 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:48:17] Production.INFO: count ==4 [2024-12-26 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:48:04 - End Time 2024-12-26 07:48:04 [2024-12-26 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105431', 'tblTempUsageDetail_20' ) start [2024-12-26 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105431', 'tblTempUsageDetail_20' ) end [2024-12-26 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105431', 'tblTempVendorCDR_20' ) start [2024-12-26 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105431', 'tblTempVendorCDR_20' ) end [2024-12-26 07:48:17] Production.INFO: ProcessCDR(1,14105431,1,1,2) [2024-12-26 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105431', 'tblTempUsageDetail_20' ) start [2024-12-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105431', 'tblTempUsageDetail_20' ) end [2024-12-26 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:48:21] Production.INFO: ==28134== Releasing lock... [2024-12-26 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:48:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:49:05 [end_date_ymd] => 2024-12-26 07:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:49:17] Production.INFO: count ==4 [2024-12-26 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:49:05 - End Time 2024-12-26 07:49:05 [2024-12-26 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105436', 'tblTempUsageDetail_20' ) start [2024-12-26 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105436', 'tblTempUsageDetail_20' ) end [2024-12-26 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105436', 'tblTempVendorCDR_20' ) start [2024-12-26 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105436', 'tblTempVendorCDR_20' ) end [2024-12-26 07:49:17] Production.INFO: ProcessCDR(1,14105436,1,1,2) [2024-12-26 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105436', 'tblTempUsageDetail_20' ) start [2024-12-26 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105436', 'tblTempUsageDetail_20' ) end [2024-12-26 07:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:49:20] Production.INFO: ==28242== Releasing lock... [2024-12-26 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:49:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:50:06 [end_date_ymd] => 2024-12-26 07:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:50:18] Production.INFO: count ==4 [2024-12-26 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:50:06 - End Time 2024-12-26 07:50:06 [2024-12-26 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105442', 'tblTempUsageDetail_20' ) start [2024-12-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105442', 'tblTempUsageDetail_20' ) end [2024-12-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105442', 'tblTempVendorCDR_20' ) start [2024-12-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105442', 'tblTempVendorCDR_20' ) end [2024-12-26 07:50:18] Production.INFO: ProcessCDR(1,14105442,1,1,2) [2024-12-26 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105442', 'tblTempUsageDetail_20' ) start [2024-12-26 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105442', 'tblTempUsageDetail_20' ) end [2024-12-26 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:50:21] Production.INFO: ==28359== Releasing lock... [2024-12-26 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:50:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:51:05 [end_date_ymd] => 2024-12-26 07:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:51:17] Production.INFO: count ==4 [2024-12-26 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:51:05 - End Time 2024-12-26 07:51:05 [2024-12-26 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105447', 'tblTempUsageDetail_20' ) start [2024-12-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105447', 'tblTempUsageDetail_20' ) end [2024-12-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105447', 'tblTempVendorCDR_20' ) start [2024-12-26 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105447', 'tblTempVendorCDR_20' ) end [2024-12-26 07:51:17] Production.INFO: ProcessCDR(1,14105447,1,1,2) [2024-12-26 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105447', 'tblTempUsageDetail_20' ) start [2024-12-26 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105447', 'tblTempUsageDetail_20' ) end [2024-12-26 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:51:20] Production.INFO: ==28501== Releasing lock... [2024-12-26 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:51:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:52:05 [end_date_ymd] => 2024-12-26 07:52:05 [RateCDR] => 1 ) [2024-12-26 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:52:05' and `end` < '2024-12-26 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:52:17] Production.INFO: count ==4 [2024-12-26 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:52:05 - End Time 2024-12-26 07:52:05 [2024-12-26 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105452', 'tblTempUsageDetail_20' ) start [2024-12-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105452', 'tblTempUsageDetail_20' ) end [2024-12-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105452', 'tblTempVendorCDR_20' ) start [2024-12-26 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105452', 'tblTempVendorCDR_20' ) end [2024-12-26 07:52:17] Production.INFO: ProcessCDR(1,14105452,1,1,2) [2024-12-26 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105452', 'tblTempUsageDetail_20' ) start [2024-12-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105452', 'tblTempUsageDetail_20' ) end [2024-12-26 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:52:20] Production.INFO: ==28632== Releasing lock... [2024-12-26 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:52:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-26 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:53:04 [end_date_ymd] => 2024-12-26 07:53:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:53:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:53:19] Production.INFO: count ==5 [2024-12-26 07:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:53:04 - End Time 2024-12-26 07:53:04 [2024-12-26 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105457', 'tblTempUsageDetail_20' ) start [2024-12-26 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105457', 'tblTempUsageDetail_20' ) end [2024-12-26 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105457', 'tblTempVendorCDR_20' ) start [2024-12-26 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105457', 'tblTempVendorCDR_20' ) end [2024-12-26 07:53:19] Production.INFO: ProcessCDR(1,14105457,1,1,2) [2024-12-26 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105457', 'tblTempUsageDetail_20' ) start [2024-12-26 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105457', 'tblTempUsageDetail_20' ) end [2024-12-26 07:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:53:24] Production.INFO: ==28766== Releasing lock... [2024-12-26 07:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:53:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:54:05 [end_date_ymd] => 2024-12-26 07:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:54:17] Production.INFO: count ==6 [2024-12-26 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:54:05 - End Time 2024-12-26 07:54:05 [2024-12-26 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105462', 'tblTempUsageDetail_20' ) start [2024-12-26 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105462', 'tblTempUsageDetail_20' ) end [2024-12-26 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105462', 'tblTempVendorCDR_20' ) start [2024-12-26 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105462', 'tblTempVendorCDR_20' ) end [2024-12-26 07:54:17] Production.INFO: ProcessCDR(1,14105462,1,1,2) [2024-12-26 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105462', 'tblTempUsageDetail_20' ) start [2024-12-26 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105462', 'tblTempUsageDetail_20' ) end [2024-12-26 07:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:54:22] Production.INFO: ==28907== Releasing lock... [2024-12-26 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:54:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:55:04 [end_date_ymd] => 2024-12-26 07:55:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:55:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:55:17] Production.INFO: count ==7 [2024-12-26 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:55:04 - End Time 2024-12-26 07:55:04 [2024-12-26 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105467', 'tblTempUsageDetail_20' ) start [2024-12-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105467', 'tblTempUsageDetail_20' ) end [2024-12-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105467', 'tblTempVendorCDR_20' ) start [2024-12-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105467', 'tblTempVendorCDR_20' ) end [2024-12-26 07:55:17] Production.INFO: ProcessCDR(1,14105467,1,1,2) [2024-12-26 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105467', 'tblTempUsageDetail_20' ) start [2024-12-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105467', 'tblTempUsageDetail_20' ) end [2024-12-26 07:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:55:21] Production.INFO: ==29043== Releasing lock... [2024-12-26 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:55:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:56:05 [end_date_ymd] => 2024-12-26 07:56:05 [RateCDR] => 1 ) [2024-12-26 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 04:56:05' and `end` < '2024-12-26 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 07:56:19] Production.INFO: count ==7 [2024-12-26 07:56:19] Production.ERROR: pbx CDR StartTime 2024-12-26 04:56:05 - End Time 2024-12-26 07:56:05 [2024-12-26 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105472', 'tblTempUsageDetail_20' ) start [2024-12-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105472', 'tblTempUsageDetail_20' ) end [2024-12-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105472', 'tblTempVendorCDR_20' ) start [2024-12-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105472', 'tblTempVendorCDR_20' ) end [2024-12-26 07:56:19] Production.INFO: ProcessCDR(1,14105472,1,1,2) [2024-12-26 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105472', 'tblTempUsageDetail_20' ) start [2024-12-26 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105472', 'tblTempUsageDetail_20' ) end [2024-12-26 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:56:22] Production.INFO: ==29145== Releasing lock... [2024-12-26 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:56:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:57:05 [end_date_ymd] => 2024-12-26 07:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:57:18] Production.INFO: count ==7 [2024-12-26 07:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:57:05 - End Time 2024-12-26 07:57:05 [2024-12-26 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105477', 'tblTempUsageDetail_20' ) start [2024-12-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105477', 'tblTempUsageDetail_20' ) end [2024-12-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105477', 'tblTempVendorCDR_20' ) start [2024-12-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105477', 'tblTempVendorCDR_20' ) end [2024-12-26 07:57:18] Production.INFO: ProcessCDR(1,14105477,1,1,2) [2024-12-26 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105477', 'tblTempUsageDetail_20' ) start [2024-12-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105477', 'tblTempUsageDetail_20' ) end [2024-12-26 07:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:57:21] Production.INFO: ==29253== Releasing lock... [2024-12-26 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:57:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:58:04 [end_date_ymd] => 2024-12-26 07:58:04 [RateCDR] => 1 ) [2024-12-26 07: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` >= '2024-12-26 04:58:04' and `end` < '2024-12-26 07: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 ,'') [2024-12-26 07:58:17] Production.INFO: count ==7 [2024-12-26 07:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 04:58:04 - End Time 2024-12-26 07:58:04 [2024-12-26 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105482', 'tblTempUsageDetail_20' ) start [2024-12-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105482', 'tblTempUsageDetail_20' ) end [2024-12-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105482', 'tblTempVendorCDR_20' ) start [2024-12-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105482', 'tblTempVendorCDR_20' ) end [2024-12-26 07:58:17] Production.INFO: ProcessCDR(1,14105482,1,1,2) [2024-12-26 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105482', 'tblTempUsageDetail_20' ) start [2024-12-26 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105482', 'tblTempUsageDetail_20' ) end [2024-12-26 07:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:58:20] Production.INFO: ==29356== Releasing lock... [2024-12-26 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 04:59:05 [end_date_ymd] => 2024-12-26 07:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 04:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 07:59:18] Production.INFO: count ==7 [2024-12-26 07:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 04:59:05 - End Time 2024-12-26 07:59:05 [2024-12-26 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105487', 'tblTempUsageDetail_20' ) start [2024-12-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105487', 'tblTempUsageDetail_20' ) end [2024-12-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105487', 'tblTempVendorCDR_20' ) start [2024-12-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105487', 'tblTempVendorCDR_20' ) end [2024-12-26 07:59:18] Production.INFO: ProcessCDR(1,14105487,1,1,2) [2024-12-26 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105487', 'tblTempUsageDetail_20' ) start [2024-12-26 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105487', 'tblTempUsageDetail_20' ) end [2024-12-26 07:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 07:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 07:59:22] Production.INFO: ==29462== Releasing lock... [2024-12-26 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 07:59:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:00:05 [end_date_ymd] => 2024-12-26 08:00:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:00:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:00:21] Production.INFO: count ==7 [2024-12-26 08:00:21] Production.ERROR: pbx CDR StartTime 2024-12-26 05:00:05 - End Time 2024-12-26 08:00:05 [2024-12-26 08:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105493', 'tblTempUsageDetail_20' ) start [2024-12-26 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105493', 'tblTempUsageDetail_20' ) end [2024-12-26 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105493', 'tblTempVendorCDR_20' ) start [2024-12-26 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105493', 'tblTempVendorCDR_20' ) end [2024-12-26 08:00:21] Production.INFO: ProcessCDR(1,14105493,1,1,2) [2024-12-26 08:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105493', 'tblTempUsageDetail_20' ) start [2024-12-26 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105493', 'tblTempUsageDetail_20' ) end [2024-12-26 08:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:00:24] Production.INFO: ==29612== Releasing lock... [2024-12-26 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:00:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:01:05 [end_date_ymd] => 2024-12-26 08:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:01:17] Production.INFO: count ==7 [2024-12-26 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:01:05 - End Time 2024-12-26 08:01:05 [2024-12-26 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105497', 'tblTempUsageDetail_20' ) start [2024-12-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105497', 'tblTempUsageDetail_20' ) end [2024-12-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105497', 'tblTempVendorCDR_20' ) start [2024-12-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105497', 'tblTempVendorCDR_20' ) end [2024-12-26 08:01:17] Production.INFO: ProcessCDR(1,14105497,1,1,2) [2024-12-26 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105497', 'tblTempUsageDetail_20' ) start [2024-12-26 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105497', 'tblTempUsageDetail_20' ) end [2024-12-26 08:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:01:20] Production.INFO: ==29728== Releasing lock... [2024-12-26 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:02:05 [end_date_ymd] => 2024-12-26 08:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:02:17] Production.INFO: count ==7 [2024-12-26 08:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:02:05 - End Time 2024-12-26 08:02:05 [2024-12-26 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105503', 'tblTempUsageDetail_20' ) start [2024-12-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105503', 'tblTempUsageDetail_20' ) end [2024-12-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105503', 'tblTempVendorCDR_20' ) start [2024-12-26 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105503', 'tblTempVendorCDR_20' ) end [2024-12-26 08:02:17] Production.INFO: ProcessCDR(1,14105503,1,1,2) [2024-12-26 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105503', 'tblTempUsageDetail_20' ) start [2024-12-26 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105503', 'tblTempUsageDetail_20' ) end [2024-12-26 08:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:02:20] Production.INFO: ==29835== Releasing lock... [2024-12-26 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:02:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:03:05 [end_date_ymd] => 2024-12-26 08:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:03:17] Production.INFO: count ==7 [2024-12-26 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:03:05 - End Time 2024-12-26 08:03:05 [2024-12-26 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105508', 'tblTempUsageDetail_20' ) start [2024-12-26 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105508', 'tblTempUsageDetail_20' ) end [2024-12-26 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105508', 'tblTempVendorCDR_20' ) start [2024-12-26 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105508', 'tblTempVendorCDR_20' ) end [2024-12-26 08:03:17] Production.INFO: ProcessCDR(1,14105508,1,1,2) [2024-12-26 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105508', 'tblTempUsageDetail_20' ) start [2024-12-26 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105508', 'tblTempUsageDetail_20' ) end [2024-12-26 08:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:03:20] Production.INFO: ==29938== Releasing lock... [2024-12-26 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:04:04 [end_date_ymd] => 2024-12-26 08:04:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:04:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:04:16] Production.INFO: count ==8 [2024-12-26 08:04:16] Production.ERROR: pbx CDR StartTime 2024-12-26 05:04:04 - End Time 2024-12-26 08:04:04 [2024-12-26 08:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105513', 'tblTempUsageDetail_20' ) start [2024-12-26 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105513', 'tblTempUsageDetail_20' ) end [2024-12-26 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105513', 'tblTempVendorCDR_20' ) start [2024-12-26 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105513', 'tblTempVendorCDR_20' ) end [2024-12-26 08:04:16] Production.INFO: ProcessCDR(1,14105513,1,1,2) [2024-12-26 08:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105513', 'tblTempUsageDetail_20' ) start [2024-12-26 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105513', 'tblTempUsageDetail_20' ) end [2024-12-26 08:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:04:20] Production.INFO: ==30043== Releasing lock... [2024-12-26 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:05:05 [end_date_ymd] => 2024-12-26 08:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:05:17] Production.INFO: count ==8 [2024-12-26 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:05:05 - End Time 2024-12-26 08:05:05 [2024-12-26 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105518', 'tblTempUsageDetail_20' ) start [2024-12-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105518', 'tblTempUsageDetail_20' ) end [2024-12-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105518', 'tblTempVendorCDR_20' ) start [2024-12-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105518', 'tblTempVendorCDR_20' ) end [2024-12-26 08:05:17] Production.INFO: ProcessCDR(1,14105518,1,1,2) [2024-12-26 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105518', 'tblTempUsageDetail_20' ) start [2024-12-26 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105518', 'tblTempUsageDetail_20' ) end [2024-12-26 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:05:20] Production.INFO: ==30147== Releasing lock... [2024-12-26 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:06:05 [end_date_ymd] => 2024-12-26 08:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:06:18] Production.INFO: count ==9 [2024-12-26 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:06:05 - End Time 2024-12-26 08:06:05 [2024-12-26 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105523', 'tblTempUsageDetail_20' ) start [2024-12-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105523', 'tblTempUsageDetail_20' ) end [2024-12-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105523', 'tblTempVendorCDR_20' ) start [2024-12-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105523', 'tblTempVendorCDR_20' ) end [2024-12-26 08:06:18] Production.INFO: ProcessCDR(1,14105523,1,1,2) [2024-12-26 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105523', 'tblTempUsageDetail_20' ) start [2024-12-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105523', 'tblTempUsageDetail_20' ) end [2024-12-26 08:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:06:21] Production.INFO: ==30255== Releasing lock... [2024-12-26 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:07:05 [end_date_ymd] => 2024-12-26 08:07:05 [RateCDR] => 1 ) [2024-12-26 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:07:05' and `end` < '2024-12-26 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:07:18] Production.INFO: count ==9 [2024-12-26 08:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:07:05 - End Time 2024-12-26 08:07:05 [2024-12-26 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105528', 'tblTempUsageDetail_20' ) start [2024-12-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105528', 'tblTempUsageDetail_20' ) end [2024-12-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105528', 'tblTempVendorCDR_20' ) start [2024-12-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105528', 'tblTempVendorCDR_20' ) end [2024-12-26 08:07:18] Production.INFO: ProcessCDR(1,14105528,1,1,2) [2024-12-26 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105528', 'tblTempUsageDetail_20' ) start [2024-12-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105528', 'tblTempUsageDetail_20' ) end [2024-12-26 08:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:07:21] Production.INFO: ==30358== Releasing lock... [2024-12-26 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:08:05 [end_date_ymd] => 2024-12-26 08:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:08:18] Production.INFO: count ==9 [2024-12-26 08:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:08:05 - End Time 2024-12-26 08:08:05 [2024-12-26 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105533', 'tblTempUsageDetail_20' ) start [2024-12-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105533', 'tblTempUsageDetail_20' ) end [2024-12-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105533', 'tblTempVendorCDR_20' ) start [2024-12-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105533', 'tblTempVendorCDR_20' ) end [2024-12-26 08:08:18] Production.INFO: ProcessCDR(1,14105533,1,1,2) [2024-12-26 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105533', 'tblTempUsageDetail_20' ) start [2024-12-26 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105533', 'tblTempUsageDetail_20' ) end [2024-12-26 08:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:08:21] Production.INFO: ==30470== Releasing lock... [2024-12-26 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:09:04 [end_date_ymd] => 2024-12-26 08:09:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:09:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:09:17] Production.INFO: count ==10 [2024-12-26 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:09:04 - End Time 2024-12-26 08:09:04 [2024-12-26 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105538', 'tblTempUsageDetail_20' ) start [2024-12-26 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105538', 'tblTempUsageDetail_20' ) end [2024-12-26 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105538', 'tblTempVendorCDR_20' ) start [2024-12-26 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105538', 'tblTempVendorCDR_20' ) end [2024-12-26 08:09:17] Production.INFO: ProcessCDR(1,14105538,1,1,2) [2024-12-26 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105538', 'tblTempUsageDetail_20' ) start [2024-12-26 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105538', 'tblTempUsageDetail_20' ) end [2024-12-26 08:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:09:20] Production.INFO: ==30571== Releasing lock... [2024-12-26 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:10:06 [end_date_ymd] => 2024-12-26 08:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:10:18] Production.INFO: count ==10 [2024-12-26 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:10:06 - End Time 2024-12-26 08:10:06 [2024-12-26 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105544', 'tblTempUsageDetail_20' ) start [2024-12-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105544', 'tblTempUsageDetail_20' ) end [2024-12-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105544', 'tblTempVendorCDR_20' ) start [2024-12-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105544', 'tblTempVendorCDR_20' ) end [2024-12-26 08:10:18] Production.INFO: ProcessCDR(1,14105544,1,1,2) [2024-12-26 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105544', 'tblTempUsageDetail_20' ) start [2024-12-26 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105544', 'tblTempUsageDetail_20' ) end [2024-12-26 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:10:21] Production.INFO: ==30652== Releasing lock... [2024-12-26 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:11:05 [end_date_ymd] => 2024-12-26 08:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:11:18] Production.INFO: count ==10 [2024-12-26 08:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:11:05 - End Time 2024-12-26 08:11:05 [2024-12-26 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105549', 'tblTempUsageDetail_20' ) start [2024-12-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105549', 'tblTempUsageDetail_20' ) end [2024-12-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105549', 'tblTempVendorCDR_20' ) start [2024-12-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105549', 'tblTempVendorCDR_20' ) end [2024-12-26 08:11:18] Production.INFO: ProcessCDR(1,14105549,1,1,2) [2024-12-26 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105549', 'tblTempUsageDetail_20' ) start [2024-12-26 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105549', 'tblTempUsageDetail_20' ) end [2024-12-26 08:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:11:22] Production.INFO: ==30734== Releasing lock... [2024-12-26 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:12:05 [end_date_ymd] => 2024-12-26 08:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:12:18] Production.INFO: count ==10 [2024-12-26 08:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:12:05 - End Time 2024-12-26 08:12:05 [2024-12-26 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105554', 'tblTempUsageDetail_20' ) start [2024-12-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105554', 'tblTempUsageDetail_20' ) end [2024-12-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105554', 'tblTempVendorCDR_20' ) start [2024-12-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105554', 'tblTempVendorCDR_20' ) end [2024-12-26 08:12:18] Production.INFO: ProcessCDR(1,14105554,1,1,2) [2024-12-26 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105554', 'tblTempUsageDetail_20' ) start [2024-12-26 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105554', 'tblTempUsageDetail_20' ) end [2024-12-26 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:12:21] Production.INFO: ==30813== Releasing lock... [2024-12-26 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:13:04 [end_date_ymd] => 2024-12-26 08:13:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:13:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:13:17] Production.INFO: count ==10 [2024-12-26 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:13:04 - End Time 2024-12-26 08:13:04 [2024-12-26 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105559', 'tblTempUsageDetail_20' ) start [2024-12-26 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105559', 'tblTempUsageDetail_20' ) end [2024-12-26 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105559', 'tblTempVendorCDR_20' ) start [2024-12-26 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105559', 'tblTempVendorCDR_20' ) end [2024-12-26 08:13:17] Production.INFO: ProcessCDR(1,14105559,1,1,2) [2024-12-26 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105559', 'tblTempUsageDetail_20' ) start [2024-12-26 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105559', 'tblTempUsageDetail_20' ) end [2024-12-26 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:13:20] Production.INFO: ==30892== Releasing lock... [2024-12-26 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:14:05 [end_date_ymd] => 2024-12-26 08:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:14:18] Production.INFO: count ==10 [2024-12-26 08:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:14:05 - End Time 2024-12-26 08:14:05 [2024-12-26 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105564', 'tblTempUsageDetail_20' ) start [2024-12-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105564', 'tblTempUsageDetail_20' ) end [2024-12-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105564', 'tblTempVendorCDR_20' ) start [2024-12-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105564', 'tblTempVendorCDR_20' ) end [2024-12-26 08:14:18] Production.INFO: ProcessCDR(1,14105564,1,1,2) [2024-12-26 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105564', 'tblTempUsageDetail_20' ) start [2024-12-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105564', 'tblTempUsageDetail_20' ) end [2024-12-26 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:14:21] Production.INFO: ==30969== Releasing lock... [2024-12-26 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:15:04 [end_date_ymd] => 2024-12-26 08:15:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:15:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:15:17] Production.INFO: count ==10 [2024-12-26 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:15:04 - End Time 2024-12-26 08:15:04 [2024-12-26 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105569', 'tblTempUsageDetail_20' ) start [2024-12-26 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105569', 'tblTempUsageDetail_20' ) end [2024-12-26 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105569', 'tblTempVendorCDR_20' ) start [2024-12-26 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105569', 'tblTempVendorCDR_20' ) end [2024-12-26 08:15:17] Production.INFO: ProcessCDR(1,14105569,1,1,2) [2024-12-26 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105569', 'tblTempUsageDetail_20' ) start [2024-12-26 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105569', 'tblTempUsageDetail_20' ) end [2024-12-26 08:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:15:20] Production.INFO: ==31052== Releasing lock... [2024-12-26 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:16:05 [end_date_ymd] => 2024-12-26 08:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:16:17] Production.INFO: count ==10 [2024-12-26 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:16:05 - End Time 2024-12-26 08:16:05 [2024-12-26 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105574', 'tblTempUsageDetail_20' ) start [2024-12-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105574', 'tblTempUsageDetail_20' ) end [2024-12-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105574', 'tblTempVendorCDR_20' ) start [2024-12-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105574', 'tblTempVendorCDR_20' ) end [2024-12-26 08:16:17] Production.INFO: ProcessCDR(1,14105574,1,1,2) [2024-12-26 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105574', 'tblTempUsageDetail_20' ) start [2024-12-26 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105574', 'tblTempUsageDetail_20' ) end [2024-12-26 08:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:16:20] Production.INFO: ==31167== Releasing lock... [2024-12-26 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:17:05 [end_date_ymd] => 2024-12-26 08:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:17:19] Production.INFO: count ==10 [2024-12-26 08:17:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:17:05 - End Time 2024-12-26 08:17:05 [2024-12-26 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105579', 'tblTempUsageDetail_20' ) start [2024-12-26 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105579', 'tblTempUsageDetail_20' ) end [2024-12-26 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105579', 'tblTempVendorCDR_20' ) start [2024-12-26 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105579', 'tblTempVendorCDR_20' ) end [2024-12-26 08:17:19] Production.INFO: ProcessCDR(1,14105579,1,1,2) [2024-12-26 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105579', 'tblTempUsageDetail_20' ) start [2024-12-26 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105579', 'tblTempUsageDetail_20' ) end [2024-12-26 08:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:17:22] Production.INFO: ==31268== Releasing lock... [2024-12-26 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:17:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:18:04 [end_date_ymd] => 2024-12-26 08:18:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:18:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:18:16] Production.INFO: count ==10 [2024-12-26 08:18:16] Production.ERROR: pbx CDR StartTime 2024-12-26 05:18:04 - End Time 2024-12-26 08:18:04 [2024-12-26 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105584', 'tblTempUsageDetail_20' ) start [2024-12-26 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105584', 'tblTempUsageDetail_20' ) end [2024-12-26 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105584', 'tblTempVendorCDR_20' ) start [2024-12-26 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105584', 'tblTempVendorCDR_20' ) end [2024-12-26 08:18:16] Production.INFO: ProcessCDR(1,14105584,1,1,2) [2024-12-26 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105584', 'tblTempUsageDetail_20' ) start [2024-12-26 08:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105584', 'tblTempUsageDetail_20' ) end [2024-12-26 08:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:18:19] Production.INFO: ==31342== Releasing lock... [2024-12-26 08:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:18:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:19:05 [end_date_ymd] => 2024-12-26 08:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:19:17] Production.INFO: count ==10 [2024-12-26 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:19:05 - End Time 2024-12-26 08:19:05 [2024-12-26 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105589', 'tblTempUsageDetail_20' ) start [2024-12-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105589', 'tblTempUsageDetail_20' ) end [2024-12-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105589', 'tblTempVendorCDR_20' ) start [2024-12-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105589', 'tblTempVendorCDR_20' ) end [2024-12-26 08:19:17] Production.INFO: ProcessCDR(1,14105589,1,1,2) [2024-12-26 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105589', 'tblTempUsageDetail_20' ) start [2024-12-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105589', 'tblTempUsageDetail_20' ) end [2024-12-26 08:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:19:20] Production.INFO: ==31424== Releasing lock... [2024-12-26 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:20:05 [end_date_ymd] => 2024-12-26 08:20:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:20:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:20:18] Production.INFO: count ==10 [2024-12-26 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:20:05 - End Time 2024-12-26 08:20:05 [2024-12-26 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105595', 'tblTempUsageDetail_20' ) start [2024-12-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105595', 'tblTempUsageDetail_20' ) end [2024-12-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105595', 'tblTempVendorCDR_20' ) start [2024-12-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105595', 'tblTempVendorCDR_20' ) end [2024-12-26 08:20:18] Production.INFO: ProcessCDR(1,14105595,1,1,2) [2024-12-26 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105595', 'tblTempUsageDetail_20' ) start [2024-12-26 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105595', 'tblTempUsageDetail_20' ) end [2024-12-26 08:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:20:21] Production.INFO: ==31530== Releasing lock... [2024-12-26 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:21:05 [end_date_ymd] => 2024-12-26 08:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:21:18] Production.INFO: count ==10 [2024-12-26 08:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:21:05 - End Time 2024-12-26 08:21:05 [2024-12-26 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105600', 'tblTempUsageDetail_20' ) start [2024-12-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105600', 'tblTempUsageDetail_20' ) end [2024-12-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105600', 'tblTempVendorCDR_20' ) start [2024-12-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105600', 'tblTempVendorCDR_20' ) end [2024-12-26 08:21:18] Production.INFO: ProcessCDR(1,14105600,1,1,2) [2024-12-26 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105600', 'tblTempUsageDetail_20' ) start [2024-12-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105600', 'tblTempUsageDetail_20' ) end [2024-12-26 08:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:21:21] Production.INFO: ==31640== Releasing lock... [2024-12-26 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:22:05 [end_date_ymd] => 2024-12-26 08:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:22:17] Production.INFO: count ==10 [2024-12-26 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:22:05 - End Time 2024-12-26 08:22:05 [2024-12-26 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105605', 'tblTempUsageDetail_20' ) start [2024-12-26 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105605', 'tblTempUsageDetail_20' ) end [2024-12-26 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105605', 'tblTempVendorCDR_20' ) start [2024-12-26 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105605', 'tblTempVendorCDR_20' ) end [2024-12-26 08:22:17] Production.INFO: ProcessCDR(1,14105605,1,1,2) [2024-12-26 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105605', 'tblTempUsageDetail_20' ) start [2024-12-26 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105605', 'tblTempUsageDetail_20' ) end [2024-12-26 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:22:20] Production.INFO: ==31750== Releasing lock... [2024-12-26 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:23:05 [end_date_ymd] => 2024-12-26 08:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:23:18] Production.INFO: count ==10 [2024-12-26 08:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:23:05 - End Time 2024-12-26 08:23:05 [2024-12-26 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105610', 'tblTempUsageDetail_20' ) start [2024-12-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105610', 'tblTempUsageDetail_20' ) end [2024-12-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105610', 'tblTempVendorCDR_20' ) start [2024-12-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105610', 'tblTempVendorCDR_20' ) end [2024-12-26 08:23:18] Production.INFO: ProcessCDR(1,14105610,1,1,2) [2024-12-26 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105610', 'tblTempUsageDetail_20' ) start [2024-12-26 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105610', 'tblTempUsageDetail_20' ) end [2024-12-26 08:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:23:21] Production.INFO: ==31856== Releasing lock... [2024-12-26 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:24:05 [end_date_ymd] => 2024-12-26 08:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:24:18] Production.INFO: count ==10 [2024-12-26 08:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:24:05 - End Time 2024-12-26 08:24:05 [2024-12-26 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105615', 'tblTempUsageDetail_20' ) start [2024-12-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105615', 'tblTempUsageDetail_20' ) end [2024-12-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105615', 'tblTempVendorCDR_20' ) start [2024-12-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105615', 'tblTempVendorCDR_20' ) end [2024-12-26 08:24:18] Production.INFO: ProcessCDR(1,14105615,1,1,2) [2024-12-26 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105615', 'tblTempUsageDetail_20' ) start [2024-12-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105615', 'tblTempUsageDetail_20' ) end [2024-12-26 08:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:24:21] Production.INFO: ==31961== Releasing lock... [2024-12-26 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:25:05 [end_date_ymd] => 2024-12-26 08:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:25:17] Production.INFO: count ==10 [2024-12-26 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:25:05 - End Time 2024-12-26 08:25:05 [2024-12-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105620', 'tblTempUsageDetail_20' ) start [2024-12-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105620', 'tblTempUsageDetail_20' ) end [2024-12-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105620', 'tblTempVendorCDR_20' ) start [2024-12-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105620', 'tblTempVendorCDR_20' ) end [2024-12-26 08:25:17] Production.INFO: ProcessCDR(1,14105620,1,1,2) [2024-12-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105620', 'tblTempUsageDetail_20' ) start [2024-12-26 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105620', 'tblTempUsageDetail_20' ) end [2024-12-26 08:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:25:20] Production.INFO: ==32072== Releasing lock... [2024-12-26 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:26:05 [end_date_ymd] => 2024-12-26 08:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:26:19] Production.INFO: count ==10 [2024-12-26 08:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:26:05 - End Time 2024-12-26 08:26:05 [2024-12-26 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105625', 'tblTempUsageDetail_20' ) start [2024-12-26 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105625', 'tblTempUsageDetail_20' ) end [2024-12-26 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105625', 'tblTempVendorCDR_20' ) start [2024-12-26 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105625', 'tblTempVendorCDR_20' ) end [2024-12-26 08:26:19] Production.INFO: ProcessCDR(1,14105625,1,1,2) [2024-12-26 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105625', 'tblTempUsageDetail_20' ) start [2024-12-26 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105625', 'tblTempUsageDetail_20' ) end [2024-12-26 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:26:22] Production.INFO: ==32177== Releasing lock... [2024-12-26 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:26:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:27:05 [end_date_ymd] => 2024-12-26 08:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:27:18] Production.INFO: count ==10 [2024-12-26 08:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:27:05 - End Time 2024-12-26 08:27:05 [2024-12-26 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105630', 'tblTempUsageDetail_20' ) start [2024-12-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105630', 'tblTempUsageDetail_20' ) end [2024-12-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105630', 'tblTempVendorCDR_20' ) start [2024-12-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105630', 'tblTempVendorCDR_20' ) end [2024-12-26 08:27:18] Production.INFO: ProcessCDR(1,14105630,1,1,2) [2024-12-26 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105630', 'tblTempUsageDetail_20' ) start [2024-12-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105630', 'tblTempUsageDetail_20' ) end [2024-12-26 08:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:27:21] Production.INFO: ==32287== Releasing lock... [2024-12-26 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:27:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:28:05 [end_date_ymd] => 2024-12-26 08:28:05 [RateCDR] => 1 ) [2024-12-26 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:28:05' and `end` < '2024-12-26 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:28:17] Production.INFO: count ==10 [2024-12-26 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:28:05 - End Time 2024-12-26 08:28:05 [2024-12-26 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105635', 'tblTempUsageDetail_20' ) start [2024-12-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105635', 'tblTempUsageDetail_20' ) end [2024-12-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105635', 'tblTempVendorCDR_20' ) start [2024-12-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105635', 'tblTempVendorCDR_20' ) end [2024-12-26 08:28:17] Production.INFO: ProcessCDR(1,14105635,1,1,2) [2024-12-26 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105635', 'tblTempUsageDetail_20' ) start [2024-12-26 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105635', 'tblTempUsageDetail_20' ) end [2024-12-26 08:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:28:21] Production.INFO: ==32394== Releasing lock... [2024-12-26 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:29:05 [end_date_ymd] => 2024-12-26 08:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:29:18] Production.INFO: count ==10 [2024-12-26 08:29:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:29:05 - End Time 2024-12-26 08:29:05 [2024-12-26 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105640', 'tblTempUsageDetail_20' ) start [2024-12-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105640', 'tblTempUsageDetail_20' ) end [2024-12-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105640', 'tblTempVendorCDR_20' ) start [2024-12-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105640', 'tblTempVendorCDR_20' ) end [2024-12-26 08:29:18] Production.INFO: ProcessCDR(1,14105640,1,1,2) [2024-12-26 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105640', 'tblTempUsageDetail_20' ) start [2024-12-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105640', 'tblTempUsageDetail_20' ) end [2024-12-26 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:29:21] Production.INFO: ==32505== Releasing lock... [2024-12-26 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:30:06 [end_date_ymd] => 2024-12-26 08:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:30:18] Production.INFO: count ==12 [2024-12-26 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:30:06 - End Time 2024-12-26 08:30:06 [2024-12-26 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105645', 'tblTempUsageDetail_20' ) start [2024-12-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105645', 'tblTempUsageDetail_20' ) end [2024-12-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105645', 'tblTempVendorCDR_20' ) start [2024-12-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105645', 'tblTempVendorCDR_20' ) end [2024-12-26 08:30:18] Production.INFO: ProcessCDR(1,14105645,1,1,2) [2024-12-26 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105645', 'tblTempUsageDetail_20' ) start [2024-12-26 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105645', 'tblTempUsageDetail_20' ) end [2024-12-26 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:30:21] Production.INFO: ==32612== Releasing lock... [2024-12-26 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:31:04 [end_date_ymd] => 2024-12-26 08:31:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:31:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:31:17] Production.INFO: count ==13 [2024-12-26 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:31:04 - End Time 2024-12-26 08:31:04 [2024-12-26 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105651', 'tblTempUsageDetail_20' ) start [2024-12-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105651', 'tblTempUsageDetail_20' ) end [2024-12-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105651', 'tblTempVendorCDR_20' ) start [2024-12-26 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105651', 'tblTempVendorCDR_20' ) end [2024-12-26 08:31:17] Production.INFO: ProcessCDR(1,14105651,1,1,2) [2024-12-26 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105651', 'tblTempUsageDetail_20' ) start [2024-12-26 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105651', 'tblTempUsageDetail_20' ) end [2024-12-26 08:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:31:20] Production.INFO: ==32764== Releasing lock... [2024-12-26 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:32:05 [end_date_ymd] => 2024-12-26 08:32:05 [RateCDR] => 1 ) [2024-12-26 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:32:05' and `end` < '2024-12-26 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:32:18] Production.INFO: count ==14 [2024-12-26 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:32:05 - End Time 2024-12-26 08:32:05 [2024-12-26 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105656', 'tblTempUsageDetail_20' ) start [2024-12-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105656', 'tblTempUsageDetail_20' ) end [2024-12-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105656', 'tblTempVendorCDR_20' ) start [2024-12-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105656', 'tblTempVendorCDR_20' ) end [2024-12-26 08:32:18] Production.INFO: ProcessCDR(1,14105656,1,1,2) [2024-12-26 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105656', 'tblTempUsageDetail_20' ) start [2024-12-26 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105656', 'tblTempUsageDetail_20' ) end [2024-12-26 08:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:32:21] Production.INFO: ==423== Releasing lock... [2024-12-26 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:33:04 [end_date_ymd] => 2024-12-26 08:33:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:33:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:33:17] Production.INFO: count ==14 [2024-12-26 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:33:04 - End Time 2024-12-26 08:33:04 [2024-12-26 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105661', 'tblTempUsageDetail_20' ) start [2024-12-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105661', 'tblTempUsageDetail_20' ) end [2024-12-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105661', 'tblTempVendorCDR_20' ) start [2024-12-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105661', 'tblTempVendorCDR_20' ) end [2024-12-26 08:33:17] Production.INFO: ProcessCDR(1,14105661,1,1,2) [2024-12-26 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105661', 'tblTempUsageDetail_20' ) start [2024-12-26 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105661', 'tblTempUsageDetail_20' ) end [2024-12-26 08:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:33:20] Production.INFO: ==533== Releasing lock... [2024-12-26 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:34:05 [end_date_ymd] => 2024-12-26 08:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:34:19] Production.INFO: count ==14 [2024-12-26 08:34:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:34:05 - End Time 2024-12-26 08:34:05 [2024-12-26 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105666', 'tblTempUsageDetail_20' ) start [2024-12-26 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105666', 'tblTempUsageDetail_20' ) end [2024-12-26 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105666', 'tblTempVendorCDR_20' ) start [2024-12-26 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105666', 'tblTempVendorCDR_20' ) end [2024-12-26 08:34:19] Production.INFO: ProcessCDR(1,14105666,1,1,2) [2024-12-26 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105666', 'tblTempUsageDetail_20' ) start [2024-12-26 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105666', 'tblTempUsageDetail_20' ) end [2024-12-26 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:34:22] Production.INFO: ==656== Releasing lock... [2024-12-26 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:35:04 [end_date_ymd] => 2024-12-26 08:35:04 [RateCDR] => 1 ) [2024-12-26 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:35:04' and `end` < '2024-12-26 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:35:16] Production.INFO: count ==15 [2024-12-26 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:35:04 - End Time 2024-12-26 08:35:04 [2024-12-26 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105671', 'tblTempUsageDetail_20' ) start [2024-12-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105671', 'tblTempUsageDetail_20' ) end [2024-12-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105671', 'tblTempVendorCDR_20' ) start [2024-12-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105671', 'tblTempVendorCDR_20' ) end [2024-12-26 08:35:17] Production.INFO: ProcessCDR(1,14105671,1,1,2) [2024-12-26 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105671', 'tblTempUsageDetail_20' ) start [2024-12-26 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105671', 'tblTempUsageDetail_20' ) end [2024-12-26 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:35:20] Production.INFO: ==787== Releasing lock... [2024-12-26 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:36:05 [end_date_ymd] => 2024-12-26 08:36:05 [RateCDR] => 1 ) [2024-12-26 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:36:05' and `end` < '2024-12-26 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:36:17] Production.INFO: count ==15 [2024-12-26 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:36:05 - End Time 2024-12-26 08:36:05 [2024-12-26 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105676', 'tblTempUsageDetail_20' ) start [2024-12-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105676', 'tblTempUsageDetail_20' ) end [2024-12-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105676', 'tblTempVendorCDR_20' ) start [2024-12-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105676', 'tblTempVendorCDR_20' ) end [2024-12-26 08:36:17] Production.INFO: ProcessCDR(1,14105676,1,1,2) [2024-12-26 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105676', 'tblTempUsageDetail_20' ) start [2024-12-26 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105676', 'tblTempUsageDetail_20' ) end [2024-12-26 08:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:36:20] Production.INFO: ==901== Releasing lock... [2024-12-26 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:37:04 [end_date_ymd] => 2024-12-26 08:37:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:37:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:37:18] Production.INFO: count ==16 [2024-12-26 08:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:37:04 - End Time 2024-12-26 08:37:04 [2024-12-26 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105681', 'tblTempUsageDetail_20' ) start [2024-12-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105681', 'tblTempUsageDetail_20' ) end [2024-12-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105681', 'tblTempVendorCDR_20' ) start [2024-12-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105681', 'tblTempVendorCDR_20' ) end [2024-12-26 08:37:18] Production.INFO: ProcessCDR(1,14105681,1,1,2) [2024-12-26 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105681', 'tblTempUsageDetail_20' ) start [2024-12-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105681', 'tblTempUsageDetail_20' ) end [2024-12-26 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:37:21] Production.INFO: ==990== Releasing lock... [2024-12-26 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:38:05 [end_date_ymd] => 2024-12-26 08:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:38:19] Production.INFO: count ==17 [2024-12-26 08:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:38:05 - End Time 2024-12-26 08:38:05 [2024-12-26 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105686', 'tblTempUsageDetail_20' ) start [2024-12-26 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105686', 'tblTempUsageDetail_20' ) end [2024-12-26 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105686', 'tblTempVendorCDR_20' ) start [2024-12-26 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105686', 'tblTempVendorCDR_20' ) end [2024-12-26 08:38:19] Production.INFO: ProcessCDR(1,14105686,1,1,2) [2024-12-26 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105686', 'tblTempUsageDetail_20' ) start [2024-12-26 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105686', 'tblTempUsageDetail_20' ) end [2024-12-26 08:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:38:24] Production.INFO: ==1075== Releasing lock... [2024-12-26 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:38:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:39:05 [end_date_ymd] => 2024-12-26 08:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:39:17] Production.INFO: count ==17 [2024-12-26 08:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:39:05 - End Time 2024-12-26 08:39:05 [2024-12-26 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105691', 'tblTempUsageDetail_20' ) start [2024-12-26 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105691', 'tblTempUsageDetail_20' ) end [2024-12-26 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105691', 'tblTempVendorCDR_20' ) start [2024-12-26 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105691', 'tblTempVendorCDR_20' ) end [2024-12-26 08:39:17] Production.INFO: ProcessCDR(1,14105691,1,1,2) [2024-12-26 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105691', 'tblTempUsageDetail_20' ) start [2024-12-26 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105691', 'tblTempUsageDetail_20' ) end [2024-12-26 08:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:39:20] Production.INFO: ==1157== Releasing lock... [2024-12-26 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:40:06 [end_date_ymd] => 2024-12-26 08:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:40:18] Production.INFO: count ==19 [2024-12-26 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:40:06 - End Time 2024-12-26 08:40:06 [2024-12-26 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105697', 'tblTempUsageDetail_20' ) start [2024-12-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105697', 'tblTempUsageDetail_20' ) end [2024-12-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105697', 'tblTempVendorCDR_20' ) start [2024-12-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105697', 'tblTempVendorCDR_20' ) end [2024-12-26 08:40:18] Production.INFO: ProcessCDR(1,14105697,1,1,2) [2024-12-26 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105697', 'tblTempUsageDetail_20' ) start [2024-12-26 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105697', 'tblTempUsageDetail_20' ) end [2024-12-26 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:40:21] Production.INFO: ==1246== Releasing lock... [2024-12-26 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:41:05 [end_date_ymd] => 2024-12-26 08:41:05 [RateCDR] => 1 ) [2024-12-26 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:41:05' and `end` < '2024-12-26 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:41:19] Production.INFO: count ==20 [2024-12-26 08:41:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:41:05 - End Time 2024-12-26 08:41:05 [2024-12-26 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105702', 'tblTempUsageDetail_20' ) start [2024-12-26 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105702', 'tblTempUsageDetail_20' ) end [2024-12-26 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105702', 'tblTempVendorCDR_20' ) start [2024-12-26 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105702', 'tblTempVendorCDR_20' ) end [2024-12-26 08:41:19] Production.INFO: ProcessCDR(1,14105702,1,1,2) [2024-12-26 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105702', 'tblTempUsageDetail_20' ) start [2024-12-26 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105702', 'tblTempUsageDetail_20' ) end [2024-12-26 08:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:41:23] Production.INFO: ==1336== Releasing lock... [2024-12-26 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:41:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:42:04 [end_date_ymd] => 2024-12-26 08:42:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:42:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:42:17] Production.INFO: count ==20 [2024-12-26 08:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:42:04 - End Time 2024-12-26 08:42:04 [2024-12-26 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105707', 'tblTempUsageDetail_20' ) start [2024-12-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105707', 'tblTempUsageDetail_20' ) end [2024-12-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105707', 'tblTempVendorCDR_20' ) start [2024-12-26 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105707', 'tblTempVendorCDR_20' ) end [2024-12-26 08:42:17] Production.INFO: ProcessCDR(1,14105707,1,1,2) [2024-12-26 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105707', 'tblTempUsageDetail_20' ) start [2024-12-26 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105707', 'tblTempUsageDetail_20' ) end [2024-12-26 08:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:42:20] Production.INFO: ==1416== Releasing lock... [2024-12-26 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:43:05 [end_date_ymd] => 2024-12-26 08:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:43:17] Production.INFO: count ==20 [2024-12-26 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:43:05 - End Time 2024-12-26 08:43:05 [2024-12-26 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105712', 'tblTempUsageDetail_20' ) start [2024-12-26 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105712', 'tblTempUsageDetail_20' ) end [2024-12-26 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105712', 'tblTempVendorCDR_20' ) start [2024-12-26 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105712', 'tblTempVendorCDR_20' ) end [2024-12-26 08:43:17] Production.INFO: ProcessCDR(1,14105712,1,1,2) [2024-12-26 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105712', 'tblTempUsageDetail_20' ) start [2024-12-26 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105712', 'tblTempUsageDetail_20' ) end [2024-12-26 08:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:43:20] Production.INFO: ==1496== Releasing lock... [2024-12-26 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-26 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:44:04 [end_date_ymd] => 2024-12-26 08:44:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:44:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:44:20] Production.INFO: count ==27 [2024-12-26 08:44:20] Production.ERROR: pbx CDR StartTime 2024-12-26 05:44:04 - End Time 2024-12-26 08:44:04 [2024-12-26 08:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105717', 'tblTempUsageDetail_20' ) start [2024-12-26 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105717', 'tblTempUsageDetail_20' ) end [2024-12-26 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105717', 'tblTempVendorCDR_20' ) start [2024-12-26 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105717', 'tblTempVendorCDR_20' ) end [2024-12-26 08:44:20] Production.INFO: ProcessCDR(1,14105717,1,1,2) [2024-12-26 08:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105717', 'tblTempUsageDetail_20' ) start [2024-12-26 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105717', 'tblTempUsageDetail_20' ) end [2024-12-26 08:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:44:23] Production.INFO: ==1612== Releasing lock... [2024-12-26 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:44:23] Production.INFO: 28 MB #Memory Used# [2024-12-26 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:45:04 [end_date_ymd] => 2024-12-26 08:45:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:45:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:45:17] Production.INFO: count ==34 [2024-12-26 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:45:04 - End Time 2024-12-26 08:45:04 [2024-12-26 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105722', 'tblTempUsageDetail_20' ) start [2024-12-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105722', 'tblTempUsageDetail_20' ) end [2024-12-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105722', 'tblTempVendorCDR_20' ) start [2024-12-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105722', 'tblTempVendorCDR_20' ) end [2024-12-26 08:45:17] Production.INFO: ProcessCDR(1,14105722,1,1,2) [2024-12-26 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105722', 'tblTempUsageDetail_20' ) start [2024-12-26 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105722', 'tblTempUsageDetail_20' ) end [2024-12-26 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:45:20] Production.INFO: ==1694== Releasing lock... [2024-12-26 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-26 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:46:05 [end_date_ymd] => 2024-12-26 08:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:46:17] Production.INFO: count ==49 [2024-12-26 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:46:05 - End Time 2024-12-26 08:46:05 [2024-12-26 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105727', 'tblTempUsageDetail_20' ) start [2024-12-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105727', 'tblTempUsageDetail_20' ) end [2024-12-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105727', 'tblTempVendorCDR_20' ) start [2024-12-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105727', 'tblTempVendorCDR_20' ) end [2024-12-26 08:46:17] Production.INFO: ProcessCDR(1,14105727,1,1,2) [2024-12-26 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105727', 'tblTempUsageDetail_20' ) start [2024-12-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105727', 'tblTempUsageDetail_20' ) end [2024-12-26 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:46:22] Production.INFO: ==1777== Releasing lock... [2024-12-26 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:46:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:47:05 [end_date_ymd] => 2024-12-26 08:47:05 [RateCDR] => 1 ) [2024-12-26 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:47:05' and `end` < '2024-12-26 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:47:19] Production.INFO: count ==49 [2024-12-26 08:47:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:47:05 - End Time 2024-12-26 08:47:05 [2024-12-26 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105732', 'tblTempUsageDetail_20' ) start [2024-12-26 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105732', 'tblTempUsageDetail_20' ) end [2024-12-26 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105732', 'tblTempVendorCDR_20' ) start [2024-12-26 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105732', 'tblTempVendorCDR_20' ) end [2024-12-26 08:47:19] Production.INFO: ProcessCDR(1,14105732,1,1,2) [2024-12-26 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105732', 'tblTempUsageDetail_20' ) start [2024-12-26 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105732', 'tblTempUsageDetail_20' ) end [2024-12-26 08:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:47:22] Production.INFO: ==1898== Releasing lock... [2024-12-26 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:47:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:48:05 [end_date_ymd] => 2024-12-26 08:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:48:17] Production.INFO: count ==49 [2024-12-26 08:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:48:05 - End Time 2024-12-26 08:48:05 [2024-12-26 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105737', 'tblTempUsageDetail_20' ) start [2024-12-26 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105737', 'tblTempUsageDetail_20' ) end [2024-12-26 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105737', 'tblTempVendorCDR_20' ) start [2024-12-26 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105737', 'tblTempVendorCDR_20' ) end [2024-12-26 08:48:17] Production.INFO: ProcessCDR(1,14105737,1,1,2) [2024-12-26 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105737', 'tblTempUsageDetail_20' ) start [2024-12-26 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105737', 'tblTempUsageDetail_20' ) end [2024-12-26 08:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:48:20] Production.INFO: ==1976== Releasing lock... [2024-12-26 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:48:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:49:04 [end_date_ymd] => 2024-12-26 08:49:04 [RateCDR] => 1 ) [2024-12-26 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:49:04' and `end` < '2024-12-26 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:49:18] Production.INFO: count ==49 [2024-12-26 08:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:49:04 - End Time 2024-12-26 08:49:04 [2024-12-26 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105742', 'tblTempUsageDetail_20' ) start [2024-12-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105742', 'tblTempUsageDetail_20' ) end [2024-12-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105742', 'tblTempVendorCDR_20' ) start [2024-12-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105742', 'tblTempVendorCDR_20' ) end [2024-12-26 08:49:18] Production.INFO: ProcessCDR(1,14105742,1,1,2) [2024-12-26 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105742', 'tblTempUsageDetail_20' ) start [2024-12-26 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105742', 'tblTempUsageDetail_20' ) end [2024-12-26 08:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:49:21] Production.INFO: ==2064== Releasing lock... [2024-12-26 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:49:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:50:06 [end_date_ymd] => 2024-12-26 08:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:50:18] Production.INFO: count ==57 [2024-12-26 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:50:06 - End Time 2024-12-26 08:50:06 [2024-12-26 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105748', 'tblTempUsageDetail_20' ) start [2024-12-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105748', 'tblTempUsageDetail_20' ) end [2024-12-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105748', 'tblTempVendorCDR_20' ) start [2024-12-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105748', 'tblTempVendorCDR_20' ) end [2024-12-26 08:50:18] Production.INFO: ProcessCDR(1,14105748,1,1,2) [2024-12-26 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105748', 'tblTempUsageDetail_20' ) start [2024-12-26 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105748', 'tblTempUsageDetail_20' ) end [2024-12-26 08:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:50:21] Production.INFO: ==2147== Releasing lock... [2024-12-26 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:50:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:51:05 [end_date_ymd] => 2024-12-26 08:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:51:18] Production.INFO: count ==62 [2024-12-26 08:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:51:05 - End Time 2024-12-26 08:51:05 [2024-12-26 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105753', 'tblTempUsageDetail_20' ) start [2024-12-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105753', 'tblTempUsageDetail_20' ) end [2024-12-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105753', 'tblTempVendorCDR_20' ) start [2024-12-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105753', 'tblTempVendorCDR_20' ) end [2024-12-26 08:51:18] Production.INFO: ProcessCDR(1,14105753,1,1,2) [2024-12-26 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105753', 'tblTempUsageDetail_20' ) start [2024-12-26 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105753', 'tblTempUsageDetail_20' ) end [2024-12-26 08:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:51:23] Production.INFO: ==2232== Releasing lock... [2024-12-26 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:51:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:52:05 [end_date_ymd] => 2024-12-26 08:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:52:18] Production.INFO: count ==62 [2024-12-26 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:52:05 - End Time 2024-12-26 08:52:05 [2024-12-26 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105758', 'tblTempUsageDetail_20' ) start [2024-12-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105758', 'tblTempUsageDetail_20' ) end [2024-12-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105758', 'tblTempVendorCDR_20' ) start [2024-12-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105758', 'tblTempVendorCDR_20' ) end [2024-12-26 08:52:18] Production.INFO: ProcessCDR(1,14105758,1,1,2) [2024-12-26 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105758', 'tblTempUsageDetail_20' ) start [2024-12-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105758', 'tblTempUsageDetail_20' ) end [2024-12-26 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:52:21] Production.INFO: ==2308== Releasing lock... [2024-12-26 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:52:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-26 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:53:05 [end_date_ymd] => 2024-12-26 08:53:05 [RateCDR] => 1 ) [2024-12-26 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:53:05' and `end` < '2024-12-26 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:53:21] Production.INFO: count ==69 [2024-12-26 08:53:21] Production.ERROR: pbx CDR StartTime 2024-12-26 05:53:05 - End Time 2024-12-26 08:53:05 [2024-12-26 08:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105763', 'tblTempUsageDetail_20' ) start [2024-12-26 08:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105763', 'tblTempUsageDetail_20' ) end [2024-12-26 08:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105763', 'tblTempVendorCDR_20' ) start [2024-12-26 08:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105763', 'tblTempVendorCDR_20' ) end [2024-12-26 08:53:21] Production.INFO: ProcessCDR(1,14105763,1,1,2) [2024-12-26 08:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105763', 'tblTempUsageDetail_20' ) start [2024-12-26 08:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105763', 'tblTempUsageDetail_20' ) end [2024-12-26 08:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:53:26] Production.INFO: ==2391== Releasing lock... [2024-12-26 08:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:53:26] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:54:04 [end_date_ymd] => 2024-12-26 08:54:04 [RateCDR] => 1 ) [2024-12-26 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 05:54:04' and `end` < '2024-12-26 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 08:54:18] Production.INFO: count ==70 [2024-12-26 08:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:54:04 - End Time 2024-12-26 08:54:04 [2024-12-26 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105768', 'tblTempUsageDetail_20' ) start [2024-12-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105768', 'tblTempUsageDetail_20' ) end [2024-12-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105768', 'tblTempVendorCDR_20' ) start [2024-12-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105768', 'tblTempVendorCDR_20' ) end [2024-12-26 08:54:18] Production.INFO: ProcessCDR(1,14105768,1,1,2) [2024-12-26 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105768', 'tblTempUsageDetail_20' ) start [2024-12-26 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105768', 'tblTempUsageDetail_20' ) end [2024-12-26 08:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:54:22] Production.INFO: ==2490== Releasing lock... [2024-12-26 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:54:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:55:05 [end_date_ymd] => 2024-12-26 08:55:05 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:55:05' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:55:18] Production.INFO: count ==70 [2024-12-26 08:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 05:55:05 - End Time 2024-12-26 08:55:05 [2024-12-26 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105773', 'tblTempUsageDetail_20' ) start [2024-12-26 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105773', 'tblTempUsageDetail_20' ) end [2024-12-26 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105773', 'tblTempVendorCDR_20' ) start [2024-12-26 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105773', 'tblTempVendorCDR_20' ) end [2024-12-26 08:55:18] Production.INFO: ProcessCDR(1,14105773,1,1,2) [2024-12-26 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105773', 'tblTempUsageDetail_20' ) start [2024-12-26 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105773', 'tblTempUsageDetail_20' ) end [2024-12-26 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:55:21] Production.INFO: ==2570== Releasing lock... [2024-12-26 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:55:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:56:04 [end_date_ymd] => 2024-12-26 08:56:04 [RateCDR] => 1 ) [2024-12-26 08:56: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` >= '2024-12-26 05:56:04' and `end` < '2024-12-26 08:56: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 ,'') [2024-12-26 08:56:17] Production.INFO: count ==72 [2024-12-26 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:56:04 - End Time 2024-12-26 08:56:04 [2024-12-26 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105778', 'tblTempUsageDetail_20' ) start [2024-12-26 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105778', 'tblTempUsageDetail_20' ) end [2024-12-26 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105778', 'tblTempVendorCDR_20' ) start [2024-12-26 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105778', 'tblTempVendorCDR_20' ) end [2024-12-26 08:56:17] Production.INFO: ProcessCDR(1,14105778,1,1,2) [2024-12-26 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105778', 'tblTempUsageDetail_20' ) start [2024-12-26 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105778', 'tblTempUsageDetail_20' ) end [2024-12-26 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:56:20] Production.INFO: ==2653== Releasing lock... [2024-12-26 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:56:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:57:04 [end_date_ymd] => 2024-12-26 08:57:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:57:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:57:17] Production.INFO: count ==75 [2024-12-26 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:57:04 - End Time 2024-12-26 08:57:04 [2024-12-26 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105782', 'tblTempUsageDetail_20' ) start [2024-12-26 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105782', 'tblTempUsageDetail_20' ) end [2024-12-26 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105782', 'tblTempVendorCDR_20' ) start [2024-12-26 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105782', 'tblTempVendorCDR_20' ) end [2024-12-26 08:57:17] Production.INFO: ProcessCDR(1,14105782,1,1,2) [2024-12-26 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105782', 'tblTempUsageDetail_20' ) start [2024-12-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105782', 'tblTempUsageDetail_20' ) end [2024-12-26 08:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:57:21] Production.INFO: ==2734== Releasing lock... [2024-12-26 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:57:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:58:04 [end_date_ymd] => 2024-12-26 08:58:04 [RateCDR] => 1 ) [2024-12-26 08: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` >= '2024-12-26 05:58:04' and `end` < '2024-12-26 08: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 ,'') [2024-12-26 08:58:17] Production.INFO: count ==82 [2024-12-26 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 05:58:04 - End Time 2024-12-26 08:58:04 [2024-12-26 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105788', 'tblTempUsageDetail_20' ) start [2024-12-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105788', 'tblTempUsageDetail_20' ) end [2024-12-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105788', 'tblTempVendorCDR_20' ) start [2024-12-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105788', 'tblTempVendorCDR_20' ) end [2024-12-26 08:58:17] Production.INFO: ProcessCDR(1,14105788,1,1,2) [2024-12-26 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105788', 'tblTempUsageDetail_20' ) start [2024-12-26 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105788', 'tblTempUsageDetail_20' ) end [2024-12-26 08:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:58:20] Production.INFO: ==2825== Releasing lock... [2024-12-26 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:58:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-26 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 05:59:05 [end_date_ymd] => 2024-12-26 08:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 05:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 08:59:19] Production.INFO: count ==89 [2024-12-26 08:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 05:59:05 - End Time 2024-12-26 08:59:05 [2024-12-26 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105793', 'tblTempUsageDetail_20' ) start [2024-12-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105793', 'tblTempUsageDetail_20' ) end [2024-12-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105793', 'tblTempVendorCDR_20' ) start [2024-12-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105793', 'tblTempVendorCDR_20' ) end [2024-12-26 08:59:19] Production.INFO: ProcessCDR(1,14105793,1,1,2) [2024-12-26 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105793', 'tblTempUsageDetail_20' ) start [2024-12-26 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105793', 'tblTempUsageDetail_20' ) end [2024-12-26 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 08:59:22] Production.INFO: ==2906== Releasing lock... [2024-12-26 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 08:59:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:00:05 [end_date_ymd] => 2024-12-26 09:00:05 [RateCDR] => 1 ) [2024-12-26 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:00:05' and `end` < '2024-12-26 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:00:18] Production.INFO: count ==95 [2024-12-26 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:00:05 - End Time 2024-12-26 09:00:05 [2024-12-26 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105799', 'tblTempUsageDetail_20' ) start [2024-12-26 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105799', 'tblTempUsageDetail_20' ) end [2024-12-26 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105799', 'tblTempVendorCDR_20' ) start [2024-12-26 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105799', 'tblTempVendorCDR_20' ) end [2024-12-26 09:00:18] Production.INFO: ProcessCDR(1,14105799,1,1,2) [2024-12-26 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105799', 'tblTempUsageDetail_20' ) start [2024-12-26 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105799', 'tblTempUsageDetail_20' ) end [2024-12-26 09:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:00:21] Production.INFO: ==2988== Releasing lock... [2024-12-26 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:00:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-26 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:01:04 [end_date_ymd] => 2024-12-26 09:01:04 [RateCDR] => 1 ) [2024-12-26 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:01:04' and `end` < '2024-12-26 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:01:17] Production.INFO: count ==106 [2024-12-26 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:01:04 - End Time 2024-12-26 09:01:04 [2024-12-26 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105804', 'tblTempUsageDetail_20' ) start [2024-12-26 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105804', 'tblTempUsageDetail_20' ) end [2024-12-26 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105804', 'tblTempVendorCDR_20' ) start [2024-12-26 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105804', 'tblTempVendorCDR_20' ) end [2024-12-26 09:01:17] Production.INFO: ProcessCDR(1,14105804,1,1,2) [2024-12-26 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105804', 'tblTempUsageDetail_20' ) start [2024-12-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105804', 'tblTempUsageDetail_20' ) end [2024-12-26 09:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:01:21] Production.INFO: ==3082== Releasing lock... [2024-12-26 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:01:21] Production.INFO: 29 MB #Memory Used# [2024-12-26 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:02:05 [end_date_ymd] => 2024-12-26 09:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:02:18] Production.INFO: count ==116 [2024-12-26 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:02:05 - End Time 2024-12-26 09:02:05 [2024-12-26 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105809', 'tblTempUsageDetail_20' ) start [2024-12-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105809', 'tblTempUsageDetail_20' ) end [2024-12-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105809', 'tblTempVendorCDR_20' ) start [2024-12-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105809', 'tblTempVendorCDR_20' ) end [2024-12-26 09:02:18] Production.INFO: ProcessCDR(1,14105809,1,1,2) [2024-12-26 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105809', 'tblTempUsageDetail_20' ) start [2024-12-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105809', 'tblTempUsageDetail_20' ) end [2024-12-26 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:02:21] Production.INFO: ==3165== Releasing lock... [2024-12-26 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:02:21] Production.INFO: 29 MB #Memory Used# [2024-12-26 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:03:05 [end_date_ymd] => 2024-12-26 09:03:05 [RateCDR] => 1 ) [2024-12-26 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:03:05' and `end` < '2024-12-26 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:03:17] Production.INFO: count ==119 [2024-12-26 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:03:05 - End Time 2024-12-26 09:03:05 [2024-12-26 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105814', 'tblTempUsageDetail_20' ) start [2024-12-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105814', 'tblTempUsageDetail_20' ) end [2024-12-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105814', 'tblTempVendorCDR_20' ) start [2024-12-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105814', 'tblTempVendorCDR_20' ) end [2024-12-26 09:03:17] Production.INFO: ProcessCDR(1,14105814,1,1,2) [2024-12-26 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105814', 'tblTempUsageDetail_20' ) start [2024-12-26 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105814', 'tblTempUsageDetail_20' ) end [2024-12-26 09:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:03:20] Production.INFO: ==3296== Releasing lock... [2024-12-26 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:04:05 [end_date_ymd] => 2024-12-26 09:04:05 [RateCDR] => 1 ) [2024-12-26 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:04:05' and `end` < '2024-12-26 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:04:17] Production.INFO: count ==120 [2024-12-26 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:04:05 - End Time 2024-12-26 09:04:05 [2024-12-26 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105819', 'tblTempUsageDetail_20' ) start [2024-12-26 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105819', 'tblTempUsageDetail_20' ) end [2024-12-26 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105819', 'tblTempVendorCDR_20' ) start [2024-12-26 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105819', 'tblTempVendorCDR_20' ) end [2024-12-26 09:04:17] Production.INFO: ProcessCDR(1,14105819,1,1,2) [2024-12-26 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105819', 'tblTempUsageDetail_20' ) start [2024-12-26 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105819', 'tblTempUsageDetail_20' ) end [2024-12-26 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:04:22] Production.INFO: ==3384== Releasing lock... [2024-12-26 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:04:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:05:04 [end_date_ymd] => 2024-12-26 09:05:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:05:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:05:18] Production.INFO: count ==122 [2024-12-26 09:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:05:04 - End Time 2024-12-26 09:05:04 [2024-12-26 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105824', 'tblTempUsageDetail_20' ) start [2024-12-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105824', 'tblTempUsageDetail_20' ) end [2024-12-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105824', 'tblTempVendorCDR_20' ) start [2024-12-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105824', 'tblTempVendorCDR_20' ) end [2024-12-26 09:05:18] Production.INFO: ProcessCDR(1,14105824,1,1,2) [2024-12-26 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105824', 'tblTempUsageDetail_20' ) start [2024-12-26 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105824', 'tblTempUsageDetail_20' ) end [2024-12-26 09:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:05:21] Production.INFO: ==3471== Releasing lock... [2024-12-26 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:05:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:06:04 [end_date_ymd] => 2024-12-26 09:06:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:06:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:06:17] Production.INFO: count ==122 [2024-12-26 09:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:06:04 - End Time 2024-12-26 09:06:04 [2024-12-26 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105829', 'tblTempUsageDetail_20' ) start [2024-12-26 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105829', 'tblTempUsageDetail_20' ) end [2024-12-26 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105829', 'tblTempVendorCDR_20' ) start [2024-12-26 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105829', 'tblTempVendorCDR_20' ) end [2024-12-26 09:06:17] Production.INFO: ProcessCDR(1,14105829,1,1,2) [2024-12-26 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105829', 'tblTempUsageDetail_20' ) start [2024-12-26 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105829', 'tblTempUsageDetail_20' ) end [2024-12-26 09:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:06:20] Production.INFO: ==3552== Releasing lock... [2024-12-26 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:07:05 [end_date_ymd] => 2024-12-26 09:07:05 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:07:05' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:07:17] Production.INFO: count ==123 [2024-12-26 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:07:05 - End Time 2024-12-26 09:07:05 [2024-12-26 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105834', 'tblTempUsageDetail_20' ) start [2024-12-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105834', 'tblTempUsageDetail_20' ) end [2024-12-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105834', 'tblTempVendorCDR_20' ) start [2024-12-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105834', 'tblTempVendorCDR_20' ) end [2024-12-26 09:07:17] Production.INFO: ProcessCDR(1,14105834,1,1,2) [2024-12-26 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105834', 'tblTempUsageDetail_20' ) start [2024-12-26 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105834', 'tblTempUsageDetail_20' ) end [2024-12-26 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:07:22] Production.INFO: ==3636== Releasing lock... [2024-12-26 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:07:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-26 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:08:05 [end_date_ymd] => 2024-12-26 09:08:05 [RateCDR] => 1 ) [2024-12-26 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:08:05' and `end` < '2024-12-26 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:08:19] Production.INFO: count ==149 [2024-12-26 09:08:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:08:05 - End Time 2024-12-26 09:08:05 [2024-12-26 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105839', 'tblTempUsageDetail_20' ) start [2024-12-26 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105839', 'tblTempUsageDetail_20' ) end [2024-12-26 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105839', 'tblTempVendorCDR_20' ) start [2024-12-26 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105839', 'tblTempVendorCDR_20' ) end [2024-12-26 09:08:19] Production.INFO: ProcessCDR(1,14105839,1,1,2) [2024-12-26 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105839', 'tblTempUsageDetail_20' ) start [2024-12-26 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105839', 'tblTempUsageDetail_20' ) end [2024-12-26 09:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:08:24] Production.INFO: ==3718== Releasing lock... [2024-12-26 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:08:24] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:09:05 [end_date_ymd] => 2024-12-26 09:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:09:18] Production.INFO: count ==150 [2024-12-26 09:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:09:05 - End Time 2024-12-26 09:09:05 [2024-12-26 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105844', 'tblTempUsageDetail_20' ) start [2024-12-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105844', 'tblTempUsageDetail_20' ) end [2024-12-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105844', 'tblTempVendorCDR_20' ) start [2024-12-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105844', 'tblTempVendorCDR_20' ) end [2024-12-26 09:09:18] Production.INFO: ProcessCDR(1,14105844,1,1,2) [2024-12-26 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105844', 'tblTempUsageDetail_20' ) start [2024-12-26 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105844', 'tblTempUsageDetail_20' ) end [2024-12-26 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:09:21] Production.INFO: ==3806== Releasing lock... [2024-12-26 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:09:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:10:05 [end_date_ymd] => 2024-12-26 09:10:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:10:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:10:18] Production.INFO: count ==163 [2024-12-26 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:10:05 - End Time 2024-12-26 09:10:05 [2024-12-26 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105850', 'tblTempUsageDetail_20' ) start [2024-12-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105850', 'tblTempUsageDetail_20' ) end [2024-12-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105850', 'tblTempVendorCDR_20' ) start [2024-12-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105850', 'tblTempVendorCDR_20' ) end [2024-12-26 09:10:18] Production.INFO: ProcessCDR(1,14105850,1,1,2) [2024-12-26 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105850', 'tblTempUsageDetail_20' ) start [2024-12-26 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105850', 'tblTempUsageDetail_20' ) end [2024-12-26 09:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:10:23] Production.INFO: ==3896== Releasing lock... [2024-12-26 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:10:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-26 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:11:05 [end_date_ymd] => 2024-12-26 09:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:11:19] Production.INFO: count ==176 [2024-12-26 09:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:11:05 - End Time 2024-12-26 09:11:05 [2024-12-26 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105855', 'tblTempUsageDetail_20' ) start [2024-12-26 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105855', 'tblTempUsageDetail_20' ) end [2024-12-26 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105855', 'tblTempVendorCDR_20' ) start [2024-12-26 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105855', 'tblTempVendorCDR_20' ) end [2024-12-26 09:11:19] Production.INFO: ProcessCDR(1,14105855,1,1,2) [2024-12-26 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105855', 'tblTempUsageDetail_20' ) start [2024-12-26 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105855', 'tblTempUsageDetail_20' ) end [2024-12-26 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:11:22] Production.INFO: ==3998== Releasing lock... [2024-12-26 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:11:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:12:04 [end_date_ymd] => 2024-12-26 09:12:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:12:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:12:17] Production.INFO: count ==194 [2024-12-26 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:12:04 - End Time 2024-12-26 09:12:04 [2024-12-26 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105860', 'tblTempUsageDetail_20' ) start [2024-12-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105860', 'tblTempUsageDetail_20' ) end [2024-12-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105860', 'tblTempVendorCDR_20' ) start [2024-12-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105860', 'tblTempVendorCDR_20' ) end [2024-12-26 09:12:17] Production.INFO: ProcessCDR(1,14105860,1,1,2) [2024-12-26 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105860', 'tblTempUsageDetail_20' ) start [2024-12-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105860', 'tblTempUsageDetail_20' ) end [2024-12-26 09:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:12:21] Production.INFO: ==4081== Releasing lock... [2024-12-26 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:12:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:13:05 [end_date_ymd] => 2024-12-26 09:13:05 [RateCDR] => 1 ) [2024-12-26 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:13:05' and `end` < '2024-12-26 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:13:17] Production.INFO: count ==196 [2024-12-26 09:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:13:05 - End Time 2024-12-26 09:13:05 [2024-12-26 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105865', 'tblTempUsageDetail_20' ) start [2024-12-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105865', 'tblTempUsageDetail_20' ) end [2024-12-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105865', 'tblTempVendorCDR_20' ) start [2024-12-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105865', 'tblTempVendorCDR_20' ) end [2024-12-26 09:13:17] Production.INFO: ProcessCDR(1,14105865,1,1,2) [2024-12-26 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105865', 'tblTempUsageDetail_20' ) start [2024-12-26 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105865', 'tblTempUsageDetail_20' ) end [2024-12-26 09:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:13:20] Production.INFO: ==4167== Releasing lock... [2024-12-26 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:13:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-26 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:14:05 [end_date_ymd] => 2024-12-26 09:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:14:17] Production.INFO: count ==232 [2024-12-26 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:14:05 - End Time 2024-12-26 09:14:05 [2024-12-26 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105870', 'tblTempUsageDetail_20' ) start [2024-12-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105870', 'tblTempUsageDetail_20' ) end [2024-12-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105870', 'tblTempVendorCDR_20' ) start [2024-12-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105870', 'tblTempVendorCDR_20' ) end [2024-12-26 09:14:17] Production.INFO: ProcessCDR(1,14105870,1,1,2) [2024-12-26 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105870', 'tblTempUsageDetail_20' ) start [2024-12-26 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105870', 'tblTempUsageDetail_20' ) end [2024-12-26 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:14:21] Production.INFO: ==4250== Releasing lock... [2024-12-26 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:14:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-26 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:15:05 [end_date_ymd] => 2024-12-26 09:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:15:17] Production.INFO: count ==235 [2024-12-26 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:15:05 - End Time 2024-12-26 09:15:05 [2024-12-26 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105875', 'tblTempUsageDetail_20' ) start [2024-12-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105875', 'tblTempUsageDetail_20' ) end [2024-12-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105875', 'tblTempVendorCDR_20' ) start [2024-12-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105875', 'tblTempVendorCDR_20' ) end [2024-12-26 09:15:17] Production.INFO: ProcessCDR(1,14105875,1,1,2) [2024-12-26 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105875', 'tblTempUsageDetail_20' ) start [2024-12-26 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105875', 'tblTempUsageDetail_20' ) end [2024-12-26 09:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:15:20] Production.INFO: ==4332== Releasing lock... [2024-12-26 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:15:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-26 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:16:05 [end_date_ymd] => 2024-12-26 09:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:16:17] Production.INFO: count ==252 [2024-12-26 09:16:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:16:05 - End Time 2024-12-26 09:16:05 [2024-12-26 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105880', 'tblTempUsageDetail_20' ) start [2024-12-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105880', 'tblTempUsageDetail_20' ) end [2024-12-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105880', 'tblTempVendorCDR_20' ) start [2024-12-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105880', 'tblTempVendorCDR_20' ) end [2024-12-26 09:16:17] Production.INFO: ProcessCDR(1,14105880,1,1,2) [2024-12-26 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105880', 'tblTempUsageDetail_20' ) start [2024-12-26 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105880', 'tblTempUsageDetail_20' ) end [2024-12-26 09:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:16:20] Production.INFO: ==4409== Releasing lock... [2024-12-26 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:16:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-26 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:17:04 [end_date_ymd] => 2024-12-26 09:17:04 [RateCDR] => 1 ) [2024-12-26 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:17:04' and `end` < '2024-12-26 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:17:20] Production.INFO: count ==255 [2024-12-26 09:17:21] Production.ERROR: pbx CDR StartTime 2024-12-26 06:17:04 - End Time 2024-12-26 09:17:04 [2024-12-26 09:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105885', 'tblTempUsageDetail_20' ) start [2024-12-26 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105885', 'tblTempUsageDetail_20' ) end [2024-12-26 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105885', 'tblTempVendorCDR_20' ) start [2024-12-26 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105885', 'tblTempVendorCDR_20' ) end [2024-12-26 09:17:21] Production.INFO: ProcessCDR(1,14105885,1,1,2) [2024-12-26 09:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105885', 'tblTempUsageDetail_20' ) start [2024-12-26 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105885', 'tblTempUsageDetail_20' ) end [2024-12-26 09:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:17:24] Production.INFO: ==4496== Releasing lock... [2024-12-26 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:17:24] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:18:05 [end_date_ymd] => 2024-12-26 09:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:18:19] Production.INFO: count ==259 [2024-12-26 09:18:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:18:05 - End Time 2024-12-26 09:18:05 [2024-12-26 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105890', 'tblTempUsageDetail_20' ) start [2024-12-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105890', 'tblTempUsageDetail_20' ) end [2024-12-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105890', 'tblTempVendorCDR_20' ) start [2024-12-26 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105890', 'tblTempVendorCDR_20' ) end [2024-12-26 09:18:19] Production.INFO: ProcessCDR(1,14105890,1,1,2) [2024-12-26 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105890', 'tblTempUsageDetail_20' ) start [2024-12-26 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105890', 'tblTempUsageDetail_20' ) end [2024-12-26 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:18:22] Production.INFO: ==4626== Releasing lock... [2024-12-26 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:18:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:19:05 [end_date_ymd] => 2024-12-26 09:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:19:20] Production.INFO: count ==286 [2024-12-26 09:19:20] Production.ERROR: pbx CDR StartTime 2024-12-26 06:19:05 - End Time 2024-12-26 09:19:05 [2024-12-26 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105895', 'tblTempUsageDetail_20' ) start [2024-12-26 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105895', 'tblTempUsageDetail_20' ) end [2024-12-26 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105895', 'tblTempVendorCDR_20' ) start [2024-12-26 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105895', 'tblTempVendorCDR_20' ) end [2024-12-26 09:19:20] Production.INFO: ProcessCDR(1,14105895,1,1,2) [2024-12-26 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105895', 'tblTempUsageDetail_20' ) start [2024-12-26 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105895', 'tblTempUsageDetail_20' ) end [2024-12-26 09:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:19:23] Production.INFO: ==4707== Releasing lock... [2024-12-26 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:19:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-26 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:20:05 [end_date_ymd] => 2024-12-26 09:20:05 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:20:05' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:20:19] Production.INFO: count ==299 [2024-12-26 09:20:20] Production.ERROR: pbx CDR StartTime 2024-12-26 06:20:05 - End Time 2024-12-26 09:20:05 [2024-12-26 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105900', 'tblTempUsageDetail_20' ) start [2024-12-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105900', 'tblTempUsageDetail_20' ) end [2024-12-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105900', 'tblTempVendorCDR_20' ) start [2024-12-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105900', 'tblTempVendorCDR_20' ) end [2024-12-26 09:20:20] Production.INFO: ProcessCDR(1,14105900,1,1,2) [2024-12-26 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105900', 'tblTempUsageDetail_20' ) start [2024-12-26 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105900', 'tblTempUsageDetail_20' ) end [2024-12-26 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:20:23] Production.INFO: ==4787== Releasing lock... [2024-12-26 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:20:23] Production.INFO: 31 MB #Memory Used# [2024-12-26 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:21:05 [end_date_ymd] => 2024-12-26 09:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:21:21] Production.INFO: count ==309 [2024-12-26 09:21:21] Production.ERROR: pbx CDR StartTime 2024-12-26 06:21:05 - End Time 2024-12-26 09:21:05 [2024-12-26 09:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105906', 'tblTempUsageDetail_20' ) start [2024-12-26 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105906', 'tblTempUsageDetail_20' ) end [2024-12-26 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105906', 'tblTempVendorCDR_20' ) start [2024-12-26 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105906', 'tblTempVendorCDR_20' ) end [2024-12-26 09:21:21] Production.INFO: ProcessCDR(1,14105906,1,1,2) [2024-12-26 09:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105906', 'tblTempUsageDetail_20' ) start [2024-12-26 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105906', 'tblTempUsageDetail_20' ) end [2024-12-26 09:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:21:24] Production.INFO: ==4876== Releasing lock... [2024-12-26 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:21:24] Production.INFO: 31 MB #Memory Used# [2024-12-26 09:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:22:04 [end_date_ymd] => 2024-12-26 09:22:04 [RateCDR] => 1 ) [2024-12-26 09:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:22:04' and `end` < '2024-12-26 09:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:22:17] Production.INFO: count ==310 [2024-12-26 09:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:22:04 - End Time 2024-12-26 09:22:04 [2024-12-26 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105911', 'tblTempUsageDetail_20' ) start [2024-12-26 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105911', 'tblTempUsageDetail_20' ) end [2024-12-26 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105911', 'tblTempVendorCDR_20' ) start [2024-12-26 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105911', 'tblTempVendorCDR_20' ) end [2024-12-26 09:22:17] Production.INFO: ProcessCDR(1,14105911,1,1,2) [2024-12-26 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105911', 'tblTempUsageDetail_20' ) start [2024-12-26 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105911', 'tblTempUsageDetail_20' ) end [2024-12-26 09:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:22:20] Production.INFO: ==4953== Releasing lock... [2024-12-26 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:22:20] Production.INFO: 31 MB #Memory Used# [2024-12-26 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:23:05 [end_date_ymd] => 2024-12-26 09:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:23:17] Production.INFO: count ==316 [2024-12-26 09:23:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:23:05 - End Time 2024-12-26 09:23:05 [2024-12-26 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105916', 'tblTempUsageDetail_20' ) start [2024-12-26 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105916', 'tblTempUsageDetail_20' ) end [2024-12-26 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105916', 'tblTempVendorCDR_20' ) start [2024-12-26 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105916', 'tblTempVendorCDR_20' ) end [2024-12-26 09:23:17] Production.INFO: ProcessCDR(1,14105916,1,1,2) [2024-12-26 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105916', 'tblTempUsageDetail_20' ) start [2024-12-26 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105916', 'tblTempUsageDetail_20' ) end [2024-12-26 09:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:23:20] Production.INFO: ==5035== Releasing lock... [2024-12-26 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:23:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-26 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:24:04 [end_date_ymd] => 2024-12-26 09:24:04 [RateCDR] => 1 ) [2024-12-26 09:24: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` >= '2024-12-26 06:24:04' and `end` < '2024-12-26 09:24: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 ,'') [2024-12-26 09:24:17] Production.INFO: count ==347 [2024-12-26 09:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:24:04 - End Time 2024-12-26 09:24:04 [2024-12-26 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105921', 'tblTempUsageDetail_20' ) start [2024-12-26 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105921', 'tblTempUsageDetail_20' ) end [2024-12-26 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105921', 'tblTempVendorCDR_20' ) start [2024-12-26 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105921', 'tblTempVendorCDR_20' ) end [2024-12-26 09:24:17] Production.INFO: ProcessCDR(1,14105921,1,1,2) [2024-12-26 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105921', 'tblTempUsageDetail_20' ) start [2024-12-26 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105921', 'tblTempUsageDetail_20' ) end [2024-12-26 09:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:24:20] Production.INFO: ==5115== Releasing lock... [2024-12-26 09:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:24:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:25:05 [end_date_ymd] => 2024-12-26 09:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:25:17] Production.INFO: count ==348 [2024-12-26 09:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:25:05 - End Time 2024-12-26 09:25:05 [2024-12-26 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105926', 'tblTempUsageDetail_20' ) start [2024-12-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105926', 'tblTempUsageDetail_20' ) end [2024-12-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105926', 'tblTempVendorCDR_20' ) start [2024-12-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105926', 'tblTempVendorCDR_20' ) end [2024-12-26 09:25:17] Production.INFO: ProcessCDR(1,14105926,1,1,2) [2024-12-26 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105926', 'tblTempUsageDetail_20' ) start [2024-12-26 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105926', 'tblTempUsageDetail_20' ) end [2024-12-26 09:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:25:22] Production.INFO: ==5198== Releasing lock... [2024-12-26 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:25:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:26:05 [end_date_ymd] => 2024-12-26 09:26:05 [RateCDR] => 1 ) [2024-12-26 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:26:05' and `end` < '2024-12-26 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:26:19] Production.INFO: count ==351 [2024-12-26 09:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:26:05 - End Time 2024-12-26 09:26:05 [2024-12-26 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105931', 'tblTempUsageDetail_20' ) start [2024-12-26 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105931', 'tblTempUsageDetail_20' ) end [2024-12-26 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105931', 'tblTempVendorCDR_20' ) start [2024-12-26 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105931', 'tblTempVendorCDR_20' ) end [2024-12-26 09:26:19] Production.INFO: ProcessCDR(1,14105931,1,1,2) [2024-12-26 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105931', 'tblTempUsageDetail_20' ) start [2024-12-26 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105931', 'tblTempUsageDetail_20' ) end [2024-12-26 09:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:26:24] Production.INFO: ==5277== Releasing lock... [2024-12-26 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:26:24] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:27:04 [end_date_ymd] => 2024-12-26 09:27:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:27:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:27:17] Production.INFO: count ==352 [2024-12-26 09:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:27:04 - End Time 2024-12-26 09:27:04 [2024-12-26 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105936', 'tblTempUsageDetail_20' ) start [2024-12-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105936', 'tblTempUsageDetail_20' ) end [2024-12-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105936', 'tblTempVendorCDR_20' ) start [2024-12-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105936', 'tblTempVendorCDR_20' ) end [2024-12-26 09:27:17] Production.INFO: ProcessCDR(1,14105936,1,1,2) [2024-12-26 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105936', 'tblTempUsageDetail_20' ) start [2024-12-26 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105936', 'tblTempUsageDetail_20' ) end [2024-12-26 09:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:27:20] Production.INFO: ==5360== Releasing lock... [2024-12-26 09:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:27:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:28:05 [end_date_ymd] => 2024-12-26 09:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:28:18] Production.INFO: count ==372 [2024-12-26 09:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:28:05 - End Time 2024-12-26 09:28:05 [2024-12-26 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105941', 'tblTempUsageDetail_20' ) start [2024-12-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105941', 'tblTempUsageDetail_20' ) end [2024-12-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105941', 'tblTempVendorCDR_20' ) start [2024-12-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105941', 'tblTempVendorCDR_20' ) end [2024-12-26 09:28:18] Production.INFO: ProcessCDR(1,14105941,1,1,2) [2024-12-26 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105941', 'tblTempUsageDetail_20' ) start [2024-12-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105941', 'tblTempUsageDetail_20' ) end [2024-12-26 09:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:28:21] Production.INFO: ==5441== Releasing lock... [2024-12-26 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:28:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-26 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:29:04 [end_date_ymd] => 2024-12-26 09:29:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:29:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:29:17] Production.INFO: count ==379 [2024-12-26 09:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:29:04 - End Time 2024-12-26 09:29:04 [2024-12-26 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105946', 'tblTempUsageDetail_20' ) start [2024-12-26 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105946', 'tblTempUsageDetail_20' ) end [2024-12-26 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105946', 'tblTempVendorCDR_20' ) start [2024-12-26 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105946', 'tblTempVendorCDR_20' ) end [2024-12-26 09:29:17] Production.INFO: ProcessCDR(1,14105946,1,1,2) [2024-12-26 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105946', 'tblTempUsageDetail_20' ) start [2024-12-26 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105946', 'tblTempUsageDetail_20' ) end [2024-12-26 09:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:29:20] Production.INFO: ==5521== Releasing lock... [2024-12-26 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:29:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-26 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:30:05 [end_date_ymd] => 2024-12-26 09:30:05 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:30:05' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:30:18] Production.INFO: count ==402 [2024-12-26 09:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:30:05 - End Time 2024-12-26 09:30:05 [2024-12-26 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105952', 'tblTempUsageDetail_20' ) start [2024-12-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105952', 'tblTempUsageDetail_20' ) end [2024-12-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105952', 'tblTempVendorCDR_20' ) start [2024-12-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105952', 'tblTempVendorCDR_20' ) end [2024-12-26 09:30:18] Production.INFO: ProcessCDR(1,14105952,1,1,2) [2024-12-26 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105952', 'tblTempUsageDetail_20' ) start [2024-12-26 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105952', 'tblTempUsageDetail_20' ) end [2024-12-26 09:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:30:22] Production.INFO: ==5601== Releasing lock... [2024-12-26 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:30:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:31:06 [end_date_ymd] => 2024-12-26 09:31:06 [RateCDR] => 1 ) [2024-12-26 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:31:06' and `end` < '2024-12-26 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:31:18] Production.INFO: count ==465 [2024-12-26 09:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:31:06 - End Time 2024-12-26 09:31:06 [2024-12-26 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105957', 'tblTempUsageDetail_20' ) start [2024-12-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105957', 'tblTempUsageDetail_20' ) end [2024-12-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105957', 'tblTempVendorCDR_20' ) start [2024-12-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105957', 'tblTempVendorCDR_20' ) end [2024-12-26 09:31:18] Production.INFO: ProcessCDR(1,14105957,1,1,2) [2024-12-26 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105957', 'tblTempUsageDetail_20' ) start [2024-12-26 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105957', 'tblTempUsageDetail_20' ) end [2024-12-26 09:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:31:22] Production.INFO: ==5691== Releasing lock... [2024-12-26 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:31:22] Production.INFO: 32 MB #Memory Used# [2024-12-26 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:32:05 [end_date_ymd] => 2024-12-26 09:32:05 [RateCDR] => 1 ) [2024-12-26 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:32:05' and `end` < '2024-12-26 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:32:19] Production.INFO: count ==469 [2024-12-26 09:32:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:32:05 - End Time 2024-12-26 09:32:05 [2024-12-26 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105962', 'tblTempUsageDetail_20' ) start [2024-12-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105962', 'tblTempUsageDetail_20' ) end [2024-12-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105962', 'tblTempVendorCDR_20' ) start [2024-12-26 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105962', 'tblTempVendorCDR_20' ) end [2024-12-26 09:32:19] Production.INFO: ProcessCDR(1,14105962,1,1,2) [2024-12-26 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105962', 'tblTempUsageDetail_20' ) start [2024-12-26 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105962', 'tblTempUsageDetail_20' ) end [2024-12-26 09:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:32:23] Production.INFO: ==5780== Releasing lock... [2024-12-26 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:32:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:33:05 [end_date_ymd] => 2024-12-26 09:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:33:17] Production.INFO: count ==476 [2024-12-26 09:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:33:05 - End Time 2024-12-26 09:33:05 [2024-12-26 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105967', 'tblTempUsageDetail_20' ) start [2024-12-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105967', 'tblTempUsageDetail_20' ) end [2024-12-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105967', 'tblTempVendorCDR_20' ) start [2024-12-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105967', 'tblTempVendorCDR_20' ) end [2024-12-26 09:33:18] Production.INFO: ProcessCDR(1,14105967,1,1,2) [2024-12-26 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105967', 'tblTempUsageDetail_20' ) start [2024-12-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105967', 'tblTempUsageDetail_20' ) end [2024-12-26 09:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:33:21] Production.INFO: ==5859== Releasing lock... [2024-12-26 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:33:21] Production.INFO: 32 MB #Memory Used# [2024-12-26 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:34:04 [end_date_ymd] => 2024-12-26 09:34:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:34:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:34:16] Production.INFO: count ==478 [2024-12-26 09:34:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:34:04 - End Time 2024-12-26 09:34:04 [2024-12-26 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105972', 'tblTempUsageDetail_20' ) start [2024-12-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105972', 'tblTempUsageDetail_20' ) end [2024-12-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105972', 'tblTempVendorCDR_20' ) start [2024-12-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105972', 'tblTempVendorCDR_20' ) end [2024-12-26 09:34:17] Production.INFO: ProcessCDR(1,14105972,1,1,2) [2024-12-26 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105972', 'tblTempUsageDetail_20' ) start [2024-12-26 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105972', 'tblTempUsageDetail_20' ) end [2024-12-26 09:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:34:20] Production.INFO: ==5983== Releasing lock... [2024-12-26 09:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:34:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:35:05 [end_date_ymd] => 2024-12-26 09:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:35:17] Production.INFO: count ==478 [2024-12-26 09:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:35:05 - End Time 2024-12-26 09:35:05 [2024-12-26 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105977', 'tblTempUsageDetail_20' ) start [2024-12-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105977', 'tblTempUsageDetail_20' ) end [2024-12-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105977', 'tblTempVendorCDR_20' ) start [2024-12-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105977', 'tblTempVendorCDR_20' ) end [2024-12-26 09:35:18] Production.INFO: ProcessCDR(1,14105977,1,1,2) [2024-12-26 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105977', 'tblTempUsageDetail_20' ) start [2024-12-26 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105977', 'tblTempUsageDetail_20' ) end [2024-12-26 09:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:35:21] Production.INFO: ==6059== Releasing lock... [2024-12-26 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:35:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-26 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:36:04 [end_date_ymd] => 2024-12-26 09:36:04 [RateCDR] => 1 ) [2024-12-26 09:36: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` >= '2024-12-26 06:36:04' and `end` < '2024-12-26 09:36: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 ,'') [2024-12-26 09:36:17] Production.INFO: count ==489 [2024-12-26 09:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:36:04 - End Time 2024-12-26 09:36:04 [2024-12-26 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105982', 'tblTempUsageDetail_20' ) start [2024-12-26 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105982', 'tblTempUsageDetail_20' ) end [2024-12-26 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105982', 'tblTempVendorCDR_20' ) start [2024-12-26 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105982', 'tblTempVendorCDR_20' ) end [2024-12-26 09:36:17] Production.INFO: ProcessCDR(1,14105982,1,1,2) [2024-12-26 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105982', 'tblTempUsageDetail_20' ) start [2024-12-26 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105982', 'tblTempUsageDetail_20' ) end [2024-12-26 09:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:36:20] Production.INFO: ==6142== Releasing lock... [2024-12-26 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:36:20] Production.INFO: 32 MB #Memory Used# [2024-12-26 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:37:05 [end_date_ymd] => 2024-12-26 09:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:37:19] Production.INFO: count ==492 [2024-12-26 09:37:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:37:05 - End Time 2024-12-26 09:37:05 [2024-12-26 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105987', 'tblTempUsageDetail_20' ) start [2024-12-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105987', 'tblTempUsageDetail_20' ) end [2024-12-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105987', 'tblTempVendorCDR_20' ) start [2024-12-26 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105987', 'tblTempVendorCDR_20' ) end [2024-12-26 09:37:19] Production.INFO: ProcessCDR(1,14105987,1,1,2) [2024-12-26 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105987', 'tblTempUsageDetail_20' ) start [2024-12-26 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105987', 'tblTempUsageDetail_20' ) end [2024-12-26 09:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:37:22] Production.INFO: ==6222== Releasing lock... [2024-12-26 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:37:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:38:06 [end_date_ymd] => 2024-12-26 09:38:06 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:38:06' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:38:19] Production.INFO: count ==498 [2024-12-26 09:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:38:06 - End Time 2024-12-26 09:38:06 [2024-12-26 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105992', 'tblTempUsageDetail_20' ) start [2024-12-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105992', 'tblTempUsageDetail_20' ) end [2024-12-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105992', 'tblTempVendorCDR_20' ) start [2024-12-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105992', 'tblTempVendorCDR_20' ) end [2024-12-26 09:38:19] Production.INFO: ProcessCDR(1,14105992,1,1,2) [2024-12-26 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105992', 'tblTempUsageDetail_20' ) start [2024-12-26 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105992', 'tblTempUsageDetail_20' ) end [2024-12-26 09:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:38:23] Production.INFO: ==6305== Releasing lock... [2024-12-26 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:38:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:39:05 [end_date_ymd] => 2024-12-26 09:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:39:17] Production.INFO: count ==502 [2024-12-26 09:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:39:05 - End Time 2024-12-26 09:39:05 [2024-12-26 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105997', 'tblTempUsageDetail_20' ) start [2024-12-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14105997', 'tblTempUsageDetail_20' ) end [2024-12-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105997', 'tblTempVendorCDR_20' ) start [2024-12-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14105997', 'tblTempVendorCDR_20' ) end [2024-12-26 09:39:17] Production.INFO: ProcessCDR(1,14105997,1,1,2) [2024-12-26 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14105997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14105997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14105997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14105997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105997', 'tblTempUsageDetail_20' ) start [2024-12-26 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14105997', 'tblTempUsageDetail_20' ) end [2024-12-26 09:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:39:20] Production.INFO: ==6382== Releasing lock... [2024-12-26 09:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:39:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:40:05 [end_date_ymd] => 2024-12-26 09:40:05 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:40:05' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:40:17] Production.INFO: count ==511 [2024-12-26 09:40:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:40:05 - End Time 2024-12-26 09:40:05 [2024-12-26 09:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106003', 'tblTempUsageDetail_20' ) start [2024-12-26 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106003', 'tblTempUsageDetail_20' ) end [2024-12-26 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106003', 'tblTempVendorCDR_20' ) start [2024-12-26 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106003', 'tblTempVendorCDR_20' ) end [2024-12-26 09:40:17] Production.INFO: ProcessCDR(1,14106003,1,1,2) [2024-12-26 09:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106003', 'tblTempUsageDetail_20' ) start [2024-12-26 09:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106003', 'tblTempUsageDetail_20' ) end [2024-12-26 09:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:40:20] Production.INFO: ==6467== Releasing lock... [2024-12-26 09:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:40:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-26 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:41:05 [end_date_ymd] => 2024-12-26 09:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:41:19] Production.INFO: count ==530 [2024-12-26 09:41:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:41:05 - End Time 2024-12-26 09:41:05 [2024-12-26 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106008', 'tblTempUsageDetail_20' ) start [2024-12-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106008', 'tblTempUsageDetail_20' ) end [2024-12-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106008', 'tblTempVendorCDR_20' ) start [2024-12-26 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106008', 'tblTempVendorCDR_20' ) end [2024-12-26 09:41:19] Production.INFO: ProcessCDR(1,14106008,1,1,2) [2024-12-26 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106008', 'tblTempUsageDetail_20' ) start [2024-12-26 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106008', 'tblTempUsageDetail_20' ) end [2024-12-26 09:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:41:22] Production.INFO: ==6548== Releasing lock... [2024-12-26 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:41:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:42:05 [end_date_ymd] => 2024-12-26 09:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:42:19] Production.INFO: count ==549 [2024-12-26 09:42:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:42:05 - End Time 2024-12-26 09:42:05 [2024-12-26 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106013', 'tblTempUsageDetail_20' ) start [2024-12-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106013', 'tblTempUsageDetail_20' ) end [2024-12-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106013', 'tblTempVendorCDR_20' ) start [2024-12-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106013', 'tblTempVendorCDR_20' ) end [2024-12-26 09:42:19] Production.INFO: ProcessCDR(1,14106013,1,1,2) [2024-12-26 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106013', 'tblTempUsageDetail_20' ) start [2024-12-26 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106013', 'tblTempUsageDetail_20' ) end [2024-12-26 09:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:42:22] Production.INFO: ==6629== Releasing lock... [2024-12-26 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:42:22] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:43:05 [end_date_ymd] => 2024-12-26 09:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:43:19] Production.INFO: count ==553 [2024-12-26 09:43:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:43:05 - End Time 2024-12-26 09:43:05 [2024-12-26 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106018', 'tblTempUsageDetail_20' ) start [2024-12-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106018', 'tblTempUsageDetail_20' ) end [2024-12-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106018', 'tblTempVendorCDR_20' ) start [2024-12-26 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106018', 'tblTempVendorCDR_20' ) end [2024-12-26 09:43:19] Production.INFO: ProcessCDR(1,14106018,1,1,2) [2024-12-26 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106018', 'tblTempUsageDetail_20' ) start [2024-12-26 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106018', 'tblTempUsageDetail_20' ) end [2024-12-26 09:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:43:23] Production.INFO: ==6705== Releasing lock... [2024-12-26 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:43:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:44:05 [end_date_ymd] => 2024-12-26 09:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:44:19] Production.INFO: count ==554 [2024-12-26 09:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:44:05 - End Time 2024-12-26 09:44:05 [2024-12-26 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106023', 'tblTempUsageDetail_20' ) start [2024-12-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106023', 'tblTempUsageDetail_20' ) end [2024-12-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106023', 'tblTempVendorCDR_20' ) start [2024-12-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106023', 'tblTempVendorCDR_20' ) end [2024-12-26 09:44:19] Production.INFO: ProcessCDR(1,14106023,1,1,2) [2024-12-26 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106023', 'tblTempUsageDetail_20' ) start [2024-12-26 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106023', 'tblTempUsageDetail_20' ) end [2024-12-26 09:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:44:22] Production.INFO: ==6786== Releasing lock... [2024-12-26 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:44:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:45:04 [end_date_ymd] => 2024-12-26 09:45:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:45:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:45:17] Production.INFO: count ==577 [2024-12-26 09:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:45:04 - End Time 2024-12-26 09:45:04 [2024-12-26 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106028', 'tblTempUsageDetail_20' ) start [2024-12-26 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106028', 'tblTempUsageDetail_20' ) end [2024-12-26 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106028', 'tblTempVendorCDR_20' ) start [2024-12-26 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106028', 'tblTempVendorCDR_20' ) end [2024-12-26 09:45:17] Production.INFO: ProcessCDR(1,14106028,1,1,2) [2024-12-26 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106028', 'tblTempUsageDetail_20' ) start [2024-12-26 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106028', 'tblTempUsageDetail_20' ) end [2024-12-26 09:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:45:20] Production.INFO: ==6866== Releasing lock... [2024-12-26 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:45:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-26 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:46:05 [end_date_ymd] => 2024-12-26 09:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:46:19] Production.INFO: count ==584 [2024-12-26 09:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:46:05 - End Time 2024-12-26 09:46:05 [2024-12-26 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106033', 'tblTempUsageDetail_20' ) start [2024-12-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106033', 'tblTempUsageDetail_20' ) end [2024-12-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106033', 'tblTempVendorCDR_20' ) start [2024-12-26 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106033', 'tblTempVendorCDR_20' ) end [2024-12-26 09:46:19] Production.INFO: ProcessCDR(1,14106033,1,1,2) [2024-12-26 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106033', 'tblTempUsageDetail_20' ) start [2024-12-26 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106033', 'tblTempUsageDetail_20' ) end [2024-12-26 09:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:46:22] Production.INFO: ==6953== Releasing lock... [2024-12-26 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:46:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:47:04 [end_date_ymd] => 2024-12-26 09:47:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:47:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:47:18] Production.INFO: count ==590 [2024-12-26 09:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:47:04 - End Time 2024-12-26 09:47:04 [2024-12-26 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106038', 'tblTempUsageDetail_20' ) start [2024-12-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106038', 'tblTempUsageDetail_20' ) end [2024-12-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106038', 'tblTempVendorCDR_20' ) start [2024-12-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106038', 'tblTempVendorCDR_20' ) end [2024-12-26 09:47:18] Production.INFO: ProcessCDR(1,14106038,1,1,2) [2024-12-26 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106038', 'tblTempUsageDetail_20' ) start [2024-12-26 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106038', 'tblTempUsageDetail_20' ) end [2024-12-26 09:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:47:22] Production.INFO: ==7027== Releasing lock... [2024-12-26 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:47:22] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:48:05 [end_date_ymd] => 2024-12-26 09:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:48:17] Production.INFO: count ==597 [2024-12-26 09:48:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:48:05 - End Time 2024-12-26 09:48:05 [2024-12-26 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106043', 'tblTempUsageDetail_20' ) start [2024-12-26 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106043', 'tblTempUsageDetail_20' ) end [2024-12-26 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106043', 'tblTempVendorCDR_20' ) start [2024-12-26 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106043', 'tblTempVendorCDR_20' ) end [2024-12-26 09:48:18] Production.INFO: ProcessCDR(1,14106043,1,1,2) [2024-12-26 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106043', 'tblTempUsageDetail_20' ) start [2024-12-26 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106043', 'tblTempUsageDetail_20' ) end [2024-12-26 09:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:48:23] Production.INFO: ==7110== Releasing lock... [2024-12-26 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:48:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-26 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:49:04 [end_date_ymd] => 2024-12-26 09:49:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:49:04' and `end` < '2024-12-26 09:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:49:17] Production.INFO: count ==600 [2024-12-26 09:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:49:04 - End Time 2024-12-26 09:49:04 [2024-12-26 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106048', 'tblTempUsageDetail_20' ) start [2024-12-26 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106048', 'tblTempUsageDetail_20' ) end [2024-12-26 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106048', 'tblTempVendorCDR_20' ) start [2024-12-26 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106048', 'tblTempVendorCDR_20' ) end [2024-12-26 09:49:17] Production.INFO: ProcessCDR(1,14106048,1,1,2) [2024-12-26 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106048', 'tblTempUsageDetail_20' ) start [2024-12-26 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106048', 'tblTempUsageDetail_20' ) end [2024-12-26 09:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:49:20] Production.INFO: ==7188== Releasing lock... [2024-12-26 09:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:49:20] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:50:05 [end_date_ymd] => 2024-12-26 09:50:05 [RateCDR] => 1 ) [2024-12-26 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:50:05' and `end` < '2024-12-26 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:50:19] Production.INFO: count ==609 [2024-12-26 09:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:50:05 - End Time 2024-12-26 09:50:05 [2024-12-26 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106054', 'tblTempUsageDetail_20' ) start [2024-12-26 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106054', 'tblTempUsageDetail_20' ) end [2024-12-26 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106054', 'tblTempVendorCDR_20' ) start [2024-12-26 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106054', 'tblTempVendorCDR_20' ) end [2024-12-26 09:50:19] Production.INFO: ProcessCDR(1,14106054,1,1,2) [2024-12-26 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106054', 'tblTempUsageDetail_20' ) start [2024-12-26 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106054', 'tblTempUsageDetail_20' ) end [2024-12-26 09:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:50:22] Production.INFO: ==7315== Releasing lock... [2024-12-26 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:50:22] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:51:05 [end_date_ymd] => 2024-12-26 09:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:51:17] Production.INFO: count ==622 [2024-12-26 09:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:51:05 - End Time 2024-12-26 09:51:05 [2024-12-26 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106058', 'tblTempUsageDetail_20' ) start [2024-12-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106058', 'tblTempUsageDetail_20' ) end [2024-12-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106058', 'tblTempVendorCDR_20' ) start [2024-12-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106058', 'tblTempVendorCDR_20' ) end [2024-12-26 09:51:17] Production.INFO: ProcessCDR(1,14106058,1,1,2) [2024-12-26 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106058', 'tblTempUsageDetail_20' ) start [2024-12-26 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106058', 'tblTempUsageDetail_20' ) end [2024-12-26 09:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:51:22] Production.INFO: ==7402== Releasing lock... [2024-12-26 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:51:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:52:04 [end_date_ymd] => 2024-12-26 09:52:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:52:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:52:18] Production.INFO: count ==623 [2024-12-26 09:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:52:04 - End Time 2024-12-26 09:52:04 [2024-12-26 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106064', 'tblTempUsageDetail_20' ) start [2024-12-26 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106064', 'tblTempUsageDetail_20' ) end [2024-12-26 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106064', 'tblTempVendorCDR_20' ) start [2024-12-26 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106064', 'tblTempVendorCDR_20' ) end [2024-12-26 09:52:18] Production.INFO: ProcessCDR(1,14106064,1,1,2) [2024-12-26 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106064', 'tblTempUsageDetail_20' ) start [2024-12-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106064', 'tblTempUsageDetail_20' ) end [2024-12-26 09:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:52:21] Production.INFO: ==7481== Releasing lock... [2024-12-26 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:52:21] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:53:06 [end_date_ymd] => 2024-12-26 09:53:06 [RateCDR] => 1 ) [2024-12-26 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:53:06' and `end` < '2024-12-26 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:53:21] Production.INFO: count ==647 [2024-12-26 09:53:21] Production.ERROR: pbx CDR StartTime 2024-12-26 06:53:06 - End Time 2024-12-26 09:53:06 [2024-12-26 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106069', 'tblTempUsageDetail_20' ) start [2024-12-26 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106069', 'tblTempUsageDetail_20' ) end [2024-12-26 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106069', 'tblTempVendorCDR_20' ) start [2024-12-26 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106069', 'tblTempVendorCDR_20' ) end [2024-12-26 09:53:21] Production.INFO: ProcessCDR(1,14106069,1,1,2) [2024-12-26 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106069', 'tblTempUsageDetail_20' ) start [2024-12-26 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106069', 'tblTempUsageDetail_20' ) end [2024-12-26 09:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:53:25] Production.INFO: ==7565== Releasing lock... [2024-12-26 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:53:25] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:54:04 [end_date_ymd] => 2024-12-26 09:54:04 [RateCDR] => 1 ) [2024-12-26 09: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` >= '2024-12-26 06:54:04' and `end` < '2024-12-26 09: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 ,'') [2024-12-26 09:54:17] Production.INFO: count ==647 [2024-12-26 09:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:54:04 - End Time 2024-12-26 09:54:04 [2024-12-26 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106074', 'tblTempUsageDetail_20' ) start [2024-12-26 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106074', 'tblTempUsageDetail_20' ) end [2024-12-26 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106074', 'tblTempVendorCDR_20' ) start [2024-12-26 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106074', 'tblTempVendorCDR_20' ) end [2024-12-26 09:54:17] Production.INFO: ProcessCDR(1,14106074,1,1,2) [2024-12-26 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106074', 'tblTempUsageDetail_20' ) start [2024-12-26 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106074', 'tblTempUsageDetail_20' ) end [2024-12-26 09:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:54:20] Production.INFO: ==7646== Releasing lock... [2024-12-26 09:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:54:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:55:05 [end_date_ymd] => 2024-12-26 09:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:55:17] Production.INFO: count ==647 [2024-12-26 09:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:55:05 - End Time 2024-12-26 09:55:05 [2024-12-26 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106079', 'tblTempUsageDetail_20' ) start [2024-12-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106079', 'tblTempUsageDetail_20' ) end [2024-12-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106079', 'tblTempVendorCDR_20' ) start [2024-12-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106079', 'tblTempVendorCDR_20' ) end [2024-12-26 09:55:18] Production.INFO: ProcessCDR(1,14106079,1,1,2) [2024-12-26 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106079', 'tblTempUsageDetail_20' ) start [2024-12-26 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106079', 'tblTempUsageDetail_20' ) end [2024-12-26 09:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:55:21] Production.INFO: ==7725== Releasing lock... [2024-12-26 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:55:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:56:04 [end_date_ymd] => 2024-12-26 09:56:04 [RateCDR] => 1 ) [2024-12-26 09:56: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` >= '2024-12-26 06:56:04' and `end` < '2024-12-26 09:56: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 ,'') [2024-12-26 09:56:18] Production.INFO: count ==650 [2024-12-26 09:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:56:04 - End Time 2024-12-26 09:56:04 [2024-12-26 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106084', 'tblTempUsageDetail_20' ) start [2024-12-26 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106084', 'tblTempUsageDetail_20' ) end [2024-12-26 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106084', 'tblTempVendorCDR_20' ) start [2024-12-26 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106084', 'tblTempVendorCDR_20' ) end [2024-12-26 09:56:18] Production.INFO: ProcessCDR(1,14106084,1,1,2) [2024-12-26 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106084', 'tblTempUsageDetail_20' ) start [2024-12-26 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106084', 'tblTempUsageDetail_20' ) end [2024-12-26 09:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:56:21] Production.INFO: ==7804== Releasing lock... [2024-12-26 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:56:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:57:04 [end_date_ymd] => 2024-12-26 09:57:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:57:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:57:17] Production.INFO: count ==654 [2024-12-26 09:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 06:57:04 - End Time 2024-12-26 09:57:04 [2024-12-26 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106088', 'tblTempUsageDetail_20' ) start [2024-12-26 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106088', 'tblTempUsageDetail_20' ) end [2024-12-26 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106088', 'tblTempVendorCDR_20' ) start [2024-12-26 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106088', 'tblTempVendorCDR_20' ) end [2024-12-26 09:57:17] Production.INFO: ProcessCDR(1,14106088,1,1,2) [2024-12-26 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106088', 'tblTempUsageDetail_20' ) start [2024-12-26 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106088', 'tblTempUsageDetail_20' ) end [2024-12-26 09:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:57:22] Production.INFO: ==7889== Releasing lock... [2024-12-26 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:57:22] Production.INFO: 33 MB #Memory Used# [2024-12-26 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:58:05 [end_date_ymd] => 2024-12-26 09:58:05 [RateCDR] => 1 ) [2024-12-26 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 06:58:05' and `end` < '2024-12-26 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 09:58:18] Production.INFO: count ==664 [2024-12-26 09:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 06:58:05 - End Time 2024-12-26 09:58:05 [2024-12-26 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106094', 'tblTempUsageDetail_20' ) start [2024-12-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106094', 'tblTempUsageDetail_20' ) end [2024-12-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106094', 'tblTempVendorCDR_20' ) start [2024-12-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106094', 'tblTempVendorCDR_20' ) end [2024-12-26 09:58:18] Production.INFO: ProcessCDR(1,14106094,1,1,2) [2024-12-26 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106094', 'tblTempUsageDetail_20' ) start [2024-12-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106094', 'tblTempUsageDetail_20' ) end [2024-12-26 09:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:58:21] Production.INFO: ==7970== Releasing lock... [2024-12-26 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:58:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 06:59:04 [end_date_ymd] => 2024-12-26 09:59:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 06:59:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 09:59:19] Production.INFO: count ==665 [2024-12-26 09:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 06:59:04 - End Time 2024-12-26 09:59:04 [2024-12-26 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106099', 'tblTempUsageDetail_20' ) start [2024-12-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106099', 'tblTempUsageDetail_20' ) end [2024-12-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106099', 'tblTempVendorCDR_20' ) start [2024-12-26 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106099', 'tblTempVendorCDR_20' ) end [2024-12-26 09:59:19] Production.INFO: ProcessCDR(1,14106099,1,1,2) [2024-12-26 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106099', 'tblTempUsageDetail_20' ) start [2024-12-26 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106099', 'tblTempUsageDetail_20' ) end [2024-12-26 09:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 09:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 09:59:24] Production.INFO: ==8047== Releasing lock... [2024-12-26 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 09:59:24] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:00:06 [end_date_ymd] => 2024-12-26 10:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:00:19] Production.INFO: count ==687 [2024-12-26 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:00:06 - End Time 2024-12-26 10:00:06 [2024-12-26 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106105', 'tblTempUsageDetail_20' ) start [2024-12-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106105', 'tblTempUsageDetail_20' ) end [2024-12-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106105', 'tblTempVendorCDR_20' ) start [2024-12-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106105', 'tblTempVendorCDR_20' ) end [2024-12-26 10:00:19] Production.INFO: ProcessCDR(1,14106105,1,1,2) [2024-12-26 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106105', 'tblTempUsageDetail_20' ) start [2024-12-26 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106105', 'tblTempUsageDetail_20' ) end [2024-12-26 10:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:00:22] Production.INFO: ==8129== Releasing lock... [2024-12-26 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:00:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-26 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:01:04 [end_date_ymd] => 2024-12-26 10:01:04 [RateCDR] => 1 ) [2024-12-26 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:01:04' and `end` < '2024-12-26 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:01:17] Production.INFO: count ==711 [2024-12-26 10:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:01:04 - End Time 2024-12-26 10:01:04 [2024-12-26 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106110', 'tblTempUsageDetail_20' ) start [2024-12-26 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106110', 'tblTempUsageDetail_20' ) end [2024-12-26 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106110', 'tblTempVendorCDR_20' ) start [2024-12-26 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106110', 'tblTempVendorCDR_20' ) end [2024-12-26 10:01:17] Production.INFO: ProcessCDR(1,14106110,1,1,2) [2024-12-26 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106110', 'tblTempUsageDetail_20' ) start [2024-12-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106110', 'tblTempUsageDetail_20' ) end [2024-12-26 10:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:01:22] Production.INFO: ==8227== Releasing lock... [2024-12-26 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:01:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:02:05 [end_date_ymd] => 2024-12-26 10:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:02:20] Production.INFO: count ==719 [2024-12-26 10:02:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:02:05 - End Time 2024-12-26 10:02:05 [2024-12-26 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106115', 'tblTempUsageDetail_20' ) start [2024-12-26 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106115', 'tblTempUsageDetail_20' ) end [2024-12-26 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106115', 'tblTempVendorCDR_20' ) start [2024-12-26 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106115', 'tblTempVendorCDR_20' ) end [2024-12-26 10:02:21] Production.INFO: ProcessCDR(1,14106115,1,1,2) [2024-12-26 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106115', 'tblTempUsageDetail_20' ) start [2024-12-26 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106115', 'tblTempUsageDetail_20' ) end [2024-12-26 10:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:02:24] Production.INFO: ==8303== Releasing lock... [2024-12-26 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:02:24] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:03:04 [end_date_ymd] => 2024-12-26 10:03:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:03:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:03:17] Production.INFO: count ==719 [2024-12-26 10:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:03:04 - End Time 2024-12-26 10:03:04 [2024-12-26 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106120', 'tblTempUsageDetail_20' ) start [2024-12-26 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106120', 'tblTempUsageDetail_20' ) end [2024-12-26 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106120', 'tblTempVendorCDR_20' ) start [2024-12-26 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106120', 'tblTempVendorCDR_20' ) end [2024-12-26 10:03:17] Production.INFO: ProcessCDR(1,14106120,1,1,2) [2024-12-26 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106120', 'tblTempUsageDetail_20' ) start [2024-12-26 10:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106120', 'tblTempUsageDetail_20' ) end [2024-12-26 10:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:03:20] Production.INFO: ==8383== Releasing lock... [2024-12-26 10:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:03:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:04:05 [end_date_ymd] => 2024-12-26 10:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:04:19] Production.INFO: count ==719 [2024-12-26 10:04:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:04:05 - End Time 2024-12-26 10:04:05 [2024-12-26 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106125', 'tblTempUsageDetail_20' ) start [2024-12-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106125', 'tblTempUsageDetail_20' ) end [2024-12-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106125', 'tblTempVendorCDR_20' ) start [2024-12-26 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106125', 'tblTempVendorCDR_20' ) end [2024-12-26 10:04:19] Production.INFO: ProcessCDR(1,14106125,1,1,2) [2024-12-26 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106125', 'tblTempUsageDetail_20' ) start [2024-12-26 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106125', 'tblTempUsageDetail_20' ) end [2024-12-26 10:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:04:22] Production.INFO: ==8456== Releasing lock... [2024-12-26 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:04:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:05:05 [end_date_ymd] => 2024-12-26 10:05:05 [RateCDR] => 1 ) [2024-12-26 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:05:05' and `end` < '2024-12-26 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:05:17] Production.INFO: count ==720 [2024-12-26 10:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:05:05 - End Time 2024-12-26 10:05:05 [2024-12-26 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106130', 'tblTempUsageDetail_20' ) start [2024-12-26 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106130', 'tblTempUsageDetail_20' ) end [2024-12-26 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106130', 'tblTempVendorCDR_20' ) start [2024-12-26 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106130', 'tblTempVendorCDR_20' ) end [2024-12-26 10:05:17] Production.INFO: ProcessCDR(1,14106130,1,1,2) [2024-12-26 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106130', 'tblTempUsageDetail_20' ) start [2024-12-26 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106130', 'tblTempUsageDetail_20' ) end [2024-12-26 10:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:05:22] Production.INFO: ==8557== Releasing lock... [2024-12-26 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:05:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:06:05 [end_date_ymd] => 2024-12-26 10:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:06:17] Production.INFO: count ==729 [2024-12-26 10:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:06:05 - End Time 2024-12-26 10:06:05 [2024-12-26 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106135', 'tblTempUsageDetail_20' ) start [2024-12-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106135', 'tblTempUsageDetail_20' ) end [2024-12-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106135', 'tblTempVendorCDR_20' ) start [2024-12-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106135', 'tblTempVendorCDR_20' ) end [2024-12-26 10:06:18] Production.INFO: ProcessCDR(1,14106135,1,1,2) [2024-12-26 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106135', 'tblTempUsageDetail_20' ) start [2024-12-26 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106135', 'tblTempUsageDetail_20' ) end [2024-12-26 10:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:06:21] Production.INFO: ==8649== Releasing lock... [2024-12-26 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:06:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:07:04 [end_date_ymd] => 2024-12-26 10:07:04 [RateCDR] => 1 ) [2024-12-26 10:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:07:04' and `end` < '2024-12-26 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:07:17] Production.INFO: count ==737 [2024-12-26 10:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:07:04 - End Time 2024-12-26 10:07:04 [2024-12-26 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106140', 'tblTempUsageDetail_20' ) start [2024-12-26 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106140', 'tblTempUsageDetail_20' ) end [2024-12-26 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106140', 'tblTempVendorCDR_20' ) start [2024-12-26 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106140', 'tblTempVendorCDR_20' ) end [2024-12-26 10:07:17] Production.INFO: ProcessCDR(1,14106140,1,1,2) [2024-12-26 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106140', 'tblTempUsageDetail_20' ) start [2024-12-26 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106140', 'tblTempUsageDetail_20' ) end [2024-12-26 10:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:07:22] Production.INFO: ==8728== Releasing lock... [2024-12-26 10:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:07:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:08:05 [end_date_ymd] => 2024-12-26 10:08:05 [RateCDR] => 1 ) [2024-12-26 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:08:05' and `end` < '2024-12-26 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:08:20] Production.INFO: count ==737 [2024-12-26 10:08:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:08:05 - End Time 2024-12-26 10:08:05 [2024-12-26 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106145', 'tblTempUsageDetail_20' ) start [2024-12-26 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106145', 'tblTempUsageDetail_20' ) end [2024-12-26 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106145', 'tblTempVendorCDR_20' ) start [2024-12-26 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106145', 'tblTempVendorCDR_20' ) end [2024-12-26 10:08:20] Production.INFO: ProcessCDR(1,14106145,1,1,2) [2024-12-26 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106145', 'tblTempUsageDetail_20' ) start [2024-12-26 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106145', 'tblTempUsageDetail_20' ) end [2024-12-26 10:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:08:24] Production.INFO: ==8822== Releasing lock... [2024-12-26 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:08:24] Production.INFO: 33.5 MB #Memory Used# [2024-12-26 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:09:05 [end_date_ymd] => 2024-12-26 10:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:09:18] Production.INFO: count ==739 [2024-12-26 10:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:09:05 - End Time 2024-12-26 10:09:05 [2024-12-26 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106150', 'tblTempUsageDetail_20' ) start [2024-12-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106150', 'tblTempUsageDetail_20' ) end [2024-12-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106150', 'tblTempVendorCDR_20' ) start [2024-12-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106150', 'tblTempVendorCDR_20' ) end [2024-12-26 10:09:18] Production.INFO: ProcessCDR(1,14106150,1,1,2) [2024-12-26 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106150', 'tblTempUsageDetail_20' ) start [2024-12-26 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106150', 'tblTempUsageDetail_20' ) end [2024-12-26 10:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:09:21] Production.INFO: ==8897== Releasing lock... [2024-12-26 10:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:09:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:10:05 [end_date_ymd] => 2024-12-26 10:10:05 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:10:05' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:10:18] Production.INFO: count ==748 [2024-12-26 10:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:10:05 - End Time 2024-12-26 10:10:05 [2024-12-26 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106155', 'tblTempUsageDetail_20' ) start [2024-12-26 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106155', 'tblTempUsageDetail_20' ) end [2024-12-26 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106155', 'tblTempVendorCDR_20' ) start [2024-12-26 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106155', 'tblTempVendorCDR_20' ) end [2024-12-26 10:10:18] Production.INFO: ProcessCDR(1,14106155,1,1,2) [2024-12-26 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106155', 'tblTempUsageDetail_20' ) start [2024-12-26 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106155', 'tblTempUsageDetail_20' ) end [2024-12-26 10:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:10:23] Production.INFO: ==8977== Releasing lock... [2024-12-26 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:10:23] Production.INFO: 34 MB #Memory Used# [2024-12-26 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:11:04 [end_date_ymd] => 2024-12-26 10:11:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:11:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:11:17] Production.INFO: count ==776 [2024-12-26 10:11:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:11:04 - End Time 2024-12-26 10:11:04 [2024-12-26 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106161', 'tblTempUsageDetail_20' ) start [2024-12-26 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106161', 'tblTempUsageDetail_20' ) end [2024-12-26 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106161', 'tblTempVendorCDR_20' ) start [2024-12-26 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106161', 'tblTempVendorCDR_20' ) end [2024-12-26 10:11:17] Production.INFO: ProcessCDR(1,14106161,1,1,2) [2024-12-26 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106161', 'tblTempUsageDetail_20' ) start [2024-12-26 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106161', 'tblTempUsageDetail_20' ) end [2024-12-26 10:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:11:20] Production.INFO: ==9055== Releasing lock... [2024-12-26 10:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:11:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:12:04 [end_date_ymd] => 2024-12-26 10:12:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:12:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:12:17] Production.INFO: count ==777 [2024-12-26 10:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:12:04 - End Time 2024-12-26 10:12:04 [2024-12-26 10:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106166', 'tblTempUsageDetail_20' ) start [2024-12-26 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106166', 'tblTempUsageDetail_20' ) end [2024-12-26 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106166', 'tblTempVendorCDR_20' ) start [2024-12-26 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106166', 'tblTempVendorCDR_20' ) end [2024-12-26 10:12:17] Production.INFO: ProcessCDR(1,14106166,1,1,2) [2024-12-26 10:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106166', 'tblTempUsageDetail_20' ) start [2024-12-26 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106166', 'tblTempUsageDetail_20' ) end [2024-12-26 10:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:12:21] Production.INFO: ==9134== Releasing lock... [2024-12-26 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:12:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:13:05 [end_date_ymd] => 2024-12-26 10:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:13:18] Production.INFO: count ==779 [2024-12-26 10:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:13:05 - End Time 2024-12-26 10:13:05 [2024-12-26 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106171', 'tblTempUsageDetail_20' ) start [2024-12-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106171', 'tblTempUsageDetail_20' ) end [2024-12-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106171', 'tblTempVendorCDR_20' ) start [2024-12-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106171', 'tblTempVendorCDR_20' ) end [2024-12-26 10:13:18] Production.INFO: ProcessCDR(1,14106171,1,1,2) [2024-12-26 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106171', 'tblTempUsageDetail_20' ) start [2024-12-26 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106171', 'tblTempUsageDetail_20' ) end [2024-12-26 10:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:13:21] Production.INFO: ==9211== Releasing lock... [2024-12-26 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:13:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:14:05 [end_date_ymd] => 2024-12-26 10:14:05 [RateCDR] => 1 ) [2024-12-26 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:14:05' and `end` < '2024-12-26 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:14:18] Production.INFO: count ==779 [2024-12-26 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:14:05 - End Time 2024-12-26 10:14:05 [2024-12-26 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106176', 'tblTempUsageDetail_20' ) start [2024-12-26 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106176', 'tblTempUsageDetail_20' ) end [2024-12-26 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106176', 'tblTempVendorCDR_20' ) start [2024-12-26 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106176', 'tblTempVendorCDR_20' ) end [2024-12-26 10:14:18] Production.INFO: ProcessCDR(1,14106176,1,1,2) [2024-12-26 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106176', 'tblTempUsageDetail_20' ) start [2024-12-26 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106176', 'tblTempUsageDetail_20' ) end [2024-12-26 10:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:14:21] Production.INFO: ==9283== Releasing lock... [2024-12-26 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:14:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:15:05 [end_date_ymd] => 2024-12-26 10:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:15:18] Production.INFO: count ==781 [2024-12-26 10:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:15:05 - End Time 2024-12-26 10:15:05 [2024-12-26 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106181', 'tblTempUsageDetail_20' ) start [2024-12-26 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106181', 'tblTempUsageDetail_20' ) end [2024-12-26 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106181', 'tblTempVendorCDR_20' ) start [2024-12-26 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106181', 'tblTempVendorCDR_20' ) end [2024-12-26 10:15:18] Production.INFO: ProcessCDR(1,14106181,1,1,2) [2024-12-26 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106181', 'tblTempUsageDetail_20' ) start [2024-12-26 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106181', 'tblTempUsageDetail_20' ) end [2024-12-26 10:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:15:21] Production.INFO: ==9363== Releasing lock... [2024-12-26 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:15:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:16:04 [end_date_ymd] => 2024-12-26 10:16:04 [RateCDR] => 1 ) [2024-12-26 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:16:04' and `end` < '2024-12-26 10:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:16:17] Production.INFO: count ==781 [2024-12-26 10:16:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:16:04 - End Time 2024-12-26 10:16:04 [2024-12-26 10:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106186', 'tblTempUsageDetail_20' ) start [2024-12-26 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106186', 'tblTempUsageDetail_20' ) end [2024-12-26 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106186', 'tblTempVendorCDR_20' ) start [2024-12-26 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106186', 'tblTempVendorCDR_20' ) end [2024-12-26 10:16:17] Production.INFO: ProcessCDR(1,14106186,1,1,2) [2024-12-26 10:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106186', 'tblTempUsageDetail_20' ) start [2024-12-26 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106186', 'tblTempUsageDetail_20' ) end [2024-12-26 10:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:16:20] Production.INFO: ==9437== Releasing lock... [2024-12-26 10:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:16:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:17:05 [end_date_ymd] => 2024-12-26 10:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:17:22] Production.INFO: count ==781 [2024-12-26 10:17:22] Production.ERROR: pbx CDR StartTime 2024-12-26 07:17:05 - End Time 2024-12-26 10:17:05 [2024-12-26 10:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106191', 'tblTempUsageDetail_20' ) start [2024-12-26 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106191', 'tblTempUsageDetail_20' ) end [2024-12-26 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106191', 'tblTempVendorCDR_20' ) start [2024-12-26 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106191', 'tblTempVendorCDR_20' ) end [2024-12-26 10:17:22] Production.INFO: ProcessCDR(1,14106191,1,1,2) [2024-12-26 10:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106191', 'tblTempUsageDetail_20' ) start [2024-12-26 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106191', 'tblTempUsageDetail_20' ) end [2024-12-26 10:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:17:25] Production.INFO: ==9518== Releasing lock... [2024-12-26 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:17:25] Production.INFO: 33.75 MB #Memory Used# [2024-12-26 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:18:05 [end_date_ymd] => 2024-12-26 10:18:05 [RateCDR] => 1 ) [2024-12-26 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:18:05' and `end` < '2024-12-26 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:18:18] Production.INFO: count ==796 [2024-12-26 10:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:18:05 - End Time 2024-12-26 10:18:05 [2024-12-26 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106196', 'tblTempUsageDetail_20' ) start [2024-12-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106196', 'tblTempUsageDetail_20' ) end [2024-12-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106196', 'tblTempVendorCDR_20' ) start [2024-12-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106196', 'tblTempVendorCDR_20' ) end [2024-12-26 10:18:18] Production.INFO: ProcessCDR(1,14106196,1,1,2) [2024-12-26 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106196', 'tblTempUsageDetail_20' ) start [2024-12-26 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106196', 'tblTempUsageDetail_20' ) end [2024-12-26 10:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:18:22] Production.INFO: ==9593== Releasing lock... [2024-12-26 10:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:18:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:19:05 [end_date_ymd] => 2024-12-26 10:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:19:18] Production.INFO: count ==803 [2024-12-26 10:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:19:05 - End Time 2024-12-26 10:19:05 [2024-12-26 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106201', 'tblTempUsageDetail_20' ) start [2024-12-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106201', 'tblTempUsageDetail_20' ) end [2024-12-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106201', 'tblTempVendorCDR_20' ) start [2024-12-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106201', 'tblTempVendorCDR_20' ) end [2024-12-26 10:19:18] Production.INFO: ProcessCDR(1,14106201,1,1,2) [2024-12-26 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106201', 'tblTempUsageDetail_20' ) start [2024-12-26 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106201', 'tblTempUsageDetail_20' ) end [2024-12-26 10:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:19:22] Production.INFO: ==9665== Releasing lock... [2024-12-26 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:19:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:20:06 [end_date_ymd] => 2024-12-26 10:20:06 [RateCDR] => 1 ) [2024-12-26 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:20:06' and `end` < '2024-12-26 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:20:18] Production.INFO: count ==820 [2024-12-26 10:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:20:06 - End Time 2024-12-26 10:20:06 [2024-12-26 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106206', 'tblTempUsageDetail_20' ) start [2024-12-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106206', 'tblTempUsageDetail_20' ) end [2024-12-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106206', 'tblTempVendorCDR_20' ) start [2024-12-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106206', 'tblTempVendorCDR_20' ) end [2024-12-26 10:20:19] Production.INFO: ProcessCDR(1,14106206,1,1,2) [2024-12-26 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106206', 'tblTempUsageDetail_20' ) start [2024-12-26 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106206', 'tblTempUsageDetail_20' ) end [2024-12-26 10:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:20:23] Production.INFO: ==9742== Releasing lock... [2024-12-26 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:20:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:21:04 [end_date_ymd] => 2024-12-26 10:21:04 [RateCDR] => 1 ) [2024-12-26 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:21:04' and `end` < '2024-12-26 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:21:19] Production.INFO: count ==871 [2024-12-26 10:21:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:21:04 - End Time 2024-12-26 10:21:04 [2024-12-26 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106212', 'tblTempUsageDetail_20' ) start [2024-12-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106212', 'tblTempUsageDetail_20' ) end [2024-12-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106212', 'tblTempVendorCDR_20' ) start [2024-12-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106212', 'tblTempVendorCDR_20' ) end [2024-12-26 10:21:19] Production.INFO: ProcessCDR(1,14106212,1,1,2) [2024-12-26 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106212', 'tblTempUsageDetail_20' ) start [2024-12-26 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106212', 'tblTempUsageDetail_20' ) end [2024-12-26 10:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:21:22] Production.INFO: ==9856== Releasing lock... [2024-12-26 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:21:22] Production.INFO: 35 MB #Memory Used# [2024-12-26 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:22:05 [end_date_ymd] => 2024-12-26 10:22:05 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:22:05' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:22:19] Production.INFO: count ==890 [2024-12-26 10:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:22:05 - End Time 2024-12-26 10:22:05 [2024-12-26 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106217', 'tblTempUsageDetail_20' ) start [2024-12-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106217', 'tblTempUsageDetail_20' ) end [2024-12-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106217', 'tblTempVendorCDR_20' ) start [2024-12-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106217', 'tblTempVendorCDR_20' ) end [2024-12-26 10:22:19] Production.INFO: ProcessCDR(1,14106217,1,1,2) [2024-12-26 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106217', 'tblTempUsageDetail_20' ) start [2024-12-26 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106217', 'tblTempUsageDetail_20' ) end [2024-12-26 10:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:22:24] Production.INFO: ==9936== Releasing lock... [2024-12-26 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:22:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:23:04 [end_date_ymd] => 2024-12-26 10:23:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:23:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:23:17] Production.INFO: count ==897 [2024-12-26 10:23:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:23:04 - End Time 2024-12-26 10:23:04 [2024-12-26 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106222', 'tblTempUsageDetail_20' ) start [2024-12-26 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106222', 'tblTempUsageDetail_20' ) end [2024-12-26 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106222', 'tblTempVendorCDR_20' ) start [2024-12-26 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106222', 'tblTempVendorCDR_20' ) end [2024-12-26 10:23:17] Production.INFO: ProcessCDR(1,14106222,1,1,2) [2024-12-26 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106222', 'tblTempUsageDetail_20' ) start [2024-12-26 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106222', 'tblTempUsageDetail_20' ) end [2024-12-26 10:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:23:20] Production.INFO: ==10014== Releasing lock... [2024-12-26 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:23:20] Production.INFO: 35 MB #Memory Used# [2024-12-26 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:24:05 [end_date_ymd] => 2024-12-26 10:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:24:17] Production.INFO: count ==900 [2024-12-26 10:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:24:05 - End Time 2024-12-26 10:24:05 [2024-12-26 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106227', 'tblTempUsageDetail_20' ) start [2024-12-26 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106227', 'tblTempUsageDetail_20' ) end [2024-12-26 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106227', 'tblTempVendorCDR_20' ) start [2024-12-26 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106227', 'tblTempVendorCDR_20' ) end [2024-12-26 10:24:17] Production.INFO: ProcessCDR(1,14106227,1,1,2) [2024-12-26 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106227', 'tblTempUsageDetail_20' ) start [2024-12-26 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106227', 'tblTempUsageDetail_20' ) end [2024-12-26 10:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:24:22] Production.INFO: ==10092== Releasing lock... [2024-12-26 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:24:22] Production.INFO: 35 MB #Memory Used# [2024-12-26 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:25:04 [end_date_ymd] => 2024-12-26 10:25:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:25:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:25:17] Production.INFO: count ==934 [2024-12-26 10:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:25:04 - End Time 2024-12-26 10:25:04 [2024-12-26 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106232', 'tblTempUsageDetail_20' ) start [2024-12-26 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106232', 'tblTempUsageDetail_20' ) end [2024-12-26 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106232', 'tblTempVendorCDR_20' ) start [2024-12-26 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106232', 'tblTempVendorCDR_20' ) end [2024-12-26 10:25:17] Production.INFO: ProcessCDR(1,14106232,1,1,2) [2024-12-26 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106232', 'tblTempUsageDetail_20' ) start [2024-12-26 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106232', 'tblTempUsageDetail_20' ) end [2024-12-26 10:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:25:22] Production.INFO: ==10177== Releasing lock... [2024-12-26 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:25:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:26:05 [end_date_ymd] => 2024-12-26 10:26:05 [RateCDR] => 1 ) [2024-12-26 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:26:05' and `end` < '2024-12-26 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:26:20] Production.INFO: count ==938 [2024-12-26 10:26:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:26:05 - End Time 2024-12-26 10:26:05 [2024-12-26 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106237', 'tblTempUsageDetail_20' ) start [2024-12-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106237', 'tblTempUsageDetail_20' ) end [2024-12-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106237', 'tblTempVendorCDR_20' ) start [2024-12-26 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106237', 'tblTempVendorCDR_20' ) end [2024-12-26 10:26:20] Production.INFO: ProcessCDR(1,14106237,1,1,2) [2024-12-26 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106237', 'tblTempUsageDetail_20' ) start [2024-12-26 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106237', 'tblTempUsageDetail_20' ) end [2024-12-26 10:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:26:24] Production.INFO: ==10260== Releasing lock... [2024-12-26 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:26:24] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:27:05 [end_date_ymd] => 2024-12-26 10:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:27:18] Production.INFO: count ==939 [2024-12-26 10:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:27:05 - End Time 2024-12-26 10:27:05 [2024-12-26 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106242', 'tblTempUsageDetail_20' ) start [2024-12-26 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106242', 'tblTempUsageDetail_20' ) end [2024-12-26 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106242', 'tblTempVendorCDR_20' ) start [2024-12-26 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106242', 'tblTempVendorCDR_20' ) end [2024-12-26 10:27:18] Production.INFO: ProcessCDR(1,14106242,1,1,2) [2024-12-26 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106242', 'tblTempUsageDetail_20' ) start [2024-12-26 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106242', 'tblTempUsageDetail_20' ) end [2024-12-26 10:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:27:21] Production.INFO: ==10348== Releasing lock... [2024-12-26 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:27:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-26 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:28:05 [end_date_ymd] => 2024-12-26 10:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:28:17] Production.INFO: count ==944 [2024-12-26 10:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:28:05 - End Time 2024-12-26 10:28:05 [2024-12-26 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106247', 'tblTempUsageDetail_20' ) start [2024-12-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106247', 'tblTempUsageDetail_20' ) end [2024-12-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106247', 'tblTempVendorCDR_20' ) start [2024-12-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106247', 'tblTempVendorCDR_20' ) end [2024-12-26 10:28:18] Production.INFO: ProcessCDR(1,14106247,1,1,2) [2024-12-26 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106247', 'tblTempUsageDetail_20' ) start [2024-12-26 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106247', 'tblTempUsageDetail_20' ) end [2024-12-26 10:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:28:21] Production.INFO: ==10432== Releasing lock... [2024-12-26 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:28:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:29:05 [end_date_ymd] => 2024-12-26 10:29:05 [RateCDR] => 1 ) [2024-12-26 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:29:19] Production.INFO: count ==951 [2024-12-26 10:29:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:29:05 - End Time 2024-12-26 10:29:05 [2024-12-26 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106252', 'tblTempUsageDetail_20' ) start [2024-12-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106252', 'tblTempUsageDetail_20' ) end [2024-12-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106252', 'tblTempVendorCDR_20' ) start [2024-12-26 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106252', 'tblTempVendorCDR_20' ) end [2024-12-26 10:29:20] Production.INFO: ProcessCDR(1,14106252,1,1,2) [2024-12-26 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106252', 'tblTempUsageDetail_20' ) start [2024-12-26 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106252', 'tblTempUsageDetail_20' ) end [2024-12-26 10:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:29:24] Production.INFO: ==10520== Releasing lock... [2024-12-26 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:29:24] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:30:06 [end_date_ymd] => 2024-12-26 10:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:30:18] Production.INFO: count ==982 [2024-12-26 10:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:30:06 - End Time 2024-12-26 10:30:06 [2024-12-26 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106258', 'tblTempUsageDetail_20' ) start [2024-12-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106258', 'tblTempUsageDetail_20' ) end [2024-12-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106258', 'tblTempVendorCDR_20' ) start [2024-12-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106258', 'tblTempVendorCDR_20' ) end [2024-12-26 10:30:19] Production.INFO: ProcessCDR(1,14106258,1,1,2) [2024-12-26 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106258', 'tblTempUsageDetail_20' ) start [2024-12-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106258', 'tblTempUsageDetail_20' ) end [2024-12-26 10:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:30:22] Production.INFO: ==10603== Releasing lock... [2024-12-26 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:30:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:31:05 [end_date_ymd] => 2024-12-26 10:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:31:19] Production.INFO: count ==1010 [2024-12-26 10:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:31:05 - End Time 2024-12-26 10:31:05 [2024-12-26 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106263', 'tblTempUsageDetail_20' ) start [2024-12-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106263', 'tblTempUsageDetail_20' ) end [2024-12-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106263', 'tblTempVendorCDR_20' ) start [2024-12-26 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106263', 'tblTempVendorCDR_20' ) end [2024-12-26 10:31:19] Production.INFO: ProcessCDR(1,14106263,1,1,2) [2024-12-26 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106263', 'tblTempUsageDetail_20' ) start [2024-12-26 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106263', 'tblTempUsageDetail_20' ) end [2024-12-26 10:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:31:24] Production.INFO: ==10689== Releasing lock... [2024-12-26 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:31:24] Production.INFO: 36 MB #Memory Used# [2024-12-26 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:32:04 [end_date_ymd] => 2024-12-26 10:32:04 [RateCDR] => 1 ) [2024-12-26 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:32:04' and `end` < '2024-12-26 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:32:18] Production.INFO: count ==1014 [2024-12-26 10:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:32:04 - End Time 2024-12-26 10:32:04 [2024-12-26 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106268', 'tblTempUsageDetail_20' ) start [2024-12-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106268', 'tblTempUsageDetail_20' ) end [2024-12-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106268', 'tblTempVendorCDR_20' ) start [2024-12-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106268', 'tblTempVendorCDR_20' ) end [2024-12-26 10:32:18] Production.INFO: ProcessCDR(1,14106268,1,1,2) [2024-12-26 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106268', 'tblTempUsageDetail_20' ) start [2024-12-26 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106268', 'tblTempUsageDetail_20' ) end [2024-12-26 10:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:32:22] Production.INFO: ==10774== Releasing lock... [2024-12-26 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:32:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:33:05 [end_date_ymd] => 2024-12-26 10:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:33:18] Production.INFO: count ==1031 [2024-12-26 10:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:33:05 - End Time 2024-12-26 10:33:05 [2024-12-26 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106273', 'tblTempUsageDetail_20' ) start [2024-12-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106273', 'tblTempUsageDetail_20' ) end [2024-12-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106273', 'tblTempVendorCDR_20' ) start [2024-12-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106273', 'tblTempVendorCDR_20' ) end [2024-12-26 10:33:18] Production.INFO: ProcessCDR(1,14106273,1,1,2) [2024-12-26 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106273', 'tblTempUsageDetail_20' ) start [2024-12-26 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106273', 'tblTempUsageDetail_20' ) end [2024-12-26 10:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:33:21] Production.INFO: ==10858== Releasing lock... [2024-12-26 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:33:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:34:05 [end_date_ymd] => 2024-12-26 10:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:34:18] Production.INFO: count ==1068 [2024-12-26 10:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:34:05 - End Time 2024-12-26 10:34:05 [2024-12-26 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106278', 'tblTempUsageDetail_20' ) start [2024-12-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106278', 'tblTempUsageDetail_20' ) end [2024-12-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106278', 'tblTempVendorCDR_20' ) start [2024-12-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106278', 'tblTempVendorCDR_20' ) end [2024-12-26 10:34:18] Production.INFO: ProcessCDR(1,14106278,1,1,2) [2024-12-26 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106278', 'tblTempUsageDetail_20' ) start [2024-12-26 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106278', 'tblTempUsageDetail_20' ) end [2024-12-26 10:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:34:21] Production.INFO: ==10946== Releasing lock... [2024-12-26 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:34:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:35:05 [end_date_ymd] => 2024-12-26 10:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:35:18] Production.INFO: count ==1087 [2024-12-26 10:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:35:05 - End Time 2024-12-26 10:35:05 [2024-12-26 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106283', 'tblTempUsageDetail_20' ) start [2024-12-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106283', 'tblTempUsageDetail_20' ) end [2024-12-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106283', 'tblTempVendorCDR_20' ) start [2024-12-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106283', 'tblTempVendorCDR_20' ) end [2024-12-26 10:35:18] Production.INFO: ProcessCDR(1,14106283,1,1,2) [2024-12-26 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106283', 'tblTempUsageDetail_20' ) start [2024-12-26 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106283', 'tblTempUsageDetail_20' ) end [2024-12-26 10:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:35:21] Production.INFO: ==11024== Releasing lock... [2024-12-26 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:35:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:36:05 [end_date_ymd] => 2024-12-26 10:36:05 [RateCDR] => 1 ) [2024-12-26 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:36:05' and `end` < '2024-12-26 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:36:17] Production.INFO: count ==1106 [2024-12-26 10:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:36:05 - End Time 2024-12-26 10:36:05 [2024-12-26 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106288', 'tblTempUsageDetail_20' ) start [2024-12-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106288', 'tblTempUsageDetail_20' ) end [2024-12-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106288', 'tblTempVendorCDR_20' ) start [2024-12-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106288', 'tblTempVendorCDR_20' ) end [2024-12-26 10:36:18] Production.INFO: ProcessCDR(1,14106288,1,1,2) [2024-12-26 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106288', 'tblTempUsageDetail_20' ) start [2024-12-26 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106288', 'tblTempUsageDetail_20' ) end [2024-12-26 10:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:36:21] Production.INFO: ==11099== Releasing lock... [2024-12-26 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:36:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:37:05 [end_date_ymd] => 2024-12-26 10:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:37:17] Production.INFO: count ==1129 [2024-12-26 10:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:37:05 - End Time 2024-12-26 10:37:05 [2024-12-26 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106293', 'tblTempUsageDetail_20' ) start [2024-12-26 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106293', 'tblTempUsageDetail_20' ) end [2024-12-26 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106293', 'tblTempVendorCDR_20' ) start [2024-12-26 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106293', 'tblTempVendorCDR_20' ) end [2024-12-26 10:37:17] Production.INFO: ProcessCDR(1,14106293,1,1,2) [2024-12-26 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106293', 'tblTempUsageDetail_20' ) start [2024-12-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106293', 'tblTempUsageDetail_20' ) end [2024-12-26 10:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:37:21] Production.INFO: ==11209== Releasing lock... [2024-12-26 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:37:21] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:38:04 [end_date_ymd] => 2024-12-26 10:38:04 [RateCDR] => 1 ) [2024-12-26 10:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:38:04' and `end` < '2024-12-26 10:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:38:20] Production.INFO: count ==1147 [2024-12-26 10:38:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:38:04 - End Time 2024-12-26 10:38:04 [2024-12-26 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106298', 'tblTempUsageDetail_20' ) start [2024-12-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106298', 'tblTempUsageDetail_20' ) end [2024-12-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106298', 'tblTempVendorCDR_20' ) start [2024-12-26 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106298', 'tblTempVendorCDR_20' ) end [2024-12-26 10:38:20] Production.INFO: ProcessCDR(1,14106298,1,1,2) [2024-12-26 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106298', 'tblTempUsageDetail_20' ) start [2024-12-26 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106298', 'tblTempUsageDetail_20' ) end [2024-12-26 10:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:38:23] Production.INFO: ==11285== Releasing lock... [2024-12-26 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:38:23] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:39:05 [end_date_ymd] => 2024-12-26 10:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:39:18] Production.INFO: count ==1151 [2024-12-26 10:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:39:05 - End Time 2024-12-26 10:39:05 [2024-12-26 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106303', 'tblTempUsageDetail_20' ) start [2024-12-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106303', 'tblTempUsageDetail_20' ) end [2024-12-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106303', 'tblTempVendorCDR_20' ) start [2024-12-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106303', 'tblTempVendorCDR_20' ) end [2024-12-26 10:39:18] Production.INFO: ProcessCDR(1,14106303,1,1,2) [2024-12-26 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106303', 'tblTempUsageDetail_20' ) start [2024-12-26 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106303', 'tblTempUsageDetail_20' ) end [2024-12-26 10:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:39:23] Production.INFO: ==11359== Releasing lock... [2024-12-26 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:39:23] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:40:06 [end_date_ymd] => 2024-12-26 10:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:40:19] Production.INFO: count ==1159 [2024-12-26 10:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:40:06 - End Time 2024-12-26 10:40:06 [2024-12-26 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106309', 'tblTempUsageDetail_20' ) start [2024-12-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106309', 'tblTempUsageDetail_20' ) end [2024-12-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106309', 'tblTempVendorCDR_20' ) start [2024-12-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106309', 'tblTempVendorCDR_20' ) end [2024-12-26 10:40:19] Production.INFO: ProcessCDR(1,14106309,1,1,2) [2024-12-26 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106309', 'tblTempUsageDetail_20' ) start [2024-12-26 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106309', 'tblTempUsageDetail_20' ) end [2024-12-26 10:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:40:22] Production.INFO: ==11433== Releasing lock... [2024-12-26 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:40:22] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:41:05 [end_date_ymd] => 2024-12-26 10:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:41:19] Production.INFO: count ==1170 [2024-12-26 10:41:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:41:05 - End Time 2024-12-26 10:41:05 [2024-12-26 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106314', 'tblTempUsageDetail_20' ) start [2024-12-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106314', 'tblTempUsageDetail_20' ) end [2024-12-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106314', 'tblTempVendorCDR_20' ) start [2024-12-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106314', 'tblTempVendorCDR_20' ) end [2024-12-26 10:41:19] Production.INFO: ProcessCDR(1,14106314,1,1,2) [2024-12-26 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106314', 'tblTempUsageDetail_20' ) start [2024-12-26 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106314', 'tblTempUsageDetail_20' ) end [2024-12-26 10:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:41:22] Production.INFO: ==11511== Releasing lock... [2024-12-26 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:41:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:42:05 [end_date_ymd] => 2024-12-26 10:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:42:17] Production.INFO: count ==1172 [2024-12-26 10:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:42:05 - End Time 2024-12-26 10:42:05 [2024-12-26 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106319', 'tblTempUsageDetail_20' ) start [2024-12-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106319', 'tblTempUsageDetail_20' ) end [2024-12-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106319', 'tblTempVendorCDR_20' ) start [2024-12-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106319', 'tblTempVendorCDR_20' ) end [2024-12-26 10:42:18] Production.INFO: ProcessCDR(1,14106319,1,1,2) [2024-12-26 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106319', 'tblTempUsageDetail_20' ) start [2024-12-26 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106319', 'tblTempUsageDetail_20' ) end [2024-12-26 10:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:42:21] Production.INFO: ==11586== Releasing lock... [2024-12-26 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:42:21] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:43:05 [end_date_ymd] => 2024-12-26 10:43:05 [RateCDR] => 1 ) [2024-12-26 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:43:05' and `end` < '2024-12-26 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:43:18] Production.INFO: count ==1172 [2024-12-26 10:43:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:43:05 - End Time 2024-12-26 10:43:05 [2024-12-26 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106324', 'tblTempUsageDetail_20' ) start [2024-12-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106324', 'tblTempUsageDetail_20' ) end [2024-12-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106324', 'tblTempVendorCDR_20' ) start [2024-12-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106324', 'tblTempVendorCDR_20' ) end [2024-12-26 10:43:19] Production.INFO: ProcessCDR(1,14106324,1,1,2) [2024-12-26 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106324', 'tblTempUsageDetail_20' ) start [2024-12-26 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106324', 'tblTempUsageDetail_20' ) end [2024-12-26 10:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:43:22] Production.INFO: ==11662== Releasing lock... [2024-12-26 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:43:22] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:44:05 [end_date_ymd] => 2024-12-26 10:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:44:19] Production.INFO: count ==1172 [2024-12-26 10:44:20] Production.ERROR: pbx CDR StartTime 2024-12-26 07:44:05 - End Time 2024-12-26 10:44:05 [2024-12-26 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106329', 'tblTempUsageDetail_20' ) start [2024-12-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106329', 'tblTempUsageDetail_20' ) end [2024-12-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106329', 'tblTempVendorCDR_20' ) start [2024-12-26 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106329', 'tblTempVendorCDR_20' ) end [2024-12-26 10:44:20] Production.INFO: ProcessCDR(1,14106329,1,1,2) [2024-12-26 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106329', 'tblTempUsageDetail_20' ) start [2024-12-26 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106329', 'tblTempUsageDetail_20' ) end [2024-12-26 10:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:44:23] Production.INFO: ==11743== Releasing lock... [2024-12-26 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:44:23] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:45:04 [end_date_ymd] => 2024-12-26 10:45:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:45:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:45:17] Production.INFO: count ==1177 [2024-12-26 10:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:45:04 - End Time 2024-12-26 10:45:04 [2024-12-26 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106334', 'tblTempUsageDetail_20' ) start [2024-12-26 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106334', 'tblTempUsageDetail_20' ) end [2024-12-26 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106334', 'tblTempVendorCDR_20' ) start [2024-12-26 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106334', 'tblTempVendorCDR_20' ) end [2024-12-26 10:45:17] Production.INFO: ProcessCDR(1,14106334,1,1,2) [2024-12-26 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106334', 'tblTempUsageDetail_20' ) start [2024-12-26 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106334', 'tblTempUsageDetail_20' ) end [2024-12-26 10:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:45:20] Production.INFO: ==11817== Releasing lock... [2024-12-26 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:45:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:46:04 [end_date_ymd] => 2024-12-26 10:46:04 [RateCDR] => 1 ) [2024-12-26 10:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:46:04' and `end` < '2024-12-26 10:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:46:18] Production.INFO: count ==1187 [2024-12-26 10:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:46:04 - End Time 2024-12-26 10:46:04 [2024-12-26 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106339', 'tblTempUsageDetail_20' ) start [2024-12-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106339', 'tblTempUsageDetail_20' ) end [2024-12-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106339', 'tblTempVendorCDR_20' ) start [2024-12-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106339', 'tblTempVendorCDR_20' ) end [2024-12-26 10:46:19] Production.INFO: ProcessCDR(1,14106339,1,1,2) [2024-12-26 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106339', 'tblTempUsageDetail_20' ) start [2024-12-26 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106339', 'tblTempUsageDetail_20' ) end [2024-12-26 10:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:46:23] Production.INFO: ==11890== Releasing lock... [2024-12-26 10:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:46:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:47:04 [end_date_ymd] => 2024-12-26 10:47:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:47:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:47:19] Production.INFO: count ==1192 [2024-12-26 10:47:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:47:04 - End Time 2024-12-26 10:47:04 [2024-12-26 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106344', 'tblTempUsageDetail_20' ) start [2024-12-26 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106344', 'tblTempUsageDetail_20' ) end [2024-12-26 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106344', 'tblTempVendorCDR_20' ) start [2024-12-26 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106344', 'tblTempVendorCDR_20' ) end [2024-12-26 10:47:19] Production.INFO: ProcessCDR(1,14106344,1,1,2) [2024-12-26 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106344', 'tblTempUsageDetail_20' ) start [2024-12-26 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106344', 'tblTempUsageDetail_20' ) end [2024-12-26 10:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:47:22] Production.INFO: ==11964== Releasing lock... [2024-12-26 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:47:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:48:05 [end_date_ymd] => 2024-12-26 10:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:48:17] Production.INFO: count ==1197 [2024-12-26 10:48:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:48:05 - End Time 2024-12-26 10:48:05 [2024-12-26 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106349', 'tblTempUsageDetail_20' ) start [2024-12-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106349', 'tblTempUsageDetail_20' ) end [2024-12-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106349', 'tblTempVendorCDR_20' ) start [2024-12-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106349', 'tblTempVendorCDR_20' ) end [2024-12-26 10:48:18] Production.INFO: ProcessCDR(1,14106349,1,1,2) [2024-12-26 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106349', 'tblTempUsageDetail_20' ) start [2024-12-26 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106349', 'tblTempUsageDetail_20' ) end [2024-12-26 10:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:48:23] Production.INFO: ==12042== Releasing lock... [2024-12-26 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:48:23] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:49:04 [end_date_ymd] => 2024-12-26 10:49:04 [RateCDR] => 1 ) [2024-12-26 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:49:04' and `end` < '2024-12-26 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:49:17] Production.INFO: count ==1204 [2024-12-26 10:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:49:04 - End Time 2024-12-26 10:49:04 [2024-12-26 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106354', 'tblTempUsageDetail_20' ) start [2024-12-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106354', 'tblTempUsageDetail_20' ) end [2024-12-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106354', 'tblTempVendorCDR_20' ) start [2024-12-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106354', 'tblTempVendorCDR_20' ) end [2024-12-26 10:49:18] Production.INFO: ProcessCDR(1,14106354,1,1,2) [2024-12-26 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106354', 'tblTempUsageDetail_20' ) start [2024-12-26 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106354', 'tblTempUsageDetail_20' ) end [2024-12-26 10:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:49:21] Production.INFO: ==12113== Releasing lock... [2024-12-26 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:49:21] Production.INFO: 37 MB #Memory Used# [2024-12-26 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:50:06 [end_date_ymd] => 2024-12-26 10:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:50:21] Production.INFO: count ==1240 [2024-12-26 10:50:22] Production.ERROR: pbx CDR StartTime 2024-12-26 07:50:06 - End Time 2024-12-26 10:50:06 [2024-12-26 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106360', 'tblTempUsageDetail_20' ) start [2024-12-26 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106360', 'tblTempUsageDetail_20' ) end [2024-12-26 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106360', 'tblTempVendorCDR_20' ) start [2024-12-26 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106360', 'tblTempVendorCDR_20' ) end [2024-12-26 10:50:22] Production.INFO: ProcessCDR(1,14106360,1,1,2) [2024-12-26 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106360', 'tblTempUsageDetail_20' ) start [2024-12-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106360', 'tblTempUsageDetail_20' ) end [2024-12-26 10:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:50:25] Production.INFO: ==12188== Releasing lock... [2024-12-26 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:50:25] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:51:04 [end_date_ymd] => 2024-12-26 10:51:04 [RateCDR] => 1 ) [2024-12-26 10:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 07:51:04' and `end` < '2024-12-26 10:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 10:51:19] Production.INFO: count ==1240 [2024-12-26 10:51:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:51:04 - End Time 2024-12-26 10:51:04 [2024-12-26 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106365', 'tblTempUsageDetail_20' ) start [2024-12-26 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106365', 'tblTempUsageDetail_20' ) end [2024-12-26 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106365', 'tblTempVendorCDR_20' ) start [2024-12-26 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106365', 'tblTempVendorCDR_20' ) end [2024-12-26 10:51:19] Production.INFO: ProcessCDR(1,14106365,1,1,2) [2024-12-26 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106365', 'tblTempUsageDetail_20' ) start [2024-12-26 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106365', 'tblTempUsageDetail_20' ) end [2024-12-26 10:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:51:22] Production.INFO: ==12263== Releasing lock... [2024-12-26 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:51:22] Production.INFO: 38 MB #Memory Used# [2024-12-26 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:52:05 [end_date_ymd] => 2024-12-26 10:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:52:18] Production.INFO: count ==1240 [2024-12-26 10:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:52:05 - End Time 2024-12-26 10:52:05 [2024-12-26 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106370', 'tblTempUsageDetail_20' ) start [2024-12-26 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106370', 'tblTempUsageDetail_20' ) end [2024-12-26 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106370', 'tblTempVendorCDR_20' ) start [2024-12-26 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106370', 'tblTempVendorCDR_20' ) end [2024-12-26 10:52:18] Production.INFO: ProcessCDR(1,14106370,1,1,2) [2024-12-26 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106370', 'tblTempUsageDetail_20' ) start [2024-12-26 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106370', 'tblTempUsageDetail_20' ) end [2024-12-26 10:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:52:21] Production.INFO: ==12336== Releasing lock... [2024-12-26 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:52:21] Production.INFO: 38 MB #Memory Used# [2024-12-26 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:53:05 [end_date_ymd] => 2024-12-26 10:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:53:19] Production.INFO: count ==1241 [2024-12-26 10:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:53:05 - End Time 2024-12-26 10:53:05 [2024-12-26 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106375', 'tblTempUsageDetail_20' ) start [2024-12-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106375', 'tblTempUsageDetail_20' ) end [2024-12-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106375', 'tblTempVendorCDR_20' ) start [2024-12-26 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106375', 'tblTempVendorCDR_20' ) end [2024-12-26 10:53:19] Production.INFO: ProcessCDR(1,14106375,1,1,2) [2024-12-26 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106375', 'tblTempUsageDetail_20' ) start [2024-12-26 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106375', 'tblTempUsageDetail_20' ) end [2024-12-26 10:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:53:24] Production.INFO: ==12446== Releasing lock... [2024-12-26 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:53:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:54:05 [end_date_ymd] => 2024-12-26 10:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:54:18] Production.INFO: count ==1242 [2024-12-26 10:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:54:05 - End Time 2024-12-26 10:54:05 [2024-12-26 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106380', 'tblTempUsageDetail_20' ) start [2024-12-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106380', 'tblTempUsageDetail_20' ) end [2024-12-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106380', 'tblTempVendorCDR_20' ) start [2024-12-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106380', 'tblTempVendorCDR_20' ) end [2024-12-26 10:54:18] Production.INFO: ProcessCDR(1,14106380,1,1,2) [2024-12-26 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106380', 'tblTempUsageDetail_20' ) start [2024-12-26 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106380', 'tblTempUsageDetail_20' ) end [2024-12-26 10:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:54:23] Production.INFO: ==12518== Releasing lock... [2024-12-26 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:54:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:55:04 [end_date_ymd] => 2024-12-26 10:55:04 [RateCDR] => 1 ) [2024-12-26 10: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` >= '2024-12-26 07:55:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:55:17] Production.INFO: count ==1242 [2024-12-26 10:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 07:55:04 - End Time 2024-12-26 10:55:04 [2024-12-26 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106385', 'tblTempUsageDetail_20' ) start [2024-12-26 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106385', 'tblTempUsageDetail_20' ) end [2024-12-26 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106385', 'tblTempVendorCDR_20' ) start [2024-12-26 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106385', 'tblTempVendorCDR_20' ) end [2024-12-26 10:55:17] Production.INFO: ProcessCDR(1,14106385,1,1,2) [2024-12-26 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106385', 'tblTempUsageDetail_20' ) start [2024-12-26 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106385', 'tblTempUsageDetail_20' ) end [2024-12-26 10:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:55:22] Production.INFO: ==12597== Releasing lock... [2024-12-26 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:55:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:56:05 [end_date_ymd] => 2024-12-26 10:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:56:18] Production.INFO: count ==1244 [2024-12-26 10:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:56:05 - End Time 2024-12-26 10:56:05 [2024-12-26 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106390', 'tblTempUsageDetail_20' ) start [2024-12-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106390', 'tblTempUsageDetail_20' ) end [2024-12-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106390', 'tblTempVendorCDR_20' ) start [2024-12-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106390', 'tblTempVendorCDR_20' ) end [2024-12-26 10:56:18] Production.INFO: ProcessCDR(1,14106390,1,1,2) [2024-12-26 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106390', 'tblTempUsageDetail_20' ) start [2024-12-26 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106390', 'tblTempUsageDetail_20' ) end [2024-12-26 10:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:56:23] Production.INFO: ==12670== Releasing lock... [2024-12-26 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:56:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:57:05 [end_date_ymd] => 2024-12-26 10:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:57:18] Production.INFO: count ==1245 [2024-12-26 10:57:19] Production.ERROR: pbx CDR StartTime 2024-12-26 07:57:05 - End Time 2024-12-26 10:57:05 [2024-12-26 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106395', 'tblTempUsageDetail_20' ) start [2024-12-26 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106395', 'tblTempUsageDetail_20' ) end [2024-12-26 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106395', 'tblTempVendorCDR_20' ) start [2024-12-26 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106395', 'tblTempVendorCDR_20' ) end [2024-12-26 10:57:19] Production.INFO: ProcessCDR(1,14106395,1,1,2) [2024-12-26 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106395', 'tblTempUsageDetail_20' ) start [2024-12-26 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106395', 'tblTempUsageDetail_20' ) end [2024-12-26 10:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:57:23] Production.INFO: ==12748== Releasing lock... [2024-12-26 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:57:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:58:04 [end_date_ymd] => 2024-12-26 10:58:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:58:04' and `end` < '2024-12-26 10: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 ,'') [2024-12-26 10:58:17] Production.INFO: count ==1270 [2024-12-26 10:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 07:58:04 - End Time 2024-12-26 10:58:04 [2024-12-26 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106400', 'tblTempUsageDetail_20' ) start [2024-12-26 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106400', 'tblTempUsageDetail_20' ) end [2024-12-26 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106400', 'tblTempVendorCDR_20' ) start [2024-12-26 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106400', 'tblTempVendorCDR_20' ) end [2024-12-26 10:58:18] Production.INFO: ProcessCDR(1,14106400,1,1,2) [2024-12-26 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106400', 'tblTempUsageDetail_20' ) start [2024-12-26 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106400', 'tblTempUsageDetail_20' ) end [2024-12-26 10:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:58:22] Production.INFO: ==12820== Releasing lock... [2024-12-26 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:58:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 07:59:05 [end_date_ymd] => 2024-12-26 10:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 07:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 10:59:21] Production.INFO: count ==1271 [2024-12-26 10:59:21] Production.ERROR: pbx CDR StartTime 2024-12-26 07:59:05 - End Time 2024-12-26 10:59:05 [2024-12-26 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106405', 'tblTempUsageDetail_20' ) start [2024-12-26 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106405', 'tblTempUsageDetail_20' ) end [2024-12-26 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106405', 'tblTempVendorCDR_20' ) start [2024-12-26 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106405', 'tblTempVendorCDR_20' ) end [2024-12-26 10:59:21] Production.INFO: ProcessCDR(1,14106405,1,1,2) [2024-12-26 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106405', 'tblTempUsageDetail_20' ) start [2024-12-26 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106405', 'tblTempUsageDetail_20' ) end [2024-12-26 10:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 10:59:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 10:59:26] Production.INFO: ==12893== Releasing lock... [2024-12-26 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 10:59:26] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:00:05 [end_date_ymd] => 2024-12-26 11:00:05 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:00:05' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:00:18] Production.INFO: count ==1280 [2024-12-26 11:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:00:05 - End Time 2024-12-26 11:00:05 [2024-12-26 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106410', 'tblTempUsageDetail_20' ) start [2024-12-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106410', 'tblTempUsageDetail_20' ) end [2024-12-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106410', 'tblTempVendorCDR_20' ) start [2024-12-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106410', 'tblTempVendorCDR_20' ) end [2024-12-26 11:00:19] Production.INFO: ProcessCDR(1,14106410,1,1,2) [2024-12-26 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106410', 'tblTempUsageDetail_20' ) start [2024-12-26 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106410', 'tblTempUsageDetail_20' ) end [2024-12-26 11:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:00:23] Production.INFO: ==12970== Releasing lock... [2024-12-26 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:00:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:01:05 [end_date_ymd] => 2024-12-26 11:01:05 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:01:05' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:01:18] Production.INFO: count ==1315 [2024-12-26 11:01:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:01:05 - End Time 2024-12-26 11:01:05 [2024-12-26 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106416', 'tblTempUsageDetail_20' ) start [2024-12-26 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106416', 'tblTempUsageDetail_20' ) end [2024-12-26 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106416', 'tblTempVendorCDR_20' ) start [2024-12-26 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106416', 'tblTempVendorCDR_20' ) end [2024-12-26 11:01:19] Production.INFO: ProcessCDR(1,14106416,1,1,2) [2024-12-26 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106416', 'tblTempUsageDetail_20' ) start [2024-12-26 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106416', 'tblTempUsageDetail_20' ) end [2024-12-26 11:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:01:23] Production.INFO: ==13096== Releasing lock... [2024-12-26 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:01:23] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:02:05 [end_date_ymd] => 2024-12-26 11:02:05 [RateCDR] => 1 ) [2024-12-26 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:02:05' and `end` < '2024-12-26 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:02:20] Production.INFO: count ==1316 [2024-12-26 11:02:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:02:05 - End Time 2024-12-26 11:02:05 [2024-12-26 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106421', 'tblTempUsageDetail_20' ) start [2024-12-26 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106421', 'tblTempUsageDetail_20' ) end [2024-12-26 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106421', 'tblTempVendorCDR_20' ) start [2024-12-26 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106421', 'tblTempVendorCDR_20' ) end [2024-12-26 11:02:20] Production.INFO: ProcessCDR(1,14106421,1,1,2) [2024-12-26 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106421', 'tblTempUsageDetail_20' ) start [2024-12-26 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106421', 'tblTempUsageDetail_20' ) end [2024-12-26 11:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:02:25] Production.INFO: ==13210== Releasing lock... [2024-12-26 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:02:25] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:03:05 [end_date_ymd] => 2024-12-26 11:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:03:17] Production.INFO: count ==1323 [2024-12-26 11:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:03:05 - End Time 2024-12-26 11:03:05 [2024-12-26 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106426', 'tblTempUsageDetail_20' ) start [2024-12-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106426', 'tblTempUsageDetail_20' ) end [2024-12-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106426', 'tblTempVendorCDR_20' ) start [2024-12-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106426', 'tblTempVendorCDR_20' ) end [2024-12-26 11:03:18] Production.INFO: ProcessCDR(1,14106426,1,1,2) [2024-12-26 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106426', 'tblTempUsageDetail_20' ) start [2024-12-26 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106426', 'tblTempUsageDetail_20' ) end [2024-12-26 11:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:03:22] Production.INFO: ==13282== Releasing lock... [2024-12-26 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:03:22] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:04:04 [end_date_ymd] => 2024-12-26 11:04:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:04:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:04:17] Production.INFO: count ==1322 [2024-12-26 11:04:17] Production.ERROR: pbx CDR StartTime 2024-12-26 08:04:04 - End Time 2024-12-26 11:04:04 [2024-12-26 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106431', 'tblTempUsageDetail_20' ) start [2024-12-26 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106431', 'tblTempUsageDetail_20' ) end [2024-12-26 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106431', 'tblTempVendorCDR_20' ) start [2024-12-26 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106431', 'tblTempVendorCDR_20' ) end [2024-12-26 11:04:17] Production.INFO: ProcessCDR(1,14106431,1,1,2) [2024-12-26 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106431', 'tblTempUsageDetail_20' ) start [2024-12-26 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106431', 'tblTempUsageDetail_20' ) end [2024-12-26 11:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:04:21] Production.INFO: ==13351== Releasing lock... [2024-12-26 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:04:21] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:05:05 [end_date_ymd] => 2024-12-26 11:05:05 [RateCDR] => 1 ) [2024-12-26 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:05:05' and `end` < '2024-12-26 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:05:17] Production.INFO: count ==1322 [2024-12-26 11:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:05:05 - End Time 2024-12-26 11:05:05 [2024-12-26 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106436', 'tblTempUsageDetail_20' ) start [2024-12-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106436', 'tblTempUsageDetail_20' ) end [2024-12-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106436', 'tblTempVendorCDR_20' ) start [2024-12-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106436', 'tblTempVendorCDR_20' ) end [2024-12-26 11:05:18] Production.INFO: ProcessCDR(1,14106436,1,1,2) [2024-12-26 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106436', 'tblTempUsageDetail_20' ) start [2024-12-26 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106436', 'tblTempUsageDetail_20' ) end [2024-12-26 11:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:05:21] Production.INFO: ==13500== Releasing lock... [2024-12-26 11:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:05:21] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:06:04 [end_date_ymd] => 2024-12-26 11:06:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:06:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:06:18] Production.INFO: count ==1321 [2024-12-26 11:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:06:04 - End Time 2024-12-26 11:06:04 [2024-12-26 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106441', 'tblTempUsageDetail_20' ) start [2024-12-26 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106441', 'tblTempUsageDetail_20' ) end [2024-12-26 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106441', 'tblTempVendorCDR_20' ) start [2024-12-26 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106441', 'tblTempVendorCDR_20' ) end [2024-12-26 11:06:19] Production.INFO: ProcessCDR(1,14106441,1,1,2) [2024-12-26 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106441', 'tblTempUsageDetail_20' ) start [2024-12-26 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106441', 'tblTempUsageDetail_20' ) end [2024-12-26 11:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:06:22] Production.INFO: ==13573== Releasing lock... [2024-12-26 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:06:22] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:07:05 [end_date_ymd] => 2024-12-26 11:07:05 [RateCDR] => 1 ) [2024-12-26 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:07:05' and `end` < '2024-12-26 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:07:17] Production.INFO: count ==1325 [2024-12-26 11:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:07:05 - End Time 2024-12-26 11:07:05 [2024-12-26 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106446', 'tblTempUsageDetail_20' ) start [2024-12-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106446', 'tblTempUsageDetail_20' ) end [2024-12-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106446', 'tblTempVendorCDR_20' ) start [2024-12-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106446', 'tblTempVendorCDR_20' ) end [2024-12-26 11:07:18] Production.INFO: ProcessCDR(1,14106446,1,1,2) [2024-12-26 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106446', 'tblTempUsageDetail_20' ) start [2024-12-26 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106446', 'tblTempUsageDetail_20' ) end [2024-12-26 11:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:07:23] Production.INFO: ==13645== Releasing lock... [2024-12-26 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:07:23] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:08:04 [end_date_ymd] => 2024-12-26 11:08:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:08:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:08:21] Production.INFO: count ==1325 [2024-12-26 11:08:22] Production.ERROR: pbx CDR StartTime 2024-12-26 08:08:04 - End Time 2024-12-26 11:08:04 [2024-12-26 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106451', 'tblTempUsageDetail_20' ) start [2024-12-26 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106451', 'tblTempUsageDetail_20' ) end [2024-12-26 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106451', 'tblTempVendorCDR_20' ) start [2024-12-26 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106451', 'tblTempVendorCDR_20' ) end [2024-12-26 11:08:22] Production.INFO: ProcessCDR(1,14106451,1,1,2) [2024-12-26 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106451', 'tblTempUsageDetail_20' ) start [2024-12-26 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106451', 'tblTempUsageDetail_20' ) end [2024-12-26 11:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:08:26] Production.INFO: ==13834== Releasing lock... [2024-12-26 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:08:26] Production.INFO: 38 MB #Memory Used# [2024-12-26 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:09:04 [end_date_ymd] => 2024-12-26 11:09:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:09:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:09:17] Production.INFO: count ==1330 [2024-12-26 11:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:09:04 - End Time 2024-12-26 11:09:04 [2024-12-26 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106456', 'tblTempUsageDetail_20' ) start [2024-12-26 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106456', 'tblTempUsageDetail_20' ) end [2024-12-26 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106456', 'tblTempVendorCDR_20' ) start [2024-12-26 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106456', 'tblTempVendorCDR_20' ) end [2024-12-26 11:09:18] Production.INFO: ProcessCDR(1,14106456,1,1,2) [2024-12-26 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106456', 'tblTempUsageDetail_20' ) start [2024-12-26 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106456', 'tblTempUsageDetail_20' ) end [2024-12-26 11:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:09:22] Production.INFO: ==13911== Releasing lock... [2024-12-26 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:09:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-26 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:10:06 [end_date_ymd] => 2024-12-26 11:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:10:18] Production.INFO: count ==1364 [2024-12-26 11:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:10:06 - End Time 2024-12-26 11:10:06 [2024-12-26 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106462', 'tblTempUsageDetail_20' ) start [2024-12-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106462', 'tblTempUsageDetail_20' ) end [2024-12-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106462', 'tblTempVendorCDR_20' ) start [2024-12-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106462', 'tblTempVendorCDR_20' ) end [2024-12-26 11:10:19] Production.INFO: ProcessCDR(1,14106462,1,1,2) [2024-12-26 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106462', 'tblTempUsageDetail_20' ) start [2024-12-26 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106462', 'tblTempUsageDetail_20' ) end [2024-12-26 11:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:10:22] Production.INFO: ==13983== Releasing lock... [2024-12-26 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:10:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-26 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:11:05 [end_date_ymd] => 2024-12-26 11:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:11:19] Production.INFO: count ==1413 [2024-12-26 11:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:11:05 - End Time 2024-12-26 11:11:05 [2024-12-26 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106467', 'tblTempUsageDetail_20' ) start [2024-12-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106467', 'tblTempUsageDetail_20' ) end [2024-12-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106467', 'tblTempVendorCDR_20' ) start [2024-12-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106467', 'tblTempVendorCDR_20' ) end [2024-12-26 11:11:19] Production.INFO: ProcessCDR(1,14106467,1,1,2) [2024-12-26 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106467', 'tblTempUsageDetail_20' ) start [2024-12-26 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106467', 'tblTempUsageDetail_20' ) end [2024-12-26 11:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:11:22] Production.INFO: ==14064== Releasing lock... [2024-12-26 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:11:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:12:05 [end_date_ymd] => 2024-12-26 11:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:12:19] Production.INFO: count ==1417 [2024-12-26 11:12:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:12:05 - End Time 2024-12-26 11:12:05 [2024-12-26 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106472', 'tblTempUsageDetail_20' ) start [2024-12-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106472', 'tblTempUsageDetail_20' ) end [2024-12-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106472', 'tblTempVendorCDR_20' ) start [2024-12-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106472', 'tblTempVendorCDR_20' ) end [2024-12-26 11:12:19] Production.INFO: ProcessCDR(1,14106472,1,1,2) [2024-12-26 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106472', 'tblTempUsageDetail_20' ) start [2024-12-26 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106472', 'tblTempUsageDetail_20' ) end [2024-12-26 11:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:12:22] Production.INFO: ==14219== Releasing lock... [2024-12-26 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:12:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:13:05 [end_date_ymd] => 2024-12-26 11:13:05 [RateCDR] => 1 ) [2024-12-26 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:13:05' and `end` < '2024-12-26 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:13:19] Production.INFO: count ==1428 [2024-12-26 11:13:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:13:05 - End Time 2024-12-26 11:13:05 [2024-12-26 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106477', 'tblTempUsageDetail_20' ) start [2024-12-26 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106477', 'tblTempUsageDetail_20' ) end [2024-12-26 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106477', 'tblTempVendorCDR_20' ) start [2024-12-26 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106477', 'tblTempVendorCDR_20' ) end [2024-12-26 11:13:19] Production.INFO: ProcessCDR(1,14106477,1,1,2) [2024-12-26 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106477', 'tblTempUsageDetail_20' ) start [2024-12-26 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106477', 'tblTempUsageDetail_20' ) end [2024-12-26 11:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:13:22] Production.INFO: ==14295== Releasing lock... [2024-12-26 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:13:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:14:05 [end_date_ymd] => 2024-12-26 11:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:14:20] Production.INFO: count ==1439 [2024-12-26 11:14:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:14:05 - End Time 2024-12-26 11:14:05 [2024-12-26 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106482', 'tblTempUsageDetail_20' ) start [2024-12-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106482', 'tblTempUsageDetail_20' ) end [2024-12-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106482', 'tblTempVendorCDR_20' ) start [2024-12-26 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106482', 'tblTempVendorCDR_20' ) end [2024-12-26 11:14:20] Production.INFO: ProcessCDR(1,14106482,1,1,2) [2024-12-26 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106482', 'tblTempUsageDetail_20' ) start [2024-12-26 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106482', 'tblTempUsageDetail_20' ) end [2024-12-26 11:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:14:25] Production.INFO: ==14371== Releasing lock... [2024-12-26 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:14:25] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:15:04 [end_date_ymd] => 2024-12-26 11:15:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:15:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:15:17] Production.INFO: count ==1453 [2024-12-26 11:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:15:04 - End Time 2024-12-26 11:15:04 [2024-12-26 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106487', 'tblTempUsageDetail_20' ) start [2024-12-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106487', 'tblTempUsageDetail_20' ) end [2024-12-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106487', 'tblTempVendorCDR_20' ) start [2024-12-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106487', 'tblTempVendorCDR_20' ) end [2024-12-26 11:15:18] Production.INFO: ProcessCDR(1,14106487,1,1,2) [2024-12-26 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106487', 'tblTempUsageDetail_20' ) start [2024-12-26 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106487', 'tblTempUsageDetail_20' ) end [2024-12-26 11:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:15:21] Production.INFO: ==14524== Releasing lock... [2024-12-26 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:15:21] Production.INFO: 39 MB #Memory Used# [2024-12-26 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:16:05 [end_date_ymd] => 2024-12-26 11:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:16:18] Production.INFO: count ==1454 [2024-12-26 11:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:16:05 - End Time 2024-12-26 11:16:05 [2024-12-26 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106492', 'tblTempUsageDetail_20' ) start [2024-12-26 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106492', 'tblTempUsageDetail_20' ) end [2024-12-26 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106492', 'tblTempVendorCDR_20' ) start [2024-12-26 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106492', 'tblTempVendorCDR_20' ) end [2024-12-26 11:16:18] Production.INFO: ProcessCDR(1,14106492,1,1,2) [2024-12-26 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106492', 'tblTempUsageDetail_20' ) start [2024-12-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106492', 'tblTempUsageDetail_20' ) end [2024-12-26 11:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:16:22] Production.INFO: ==14604== Releasing lock... [2024-12-26 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:16:22] Production.INFO: 39 MB #Memory Used# [2024-12-26 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:17:05 [end_date_ymd] => 2024-12-26 11:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:17:22] Production.INFO: count ==1455 [2024-12-26 11:17:22] Production.ERROR: pbx CDR StartTime 2024-12-26 08:17:05 - End Time 2024-12-26 11:17:05 [2024-12-26 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106497', 'tblTempUsageDetail_20' ) start [2024-12-26 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106497', 'tblTempUsageDetail_20' ) end [2024-12-26 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106497', 'tblTempVendorCDR_20' ) start [2024-12-26 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106497', 'tblTempVendorCDR_20' ) end [2024-12-26 11:17:22] Production.INFO: ProcessCDR(1,14106497,1,1,2) [2024-12-26 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106497', 'tblTempUsageDetail_20' ) start [2024-12-26 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106497', 'tblTempUsageDetail_20' ) end [2024-12-26 11:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:17:27] Production.INFO: ==14681== Releasing lock... [2024-12-26 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:17:27] Production.INFO: 39 MB #Memory Used# [2024-12-26 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:18:05 [end_date_ymd] => 2024-12-26 11:18:05 [RateCDR] => 1 ) [2024-12-26 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:18:05' and `end` < '2024-12-26 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:18:17] Production.INFO: count ==1457 [2024-12-26 11:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:18:05 - End Time 2024-12-26 11:18:05 [2024-12-26 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106502', 'tblTempUsageDetail_20' ) start [2024-12-26 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106502', 'tblTempUsageDetail_20' ) end [2024-12-26 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106502', 'tblTempVendorCDR_20' ) start [2024-12-26 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106502', 'tblTempVendorCDR_20' ) end [2024-12-26 11:18:18] Production.INFO: ProcessCDR(1,14106502,1,1,2) [2024-12-26 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106502', 'tblTempUsageDetail_20' ) start [2024-12-26 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106502', 'tblTempUsageDetail_20' ) end [2024-12-26 11:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:18:22] Production.INFO: ==14756== Releasing lock... [2024-12-26 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:18:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-26 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:19:05 [end_date_ymd] => 2024-12-26 11:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:19:18] Production.INFO: count ==1466 [2024-12-26 11:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:19:05 - End Time 2024-12-26 11:19:05 [2024-12-26 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106507', 'tblTempUsageDetail_20' ) start [2024-12-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106507', 'tblTempUsageDetail_20' ) end [2024-12-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106507', 'tblTempVendorCDR_20' ) start [2024-12-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106507', 'tblTempVendorCDR_20' ) end [2024-12-26 11:19:18] Production.INFO: ProcessCDR(1,14106507,1,1,2) [2024-12-26 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106507', 'tblTempUsageDetail_20' ) start [2024-12-26 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106507', 'tblTempUsageDetail_20' ) end [2024-12-26 11:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:19:23] Production.INFO: ==14835== Releasing lock... [2024-12-26 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:19:23] Production.INFO: 39 MB #Memory Used# [2024-12-26 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:20:05 [end_date_ymd] => 2024-12-26 11:20:05 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:20:05' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:20:18] Production.INFO: count ==1476 [2024-12-26 11:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:20:05 - End Time 2024-12-26 11:20:05 [2024-12-26 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106513', 'tblTempUsageDetail_20' ) start [2024-12-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106513', 'tblTempUsageDetail_20' ) end [2024-12-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106513', 'tblTempVendorCDR_20' ) start [2024-12-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106513', 'tblTempVendorCDR_20' ) end [2024-12-26 11:20:19] Production.INFO: ProcessCDR(1,14106513,1,1,2) [2024-12-26 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106513', 'tblTempUsageDetail_20' ) start [2024-12-26 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106513', 'tblTempUsageDetail_20' ) end [2024-12-26 11:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:20:22] Production.INFO: ==14911== Releasing lock... [2024-12-26 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:20:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-26 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:21:05 [end_date_ymd] => 2024-12-26 11:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:21:19] Production.INFO: count ==1512 [2024-12-26 11:21:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:21:05 - End Time 2024-12-26 11:21:05 [2024-12-26 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106518', 'tblTempUsageDetail_20' ) start [2024-12-26 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106518', 'tblTempUsageDetail_20' ) end [2024-12-26 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106518', 'tblTempVendorCDR_20' ) start [2024-12-26 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106518', 'tblTempVendorCDR_20' ) end [2024-12-26 11:21:19] Production.INFO: ProcessCDR(1,14106518,1,1,2) [2024-12-26 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106518', 'tblTempUsageDetail_20' ) start [2024-12-26 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106518', 'tblTempUsageDetail_20' ) end [2024-12-26 11:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:21:23] Production.INFO: ==14991== Releasing lock... [2024-12-26 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:21:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-26 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:22:05 [end_date_ymd] => 2024-12-26 11:22:05 [RateCDR] => 1 ) [2024-12-26 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:22:05' and `end` < '2024-12-26 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:22:18] Production.INFO: count ==1515 [2024-12-26 11:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:22:05 - End Time 2024-12-26 11:22:05 [2024-12-26 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106523', 'tblTempUsageDetail_20' ) start [2024-12-26 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106523', 'tblTempUsageDetail_20' ) end [2024-12-26 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106523', 'tblTempVendorCDR_20' ) start [2024-12-26 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106523', 'tblTempVendorCDR_20' ) end [2024-12-26 11:22:18] Production.INFO: ProcessCDR(1,14106523,1,1,2) [2024-12-26 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106523', 'tblTempUsageDetail_20' ) start [2024-12-26 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106523', 'tblTempUsageDetail_20' ) end [2024-12-26 11:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:22:23] Production.INFO: ==15067== Releasing lock... [2024-12-26 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:22:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-26 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:23:05 [end_date_ymd] => 2024-12-26 11:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:23:19] Production.INFO: count ==1516 [2024-12-26 11:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:23:05 - End Time 2024-12-26 11:23:05 [2024-12-26 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106528', 'tblTempUsageDetail_20' ) start [2024-12-26 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106528', 'tblTempUsageDetail_20' ) end [2024-12-26 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106528', 'tblTempVendorCDR_20' ) start [2024-12-26 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106528', 'tblTempVendorCDR_20' ) end [2024-12-26 11:23:19] Production.INFO: ProcessCDR(1,14106528,1,1,2) [2024-12-26 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106528', 'tblTempUsageDetail_20' ) start [2024-12-26 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106528', 'tblTempUsageDetail_20' ) end [2024-12-26 11:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:23:22] Production.INFO: ==15145== Releasing lock... [2024-12-26 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:23:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-26 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:24:06 [end_date_ymd] => 2024-12-26 11:24:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:24:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:24:18] Production.INFO: count ==1518 [2024-12-26 11:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:24:06 - End Time 2024-12-26 11:24:06 [2024-12-26 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106533', 'tblTempUsageDetail_20' ) start [2024-12-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106533', 'tblTempUsageDetail_20' ) end [2024-12-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106533', 'tblTempVendorCDR_20' ) start [2024-12-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106533', 'tblTempVendorCDR_20' ) end [2024-12-26 11:24:19] Production.INFO: ProcessCDR(1,14106533,1,1,2) [2024-12-26 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106533', 'tblTempUsageDetail_20' ) start [2024-12-26 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106533', 'tblTempUsageDetail_20' ) end [2024-12-26 11:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:24:24] Production.INFO: ==15258== Releasing lock... [2024-12-26 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:24:24] Production.INFO: 39.5 MB #Memory Used# [2024-12-26 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:25:04 [end_date_ymd] => 2024-12-26 11:25:04 [RateCDR] => 1 ) [2024-12-26 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:25:04' and `end` < '2024-12-26 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:25:17] Production.INFO: count ==1522 [2024-12-26 11:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:25:04 - End Time 2024-12-26 11:25:04 [2024-12-26 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106538', 'tblTempUsageDetail_20' ) start [2024-12-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106538', 'tblTempUsageDetail_20' ) end [2024-12-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106538', 'tblTempVendorCDR_20' ) start [2024-12-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106538', 'tblTempVendorCDR_20' ) end [2024-12-26 11:25:18] Production.INFO: ProcessCDR(1,14106538,1,1,2) [2024-12-26 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106538', 'tblTempUsageDetail_20' ) start [2024-12-26 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106538', 'tblTempUsageDetail_20' ) end [2024-12-26 11:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:25:21] Production.INFO: ==15334== Releasing lock... [2024-12-26 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:25:21] Production.INFO: 40 MB #Memory Used# [2024-12-26 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:26:05 [end_date_ymd] => 2024-12-26 11:26:05 [RateCDR] => 1 ) [2024-12-26 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:26:05' and `end` < '2024-12-26 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:26:18] Production.INFO: count ==1540 [2024-12-26 11:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:26:05 - End Time 2024-12-26 11:26:05 [2024-12-26 11:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106543', 'tblTempUsageDetail_20' ) start [2024-12-26 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106543', 'tblTempUsageDetail_20' ) end [2024-12-26 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106543', 'tblTempVendorCDR_20' ) start [2024-12-26 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106543', 'tblTempVendorCDR_20' ) end [2024-12-26 11:26:19] Production.INFO: ProcessCDR(1,14106543,1,1,2) [2024-12-26 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106543', 'tblTempUsageDetail_20' ) start [2024-12-26 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106543', 'tblTempUsageDetail_20' ) end [2024-12-26 11:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:26:23] Production.INFO: ==15411== Releasing lock... [2024-12-26 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:26:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-26 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:27:05 [end_date_ymd] => 2024-12-26 11:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:27:19] Production.INFO: count ==1542 [2024-12-26 11:27:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:27:05 - End Time 2024-12-26 11:27:05 [2024-12-26 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106548', 'tblTempUsageDetail_20' ) start [2024-12-26 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106548', 'tblTempUsageDetail_20' ) end [2024-12-26 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106548', 'tblTempVendorCDR_20' ) start [2024-12-26 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106548', 'tblTempVendorCDR_20' ) end [2024-12-26 11:27:20] Production.INFO: ProcessCDR(1,14106548,1,1,2) [2024-12-26 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106548', 'tblTempUsageDetail_20' ) start [2024-12-26 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106548', 'tblTempUsageDetail_20' ) end [2024-12-26 11:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:27:24] Production.INFO: ==15488== Releasing lock... [2024-12-26 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:27:24] Production.INFO: 39.75 MB #Memory Used# [2024-12-26 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:28:05 [end_date_ymd] => 2024-12-26 11:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:28:18] Production.INFO: count ==1550 [2024-12-26 11:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:28:05 - End Time 2024-12-26 11:28:05 [2024-12-26 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106553', 'tblTempUsageDetail_20' ) start [2024-12-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106553', 'tblTempUsageDetail_20' ) end [2024-12-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106553', 'tblTempVendorCDR_20' ) start [2024-12-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106553', 'tblTempVendorCDR_20' ) end [2024-12-26 11:28:18] Production.INFO: ProcessCDR(1,14106553,1,1,2) [2024-12-26 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106553', 'tblTempUsageDetail_20' ) start [2024-12-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106553', 'tblTempUsageDetail_20' ) end [2024-12-26 11:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:28:23] Production.INFO: ==15564== Releasing lock... [2024-12-26 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:28:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-26 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:29:04 [end_date_ymd] => 2024-12-26 11:29:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:29:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:29:18] Production.INFO: count ==1552 [2024-12-26 11:29:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:29:04 - End Time 2024-12-26 11:29:04 [2024-12-26 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106558', 'tblTempUsageDetail_20' ) start [2024-12-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106558', 'tblTempUsageDetail_20' ) end [2024-12-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106558', 'tblTempVendorCDR_20' ) start [2024-12-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106558', 'tblTempVendorCDR_20' ) end [2024-12-26 11:29:19] Production.INFO: ProcessCDR(1,14106558,1,1,2) [2024-12-26 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106558', 'tblTempUsageDetail_20' ) start [2024-12-26 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106558', 'tblTempUsageDetail_20' ) end [2024-12-26 11:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:29:23] Production.INFO: ==15649== Releasing lock... [2024-12-26 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:29:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-26 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:30:05 [end_date_ymd] => 2024-12-26 11:30:05 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:30:05' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:30:18] Production.INFO: count ==1573 [2024-12-26 11:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:30:05 - End Time 2024-12-26 11:30:05 [2024-12-26 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106564', 'tblTempUsageDetail_20' ) start [2024-12-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106564', 'tblTempUsageDetail_20' ) end [2024-12-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106564', 'tblTempVendorCDR_20' ) start [2024-12-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106564', 'tblTempVendorCDR_20' ) end [2024-12-26 11:30:19] Production.INFO: ProcessCDR(1,14106564,1,1,2) [2024-12-26 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106564', 'tblTempUsageDetail_20' ) start [2024-12-26 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106564', 'tblTempUsageDetail_20' ) end [2024-12-26 11:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:30:23] Production.INFO: ==15743== Releasing lock... [2024-12-26 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:30:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-26 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:31:05 [end_date_ymd] => 2024-12-26 11:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:31:19] Production.INFO: count ==1606 [2024-12-26 11:31:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:31:05 - End Time 2024-12-26 11:31:05 [2024-12-26 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106569', 'tblTempUsageDetail_20' ) start [2024-12-26 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106569', 'tblTempUsageDetail_20' ) end [2024-12-26 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106569', 'tblTempVendorCDR_20' ) start [2024-12-26 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106569', 'tblTempVendorCDR_20' ) end [2024-12-26 11:31:20] Production.INFO: ProcessCDR(1,14106569,1,1,2) [2024-12-26 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106569', 'tblTempUsageDetail_20' ) start [2024-12-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106569', 'tblTempUsageDetail_20' ) end [2024-12-26 11:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:31:24] Production.INFO: ==15844== Releasing lock... [2024-12-26 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:31:24] Production.INFO: 40 MB #Memory Used# [2024-12-26 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:32:05 [end_date_ymd] => 2024-12-26 11:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:32:20] Production.INFO: count ==1611 [2024-12-26 11:32:21] Production.ERROR: pbx CDR StartTime 2024-12-26 08:32:05 - End Time 2024-12-26 11:32:05 [2024-12-26 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106574', 'tblTempUsageDetail_20' ) start [2024-12-26 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106574', 'tblTempUsageDetail_20' ) end [2024-12-26 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106574', 'tblTempVendorCDR_20' ) start [2024-12-26 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106574', 'tblTempVendorCDR_20' ) end [2024-12-26 11:32:21] Production.INFO: ProcessCDR(1,14106574,1,1,2) [2024-12-26 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106574', 'tblTempUsageDetail_20' ) start [2024-12-26 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106574', 'tblTempUsageDetail_20' ) end [2024-12-26 11:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:32:26] Production.INFO: ==15938== Releasing lock... [2024-12-26 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:32:26] Production.INFO: 40.5 MB #Memory Used# [2024-12-26 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:33:06 [end_date_ymd] => 2024-12-26 11:33:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:33:06' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:33:18] Production.INFO: count ==1613 [2024-12-26 11:33:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:33:06 - End Time 2024-12-26 11:33:06 [2024-12-26 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106579', 'tblTempUsageDetail_20' ) start [2024-12-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106579', 'tblTempUsageDetail_20' ) end [2024-12-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106579', 'tblTempVendorCDR_20' ) start [2024-12-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106579', 'tblTempVendorCDR_20' ) end [2024-12-26 11:33:19] Production.INFO: ProcessCDR(1,14106579,1,1,2) [2024-12-26 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106579', 'tblTempUsageDetail_20' ) start [2024-12-26 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106579', 'tblTempUsageDetail_20' ) end [2024-12-26 11:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:33:22] Production.INFO: ==16033== Releasing lock... [2024-12-26 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:33:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:34:04 [end_date_ymd] => 2024-12-26 11:34:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:34:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:34:17] Production.INFO: count ==1621 [2024-12-26 11:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:34:04 - End Time 2024-12-26 11:34:04 [2024-12-26 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106582', 'tblTempUsageDetail_20' ) start [2024-12-26 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106582', 'tblTempUsageDetail_20' ) end [2024-12-26 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106582', 'tblTempVendorCDR_20' ) start [2024-12-26 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106582', 'tblTempVendorCDR_20' ) end [2024-12-26 11:34:18] Production.INFO: ProcessCDR(1,14106582,1,1,2) [2024-12-26 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106582', 'tblTempUsageDetail_20' ) start [2024-12-26 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106582', 'tblTempUsageDetail_20' ) end [2024-12-26 11:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:34:22] Production.INFO: ==16115== Releasing lock... [2024-12-26 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:34:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:35:05 [end_date_ymd] => 2024-12-26 11:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:35:18] Production.INFO: count ==1625 [2024-12-26 11:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:35:05 - End Time 2024-12-26 11:35:05 [2024-12-26 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106589', 'tblTempUsageDetail_20' ) start [2024-12-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106589', 'tblTempUsageDetail_20' ) end [2024-12-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106589', 'tblTempVendorCDR_20' ) start [2024-12-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106589', 'tblTempVendorCDR_20' ) end [2024-12-26 11:35:18] Production.INFO: ProcessCDR(1,14106589,1,1,2) [2024-12-26 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106589', 'tblTempUsageDetail_20' ) start [2024-12-26 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106589', 'tblTempUsageDetail_20' ) end [2024-12-26 11:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:35:23] Production.INFO: ==16188== Releasing lock... [2024-12-26 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:35:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:36:05 [end_date_ymd] => 2024-12-26 11:36:05 [RateCDR] => 1 ) [2024-12-26 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:36:05' and `end` < '2024-12-26 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:36:18] Production.INFO: count ==1644 [2024-12-26 11:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:36:05 - End Time 2024-12-26 11:36:05 [2024-12-26 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106594', 'tblTempUsageDetail_20' ) start [2024-12-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106594', 'tblTempUsageDetail_20' ) end [2024-12-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106594', 'tblTempVendorCDR_20' ) start [2024-12-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106594', 'tblTempVendorCDR_20' ) end [2024-12-26 11:36:18] Production.INFO: ProcessCDR(1,14106594,1,1,2) [2024-12-26 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106594', 'tblTempUsageDetail_20' ) start [2024-12-26 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106594', 'tblTempUsageDetail_20' ) end [2024-12-26 11:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:36:21] Production.INFO: ==16263== Releasing lock... [2024-12-26 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:36:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-26 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:37:04 [end_date_ymd] => 2024-12-26 11:37:04 [RateCDR] => 1 ) [2024-12-26 11:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:37:04' and `end` < '2024-12-26 11:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:37:17] Production.INFO: count ==1665 [2024-12-26 11:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:37:04 - End Time 2024-12-26 11:37:04 [2024-12-26 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106599', 'tblTempUsageDetail_20' ) start [2024-12-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106599', 'tblTempUsageDetail_20' ) end [2024-12-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106599', 'tblTempVendorCDR_20' ) start [2024-12-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106599', 'tblTempVendorCDR_20' ) end [2024-12-26 11:37:18] Production.INFO: ProcessCDR(1,14106599,1,1,2) [2024-12-26 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106599', 'tblTempUsageDetail_20' ) start [2024-12-26 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106599', 'tblTempUsageDetail_20' ) end [2024-12-26 11:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:37:22] Production.INFO: ==16339== Releasing lock... [2024-12-26 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:37:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-26 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:38:04 [end_date_ymd] => 2024-12-26 11:38:04 [RateCDR] => 1 ) [2024-12-26 11:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:38:04' and `end` < '2024-12-26 11:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:38:19] Production.INFO: count ==1675 [2024-12-26 11:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:38:04 - End Time 2024-12-26 11:38:04 [2024-12-26 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106604', 'tblTempUsageDetail_20' ) start [2024-12-26 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106604', 'tblTempUsageDetail_20' ) end [2024-12-26 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106604', 'tblTempVendorCDR_20' ) start [2024-12-26 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106604', 'tblTempVendorCDR_20' ) end [2024-12-26 11:38:20] Production.INFO: ProcessCDR(1,14106604,1,1,2) [2024-12-26 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106604', 'tblTempUsageDetail_20' ) start [2024-12-26 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106604', 'tblTempUsageDetail_20' ) end [2024-12-26 11:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:38:23] Production.INFO: ==16421== Releasing lock... [2024-12-26 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:38:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-26 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:39:05 [end_date_ymd] => 2024-12-26 11:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:39:20] Production.INFO: count ==1684 [2024-12-26 11:39:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:39:05 - End Time 2024-12-26 11:39:05 [2024-12-26 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106609', 'tblTempUsageDetail_20' ) start [2024-12-26 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106609', 'tblTempUsageDetail_20' ) end [2024-12-26 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106609', 'tblTempVendorCDR_20' ) start [2024-12-26 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106609', 'tblTempVendorCDR_20' ) end [2024-12-26 11:39:21] Production.INFO: ProcessCDR(1,14106609,1,1,2) [2024-12-26 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106609', 'tblTempUsageDetail_20' ) start [2024-12-26 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106609', 'tblTempUsageDetail_20' ) end [2024-12-26 11:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:39:25] Production.INFO: ==16496== Releasing lock... [2024-12-26 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:39:25] Production.INFO: 41 MB #Memory Used# [2024-12-26 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:40:05 [end_date_ymd] => 2024-12-26 11:40:05 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:40:05' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:40:18] Production.INFO: count ==1701 [2024-12-26 11:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:40:05 - End Time 2024-12-26 11:40:05 [2024-12-26 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106615', 'tblTempUsageDetail_20' ) start [2024-12-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106615', 'tblTempUsageDetail_20' ) end [2024-12-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106615', 'tblTempVendorCDR_20' ) start [2024-12-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106615', 'tblTempVendorCDR_20' ) end [2024-12-26 11:40:19] Production.INFO: ProcessCDR(1,14106615,1,1,2) [2024-12-26 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106615', 'tblTempUsageDetail_20' ) start [2024-12-26 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106615', 'tblTempUsageDetail_20' ) end [2024-12-26 11:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:40:22] Production.INFO: ==16620== Releasing lock... [2024-12-26 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:40:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-26 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:41:05 [end_date_ymd] => 2024-12-26 11:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:41:18] Production.INFO: count ==1746 [2024-12-26 11:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:41:05 - End Time 2024-12-26 11:41:05 [2024-12-26 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106620', 'tblTempUsageDetail_20' ) start [2024-12-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106620', 'tblTempUsageDetail_20' ) end [2024-12-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106620', 'tblTempVendorCDR_20' ) start [2024-12-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106620', 'tblTempVendorCDR_20' ) end [2024-12-26 11:41:18] Production.INFO: ProcessCDR(1,14106620,1,1,2) [2024-12-26 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106620', 'tblTempUsageDetail_20' ) start [2024-12-26 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106620', 'tblTempUsageDetail_20' ) end [2024-12-26 11:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:41:21] Production.INFO: ==16697== Releasing lock... [2024-12-26 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:41:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:42:05 [end_date_ymd] => 2024-12-26 11:42:05 [RateCDR] => 1 ) [2024-12-26 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:42:05' and `end` < '2024-12-26 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:42:18] Production.INFO: count ==1757 [2024-12-26 11:42:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:42:05 - End Time 2024-12-26 11:42:05 [2024-12-26 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106625', 'tblTempUsageDetail_20' ) start [2024-12-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106625', 'tblTempUsageDetail_20' ) end [2024-12-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106625', 'tblTempVendorCDR_20' ) start [2024-12-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106625', 'tblTempVendorCDR_20' ) end [2024-12-26 11:42:19] Production.INFO: ProcessCDR(1,14106625,1,1,2) [2024-12-26 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106625', 'tblTempUsageDetail_20' ) start [2024-12-26 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106625', 'tblTempUsageDetail_20' ) end [2024-12-26 11:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:42:22] Production.INFO: ==16772== Releasing lock... [2024-12-26 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:42:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:43:04 [end_date_ymd] => 2024-12-26 11:43:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:43:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:43:17] Production.INFO: count ==1758 [2024-12-26 11:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:43:04 - End Time 2024-12-26 11:43:04 [2024-12-26 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106630', 'tblTempUsageDetail_20' ) start [2024-12-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106630', 'tblTempUsageDetail_20' ) end [2024-12-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106630', 'tblTempVendorCDR_20' ) start [2024-12-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106630', 'tblTempVendorCDR_20' ) end [2024-12-26 11:43:18] Production.INFO: ProcessCDR(1,14106630,1,1,2) [2024-12-26 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106630', 'tblTempUsageDetail_20' ) start [2024-12-26 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106630', 'tblTempUsageDetail_20' ) end [2024-12-26 11:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:43:22] Production.INFO: ==16849== Releasing lock... [2024-12-26 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:43:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:44:05 [end_date_ymd] => 2024-12-26 11:44:05 [RateCDR] => 1 ) [2024-12-26 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:44:05' and `end` < '2024-12-26 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:44:19] Production.INFO: count ==1745 [2024-12-26 11:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:44:05 - End Time 2024-12-26 11:44:05 [2024-12-26 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106635', 'tblTempUsageDetail_20' ) start [2024-12-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106635', 'tblTempUsageDetail_20' ) end [2024-12-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106635', 'tblTempVendorCDR_20' ) start [2024-12-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106635', 'tblTempVendorCDR_20' ) end [2024-12-26 11:44:19] Production.INFO: ProcessCDR(1,14106635,1,1,2) [2024-12-26 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106635', 'tblTempUsageDetail_20' ) start [2024-12-26 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106635', 'tblTempUsageDetail_20' ) end [2024-12-26 11:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:44:24] Production.INFO: ==16929== Releasing lock... [2024-12-26 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:44:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:45:04 [end_date_ymd] => 2024-12-26 11:45:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:45:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:45:17] Production.INFO: count ==1756 [2024-12-26 11:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:45:04 - End Time 2024-12-26 11:45:04 [2024-12-26 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106640', 'tblTempUsageDetail_20' ) start [2024-12-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106640', 'tblTempUsageDetail_20' ) end [2024-12-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106640', 'tblTempVendorCDR_20' ) start [2024-12-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106640', 'tblTempVendorCDR_20' ) end [2024-12-26 11:45:18] Production.INFO: ProcessCDR(1,14106640,1,1,2) [2024-12-26 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106640', 'tblTempUsageDetail_20' ) start [2024-12-26 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106640', 'tblTempUsageDetail_20' ) end [2024-12-26 11:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:45:21] Production.INFO: ==17007== Releasing lock... [2024-12-26 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:45:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:46:05 [end_date_ymd] => 2024-12-26 11:46:05 [RateCDR] => 1 ) [2024-12-26 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:46:05' and `end` < '2024-12-26 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:46:18] Production.INFO: count ==1752 [2024-12-26 11:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:46:05 - End Time 2024-12-26 11:46:05 [2024-12-26 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106645', 'tblTempUsageDetail_20' ) start [2024-12-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106645', 'tblTempUsageDetail_20' ) end [2024-12-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106645', 'tblTempVendorCDR_20' ) start [2024-12-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106645', 'tblTempVendorCDR_20' ) end [2024-12-26 11:46:19] Production.INFO: ProcessCDR(1,14106645,1,1,2) [2024-12-26 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106645', 'tblTempUsageDetail_20' ) start [2024-12-26 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106645', 'tblTempUsageDetail_20' ) end [2024-12-26 11:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:46:23] Production.INFO: ==17088== Releasing lock... [2024-12-26 11:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:46:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:47:05 [end_date_ymd] => 2024-12-26 11:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:47:20] Production.INFO: count ==1773 [2024-12-26 11:47:21] Production.ERROR: pbx CDR StartTime 2024-12-26 08:47:05 - End Time 2024-12-26 11:47:05 [2024-12-26 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106650', 'tblTempUsageDetail_20' ) start [2024-12-26 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106650', 'tblTempUsageDetail_20' ) end [2024-12-26 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106650', 'tblTempVendorCDR_20' ) start [2024-12-26 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106650', 'tblTempVendorCDR_20' ) end [2024-12-26 11:47:21] Production.INFO: ProcessCDR(1,14106650,1,1,2) [2024-12-26 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106650', 'tblTempUsageDetail_20' ) start [2024-12-26 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106650', 'tblTempUsageDetail_20' ) end [2024-12-26 11:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:47:25] Production.INFO: ==17167== Releasing lock... [2024-12-26 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:47:25] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:48:05 [end_date_ymd] => 2024-12-26 11:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:48:18] Production.INFO: count ==1773 [2024-12-26 11:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:48:05 - End Time 2024-12-26 11:48:05 [2024-12-26 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106655', 'tblTempUsageDetail_20' ) start [2024-12-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106655', 'tblTempUsageDetail_20' ) end [2024-12-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106655', 'tblTempVendorCDR_20' ) start [2024-12-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106655', 'tblTempVendorCDR_20' ) end [2024-12-26 11:48:19] Production.INFO: ProcessCDR(1,14106655,1,1,2) [2024-12-26 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106655', 'tblTempUsageDetail_20' ) start [2024-12-26 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106655', 'tblTempUsageDetail_20' ) end [2024-12-26 11:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:48:22] Production.INFO: ==17242== Releasing lock... [2024-12-26 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:48:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:49:04 [end_date_ymd] => 2024-12-26 11:49:04 [RateCDR] => 1 ) [2024-12-26 11:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:49:04' and `end` < '2024-12-26 11:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:49:18] Production.INFO: count ==1774 [2024-12-26 11:49:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:49:04 - End Time 2024-12-26 11:49:04 [2024-12-26 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106660', 'tblTempUsageDetail_20' ) start [2024-12-26 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106660', 'tblTempUsageDetail_20' ) end [2024-12-26 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106660', 'tblTempVendorCDR_20' ) start [2024-12-26 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106660', 'tblTempVendorCDR_20' ) end [2024-12-26 11:49:19] Production.INFO: ProcessCDR(1,14106660,1,1,2) [2024-12-26 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106660', 'tblTempUsageDetail_20' ) start [2024-12-26 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106660', 'tblTempUsageDetail_20' ) end [2024-12-26 11:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:49:23] Production.INFO: ==17320== Releasing lock... [2024-12-26 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:49:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:50:05 [end_date_ymd] => 2024-12-26 11:50:05 [RateCDR] => 1 ) [2024-12-26 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 08:50:05' and `end` < '2024-12-26 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 11:50:19] Production.INFO: count ==1778 [2024-12-26 11:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:50:05 - End Time 2024-12-26 11:50:05 [2024-12-26 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106666', 'tblTempUsageDetail_20' ) start [2024-12-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106666', 'tblTempUsageDetail_20' ) end [2024-12-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106666', 'tblTempVendorCDR_20' ) start [2024-12-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106666', 'tblTempVendorCDR_20' ) end [2024-12-26 11:50:19] Production.INFO: ProcessCDR(1,14106666,1,1,2) [2024-12-26 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106666', 'tblTempUsageDetail_20' ) start [2024-12-26 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106666', 'tblTempUsageDetail_20' ) end [2024-12-26 11:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:50:22] Production.INFO: ==17400== Releasing lock... [2024-12-26 11:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:50:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:51:05 [end_date_ymd] => 2024-12-26 11:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:51:18] Production.INFO: count ==1787 [2024-12-26 11:51:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:51:05 - End Time 2024-12-26 11:51:05 [2024-12-26 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106671', 'tblTempUsageDetail_20' ) start [2024-12-26 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106671', 'tblTempUsageDetail_20' ) end [2024-12-26 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106671', 'tblTempVendorCDR_20' ) start [2024-12-26 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106671', 'tblTempVendorCDR_20' ) end [2024-12-26 11:51:19] Production.INFO: ProcessCDR(1,14106671,1,1,2) [2024-12-26 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106671', 'tblTempUsageDetail_20' ) start [2024-12-26 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106671', 'tblTempUsageDetail_20' ) end [2024-12-26 11:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:51:22] Production.INFO: ==17483== Releasing lock... [2024-12-26 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:51:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:52:04 [end_date_ymd] => 2024-12-26 11:52:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:52:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:52:17] Production.INFO: count ==1802 [2024-12-26 11:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:52:04 - End Time 2024-12-26 11:52:04 [2024-12-26 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106676', 'tblTempUsageDetail_20' ) start [2024-12-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106676', 'tblTempUsageDetail_20' ) end [2024-12-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106676', 'tblTempVendorCDR_20' ) start [2024-12-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106676', 'tblTempVendorCDR_20' ) end [2024-12-26 11:52:18] Production.INFO: ProcessCDR(1,14106676,1,1,2) [2024-12-26 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106676', 'tblTempUsageDetail_20' ) start [2024-12-26 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106676', 'tblTempUsageDetail_20' ) end [2024-12-26 11:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:52:21] Production.INFO: ==17558== Releasing lock... [2024-12-26 11:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:52:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:53:04 [end_date_ymd] => 2024-12-26 11:53:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:53:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:53:19] Production.INFO: count ==1797 [2024-12-26 11:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:53:04 - End Time 2024-12-26 11:53:04 [2024-12-26 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106681', 'tblTempUsageDetail_20' ) start [2024-12-26 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106681', 'tblTempUsageDetail_20' ) end [2024-12-26 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106681', 'tblTempVendorCDR_20' ) start [2024-12-26 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106681', 'tblTempVendorCDR_20' ) end [2024-12-26 11:53:19] Production.INFO: ProcessCDR(1,14106681,1,1,2) [2024-12-26 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106681', 'tblTempUsageDetail_20' ) start [2024-12-26 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106681', 'tblTempUsageDetail_20' ) end [2024-12-26 11:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:53:24] Production.INFO: ==17631== Releasing lock... [2024-12-26 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:53:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:54:04 [end_date_ymd] => 2024-12-26 11:54:04 [RateCDR] => 1 ) [2024-12-26 11: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` >= '2024-12-26 08:54:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:54:17] Production.INFO: count ==1796 [2024-12-26 11:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:54:04 - End Time 2024-12-26 11:54:04 [2024-12-26 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106686', 'tblTempUsageDetail_20' ) start [2024-12-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106686', 'tblTempUsageDetail_20' ) end [2024-12-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106686', 'tblTempVendorCDR_20' ) start [2024-12-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106686', 'tblTempVendorCDR_20' ) end [2024-12-26 11:54:18] Production.INFO: ProcessCDR(1,14106686,1,1,2) [2024-12-26 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106686', 'tblTempUsageDetail_20' ) start [2024-12-26 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106686', 'tblTempUsageDetail_20' ) end [2024-12-26 11:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:54:21] Production.INFO: ==17717== Releasing lock... [2024-12-26 11:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:54:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:55:05 [end_date_ymd] => 2024-12-26 11:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:55:18] Production.INFO: count ==1796 [2024-12-26 11:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:55:05 - End Time 2024-12-26 11:55:05 [2024-12-26 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106691', 'tblTempUsageDetail_20' ) start [2024-12-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106691', 'tblTempUsageDetail_20' ) end [2024-12-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106691', 'tblTempVendorCDR_20' ) start [2024-12-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106691', 'tblTempVendorCDR_20' ) end [2024-12-26 11:55:19] Production.INFO: ProcessCDR(1,14106691,1,1,2) [2024-12-26 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106691', 'tblTempUsageDetail_20' ) start [2024-12-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106691', 'tblTempUsageDetail_20' ) end [2024-12-26 11:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:55:22] Production.INFO: ==17831== Releasing lock... [2024-12-26 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:55:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:56:04 [end_date_ymd] => 2024-12-26 11:56:04 [RateCDR] => 1 ) [2024-12-26 11:56: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` >= '2024-12-26 08:56:04' and `end` < '2024-12-26 11:56: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 ,'') [2024-12-26 11:56:18] Production.INFO: count ==1796 [2024-12-26 11:56:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:56:04 - End Time 2024-12-26 11:56:04 [2024-12-26 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106696', 'tblTempUsageDetail_20' ) start [2024-12-26 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106696', 'tblTempUsageDetail_20' ) end [2024-12-26 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106696', 'tblTempVendorCDR_20' ) start [2024-12-26 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106696', 'tblTempVendorCDR_20' ) end [2024-12-26 11:56:19] Production.INFO: ProcessCDR(1,14106696,1,1,2) [2024-12-26 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106696', 'tblTempUsageDetail_20' ) start [2024-12-26 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106696', 'tblTempUsageDetail_20' ) end [2024-12-26 11:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:56:22] Production.INFO: ==17909== Releasing lock... [2024-12-26 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:56:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:57:05 [end_date_ymd] => 2024-12-26 11:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:57:18] Production.INFO: count ==1794 [2024-12-26 11:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 08:57:05 - End Time 2024-12-26 11:57:05 [2024-12-26 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106701', 'tblTempUsageDetail_20' ) start [2024-12-26 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106701', 'tblTempUsageDetail_20' ) end [2024-12-26 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106701', 'tblTempVendorCDR_20' ) start [2024-12-26 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106701', 'tblTempVendorCDR_20' ) end [2024-12-26 11:57:18] Production.INFO: ProcessCDR(1,14106701,1,1,2) [2024-12-26 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106701', 'tblTempUsageDetail_20' ) start [2024-12-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106701', 'tblTempUsageDetail_20' ) end [2024-12-26 11:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:57:23] Production.INFO: ==17989== Releasing lock... [2024-12-26 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:57:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:58:05 [end_date_ymd] => 2024-12-26 11:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 11:58:18] Production.INFO: count ==1780 [2024-12-26 11:58:19] Production.ERROR: pbx CDR StartTime 2024-12-26 08:58:05 - End Time 2024-12-26 11:58:05 [2024-12-26 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106706', 'tblTempUsageDetail_20' ) start [2024-12-26 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106706', 'tblTempUsageDetail_20' ) end [2024-12-26 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106706', 'tblTempVendorCDR_20' ) start [2024-12-26 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106706', 'tblTempVendorCDR_20' ) end [2024-12-26 11:58:19] Production.INFO: ProcessCDR(1,14106706,1,1,2) [2024-12-26 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106706', 'tblTempUsageDetail_20' ) start [2024-12-26 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106706', 'tblTempUsageDetail_20' ) end [2024-12-26 11:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:58:22] Production.INFO: ==18072== Releasing lock... [2024-12-26 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:58:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 08:59:04 [end_date_ymd] => 2024-12-26 11:59:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 08:59:04' and `end` < '2024-12-26 11: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 ,'') [2024-12-26 11:59:19] Production.INFO: count ==1791 [2024-12-26 11:59:20] Production.ERROR: pbx CDR StartTime 2024-12-26 08:59:04 - End Time 2024-12-26 11:59:04 [2024-12-26 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106711', 'tblTempUsageDetail_20' ) start [2024-12-26 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106711', 'tblTempUsageDetail_20' ) end [2024-12-26 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106711', 'tblTempVendorCDR_20' ) start [2024-12-26 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106711', 'tblTempVendorCDR_20' ) end [2024-12-26 11:59:20] Production.INFO: ProcessCDR(1,14106711,1,1,2) [2024-12-26 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106711', 'tblTempUsageDetail_20' ) start [2024-12-26 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106711', 'tblTempUsageDetail_20' ) end [2024-12-26 11:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 11:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 11:59:23] Production.INFO: ==18151== Releasing lock... [2024-12-26 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 11:59:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:00:05 [end_date_ymd] => 2024-12-26 12:00:05 [RateCDR] => 1 ) [2024-12-26 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:00:05' and `end` < '2024-12-26 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:00:18] Production.INFO: count ==1782 [2024-12-26 12:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:00:05 - End Time 2024-12-26 12:00:05 [2024-12-26 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106716', 'tblTempUsageDetail_20' ) start [2024-12-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106716', 'tblTempUsageDetail_20' ) end [2024-12-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106716', 'tblTempVendorCDR_20' ) start [2024-12-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106716', 'tblTempVendorCDR_20' ) end [2024-12-26 12:00:19] Production.INFO: ProcessCDR(1,14106716,1,1,2) [2024-12-26 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106716', 'tblTempUsageDetail_20' ) start [2024-12-26 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106716', 'tblTempUsageDetail_20' ) end [2024-12-26 12:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:00:22] Production.INFO: ==18230== Releasing lock... [2024-12-26 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:00:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:01:04 [end_date_ymd] => 2024-12-26 12:01:04 [RateCDR] => 1 ) [2024-12-26 12:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:01:04' and `end` < '2024-12-26 12:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:01:17] Production.INFO: count ==1795 [2024-12-26 12:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 09:01:04 - End Time 2024-12-26 12:01:04 [2024-12-26 12:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106722', 'tblTempUsageDetail_20' ) start [2024-12-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106722', 'tblTempUsageDetail_20' ) end [2024-12-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106722', 'tblTempVendorCDR_20' ) start [2024-12-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106722', 'tblTempVendorCDR_20' ) end [2024-12-26 12:01:18] Production.INFO: ProcessCDR(1,14106722,1,1,2) [2024-12-26 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106722', 'tblTempUsageDetail_20' ) start [2024-12-26 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106722', 'tblTempUsageDetail_20' ) end [2024-12-26 12:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:01:21] Production.INFO: ==18329== Releasing lock... [2024-12-26 12:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:01:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:02:05 [end_date_ymd] => 2024-12-26 12:02:05 [RateCDR] => 1 ) [2024-12-26 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:02:05' and `end` < '2024-12-26 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:02:20] Production.INFO: count ==1796 [2024-12-26 12:02:21] Production.ERROR: pbx CDR StartTime 2024-12-26 09:02:05 - End Time 2024-12-26 12:02:05 [2024-12-26 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106727', 'tblTempUsageDetail_20' ) start [2024-12-26 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106727', 'tblTempUsageDetail_20' ) end [2024-12-26 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106727', 'tblTempVendorCDR_20' ) start [2024-12-26 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106727', 'tblTempVendorCDR_20' ) end [2024-12-26 12:02:21] Production.INFO: ProcessCDR(1,14106727,1,1,2) [2024-12-26 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106727', 'tblTempUsageDetail_20' ) start [2024-12-26 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106727', 'tblTempUsageDetail_20' ) end [2024-12-26 12:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:02:25] Production.INFO: ==18408== Releasing lock... [2024-12-26 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:02:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:03:04 [end_date_ymd] => 2024-12-26 12:03:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:03:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:03:19] Production.INFO: count ==1792 [2024-12-26 12:03:20] Production.ERROR: pbx CDR StartTime 2024-12-26 09:03:04 - End Time 2024-12-26 12:03:04 [2024-12-26 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106732', 'tblTempUsageDetail_20' ) start [2024-12-26 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106732', 'tblTempUsageDetail_20' ) end [2024-12-26 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106732', 'tblTempVendorCDR_20' ) start [2024-12-26 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106732', 'tblTempVendorCDR_20' ) end [2024-12-26 12:03:20] Production.INFO: ProcessCDR(1,14106732,1,1,2) [2024-12-26 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106732', 'tblTempUsageDetail_20' ) start [2024-12-26 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106732', 'tblTempUsageDetail_20' ) end [2024-12-26 12:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:03:23] Production.INFO: ==18489== Releasing lock... [2024-12-26 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:03:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:04:05 [end_date_ymd] => 2024-12-26 12:04:05 [RateCDR] => 1 ) [2024-12-26 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:04:05' and `end` < '2024-12-26 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:04:17] Production.INFO: count ==1801 [2024-12-26 12:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:04:05 - End Time 2024-12-26 12:04:05 [2024-12-26 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106737', 'tblTempUsageDetail_20' ) start [2024-12-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106737', 'tblTempUsageDetail_20' ) end [2024-12-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106737', 'tblTempVendorCDR_20' ) start [2024-12-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106737', 'tblTempVendorCDR_20' ) end [2024-12-26 12:04:18] Production.INFO: ProcessCDR(1,14106737,1,1,2) [2024-12-26 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106737', 'tblTempUsageDetail_20' ) start [2024-12-26 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106737', 'tblTempUsageDetail_20' ) end [2024-12-26 12:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:04:21] Production.INFO: ==18566== Releasing lock... [2024-12-26 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:04:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:05:05 [end_date_ymd] => 2024-12-26 12:05:05 [RateCDR] => 1 ) [2024-12-26 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:05:05' and `end` < '2024-12-26 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:05:19] Production.INFO: count ==1804 [2024-12-26 12:05:20] Production.ERROR: pbx CDR StartTime 2024-12-26 09:05:05 - End Time 2024-12-26 12:05:05 [2024-12-26 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106742', 'tblTempUsageDetail_20' ) start [2024-12-26 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106742', 'tblTempUsageDetail_20' ) end [2024-12-26 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106742', 'tblTempVendorCDR_20' ) start [2024-12-26 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106742', 'tblTempVendorCDR_20' ) end [2024-12-26 12:05:20] Production.INFO: ProcessCDR(1,14106742,1,1,2) [2024-12-26 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106742', 'tblTempUsageDetail_20' ) start [2024-12-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106742', 'tblTempUsageDetail_20' ) end [2024-12-26 12:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:05:23] Production.INFO: ==18647== Releasing lock... [2024-12-26 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:05:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:06:05 [end_date_ymd] => 2024-12-26 12:06:05 [RateCDR] => 1 ) [2024-12-26 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:06:05' and `end` < '2024-12-26 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:06:17] Production.INFO: count ==1804 [2024-12-26 12:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:06:05 - End Time 2024-12-26 12:06:05 [2024-12-26 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106747', 'tblTempUsageDetail_20' ) start [2024-12-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106747', 'tblTempUsageDetail_20' ) end [2024-12-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106747', 'tblTempVendorCDR_20' ) start [2024-12-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106747', 'tblTempVendorCDR_20' ) end [2024-12-26 12:06:18] Production.INFO: ProcessCDR(1,14106747,1,1,2) [2024-12-26 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106747', 'tblTempUsageDetail_20' ) start [2024-12-26 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106747', 'tblTempUsageDetail_20' ) end [2024-12-26 12:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:06:21] Production.INFO: ==18722== Releasing lock... [2024-12-26 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:06:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:07:05 [end_date_ymd] => 2024-12-26 12:07:05 [RateCDR] => 1 ) [2024-12-26 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:07:05' and `end` < '2024-12-26 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:07:18] Production.INFO: count ==1798 [2024-12-26 12:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:07:05 - End Time 2024-12-26 12:07:05 [2024-12-26 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106752', 'tblTempUsageDetail_20' ) start [2024-12-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106752', 'tblTempUsageDetail_20' ) end [2024-12-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106752', 'tblTempVendorCDR_20' ) start [2024-12-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106752', 'tblTempVendorCDR_20' ) end [2024-12-26 12:07:19] Production.INFO: ProcessCDR(1,14106752,1,1,2) [2024-12-26 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106752', 'tblTempUsageDetail_20' ) start [2024-12-26 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106752', 'tblTempUsageDetail_20' ) end [2024-12-26 12:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:07:23] Production.INFO: ==18803== Releasing lock... [2024-12-26 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:07:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:08:05 [end_date_ymd] => 2024-12-26 12:08:05 [RateCDR] => 1 ) [2024-12-26 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:08:05' and `end` < '2024-12-26 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:08:18] Production.INFO: count ==1802 [2024-12-26 12:08:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:08:05 - End Time 2024-12-26 12:08:05 [2024-12-26 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106757', 'tblTempUsageDetail_20' ) start [2024-12-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106757', 'tblTempUsageDetail_20' ) end [2024-12-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106757', 'tblTempVendorCDR_20' ) start [2024-12-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106757', 'tblTempVendorCDR_20' ) end [2024-12-26 12:08:19] Production.INFO: ProcessCDR(1,14106757,1,1,2) [2024-12-26 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106757', 'tblTempUsageDetail_20' ) start [2024-12-26 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106757', 'tblTempUsageDetail_20' ) end [2024-12-26 12:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:08:23] Production.INFO: ==18888== Releasing lock... [2024-12-26 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:08:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:09:05 [end_date_ymd] => 2024-12-26 12:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:09:17] Production.INFO: count ==1814 [2024-12-26 12:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:09:05 - End Time 2024-12-26 12:09:05 [2024-12-26 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106762', 'tblTempUsageDetail_20' ) start [2024-12-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106762', 'tblTempUsageDetail_20' ) end [2024-12-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106762', 'tblTempVendorCDR_20' ) start [2024-12-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106762', 'tblTempVendorCDR_20' ) end [2024-12-26 12:09:18] Production.INFO: ProcessCDR(1,14106762,1,1,2) [2024-12-26 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106762', 'tblTempUsageDetail_20' ) start [2024-12-26 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106762', 'tblTempUsageDetail_20' ) end [2024-12-26 12:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:09:23] Production.INFO: ==18965== Releasing lock... [2024-12-26 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:09:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:10:04 [end_date_ymd] => 2024-12-26 12:10:04 [RateCDR] => 1 ) [2024-12-26 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:10:04' and `end` < '2024-12-26 12:10: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 ,'') [2024-12-26 12:10:17] Production.INFO: count ==1801 [2024-12-26 12:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:10:04 - End Time 2024-12-26 12:10:04 [2024-12-26 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106768', 'tblTempUsageDetail_20' ) start [2024-12-26 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106768', 'tblTempUsageDetail_20' ) end [2024-12-26 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106768', 'tblTempVendorCDR_20' ) start [2024-12-26 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106768', 'tblTempVendorCDR_20' ) end [2024-12-26 12:10:18] Production.INFO: ProcessCDR(1,14106768,1,1,2) [2024-12-26 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106768', 'tblTempUsageDetail_20' ) start [2024-12-26 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106768', 'tblTempUsageDetail_20' ) end [2024-12-26 12:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:10:22] Production.INFO: ==19051== Releasing lock... [2024-12-26 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:10:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:11:05 [end_date_ymd] => 2024-12-26 12:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:11:18] Production.INFO: count ==1849 [2024-12-26 12:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:11:05 - End Time 2024-12-26 12:11:05 [2024-12-26 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106773', 'tblTempUsageDetail_20' ) start [2024-12-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106773', 'tblTempUsageDetail_20' ) end [2024-12-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106773', 'tblTempVendorCDR_20' ) start [2024-12-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106773', 'tblTempVendorCDR_20' ) end [2024-12-26 12:11:18] Production.INFO: ProcessCDR(1,14106773,1,1,2) [2024-12-26 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106773', 'tblTempUsageDetail_20' ) start [2024-12-26 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106773', 'tblTempUsageDetail_20' ) end [2024-12-26 12:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:11:23] Production.INFO: ==19169== Releasing lock... [2024-12-26 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:11:23] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:12:06 [end_date_ymd] => 2024-12-26 12:12:06 [RateCDR] => 1 ) [2024-12-26 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:12:06' and `end` < '2024-12-26 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:12:20] Production.INFO: count ==1843 [2024-12-26 12:12:20] Production.ERROR: pbx CDR StartTime 2024-12-26 09:12:06 - End Time 2024-12-26 12:12:06 [2024-12-26 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106778', 'tblTempUsageDetail_20' ) start [2024-12-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106778', 'tblTempUsageDetail_20' ) end [2024-12-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106778', 'tblTempVendorCDR_20' ) start [2024-12-26 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106778', 'tblTempVendorCDR_20' ) end [2024-12-26 12:12:21] Production.INFO: ProcessCDR(1,14106778,1,1,2) [2024-12-26 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106778', 'tblTempUsageDetail_20' ) start [2024-12-26 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106778', 'tblTempUsageDetail_20' ) end [2024-12-26 12:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:12:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:12:26] Production.INFO: ==19254== Releasing lock... [2024-12-26 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:12:26] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:13:05 [end_date_ymd] => 2024-12-26 12:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:13:18] Production.INFO: count ==1849 [2024-12-26 12:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:13:05 - End Time 2024-12-26 12:13:05 [2024-12-26 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106783', 'tblTempUsageDetail_20' ) start [2024-12-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106783', 'tblTempUsageDetail_20' ) end [2024-12-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106783', 'tblTempVendorCDR_20' ) start [2024-12-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106783', 'tblTempVendorCDR_20' ) end [2024-12-26 12:13:18] Production.INFO: ProcessCDR(1,14106783,1,1,2) [2024-12-26 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106783', 'tblTempUsageDetail_20' ) start [2024-12-26 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106783', 'tblTempUsageDetail_20' ) end [2024-12-26 12:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:13:23] Production.INFO: ==19332== Releasing lock... [2024-12-26 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:13:23] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:14:05 [end_date_ymd] => 2024-12-26 12:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:14:19] Production.INFO: count ==1816 [2024-12-26 12:14:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:14:05 - End Time 2024-12-26 12:14:05 [2024-12-26 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106788', 'tblTempUsageDetail_20' ) start [2024-12-26 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106788', 'tblTempUsageDetail_20' ) end [2024-12-26 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106788', 'tblTempVendorCDR_20' ) start [2024-12-26 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106788', 'tblTempVendorCDR_20' ) end [2024-12-26 12:14:20] Production.INFO: ProcessCDR(1,14106788,1,1,2) [2024-12-26 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106788', 'tblTempUsageDetail_20' ) start [2024-12-26 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106788', 'tblTempUsageDetail_20' ) end [2024-12-26 12:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:14:23] Production.INFO: ==19414== Releasing lock... [2024-12-26 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:14:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:15:05 [end_date_ymd] => 2024-12-26 12:15:05 [RateCDR] => 1 ) [2024-12-26 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:15:05' and `end` < '2024-12-26 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:15:17] Production.INFO: count ==1809 [2024-12-26 12:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:15:05 - End Time 2024-12-26 12:15:05 [2024-12-26 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106793', 'tblTempUsageDetail_20' ) start [2024-12-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106793', 'tblTempUsageDetail_20' ) end [2024-12-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106793', 'tblTempVendorCDR_20' ) start [2024-12-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106793', 'tblTempVendorCDR_20' ) end [2024-12-26 12:15:18] Production.INFO: ProcessCDR(1,14106793,1,1,2) [2024-12-26 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106793', 'tblTempUsageDetail_20' ) start [2024-12-26 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106793', 'tblTempUsageDetail_20' ) end [2024-12-26 12:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:15:23] Production.INFO: ==19504== Releasing lock... [2024-12-26 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:15:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:16:05 [end_date_ymd] => 2024-12-26 12:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:16:17] Production.INFO: count ==1782 [2024-12-26 12:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:16:05 - End Time 2024-12-26 12:16:05 [2024-12-26 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106798', 'tblTempUsageDetail_20' ) start [2024-12-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106798', 'tblTempUsageDetail_20' ) end [2024-12-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106798', 'tblTempVendorCDR_20' ) start [2024-12-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106798', 'tblTempVendorCDR_20' ) end [2024-12-26 12:16:18] Production.INFO: ProcessCDR(1,14106798,1,1,2) [2024-12-26 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106798', 'tblTempUsageDetail_20' ) start [2024-12-26 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106798', 'tblTempUsageDetail_20' ) end [2024-12-26 12:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:16:21] Production.INFO: ==19585== Releasing lock... [2024-12-26 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:16:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:17:05 [end_date_ymd] => 2024-12-26 12:17:05 [RateCDR] => 1 ) [2024-12-26 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:17:05' and `end` < '2024-12-26 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:17:19] Production.INFO: count ==1774 [2024-12-26 12:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 09:17:05 - End Time 2024-12-26 12:17:05 [2024-12-26 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106803', 'tblTempUsageDetail_20' ) start [2024-12-26 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106803', 'tblTempUsageDetail_20' ) end [2024-12-26 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106803', 'tblTempVendorCDR_20' ) start [2024-12-26 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106803', 'tblTempVendorCDR_20' ) end [2024-12-26 12:17:20] Production.INFO: ProcessCDR(1,14106803,1,1,2) [2024-12-26 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106803', 'tblTempUsageDetail_20' ) start [2024-12-26 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106803', 'tblTempUsageDetail_20' ) end [2024-12-26 12:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:17:23] Production.INFO: ==19676== Releasing lock... [2024-12-26 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:17:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:18:05 [end_date_ymd] => 2024-12-26 12:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:18:17] Production.INFO: count ==1767 [2024-12-26 12:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:18:05 - End Time 2024-12-26 12:18:05 [2024-12-26 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106808', 'tblTempUsageDetail_20' ) start [2024-12-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106808', 'tblTempUsageDetail_20' ) end [2024-12-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106808', 'tblTempVendorCDR_20' ) start [2024-12-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106808', 'tblTempVendorCDR_20' ) end [2024-12-26 12:18:18] Production.INFO: ProcessCDR(1,14106808,1,1,2) [2024-12-26 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106808', 'tblTempUsageDetail_20' ) start [2024-12-26 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106808', 'tblTempUsageDetail_20' ) end [2024-12-26 12:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:18:21] Production.INFO: ==19755== Releasing lock... [2024-12-26 12:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:18:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:19:05 [end_date_ymd] => 2024-12-26 12:19:05 [RateCDR] => 1 ) [2024-12-26 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:19:05' and `end` < '2024-12-26 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:19:17] Production.INFO: count ==1763 [2024-12-26 12:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:19:05 - End Time 2024-12-26 12:19:05 [2024-12-26 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106813', 'tblTempUsageDetail_20' ) start [2024-12-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106813', 'tblTempUsageDetail_20' ) end [2024-12-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106813', 'tblTempVendorCDR_20' ) start [2024-12-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106813', 'tblTempVendorCDR_20' ) end [2024-12-26 12:19:18] Production.INFO: ProcessCDR(1,14106813,1,1,2) [2024-12-26 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106813', 'tblTempUsageDetail_20' ) start [2024-12-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106813', 'tblTempUsageDetail_20' ) end [2024-12-26 12:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:19:22] Production.INFO: ==19833== Releasing lock... [2024-12-26 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:19:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:20:06 [end_date_ymd] => 2024-12-26 12:20:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:20:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:20:18] Production.INFO: count ==1760 [2024-12-26 12:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:20:06 - End Time 2024-12-26 12:20:06 [2024-12-26 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106818', 'tblTempUsageDetail_20' ) start [2024-12-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106818', 'tblTempUsageDetail_20' ) end [2024-12-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106818', 'tblTempVendorCDR_20' ) start [2024-12-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106818', 'tblTempVendorCDR_20' ) end [2024-12-26 12:20:19] Production.INFO: ProcessCDR(1,14106818,1,1,2) [2024-12-26 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106818', 'tblTempUsageDetail_20' ) start [2024-12-26 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106818', 'tblTempUsageDetail_20' ) end [2024-12-26 12:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:20:24] Production.INFO: ==19915== Releasing lock... [2024-12-26 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:20:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:21:04 [end_date_ymd] => 2024-12-26 12:21:04 [RateCDR] => 1 ) [2024-12-26 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:21:04' and `end` < '2024-12-26 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:21:18] Production.INFO: count ==1771 [2024-12-26 12:21:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:21:04 - End Time 2024-12-26 12:21:04 [2024-12-26 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106824', 'tblTempUsageDetail_20' ) start [2024-12-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106824', 'tblTempUsageDetail_20' ) end [2024-12-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106824', 'tblTempVendorCDR_20' ) start [2024-12-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106824', 'tblTempVendorCDR_20' ) end [2024-12-26 12:21:19] Production.INFO: ProcessCDR(1,14106824,1,1,2) [2024-12-26 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106824', 'tblTempUsageDetail_20' ) start [2024-12-26 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106824', 'tblTempUsageDetail_20' ) end [2024-12-26 12:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:21:22] Production.INFO: ==20001== Releasing lock... [2024-12-26 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:21:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:22:05 [end_date_ymd] => 2024-12-26 12:22:05 [RateCDR] => 1 ) [2024-12-26 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:22:05' and `end` < '2024-12-26 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:22:17] Production.INFO: count ==1780 [2024-12-26 12:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:22:05 - End Time 2024-12-26 12:22:05 [2024-12-26 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106829', 'tblTempUsageDetail_20' ) start [2024-12-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106829', 'tblTempUsageDetail_20' ) end [2024-12-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106829', 'tblTempVendorCDR_20' ) start [2024-12-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106829', 'tblTempVendorCDR_20' ) end [2024-12-26 12:22:18] Production.INFO: ProcessCDR(1,14106829,1,1,2) [2024-12-26 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106829', 'tblTempUsageDetail_20' ) start [2024-12-26 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106829', 'tblTempUsageDetail_20' ) end [2024-12-26 12:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:22:21] Production.INFO: ==20082== Releasing lock... [2024-12-26 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:22:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:23:06 [end_date_ymd] => 2024-12-26 12:23:06 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:23:06' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:23:19] Production.INFO: count ==1765 [2024-12-26 12:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:23:06 - End Time 2024-12-26 12:23:06 [2024-12-26 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106830', 'tblTempUsageDetail_20' ) start [2024-12-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106830', 'tblTempUsageDetail_20' ) end [2024-12-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106830', 'tblTempVendorCDR_20' ) start [2024-12-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106830', 'tblTempVendorCDR_20' ) end [2024-12-26 12:23:19] Production.INFO: ProcessCDR(1,14106830,1,1,2) [2024-12-26 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106830', 'tblTempUsageDetail_20' ) start [2024-12-26 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106830', 'tblTempUsageDetail_20' ) end [2024-12-26 12:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:23:24] Production.INFO: ==20157== Releasing lock... [2024-12-26 12:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:23:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:24:05 [end_date_ymd] => 2024-12-26 12:24:05 [RateCDR] => 1 ) [2024-12-26 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:24:05' and `end` < '2024-12-26 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:24:18] Production.INFO: count ==1769 [2024-12-26 12:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:24:05 - End Time 2024-12-26 12:24:05 [2024-12-26 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106839', 'tblTempUsageDetail_20' ) start [2024-12-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106839', 'tblTempUsageDetail_20' ) end [2024-12-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106839', 'tblTempVendorCDR_20' ) start [2024-12-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106839', 'tblTempVendorCDR_20' ) end [2024-12-26 12:24:19] Production.INFO: ProcessCDR(1,14106839,1,1,2) [2024-12-26 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106839', 'tblTempUsageDetail_20' ) start [2024-12-26 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106839', 'tblTempUsageDetail_20' ) end [2024-12-26 12:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:24:22] Production.INFO: ==20239== Releasing lock... [2024-12-26 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:24:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:25:05 [end_date_ymd] => 2024-12-26 12:25:05 [RateCDR] => 1 ) [2024-12-26 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:25:05' and `end` < '2024-12-26 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:25:17] Production.INFO: count ==1830 [2024-12-26 12:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:25:05 - End Time 2024-12-26 12:25:05 [2024-12-26 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106844', 'tblTempUsageDetail_20' ) start [2024-12-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106844', 'tblTempUsageDetail_20' ) end [2024-12-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106844', 'tblTempVendorCDR_20' ) start [2024-12-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106844', 'tblTempVendorCDR_20' ) end [2024-12-26 12:25:18] Production.INFO: ProcessCDR(1,14106844,1,1,2) [2024-12-26 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106844', 'tblTempUsageDetail_20' ) start [2024-12-26 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106844', 'tblTempUsageDetail_20' ) end [2024-12-26 12:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:25:23] Production.INFO: ==20317== Releasing lock... [2024-12-26 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:25:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:26:05 [end_date_ymd] => 2024-12-26 12:26:05 [RateCDR] => 1 ) [2024-12-26 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:26:05' and `end` < '2024-12-26 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:26:19] Production.INFO: count ==1832 [2024-12-26 12:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:26:05 - End Time 2024-12-26 12:26:05 [2024-12-26 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106849', 'tblTempUsageDetail_20' ) start [2024-12-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106849', 'tblTempUsageDetail_20' ) end [2024-12-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106849', 'tblTempVendorCDR_20' ) start [2024-12-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106849', 'tblTempVendorCDR_20' ) end [2024-12-26 12:26:19] Production.INFO: ProcessCDR(1,14106849,1,1,2) [2024-12-26 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106849', 'tblTempUsageDetail_20' ) start [2024-12-26 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106849', 'tblTempUsageDetail_20' ) end [2024-12-26 12:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:26:22] Production.INFO: ==20398== Releasing lock... [2024-12-26 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:26:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:27:04 [end_date_ymd] => 2024-12-26 12:27:04 [RateCDR] => 1 ) [2024-12-26 12:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:27:04' and `end` < '2024-12-26 12:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:27:17] Production.INFO: count ==1834 [2024-12-26 12:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:27:04 - End Time 2024-12-26 12:27:04 [2024-12-26 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106854', 'tblTempUsageDetail_20' ) start [2024-12-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106854', 'tblTempUsageDetail_20' ) end [2024-12-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106854', 'tblTempVendorCDR_20' ) start [2024-12-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106854', 'tblTempVendorCDR_20' ) end [2024-12-26 12:27:18] Production.INFO: ProcessCDR(1,14106854,1,1,2) [2024-12-26 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106854', 'tblTempUsageDetail_20' ) start [2024-12-26 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106854', 'tblTempUsageDetail_20' ) end [2024-12-26 12:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:27:22] Production.INFO: ==20515== Releasing lock... [2024-12-26 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:27:22] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:28:05 [end_date_ymd] => 2024-12-26 12:28:05 [RateCDR] => 1 ) [2024-12-26 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:28:05' and `end` < '2024-12-26 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:28:17] Production.INFO: count ==1806 [2024-12-26 12:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:28:05 - End Time 2024-12-26 12:28:05 [2024-12-26 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106859', 'tblTempUsageDetail_20' ) start [2024-12-26 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106859', 'tblTempUsageDetail_20' ) end [2024-12-26 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106859', 'tblTempVendorCDR_20' ) start [2024-12-26 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106859', 'tblTempVendorCDR_20' ) end [2024-12-26 12:28:18] Production.INFO: ProcessCDR(1,14106859,1,1,2) [2024-12-26 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106859', 'tblTempUsageDetail_20' ) start [2024-12-26 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106859', 'tblTempUsageDetail_20' ) end [2024-12-26 12:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:28:21] Production.INFO: ==20595== Releasing lock... [2024-12-26 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:28:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:29:04 [end_date_ymd] => 2024-12-26 12:29:04 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:29:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:29:17] Production.INFO: count ==1799 [2024-12-26 12:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 09:29:04 - End Time 2024-12-26 12:29:04 [2024-12-26 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106864', 'tblTempUsageDetail_20' ) start [2024-12-26 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106864', 'tblTempUsageDetail_20' ) end [2024-12-26 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106864', 'tblTempVendorCDR_20' ) start [2024-12-26 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106864', 'tblTempVendorCDR_20' ) end [2024-12-26 12:29:17] Production.INFO: ProcessCDR(1,14106864,1,1,2) [2024-12-26 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106864', 'tblTempUsageDetail_20' ) start [2024-12-26 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106864', 'tblTempUsageDetail_20' ) end [2024-12-26 12:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:29:21] Production.INFO: ==20675== Releasing lock... [2024-12-26 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:29:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:30:06 [end_date_ymd] => 2024-12-26 12:30:06 [RateCDR] => 1 ) [2024-12-26 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:30:06' and `end` < '2024-12-26 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:30:18] Production.INFO: count ==1770 [2024-12-26 12:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:30:06 - End Time 2024-12-26 12:30:06 [2024-12-26 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106870', 'tblTempUsageDetail_20' ) start [2024-12-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106870', 'tblTempUsageDetail_20' ) end [2024-12-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106870', 'tblTempVendorCDR_20' ) start [2024-12-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106870', 'tblTempVendorCDR_20' ) end [2024-12-26 12:30:19] Production.INFO: ProcessCDR(1,14106870,1,1,2) [2024-12-26 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106870', 'tblTempUsageDetail_20' ) start [2024-12-26 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106870', 'tblTempUsageDetail_20' ) end [2024-12-26 12:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:30:22] Production.INFO: ==20754== Releasing lock... [2024-12-26 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:30:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-26 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:31:05 [end_date_ymd] => 2024-12-26 12:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:31:19] Production.INFO: count ==1775 [2024-12-26 12:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:31:05 - End Time 2024-12-26 12:31:05 [2024-12-26 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106875', 'tblTempUsageDetail_20' ) start [2024-12-26 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106875', 'tblTempUsageDetail_20' ) end [2024-12-26 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106875', 'tblTempVendorCDR_20' ) start [2024-12-26 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106875', 'tblTempVendorCDR_20' ) end [2024-12-26 12:31:19] Production.INFO: ProcessCDR(1,14106875,1,1,2) [2024-12-26 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106875', 'tblTempUsageDetail_20' ) start [2024-12-26 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106875', 'tblTempUsageDetail_20' ) end [2024-12-26 12:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:31:22] Production.INFO: ==20837== Releasing lock... [2024-12-26 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:31:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:32:05 [end_date_ymd] => 2024-12-26 12:32:05 [RateCDR] => 1 ) [2024-12-26 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:32:05' and `end` < '2024-12-26 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:32:18] Production.INFO: count ==1778 [2024-12-26 12:32:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:32:05 - End Time 2024-12-26 12:32:05 [2024-12-26 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106880', 'tblTempUsageDetail_20' ) start [2024-12-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106880', 'tblTempUsageDetail_20' ) end [2024-12-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106880', 'tblTempVendorCDR_20' ) start [2024-12-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106880', 'tblTempVendorCDR_20' ) end [2024-12-26 12:32:19] Production.INFO: ProcessCDR(1,14106880,1,1,2) [2024-12-26 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106880', 'tblTempUsageDetail_20' ) start [2024-12-26 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106880', 'tblTempUsageDetail_20' ) end [2024-12-26 12:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:32:22] Production.INFO: ==20916== Releasing lock... [2024-12-26 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:32:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:33:05 [end_date_ymd] => 2024-12-26 12:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:33:18] Production.INFO: count ==1783 [2024-12-26 12:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:33:05 - End Time 2024-12-26 12:33:05 [2024-12-26 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106885', 'tblTempUsageDetail_20' ) start [2024-12-26 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106885', 'tblTempUsageDetail_20' ) end [2024-12-26 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106885', 'tblTempVendorCDR_20' ) start [2024-12-26 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106885', 'tblTempVendorCDR_20' ) end [2024-12-26 12:33:18] Production.INFO: ProcessCDR(1,14106885,1,1,2) [2024-12-26 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106885', 'tblTempUsageDetail_20' ) start [2024-12-26 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106885', 'tblTempUsageDetail_20' ) end [2024-12-26 12:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:33:23] Production.INFO: ==20992== Releasing lock... [2024-12-26 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:33:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:34:05 [end_date_ymd] => 2024-12-26 12:34:05 [RateCDR] => 1 ) [2024-12-26 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:34:05' and `end` < '2024-12-26 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:34:18] Production.INFO: count ==1798 [2024-12-26 12:34:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:34:05 - End Time 2024-12-26 12:34:05 [2024-12-26 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106890', 'tblTempUsageDetail_20' ) start [2024-12-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106890', 'tblTempUsageDetail_20' ) end [2024-12-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106890', 'tblTempVendorCDR_20' ) start [2024-12-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106890', 'tblTempVendorCDR_20' ) end [2024-12-26 12:34:19] Production.INFO: ProcessCDR(1,14106890,1,1,2) [2024-12-26 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106890', 'tblTempUsageDetail_20' ) start [2024-12-26 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106890', 'tblTempUsageDetail_20' ) end [2024-12-26 12:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:34:24] Production.INFO: ==21073== Releasing lock... [2024-12-26 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:34:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:35:06 [end_date_ymd] => 2024-12-26 12:35:06 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:35:06' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:35:18] Production.INFO: count ==1798 [2024-12-26 12:35:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:35:06 - End Time 2024-12-26 12:35:06 [2024-12-26 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106895', 'tblTempUsageDetail_20' ) start [2024-12-26 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106895', 'tblTempUsageDetail_20' ) end [2024-12-26 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106895', 'tblTempVendorCDR_20' ) start [2024-12-26 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106895', 'tblTempVendorCDR_20' ) end [2024-12-26 12:35:19] Production.INFO: ProcessCDR(1,14106895,1,1,2) [2024-12-26 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106895', 'tblTempUsageDetail_20' ) start [2024-12-26 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106895', 'tblTempUsageDetail_20' ) end [2024-12-26 12:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:35:22] Production.INFO: ==21148== Releasing lock... [2024-12-26 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:35:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:36:04 [end_date_ymd] => 2024-12-26 12:36:04 [RateCDR] => 1 ) [2024-12-26 12:36: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` >= '2024-12-26 09:36:04' and `end` < '2024-12-26 12:36: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 ,'') [2024-12-26 12:36:17] Production.INFO: count ==1818 [2024-12-26 12:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:36:04 - End Time 2024-12-26 12:36:04 [2024-12-26 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106900', 'tblTempUsageDetail_20' ) start [2024-12-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106900', 'tblTempUsageDetail_20' ) end [2024-12-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106900', 'tblTempVendorCDR_20' ) start [2024-12-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106900', 'tblTempVendorCDR_20' ) end [2024-12-26 12:36:18] Production.INFO: ProcessCDR(1,14106900,1,1,2) [2024-12-26 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106900', 'tblTempUsageDetail_20' ) start [2024-12-26 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106900', 'tblTempUsageDetail_20' ) end [2024-12-26 12:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:36:21] Production.INFO: ==21222== Releasing lock... [2024-12-26 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:36:21] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:37:05 [end_date_ymd] => 2024-12-26 12:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:37:18] Production.INFO: count ==1815 [2024-12-26 12:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:37:05 - End Time 2024-12-26 12:37:05 [2024-12-26 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106905', 'tblTempUsageDetail_20' ) start [2024-12-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106905', 'tblTempUsageDetail_20' ) end [2024-12-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106905', 'tblTempVendorCDR_20' ) start [2024-12-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106905', 'tblTempVendorCDR_20' ) end [2024-12-26 12:37:19] Production.INFO: ProcessCDR(1,14106905,1,1,2) [2024-12-26 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106905', 'tblTempUsageDetail_20' ) start [2024-12-26 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106905', 'tblTempUsageDetail_20' ) end [2024-12-26 12:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:37:23] Production.INFO: ==21300== Releasing lock... [2024-12-26 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:37:23] Production.INFO: 42 MB #Memory Used# [2024-12-26 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:38:05 [end_date_ymd] => 2024-12-26 12:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:38:17] Production.INFO: count ==1808 [2024-12-26 12:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:38:05 - End Time 2024-12-26 12:38:05 [2024-12-26 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106910', 'tblTempUsageDetail_20' ) start [2024-12-26 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106910', 'tblTempUsageDetail_20' ) end [2024-12-26 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106910', 'tblTempVendorCDR_20' ) start [2024-12-26 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106910', 'tblTempVendorCDR_20' ) end [2024-12-26 12:38:18] Production.INFO: ProcessCDR(1,14106910,1,1,2) [2024-12-26 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106910', 'tblTempUsageDetail_20' ) start [2024-12-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106910', 'tblTempUsageDetail_20' ) end [2024-12-26 12:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:38:23] Production.INFO: ==21375== Releasing lock... [2024-12-26 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:38:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:39:05 [end_date_ymd] => 2024-12-26 12:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:39:18] Production.INFO: count ==1817 [2024-12-26 12:39:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:39:05 - End Time 2024-12-26 12:39:05 [2024-12-26 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106915', 'tblTempUsageDetail_20' ) start [2024-12-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106915', 'tblTempUsageDetail_20' ) end [2024-12-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106915', 'tblTempVendorCDR_20' ) start [2024-12-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106915', 'tblTempVendorCDR_20' ) end [2024-12-26 12:39:19] Production.INFO: ProcessCDR(1,14106915,1,1,2) [2024-12-26 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106915', 'tblTempUsageDetail_20' ) start [2024-12-26 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106915', 'tblTempUsageDetail_20' ) end [2024-12-26 12:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:39:24] Production.INFO: ==21451== Releasing lock... [2024-12-26 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:39:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:40:06 [end_date_ymd] => 2024-12-26 12:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:40:18] Production.INFO: count ==2041 [2024-12-26 12:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:40:06 - End Time 2024-12-26 12:40:06 [2024-12-26 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106921', 'tblTempUsageDetail_20' ) start [2024-12-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106921', 'tblTempUsageDetail_20' ) end [2024-12-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106921', 'tblTempVendorCDR_20' ) start [2024-12-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106921', 'tblTempVendorCDR_20' ) end [2024-12-26 12:40:19] Production.INFO: ProcessCDR(1,14106921,1,1,2) [2024-12-26 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106921', 'tblTempUsageDetail_20' ) start [2024-12-26 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106921', 'tblTempUsageDetail_20' ) end [2024-12-26 12:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:40:22] Production.INFO: ==21528== Releasing lock... [2024-12-26 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:40:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:41:05 [end_date_ymd] => 2024-12-26 12:41:05 [RateCDR] => 1 ) [2024-12-26 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:41:05' and `end` < '2024-12-26 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:41:18] Production.INFO: count ==2047 [2024-12-26 12:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:41:05 - End Time 2024-12-26 12:41:05 [2024-12-26 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106926', 'tblTempUsageDetail_20' ) start [2024-12-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106926', 'tblTempUsageDetail_20' ) end [2024-12-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106926', 'tblTempVendorCDR_20' ) start [2024-12-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106926', 'tblTempVendorCDR_20' ) end [2024-12-26 12:41:18] Production.INFO: ProcessCDR(1,14106926,1,1,2) [2024-12-26 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106926', 'tblTempUsageDetail_20' ) start [2024-12-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106926', 'tblTempUsageDetail_20' ) end [2024-12-26 12:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:41:23] Production.INFO: ==21602== Releasing lock... [2024-12-26 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:41:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:42:05 [end_date_ymd] => 2024-12-26 12:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:42:18] Production.INFO: count ==2049 [2024-12-26 12:42:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:42:05 - End Time 2024-12-26 12:42:05 [2024-12-26 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106931', 'tblTempUsageDetail_20' ) start [2024-12-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106931', 'tblTempUsageDetail_20' ) end [2024-12-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106931', 'tblTempVendorCDR_20' ) start [2024-12-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106931', 'tblTempVendorCDR_20' ) end [2024-12-26 12:42:19] Production.INFO: ProcessCDR(1,14106931,1,1,2) [2024-12-26 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106931', 'tblTempUsageDetail_20' ) start [2024-12-26 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106931', 'tblTempUsageDetail_20' ) end [2024-12-26 12:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:42:23] Production.INFO: ==21719== Releasing lock... [2024-12-26 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:42:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:43:04 [end_date_ymd] => 2024-12-26 12:43:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:43:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:43:17] Production.INFO: count ==2045 [2024-12-26 12:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:43:04 - End Time 2024-12-26 12:43:04 [2024-12-26 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106936', 'tblTempUsageDetail_20' ) start [2024-12-26 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106936', 'tblTempUsageDetail_20' ) end [2024-12-26 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106936', 'tblTempVendorCDR_20' ) start [2024-12-26 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106936', 'tblTempVendorCDR_20' ) end [2024-12-26 12:43:18] Production.INFO: ProcessCDR(1,14106936,1,1,2) [2024-12-26 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106936', 'tblTempUsageDetail_20' ) start [2024-12-26 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106936', 'tblTempUsageDetail_20' ) end [2024-12-26 12:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:43:21] Production.INFO: ==21790== Releasing lock... [2024-12-26 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:43:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:44:05 [end_date_ymd] => 2024-12-26 12:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:44:19] Production.INFO: count ==2045 [2024-12-26 12:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:44:05 - End Time 2024-12-26 12:44:05 [2024-12-26 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106941', 'tblTempUsageDetail_20' ) start [2024-12-26 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106941', 'tblTempUsageDetail_20' ) end [2024-12-26 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106941', 'tblTempVendorCDR_20' ) start [2024-12-26 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106941', 'tblTempVendorCDR_20' ) end [2024-12-26 12:44:20] Production.INFO: ProcessCDR(1,14106941,1,1,2) [2024-12-26 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106941', 'tblTempUsageDetail_20' ) start [2024-12-26 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106941', 'tblTempUsageDetail_20' ) end [2024-12-26 12:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:44:23] Production.INFO: ==21864== Releasing lock... [2024-12-26 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:44:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:45:05 [end_date_ymd] => 2024-12-26 12:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:45:18] Production.INFO: count ==2023 [2024-12-26 12:45:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:45:05 - End Time 2024-12-26 12:45:05 [2024-12-26 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106946', 'tblTempUsageDetail_20' ) start [2024-12-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106946', 'tblTempUsageDetail_20' ) end [2024-12-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106946', 'tblTempVendorCDR_20' ) start [2024-12-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106946', 'tblTempVendorCDR_20' ) end [2024-12-26 12:45:19] Production.INFO: ProcessCDR(1,14106946,1,1,2) [2024-12-26 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106946', 'tblTempUsageDetail_20' ) start [2024-12-26 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106946', 'tblTempUsageDetail_20' ) end [2024-12-26 12:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:45:24] Production.INFO: ==21937== Releasing lock... [2024-12-26 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:45:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:46:05 [end_date_ymd] => 2024-12-26 12:46:05 [RateCDR] => 1 ) [2024-12-26 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:46:05' and `end` < '2024-12-26 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:46:18] Production.INFO: count ==2017 [2024-12-26 12:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:46:05 - End Time 2024-12-26 12:46:05 [2024-12-26 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106951', 'tblTempUsageDetail_20' ) start [2024-12-26 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106951', 'tblTempUsageDetail_20' ) end [2024-12-26 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106951', 'tblTempVendorCDR_20' ) start [2024-12-26 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106951', 'tblTempVendorCDR_20' ) end [2024-12-26 12:46:18] Production.INFO: ProcessCDR(1,14106951,1,1,2) [2024-12-26 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106951', 'tblTempUsageDetail_20' ) start [2024-12-26 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106951', 'tblTempUsageDetail_20' ) end [2024-12-26 12:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:46:22] Production.INFO: ==22009== Releasing lock... [2024-12-26 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:46:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:47:04 [end_date_ymd] => 2024-12-26 12:47:04 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:47:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:47:17] Production.INFO: count ==2018 [2024-12-26 12:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:47:04 - End Time 2024-12-26 12:47:04 [2024-12-26 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106956', 'tblTempUsageDetail_20' ) start [2024-12-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106956', 'tblTempUsageDetail_20' ) end [2024-12-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106956', 'tblTempVendorCDR_20' ) start [2024-12-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106956', 'tblTempVendorCDR_20' ) end [2024-12-26 12:47:18] Production.INFO: ProcessCDR(1,14106956,1,1,2) [2024-12-26 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106956', 'tblTempUsageDetail_20' ) start [2024-12-26 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106956', 'tblTempUsageDetail_20' ) end [2024-12-26 12:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:47:21] Production.INFO: ==22084== Releasing lock... [2024-12-26 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:47:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:48:05 [end_date_ymd] => 2024-12-26 12:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:48:19] Production.INFO: count ==2007 [2024-12-26 12:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:48:05 - End Time 2024-12-26 12:48:05 [2024-12-26 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106961', 'tblTempUsageDetail_20' ) start [2024-12-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106961', 'tblTempUsageDetail_20' ) end [2024-12-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106961', 'tblTempVendorCDR_20' ) start [2024-12-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106961', 'tblTempVendorCDR_20' ) end [2024-12-26 12:48:19] Production.INFO: ProcessCDR(1,14106961,1,1,2) [2024-12-26 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106961', 'tblTempUsageDetail_20' ) start [2024-12-26 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106961', 'tblTempUsageDetail_20' ) end [2024-12-26 12:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:48:23] Production.INFO: ==22161== Releasing lock... [2024-12-26 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:48:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:49:05 [end_date_ymd] => 2024-12-26 12:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:49:18] Production.INFO: count ==2002 [2024-12-26 12:49:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:49:05 - End Time 2024-12-26 12:49:05 [2024-12-26 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106966', 'tblTempUsageDetail_20' ) start [2024-12-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106966', 'tblTempUsageDetail_20' ) end [2024-12-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106966', 'tblTempVendorCDR_20' ) start [2024-12-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106966', 'tblTempVendorCDR_20' ) end [2024-12-26 12:49:19] Production.INFO: ProcessCDR(1,14106966,1,1,2) [2024-12-26 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106966', 'tblTempUsageDetail_20' ) start [2024-12-26 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106966', 'tblTempUsageDetail_20' ) end [2024-12-26 12:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:49:22] Production.INFO: ==22231== Releasing lock... [2024-12-26 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:49:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:50:06 [end_date_ymd] => 2024-12-26 12:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:50:19] Production.INFO: count ==1998 [2024-12-26 12:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:50:06 - End Time 2024-12-26 12:50:06 [2024-12-26 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106971', 'tblTempUsageDetail_20' ) start [2024-12-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106971', 'tblTempUsageDetail_20' ) end [2024-12-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106971', 'tblTempVendorCDR_20' ) start [2024-12-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106971', 'tblTempVendorCDR_20' ) end [2024-12-26 12:50:19] Production.INFO: ProcessCDR(1,14106971,1,1,2) [2024-12-26 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106971', 'tblTempUsageDetail_20' ) start [2024-12-26 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106971', 'tblTempUsageDetail_20' ) end [2024-12-26 12:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:50:23] Production.INFO: ==22308== Releasing lock... [2024-12-26 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:50:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:51:05 [end_date_ymd] => 2024-12-26 12:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:51:19] Production.INFO: count ==2020 [2024-12-26 12:51:20] Production.ERROR: pbx CDR StartTime 2024-12-26 09:51:05 - End Time 2024-12-26 12:51:05 [2024-12-26 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106977', 'tblTempUsageDetail_20' ) start [2024-12-26 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106977', 'tblTempUsageDetail_20' ) end [2024-12-26 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106977', 'tblTempVendorCDR_20' ) start [2024-12-26 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106977', 'tblTempVendorCDR_20' ) end [2024-12-26 12:51:20] Production.INFO: ProcessCDR(1,14106977,1,1,2) [2024-12-26 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106977', 'tblTempUsageDetail_20' ) start [2024-12-26 12:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106977', 'tblTempUsageDetail_20' ) end [2024-12-26 12:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:51:23] Production.INFO: ==22382== Releasing lock... [2024-12-26 12:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:51:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:52:05 [end_date_ymd] => 2024-12-26 12:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:52:18] Production.INFO: count ==2017 [2024-12-26 12:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:52:05 - End Time 2024-12-26 12:52:05 [2024-12-26 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106982', 'tblTempUsageDetail_20' ) start [2024-12-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106982', 'tblTempUsageDetail_20' ) end [2024-12-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106982', 'tblTempVendorCDR_20' ) start [2024-12-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106982', 'tblTempVendorCDR_20' ) end [2024-12-26 12:52:19] Production.INFO: ProcessCDR(1,14106982,1,1,2) [2024-12-26 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106982', 'tblTempUsageDetail_20' ) start [2024-12-26 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106982', 'tblTempUsageDetail_20' ) end [2024-12-26 12:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:52:23] Production.INFO: ==22455== Releasing lock... [2024-12-26 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:52:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:53:04 [end_date_ymd] => 2024-12-26 12:53:04 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:53:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:53:18] Production.INFO: count ==1998 [2024-12-26 12:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:53:04 - End Time 2024-12-26 12:53:04 [2024-12-26 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106987', 'tblTempUsageDetail_20' ) start [2024-12-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106987', 'tblTempUsageDetail_20' ) end [2024-12-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106987', 'tblTempVendorCDR_20' ) start [2024-12-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106987', 'tblTempVendorCDR_20' ) end [2024-12-26 12:53:19] Production.INFO: ProcessCDR(1,14106987,1,1,2) [2024-12-26 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106987', 'tblTempUsageDetail_20' ) start [2024-12-26 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106987', 'tblTempUsageDetail_20' ) end [2024-12-26 12:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:53:22] Production.INFO: ==22533== Releasing lock... [2024-12-26 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:53:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:54:05 [end_date_ymd] => 2024-12-26 12:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:54:19] Production.INFO: count ==1999 [2024-12-26 12:54:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:54:05 - End Time 2024-12-26 12:54:05 [2024-12-26 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106992', 'tblTempUsageDetail_20' ) start [2024-12-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106992', 'tblTempUsageDetail_20' ) end [2024-12-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106992', 'tblTempVendorCDR_20' ) start [2024-12-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106992', 'tblTempVendorCDR_20' ) end [2024-12-26 12:54:19] Production.INFO: ProcessCDR(1,14106992,1,1,2) [2024-12-26 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106992', 'tblTempUsageDetail_20' ) start [2024-12-26 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106992', 'tblTempUsageDetail_20' ) end [2024-12-26 12:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:54:24] Production.INFO: ==22650== Releasing lock... [2024-12-26 12:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:54:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:55:05 [end_date_ymd] => 2024-12-26 12:55:05 [RateCDR] => 1 ) [2024-12-26 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 09:55:05' and `end` < '2024-12-26 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 12:55:17] Production.INFO: count ==1999 [2024-12-26 12:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:55:05 - End Time 2024-12-26 12:55:05 [2024-12-26 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106997', 'tblTempUsageDetail_20' ) start [2024-12-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14106997', 'tblTempUsageDetail_20' ) end [2024-12-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106997', 'tblTempVendorCDR_20' ) start [2024-12-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14106997', 'tblTempVendorCDR_20' ) end [2024-12-26 12:55:18] Production.INFO: ProcessCDR(1,14106997,1,1,2) [2024-12-26 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14106997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14106997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14106997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14106997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106997', 'tblTempUsageDetail_20' ) start [2024-12-26 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14106997', 'tblTempUsageDetail_20' ) end [2024-12-26 12:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:55:21] Production.INFO: ==22757== Releasing lock... [2024-12-26 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:55:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:56:05 [end_date_ymd] => 2024-12-26 12:56:05 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:56:05' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:56:19] Production.INFO: count ==1998 [2024-12-26 12:56:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:56:05 - End Time 2024-12-26 12:56:05 [2024-12-26 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107002', 'tblTempUsageDetail_20' ) start [2024-12-26 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107002', 'tblTempUsageDetail_20' ) end [2024-12-26 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107002', 'tblTempVendorCDR_20' ) start [2024-12-26 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107002', 'tblTempVendorCDR_20' ) end [2024-12-26 12:56:19] Production.INFO: ProcessCDR(1,14107002,1,1,2) [2024-12-26 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107002', 'tblTempUsageDetail_20' ) start [2024-12-26 12:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107002', 'tblTempUsageDetail_20' ) end [2024-12-26 12:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:56:24] Production.INFO: ==22874== Releasing lock... [2024-12-26 12:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:56:24] Production.INFO: 43 MB #Memory Used# [2024-12-26 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:57:04 [end_date_ymd] => 2024-12-26 12:57:04 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:57:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:57:17] Production.INFO: count ==1997 [2024-12-26 12:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 09:57:04 - End Time 2024-12-26 12:57:04 [2024-12-26 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107007', 'tblTempUsageDetail_20' ) start [2024-12-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107007', 'tblTempUsageDetail_20' ) end [2024-12-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107007', 'tblTempVendorCDR_20' ) start [2024-12-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107007', 'tblTempVendorCDR_20' ) end [2024-12-26 12:57:18] Production.INFO: ProcessCDR(1,14107007,1,1,2) [2024-12-26 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107007', 'tblTempUsageDetail_20' ) start [2024-12-26 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107007', 'tblTempUsageDetail_20' ) end [2024-12-26 12:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:57:22] Production.INFO: ==22988== Releasing lock... [2024-12-26 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:57:22] Production.INFO: 43 MB #Memory Used# [2024-12-26 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:58:04 [end_date_ymd] => 2024-12-26 12:58:04 [RateCDR] => 1 ) [2024-12-26 12: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` >= '2024-12-26 09:58:04' and `end` < '2024-12-26 12: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 ,'') [2024-12-26 12:58:19] Production.INFO: count ==1998 [2024-12-26 12:58:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:58:04 - End Time 2024-12-26 12:58:04 [2024-12-26 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107012', 'tblTempUsageDetail_20' ) start [2024-12-26 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107012', 'tblTempUsageDetail_20' ) end [2024-12-26 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107012', 'tblTempVendorCDR_20' ) start [2024-12-26 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107012', 'tblTempVendorCDR_20' ) end [2024-12-26 12:58:19] Production.INFO: ProcessCDR(1,14107012,1,1,2) [2024-12-26 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107012', 'tblTempUsageDetail_20' ) start [2024-12-26 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107012', 'tblTempUsageDetail_20' ) end [2024-12-26 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:58:24] Production.INFO: ==23148== Releasing lock... [2024-12-26 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:58:24] Production.INFO: 43 MB #Memory Used# [2024-12-26 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 09:59:05 [end_date_ymd] => 2024-12-26 12:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 09:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 12:59:18] Production.INFO: count ==1995 [2024-12-26 12:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 09:59:05 - End Time 2024-12-26 12:59:05 [2024-12-26 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107017', 'tblTempUsageDetail_20' ) start [2024-12-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107017', 'tblTempUsageDetail_20' ) end [2024-12-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107017', 'tblTempVendorCDR_20' ) start [2024-12-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107017', 'tblTempVendorCDR_20' ) end [2024-12-26 12:59:19] Production.INFO: ProcessCDR(1,14107017,1,1,2) [2024-12-26 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107017', 'tblTempUsageDetail_20' ) start [2024-12-26 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107017', 'tblTempUsageDetail_20' ) end [2024-12-26 12:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 12:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 12:59:23] Production.INFO: ==23267== Releasing lock... [2024-12-26 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 12:59:23] Production.INFO: 43 MB #Memory Used# [2024-12-26 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:00:05 [end_date_ymd] => 2024-12-26 13:00:05 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:00:05' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:00:17] Production.INFO: count ==1978 [2024-12-26 13:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:00:05 - End Time 2024-12-26 13:00:05 [2024-12-26 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107022', 'tblTempUsageDetail_20' ) start [2024-12-26 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107022', 'tblTempUsageDetail_20' ) end [2024-12-26 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107022', 'tblTempVendorCDR_20' ) start [2024-12-26 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107022', 'tblTempVendorCDR_20' ) end [2024-12-26 13:00:18] Production.INFO: ProcessCDR(1,14107022,1,1,2) [2024-12-26 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107022', 'tblTempUsageDetail_20' ) start [2024-12-26 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107022', 'tblTempUsageDetail_20' ) end [2024-12-26 13:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:00:22] Production.INFO: ==23391== Releasing lock... [2024-12-26 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:00:22] Production.INFO: 43 MB #Memory Used# [2024-12-26 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:01:05 [end_date_ymd] => 2024-12-26 13:01:05 [RateCDR] => 1 ) [2024-12-26 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:01:05' and `end` < '2024-12-26 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:01:17] Production.INFO: count ==1995 [2024-12-26 13:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:01:05 - End Time 2024-12-26 13:01:05 [2024-12-26 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107028', 'tblTempUsageDetail_20' ) start [2024-12-26 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107028', 'tblTempUsageDetail_20' ) end [2024-12-26 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107028', 'tblTempVendorCDR_20' ) start [2024-12-26 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107028', 'tblTempVendorCDR_20' ) end [2024-12-26 13:01:18] Production.INFO: ProcessCDR(1,14107028,1,1,2) [2024-12-26 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107028', 'tblTempUsageDetail_20' ) start [2024-12-26 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107028', 'tblTempUsageDetail_20' ) end [2024-12-26 13:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:01:23] Production.INFO: ==23520== Releasing lock... [2024-12-26 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:01:23] Production.INFO: 43 MB #Memory Used# [2024-12-26 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:02:04 [end_date_ymd] => 2024-12-26 13:02:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:02:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:02:17] Production.INFO: count ==2015 [2024-12-26 13:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:02:04 - End Time 2024-12-26 13:02:04 [2024-12-26 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107033', 'tblTempUsageDetail_20' ) start [2024-12-26 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107033', 'tblTempUsageDetail_20' ) end [2024-12-26 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107033', 'tblTempVendorCDR_20' ) start [2024-12-26 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107033', 'tblTempVendorCDR_20' ) end [2024-12-26 13:02:18] Production.INFO: ProcessCDR(1,14107033,1,1,2) [2024-12-26 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107033', 'tblTempUsageDetail_20' ) start [2024-12-26 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107033', 'tblTempUsageDetail_20' ) end [2024-12-26 13:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:02:22] Production.INFO: ==23638== Releasing lock... [2024-12-26 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:02:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:03:05 [end_date_ymd] => 2024-12-26 13:03:05 [RateCDR] => 1 ) [2024-12-26 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:03:05' and `end` < '2024-12-26 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:03:17] Production.INFO: count ==2021 [2024-12-26 13:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:03:05 - End Time 2024-12-26 13:03:05 [2024-12-26 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107038', 'tblTempUsageDetail_20' ) start [2024-12-26 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107038', 'tblTempUsageDetail_20' ) end [2024-12-26 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107038', 'tblTempVendorCDR_20' ) start [2024-12-26 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107038', 'tblTempVendorCDR_20' ) end [2024-12-26 13:03:18] Production.INFO: ProcessCDR(1,14107038,1,1,2) [2024-12-26 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107038', 'tblTempUsageDetail_20' ) start [2024-12-26 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107038', 'tblTempUsageDetail_20' ) end [2024-12-26 13:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:03:22] Production.INFO: ==23757== Releasing lock... [2024-12-26 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:03:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:04:05 [end_date_ymd] => 2024-12-26 13:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:04:18] Production.INFO: count ==2038 [2024-12-26 13:04:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:04:05 - End Time 2024-12-26 13:04:05 [2024-12-26 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107043', 'tblTempUsageDetail_20' ) start [2024-12-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107043', 'tblTempUsageDetail_20' ) end [2024-12-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107043', 'tblTempVendorCDR_20' ) start [2024-12-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107043', 'tblTempVendorCDR_20' ) end [2024-12-26 13:04:19] Production.INFO: ProcessCDR(1,14107043,1,1,2) [2024-12-26 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107043', 'tblTempUsageDetail_20' ) start [2024-12-26 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107043', 'tblTempUsageDetail_20' ) end [2024-12-26 13:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:04:23] Production.INFO: ==23886== Releasing lock... [2024-12-26 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:04:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:05:04 [end_date_ymd] => 2024-12-26 13:05:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:05:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:05:17] Production.INFO: count ==2056 [2024-12-26 13:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:05:04 - End Time 2024-12-26 13:05:04 [2024-12-26 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107048', 'tblTempUsageDetail_20' ) start [2024-12-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107048', 'tblTempUsageDetail_20' ) end [2024-12-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107048', 'tblTempVendorCDR_20' ) start [2024-12-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107048', 'tblTempVendorCDR_20' ) end [2024-12-26 13:05:18] Production.INFO: ProcessCDR(1,14107048,1,1,2) [2024-12-26 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107048', 'tblTempUsageDetail_20' ) start [2024-12-26 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107048', 'tblTempUsageDetail_20' ) end [2024-12-26 13:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:05:21] Production.INFO: ==24004== Releasing lock... [2024-12-26 13:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:05:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:06:05 [end_date_ymd] => 2024-12-26 13:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:06:18] Production.INFO: count ==2045 [2024-12-26 13:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:06:05 - End Time 2024-12-26 13:06:05 [2024-12-26 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107053', 'tblTempUsageDetail_20' ) start [2024-12-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107053', 'tblTempUsageDetail_20' ) end [2024-12-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107053', 'tblTempVendorCDR_20' ) start [2024-12-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107053', 'tblTempVendorCDR_20' ) end [2024-12-26 13:06:19] Production.INFO: ProcessCDR(1,14107053,1,1,2) [2024-12-26 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107053', 'tblTempUsageDetail_20' ) start [2024-12-26 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107053', 'tblTempUsageDetail_20' ) end [2024-12-26 13:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:06:22] Production.INFO: ==24120== Releasing lock... [2024-12-26 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:06:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:07:05 [end_date_ymd] => 2024-12-26 13:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:07:17] Production.INFO: count ==2060 [2024-12-26 13:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:07:05 - End Time 2024-12-26 13:07:05 [2024-12-26 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107058', 'tblTempUsageDetail_20' ) start [2024-12-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107058', 'tblTempUsageDetail_20' ) end [2024-12-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107058', 'tblTempVendorCDR_20' ) start [2024-12-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107058', 'tblTempVendorCDR_20' ) end [2024-12-26 13:07:18] Production.INFO: ProcessCDR(1,14107058,1,1,2) [2024-12-26 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107058', 'tblTempUsageDetail_20' ) start [2024-12-26 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107058', 'tblTempUsageDetail_20' ) end [2024-12-26 13:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:07:21] Production.INFO: ==24236== Releasing lock... [2024-12-26 13:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:07:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:08:05 [end_date_ymd] => 2024-12-26 13:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:08:18] Production.INFO: count ==2058 [2024-12-26 13:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:08:05 - End Time 2024-12-26 13:08:05 [2024-12-26 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107063', 'tblTempUsageDetail_20' ) start [2024-12-26 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107063', 'tblTempUsageDetail_20' ) end [2024-12-26 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107063', 'tblTempVendorCDR_20' ) start [2024-12-26 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107063', 'tblTempVendorCDR_20' ) end [2024-12-26 13:08:18] Production.INFO: ProcessCDR(1,14107063,1,1,2) [2024-12-26 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107063', 'tblTempUsageDetail_20' ) start [2024-12-26 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107063', 'tblTempUsageDetail_20' ) end [2024-12-26 13:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:08:21] Production.INFO: ==24353== Releasing lock... [2024-12-26 13:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:08:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:09:04 [end_date_ymd] => 2024-12-26 13:09:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:09:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:09:17] Production.INFO: count ==2117 [2024-12-26 13:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:09:04 - End Time 2024-12-26 13:09:04 [2024-12-26 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107068', 'tblTempUsageDetail_20' ) start [2024-12-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107068', 'tblTempUsageDetail_20' ) end [2024-12-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107068', 'tblTempVendorCDR_20' ) start [2024-12-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107068', 'tblTempVendorCDR_20' ) end [2024-12-26 13:09:18] Production.INFO: ProcessCDR(1,14107068,1,1,2) [2024-12-26 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107068', 'tblTempUsageDetail_20' ) start [2024-12-26 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107068', 'tblTempUsageDetail_20' ) end [2024-12-26 13:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:09:21] Production.INFO: ==24474== Releasing lock... [2024-12-26 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:09:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:10:05 [end_date_ymd] => 2024-12-26 13:10:05 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:10:05' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:10:18] Production.INFO: count ==2132 [2024-12-26 13:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:10:05 - End Time 2024-12-26 13:10:05 [2024-12-26 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107074', 'tblTempUsageDetail_20' ) start [2024-12-26 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107074', 'tblTempUsageDetail_20' ) end [2024-12-26 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107074', 'tblTempVendorCDR_20' ) start [2024-12-26 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107074', 'tblTempVendorCDR_20' ) end [2024-12-26 13:10:19] Production.INFO: ProcessCDR(1,14107074,1,1,2) [2024-12-26 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107074', 'tblTempUsageDetail_20' ) start [2024-12-26 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107074', 'tblTempUsageDetail_20' ) end [2024-12-26 13:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:10:22] Production.INFO: ==24598== Releasing lock... [2024-12-26 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:10:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:11:05 [end_date_ymd] => 2024-12-26 13:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:11:18] Production.INFO: count ==2147 [2024-12-26 13:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:11:05 - End Time 2024-12-26 13:11:05 [2024-12-26 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107079', 'tblTempUsageDetail_20' ) start [2024-12-26 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107079', 'tblTempUsageDetail_20' ) end [2024-12-26 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107079', 'tblTempVendorCDR_20' ) start [2024-12-26 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107079', 'tblTempVendorCDR_20' ) end [2024-12-26 13:11:19] Production.INFO: ProcessCDR(1,14107079,1,1,2) [2024-12-26 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107079', 'tblTempUsageDetail_20' ) start [2024-12-26 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107079', 'tblTempUsageDetail_20' ) end [2024-12-26 13:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:11:22] Production.INFO: ==24723== Releasing lock... [2024-12-26 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:11:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:12:05 [end_date_ymd] => 2024-12-26 13:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:12:17] Production.INFO: count ==2152 [2024-12-26 13:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:12:05 - End Time 2024-12-26 13:12:05 [2024-12-26 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107084', 'tblTempUsageDetail_20' ) start [2024-12-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107084', 'tblTempUsageDetail_20' ) end [2024-12-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107084', 'tblTempVendorCDR_20' ) start [2024-12-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107084', 'tblTempVendorCDR_20' ) end [2024-12-26 13:12:18] Production.INFO: ProcessCDR(1,14107084,1,1,2) [2024-12-26 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107084', 'tblTempUsageDetail_20' ) start [2024-12-26 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107084', 'tblTempUsageDetail_20' ) end [2024-12-26 13:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:12:22] Production.INFO: ==24832== Releasing lock... [2024-12-26 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:12:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:13:04 [end_date_ymd] => 2024-12-26 13:13:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:13:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:13:18] Production.INFO: count ==2177 [2024-12-26 13:13:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:13:04 - End Time 2024-12-26 13:13:04 [2024-12-26 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107085', 'tblTempUsageDetail_20' ) start [2024-12-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107085', 'tblTempUsageDetail_20' ) end [2024-12-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107085', 'tblTempVendorCDR_20' ) start [2024-12-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107085', 'tblTempVendorCDR_20' ) end [2024-12-26 13:13:19] Production.INFO: ProcessCDR(1,14107085,1,1,2) [2024-12-26 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107085', 'tblTempUsageDetail_20' ) start [2024-12-26 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107085', 'tblTempUsageDetail_20' ) end [2024-12-26 13:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:13:24] Production.INFO: ==24904== Releasing lock... [2024-12-26 13:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:13:24] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:14:05 [end_date_ymd] => 2024-12-26 13:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:14:17] Production.INFO: count ==2204 [2024-12-26 13:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:14:05 - End Time 2024-12-26 13:14:05 [2024-12-26 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107094', 'tblTempUsageDetail_20' ) start [2024-12-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107094', 'tblTempUsageDetail_20' ) end [2024-12-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107094', 'tblTempVendorCDR_20' ) start [2024-12-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107094', 'tblTempVendorCDR_20' ) end [2024-12-26 13:14:18] Production.INFO: ProcessCDR(1,14107094,1,1,2) [2024-12-26 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107094', 'tblTempUsageDetail_20' ) start [2024-12-26 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107094', 'tblTempUsageDetail_20' ) end [2024-12-26 13:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:14:23] Production.INFO: ==25018== Releasing lock... [2024-12-26 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:14:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:15:05 [end_date_ymd] => 2024-12-26 13:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:15:17] Production.INFO: count ==2208 [2024-12-26 13:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:15:05 - End Time 2024-12-26 13:15:05 [2024-12-26 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107099', 'tblTempUsageDetail_20' ) start [2024-12-26 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107099', 'tblTempUsageDetail_20' ) end [2024-12-26 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107099', 'tblTempVendorCDR_20' ) start [2024-12-26 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107099', 'tblTempVendorCDR_20' ) end [2024-12-26 13:15:18] Production.INFO: ProcessCDR(1,14107099,1,1,2) [2024-12-26 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107099', 'tblTempUsageDetail_20' ) start [2024-12-26 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107099', 'tblTempUsageDetail_20' ) end [2024-12-26 13:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:15:23] Production.INFO: ==25092== Releasing lock... [2024-12-26 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:15:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:16:05 [end_date_ymd] => 2024-12-26 13:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:16:19] Production.INFO: count ==2215 [2024-12-26 13:16:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:16:05 - End Time 2024-12-26 13:16:05 [2024-12-26 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107104', 'tblTempUsageDetail_20' ) start [2024-12-26 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107104', 'tblTempUsageDetail_20' ) end [2024-12-26 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107104', 'tblTempVendorCDR_20' ) start [2024-12-26 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107104', 'tblTempVendorCDR_20' ) end [2024-12-26 13:16:20] Production.INFO: ProcessCDR(1,14107104,1,1,2) [2024-12-26 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107104', 'tblTempUsageDetail_20' ) start [2024-12-26 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107104', 'tblTempUsageDetail_20' ) end [2024-12-26 13:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:16:24] Production.INFO: ==25164== Releasing lock... [2024-12-26 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:16:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:17:05 [end_date_ymd] => 2024-12-26 13:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:17:19] Production.INFO: count ==2223 [2024-12-26 13:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:17:05 - End Time 2024-12-26 13:17:05 [2024-12-26 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107109', 'tblTempUsageDetail_20' ) start [2024-12-26 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107109', 'tblTempUsageDetail_20' ) end [2024-12-26 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107109', 'tblTempVendorCDR_20' ) start [2024-12-26 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107109', 'tblTempVendorCDR_20' ) end [2024-12-26 13:17:20] Production.INFO: ProcessCDR(1,14107109,1,1,2) [2024-12-26 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107109', 'tblTempUsageDetail_20' ) start [2024-12-26 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107109', 'tblTempUsageDetail_20' ) end [2024-12-26 13:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:17:25] Production.INFO: ==25238== Releasing lock... [2024-12-26 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:17:25] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:18:05 [end_date_ymd] => 2024-12-26 13:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:18:18] Production.INFO: count ==2211 [2024-12-26 13:18:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:18:05 - End Time 2024-12-26 13:18:05 [2024-12-26 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107114', 'tblTempUsageDetail_20' ) start [2024-12-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107114', 'tblTempUsageDetail_20' ) end [2024-12-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107114', 'tblTempVendorCDR_20' ) start [2024-12-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107114', 'tblTempVendorCDR_20' ) end [2024-12-26 13:18:19] Production.INFO: ProcessCDR(1,14107114,1,1,2) [2024-12-26 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107114', 'tblTempUsageDetail_20' ) start [2024-12-26 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107114', 'tblTempUsageDetail_20' ) end [2024-12-26 13:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:18:24] Production.INFO: ==25316== Releasing lock... [2024-12-26 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:18:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:19:05 [end_date_ymd] => 2024-12-26 13:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:19:18] Production.INFO: count ==2211 [2024-12-26 13:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:19:05 - End Time 2024-12-26 13:19:05 [2024-12-26 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107119', 'tblTempUsageDetail_20' ) start [2024-12-26 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107119', 'tblTempUsageDetail_20' ) end [2024-12-26 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107119', 'tblTempVendorCDR_20' ) start [2024-12-26 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107119', 'tblTempVendorCDR_20' ) end [2024-12-26 13:19:18] Production.INFO: ProcessCDR(1,14107119,1,1,2) [2024-12-26 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107119', 'tblTempUsageDetail_20' ) start [2024-12-26 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107119', 'tblTempUsageDetail_20' ) end [2024-12-26 13:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:19:23] Production.INFO: ==25399== Releasing lock... [2024-12-26 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:19:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:20:06 [end_date_ymd] => 2024-12-26 13:20:06 [RateCDR] => 1 ) [2024-12-26 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:20:06' and `end` < '2024-12-26 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:20:19] Production.INFO: count ==2231 [2024-12-26 13:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:20:06 - End Time 2024-12-26 13:20:06 [2024-12-26 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107125', 'tblTempUsageDetail_20' ) start [2024-12-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107125', 'tblTempUsageDetail_20' ) end [2024-12-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107125', 'tblTempVendorCDR_20' ) start [2024-12-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107125', 'tblTempVendorCDR_20' ) end [2024-12-26 13:20:19] Production.INFO: ProcessCDR(1,14107125,1,1,2) [2024-12-26 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107125', 'tblTempUsageDetail_20' ) start [2024-12-26 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107125', 'tblTempUsageDetail_20' ) end [2024-12-26 13:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:20:24] Production.INFO: ==25478== Releasing lock... [2024-12-26 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:20:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:21:04 [end_date_ymd] => 2024-12-26 13:21:04 [RateCDR] => 1 ) [2024-12-26 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:21:04' and `end` < '2024-12-26 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:21:17] Production.INFO: count ==2207 [2024-12-26 13:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:21:04 - End Time 2024-12-26 13:21:04 [2024-12-26 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107130', 'tblTempUsageDetail_20' ) start [2024-12-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107130', 'tblTempUsageDetail_20' ) end [2024-12-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107130', 'tblTempVendorCDR_20' ) start [2024-12-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107130', 'tblTempVendorCDR_20' ) end [2024-12-26 13:21:18] Production.INFO: ProcessCDR(1,14107130,1,1,2) [2024-12-26 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107130', 'tblTempUsageDetail_20' ) start [2024-12-26 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107130', 'tblTempUsageDetail_20' ) end [2024-12-26 13:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:21:22] Production.INFO: ==25551== Releasing lock... [2024-12-26 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:21:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:22:04 [end_date_ymd] => 2024-12-26 13:22:04 [RateCDR] => 1 ) [2024-12-26 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:22:04' and `end` < '2024-12-26 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:22:18] Production.INFO: count ==2192 [2024-12-26 13:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:22:04 - End Time 2024-12-26 13:22:04 [2024-12-26 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107135', 'tblTempUsageDetail_20' ) start [2024-12-26 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107135', 'tblTempUsageDetail_20' ) end [2024-12-26 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107135', 'tblTempVendorCDR_20' ) start [2024-12-26 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107135', 'tblTempVendorCDR_20' ) end [2024-12-26 13:22:19] Production.INFO: ProcessCDR(1,14107135,1,1,2) [2024-12-26 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107135', 'tblTempUsageDetail_20' ) start [2024-12-26 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107135', 'tblTempUsageDetail_20' ) end [2024-12-26 13:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:22:24] Production.INFO: ==25631== Releasing lock... [2024-12-26 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:22:24] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:23:05 [end_date_ymd] => 2024-12-26 13:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:23:18] Production.INFO: count ==2192 [2024-12-26 13:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:23:05 - End Time 2024-12-26 13:23:05 [2024-12-26 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107140', 'tblTempUsageDetail_20' ) start [2024-12-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107140', 'tblTempUsageDetail_20' ) end [2024-12-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107140', 'tblTempVendorCDR_20' ) start [2024-12-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107140', 'tblTempVendorCDR_20' ) end [2024-12-26 13:23:19] Production.INFO: ProcessCDR(1,14107140,1,1,2) [2024-12-26 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107140', 'tblTempUsageDetail_20' ) start [2024-12-26 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107140', 'tblTempUsageDetail_20' ) end [2024-12-26 13:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:23:23] Production.INFO: ==25705== Releasing lock... [2024-12-26 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:23:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:24:05 [end_date_ymd] => 2024-12-26 13:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:24:17] Production.INFO: count ==2199 [2024-12-26 13:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:24:05 - End Time 2024-12-26 13:24:05 [2024-12-26 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107145', 'tblTempUsageDetail_20' ) start [2024-12-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107145', 'tblTempUsageDetail_20' ) end [2024-12-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107145', 'tblTempVendorCDR_20' ) start [2024-12-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107145', 'tblTempVendorCDR_20' ) end [2024-12-26 13:24:18] Production.INFO: ProcessCDR(1,14107145,1,1,2) [2024-12-26 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107145', 'tblTempUsageDetail_20' ) start [2024-12-26 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107145', 'tblTempUsageDetail_20' ) end [2024-12-26 13:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:24:23] Production.INFO: ==25785== Releasing lock... [2024-12-26 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:24:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:25:05 [end_date_ymd] => 2024-12-26 13:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:25:18] Production.INFO: count ==2218 [2024-12-26 13:25:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:25:05 - End Time 2024-12-26 13:25:05 [2024-12-26 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107150', 'tblTempUsageDetail_20' ) start [2024-12-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107150', 'tblTempUsageDetail_20' ) end [2024-12-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107150', 'tblTempVendorCDR_20' ) start [2024-12-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107150', 'tblTempVendorCDR_20' ) end [2024-12-26 13:25:19] Production.INFO: ProcessCDR(1,14107150,1,1,2) [2024-12-26 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107150', 'tblTempUsageDetail_20' ) start [2024-12-26 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107150', 'tblTempUsageDetail_20' ) end [2024-12-26 13:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:25:24] Production.INFO: ==25860== Releasing lock... [2024-12-26 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:25:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:26:05 [end_date_ymd] => 2024-12-26 13:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:26:17] Production.INFO: count ==2226 [2024-12-26 13:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:26:05 - End Time 2024-12-26 13:26:05 [2024-12-26 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107155', 'tblTempUsageDetail_20' ) start [2024-12-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107155', 'tblTempUsageDetail_20' ) end [2024-12-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107155', 'tblTempVendorCDR_20' ) start [2024-12-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107155', 'tblTempVendorCDR_20' ) end [2024-12-26 13:26:18] Production.INFO: ProcessCDR(1,14107155,1,1,2) [2024-12-26 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107155', 'tblTempUsageDetail_20' ) start [2024-12-26 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107155', 'tblTempUsageDetail_20' ) end [2024-12-26 13:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:26:23] Production.INFO: ==25936== Releasing lock... [2024-12-26 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:26:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:27:05 [end_date_ymd] => 2024-12-26 13:27:05 [RateCDR] => 1 ) [2024-12-26 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:27:18] Production.INFO: count ==2230 [2024-12-26 13:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:27:05 - End Time 2024-12-26 13:27:05 [2024-12-26 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107160', 'tblTempUsageDetail_20' ) start [2024-12-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107160', 'tblTempUsageDetail_20' ) end [2024-12-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107160', 'tblTempVendorCDR_20' ) start [2024-12-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107160', 'tblTempVendorCDR_20' ) end [2024-12-26 13:27:19] Production.INFO: ProcessCDR(1,14107160,1,1,2) [2024-12-26 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107160', 'tblTempUsageDetail_20' ) start [2024-12-26 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107160', 'tblTempUsageDetail_20' ) end [2024-12-26 13:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:27:23] Production.INFO: ==26013== Releasing lock... [2024-12-26 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:27:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:28:05 [end_date_ymd] => 2024-12-26 13:28:05 [RateCDR] => 1 ) [2024-12-26 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:28:05' and `end` < '2024-12-26 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:28:17] Production.INFO: count ==2228 [2024-12-26 13:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:28:05 - End Time 2024-12-26 13:28:05 [2024-12-26 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107165', 'tblTempUsageDetail_20' ) start [2024-12-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107165', 'tblTempUsageDetail_20' ) end [2024-12-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107165', 'tblTempVendorCDR_20' ) start [2024-12-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107165', 'tblTempVendorCDR_20' ) end [2024-12-26 13:28:18] Production.INFO: ProcessCDR(1,14107165,1,1,2) [2024-12-26 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107165', 'tblTempUsageDetail_20' ) start [2024-12-26 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107165', 'tblTempUsageDetail_20' ) end [2024-12-26 13:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:28:23] Production.INFO: ==26086== Releasing lock... [2024-12-26 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:28:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:29:04 [end_date_ymd] => 2024-12-26 13:29:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:29:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:29:18] Production.INFO: count ==2218 [2024-12-26 13:29:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:29:04 - End Time 2024-12-26 13:29:04 [2024-12-26 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107170', 'tblTempUsageDetail_20' ) start [2024-12-26 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107170', 'tblTempUsageDetail_20' ) end [2024-12-26 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107170', 'tblTempVendorCDR_20' ) start [2024-12-26 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107170', 'tblTempVendorCDR_20' ) end [2024-12-26 13:29:19] Production.INFO: ProcessCDR(1,14107170,1,1,2) [2024-12-26 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107170', 'tblTempUsageDetail_20' ) start [2024-12-26 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107170', 'tblTempUsageDetail_20' ) end [2024-12-26 13:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:29:23] Production.INFO: ==26205== Releasing lock... [2024-12-26 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:29:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:30:06 [end_date_ymd] => 2024-12-26 13:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:30:19] Production.INFO: count ==2188 [2024-12-26 13:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:30:06 - End Time 2024-12-26 13:30:06 [2024-12-26 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107175', 'tblTempUsageDetail_20' ) start [2024-12-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107175', 'tblTempUsageDetail_20' ) end [2024-12-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107175', 'tblTempVendorCDR_20' ) start [2024-12-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107175', 'tblTempVendorCDR_20' ) end [2024-12-26 13:30:19] Production.INFO: ProcessCDR(1,14107175,1,1,2) [2024-12-26 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107175', 'tblTempUsageDetail_20' ) start [2024-12-26 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107175', 'tblTempUsageDetail_20' ) end [2024-12-26 13:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:30:23] Production.INFO: ==26286== Releasing lock... [2024-12-26 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:30:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:31:04 [end_date_ymd] => 2024-12-26 13:31:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:31:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:31:17] Production.INFO: count ==2160 [2024-12-26 13:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:31:04 - End Time 2024-12-26 13:31:04 [2024-12-26 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107181', 'tblTempUsageDetail_20' ) start [2024-12-26 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107181', 'tblTempUsageDetail_20' ) end [2024-12-26 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107181', 'tblTempVendorCDR_20' ) start [2024-12-26 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107181', 'tblTempVendorCDR_20' ) end [2024-12-26 13:31:18] Production.INFO: ProcessCDR(1,14107181,1,1,2) [2024-12-26 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107181', 'tblTempUsageDetail_20' ) start [2024-12-26 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107181', 'tblTempUsageDetail_20' ) end [2024-12-26 13:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:31:21] Production.INFO: ==26365== Releasing lock... [2024-12-26 13:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:31:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:32:05 [end_date_ymd] => 2024-12-26 13:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:32:19] Production.INFO: count ==2159 [2024-12-26 13:32:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:32:05 - End Time 2024-12-26 13:32:05 [2024-12-26 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107186', 'tblTempUsageDetail_20' ) start [2024-12-26 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107186', 'tblTempUsageDetail_20' ) end [2024-12-26 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107186', 'tblTempVendorCDR_20' ) start [2024-12-26 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107186', 'tblTempVendorCDR_20' ) end [2024-12-26 13:32:20] Production.INFO: ProcessCDR(1,14107186,1,1,2) [2024-12-26 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107186', 'tblTempUsageDetail_20' ) start [2024-12-26 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107186', 'tblTempUsageDetail_20' ) end [2024-12-26 13:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:32:25] Production.INFO: ==26443== Releasing lock... [2024-12-26 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:32:25] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:33:05 [end_date_ymd] => 2024-12-26 13:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:33:19] Production.INFO: count ==2133 [2024-12-26 13:33:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:33:05 - End Time 2024-12-26 13:33:05 [2024-12-26 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107191', 'tblTempUsageDetail_20' ) start [2024-12-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107191', 'tblTempUsageDetail_20' ) end [2024-12-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107191', 'tblTempVendorCDR_20' ) start [2024-12-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107191', 'tblTempVendorCDR_20' ) end [2024-12-26 13:33:20] Production.INFO: ProcessCDR(1,14107191,1,1,2) [2024-12-26 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107191', 'tblTempUsageDetail_20' ) start [2024-12-26 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107191', 'tblTempUsageDetail_20' ) end [2024-12-26 13:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:33:23] Production.INFO: ==26516== Releasing lock... [2024-12-26 13:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:33:23] Production.INFO: 44 MB #Memory Used# [2024-12-26 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:34:05 [end_date_ymd] => 2024-12-26 13:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:34:18] Production.INFO: count ==2121 [2024-12-26 13:34:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:34:05 - End Time 2024-12-26 13:34:05 [2024-12-26 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107196', 'tblTempUsageDetail_20' ) start [2024-12-26 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107196', 'tblTempUsageDetail_20' ) end [2024-12-26 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107196', 'tblTempVendorCDR_20' ) start [2024-12-26 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107196', 'tblTempVendorCDR_20' ) end [2024-12-26 13:34:19] Production.INFO: ProcessCDR(1,14107196,1,1,2) [2024-12-26 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107196', 'tblTempUsageDetail_20' ) start [2024-12-26 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107196', 'tblTempUsageDetail_20' ) end [2024-12-26 13:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:34:22] Production.INFO: ==26602== Releasing lock... [2024-12-26 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:34:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:35:04 [end_date_ymd] => 2024-12-26 13:35:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:35:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:35:17] Production.INFO: count ==2100 [2024-12-26 13:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:35:04 - End Time 2024-12-26 13:35:04 [2024-12-26 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107201', 'tblTempUsageDetail_20' ) start [2024-12-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107201', 'tblTempUsageDetail_20' ) end [2024-12-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107201', 'tblTempVendorCDR_20' ) start [2024-12-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107201', 'tblTempVendorCDR_20' ) end [2024-12-26 13:35:18] Production.INFO: ProcessCDR(1,14107201,1,1,2) [2024-12-26 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107201', 'tblTempUsageDetail_20' ) start [2024-12-26 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107201', 'tblTempUsageDetail_20' ) end [2024-12-26 13:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:35:23] Production.INFO: ==26680== Releasing lock... [2024-12-26 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:35:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:36:05 [end_date_ymd] => 2024-12-26 13:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:36:18] Production.INFO: count ==2097 [2024-12-26 13:36:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:36:05 - End Time 2024-12-26 13:36:05 [2024-12-26 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107206', 'tblTempUsageDetail_20' ) start [2024-12-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107206', 'tblTempUsageDetail_20' ) end [2024-12-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107206', 'tblTempVendorCDR_20' ) start [2024-12-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107206', 'tblTempVendorCDR_20' ) end [2024-12-26 13:36:19] Production.INFO: ProcessCDR(1,14107206,1,1,2) [2024-12-26 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107206', 'tblTempUsageDetail_20' ) start [2024-12-26 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107206', 'tblTempUsageDetail_20' ) end [2024-12-26 13:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:36:22] Production.INFO: ==26757== Releasing lock... [2024-12-26 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:36:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:37:04 [end_date_ymd] => 2024-12-26 13:37:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:37:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:37:17] Production.INFO: count ==2091 [2024-12-26 13:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:37:04 - End Time 2024-12-26 13:37:04 [2024-12-26 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107211', 'tblTempUsageDetail_20' ) start [2024-12-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107211', 'tblTempUsageDetail_20' ) end [2024-12-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107211', 'tblTempVendorCDR_20' ) start [2024-12-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107211', 'tblTempVendorCDR_20' ) end [2024-12-26 13:37:18] Production.INFO: ProcessCDR(1,14107211,1,1,2) [2024-12-26 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107211', 'tblTempUsageDetail_20' ) start [2024-12-26 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107211', 'tblTempUsageDetail_20' ) end [2024-12-26 13:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:37:21] Production.INFO: ==26836== Releasing lock... [2024-12-26 13:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:37:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:38:05 [end_date_ymd] => 2024-12-26 13:38:05 [RateCDR] => 1 ) [2024-12-26 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:38:05' and `end` < '2024-12-26 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:38:18] Production.INFO: count ==2095 [2024-12-26 13:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:38:05 - End Time 2024-12-26 13:38:05 [2024-12-26 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107216', 'tblTempUsageDetail_20' ) start [2024-12-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107216', 'tblTempUsageDetail_20' ) end [2024-12-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107216', 'tblTempVendorCDR_20' ) start [2024-12-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107216', 'tblTempVendorCDR_20' ) end [2024-12-26 13:38:19] Production.INFO: ProcessCDR(1,14107216,1,1,2) [2024-12-26 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107216', 'tblTempUsageDetail_20' ) start [2024-12-26 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107216', 'tblTempUsageDetail_20' ) end [2024-12-26 13:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:38:22] Production.INFO: ==26917== Releasing lock... [2024-12-26 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:38:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:39:04 [end_date_ymd] => 2024-12-26 13:39:04 [RateCDR] => 1 ) [2024-12-26 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:39:04' and `end` < '2024-12-26 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:39:17] Production.INFO: count ==2094 [2024-12-26 13:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:39:04 - End Time 2024-12-26 13:39:04 [2024-12-26 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107221', 'tblTempUsageDetail_20' ) start [2024-12-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107221', 'tblTempUsageDetail_20' ) end [2024-12-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107221', 'tblTempVendorCDR_20' ) start [2024-12-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107221', 'tblTempVendorCDR_20' ) end [2024-12-26 13:39:18] Production.INFO: ProcessCDR(1,14107221,1,1,2) [2024-12-26 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107221', 'tblTempUsageDetail_20' ) start [2024-12-26 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107221', 'tblTempUsageDetail_20' ) end [2024-12-26 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:39:22] Production.INFO: ==26993== Releasing lock... [2024-12-26 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:39:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:40:05 [end_date_ymd] => 2024-12-26 13:40:05 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:40:05' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:40:18] Production.INFO: count ==2104 [2024-12-26 13:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:40:05 - End Time 2024-12-26 13:40:05 [2024-12-26 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107227', 'tblTempUsageDetail_20' ) start [2024-12-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107227', 'tblTempUsageDetail_20' ) end [2024-12-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107227', 'tblTempVendorCDR_20' ) start [2024-12-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107227', 'tblTempVendorCDR_20' ) end [2024-12-26 13:40:19] Production.INFO: ProcessCDR(1,14107227,1,1,2) [2024-12-26 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107227', 'tblTempUsageDetail_20' ) start [2024-12-26 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107227', 'tblTempUsageDetail_20' ) end [2024-12-26 13:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:40:24] Production.INFO: ==27073== Releasing lock... [2024-12-26 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:40:24] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:41:04 [end_date_ymd] => 2024-12-26 13:41:04 [RateCDR] => 1 ) [2024-12-26 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:41:04' and `end` < '2024-12-26 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:41:17] Production.INFO: count ==2151 [2024-12-26 13:41:17] Production.ERROR: pbx CDR StartTime 2024-12-26 10:41:04 - End Time 2024-12-26 13:41:04 [2024-12-26 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107232', 'tblTempUsageDetail_20' ) start [2024-12-26 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107232', 'tblTempUsageDetail_20' ) end [2024-12-26 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107232', 'tblTempVendorCDR_20' ) start [2024-12-26 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107232', 'tblTempVendorCDR_20' ) end [2024-12-26 13:41:18] Production.INFO: ProcessCDR(1,14107232,1,1,2) [2024-12-26 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107232', 'tblTempUsageDetail_20' ) start [2024-12-26 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107232', 'tblTempUsageDetail_20' ) end [2024-12-26 13:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:41:21] Production.INFO: ==27154== Releasing lock... [2024-12-26 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:41:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:42:05 [end_date_ymd] => 2024-12-26 13:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:42:17] Production.INFO: count ==2159 [2024-12-26 13:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:42:05 - End Time 2024-12-26 13:42:05 [2024-12-26 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107237', 'tblTempUsageDetail_20' ) start [2024-12-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107237', 'tblTempUsageDetail_20' ) end [2024-12-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107237', 'tblTempVendorCDR_20' ) start [2024-12-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107237', 'tblTempVendorCDR_20' ) end [2024-12-26 13:42:18] Production.INFO: ProcessCDR(1,14107237,1,1,2) [2024-12-26 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107237', 'tblTempUsageDetail_20' ) start [2024-12-26 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107237', 'tblTempUsageDetail_20' ) end [2024-12-26 13:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:42:22] Production.INFO: ==27235== Releasing lock... [2024-12-26 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:42:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:43:05 [end_date_ymd] => 2024-12-26 13:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:43:17] Production.INFO: count ==2166 [2024-12-26 13:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:43:05 - End Time 2024-12-26 13:43:05 [2024-12-26 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107242', 'tblTempUsageDetail_20' ) start [2024-12-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107242', 'tblTempUsageDetail_20' ) end [2024-12-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107242', 'tblTempVendorCDR_20' ) start [2024-12-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107242', 'tblTempVendorCDR_20' ) end [2024-12-26 13:43:18] Production.INFO: ProcessCDR(1,14107242,1,1,2) [2024-12-26 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107242', 'tblTempUsageDetail_20' ) start [2024-12-26 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107242', 'tblTempUsageDetail_20' ) end [2024-12-26 13:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:43:21] Production.INFO: ==27313== Releasing lock... [2024-12-26 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:43:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:44:04 [end_date_ymd] => 2024-12-26 13:44:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:44:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:44:17] Production.INFO: count ==2182 [2024-12-26 13:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:44:04 - End Time 2024-12-26 13:44:04 [2024-12-26 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107247', 'tblTempUsageDetail_20' ) start [2024-12-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107247', 'tblTempUsageDetail_20' ) end [2024-12-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107247', 'tblTempVendorCDR_20' ) start [2024-12-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107247', 'tblTempVendorCDR_20' ) end [2024-12-26 13:44:18] Production.INFO: ProcessCDR(1,14107247,1,1,2) [2024-12-26 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107247', 'tblTempUsageDetail_20' ) start [2024-12-26 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107247', 'tblTempUsageDetail_20' ) end [2024-12-26 13:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:44:23] Production.INFO: ==27396== Releasing lock... [2024-12-26 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:44:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:45:04 [end_date_ymd] => 2024-12-26 13:45:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:45:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:45:17] Production.INFO: count ==2176 [2024-12-26 13:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:45:04 - End Time 2024-12-26 13:45:04 [2024-12-26 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107252', 'tblTempUsageDetail_20' ) start [2024-12-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107252', 'tblTempUsageDetail_20' ) end [2024-12-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107252', 'tblTempVendorCDR_20' ) start [2024-12-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107252', 'tblTempVendorCDR_20' ) end [2024-12-26 13:45:18] Production.INFO: ProcessCDR(1,14107252,1,1,2) [2024-12-26 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107252', 'tblTempUsageDetail_20' ) start [2024-12-26 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107252', 'tblTempUsageDetail_20' ) end [2024-12-26 13:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:45:21] Production.INFO: ==27514== Releasing lock... [2024-12-26 13:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:45:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:46:05 [end_date_ymd] => 2024-12-26 13:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:46:17] Production.INFO: count ==2194 [2024-12-26 13:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:46:05 - End Time 2024-12-26 13:46:05 [2024-12-26 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107257', 'tblTempUsageDetail_20' ) start [2024-12-26 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107257', 'tblTempUsageDetail_20' ) end [2024-12-26 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107257', 'tblTempVendorCDR_20' ) start [2024-12-26 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107257', 'tblTempVendorCDR_20' ) end [2024-12-26 13:46:18] Production.INFO: ProcessCDR(1,14107257,1,1,2) [2024-12-26 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107257', 'tblTempUsageDetail_20' ) start [2024-12-26 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107257', 'tblTempUsageDetail_20' ) end [2024-12-26 13:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:46:23] Production.INFO: ==27592== Releasing lock... [2024-12-26 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:46:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:47:05 [end_date_ymd] => 2024-12-26 13:47:05 [RateCDR] => 1 ) [2024-12-26 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:47:05' and `end` < '2024-12-26 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:47:20] Production.INFO: count ==2192 [2024-12-26 13:47:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:47:05 - End Time 2024-12-26 13:47:05 [2024-12-26 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107262', 'tblTempUsageDetail_20' ) start [2024-12-26 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107262', 'tblTempUsageDetail_20' ) end [2024-12-26 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107262', 'tblTempVendorCDR_20' ) start [2024-12-26 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107262', 'tblTempVendorCDR_20' ) end [2024-12-26 13:47:20] Production.INFO: ProcessCDR(1,14107262,1,1,2) [2024-12-26 13:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107262', 'tblTempUsageDetail_20' ) start [2024-12-26 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107262', 'tblTempUsageDetail_20' ) end [2024-12-26 13:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:47:25] Production.INFO: ==27672== Releasing lock... [2024-12-26 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:47:25] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:48:04 [end_date_ymd] => 2024-12-26 13:48:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:48:04' and `end` < '2024-12-26 13:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:48:17] Production.INFO: count ==2183 [2024-12-26 13:48:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:48:04 - End Time 2024-12-26 13:48:04 [2024-12-26 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107267', 'tblTempUsageDetail_20' ) start [2024-12-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107267', 'tblTempUsageDetail_20' ) end [2024-12-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107267', 'tblTempVendorCDR_20' ) start [2024-12-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107267', 'tblTempVendorCDR_20' ) end [2024-12-26 13:48:18] Production.INFO: ProcessCDR(1,14107267,1,1,2) [2024-12-26 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107267', 'tblTempUsageDetail_20' ) start [2024-12-26 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107267', 'tblTempUsageDetail_20' ) end [2024-12-26 13:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:48:21] Production.INFO: ==27752== Releasing lock... [2024-12-26 13:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:48:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:49:05 [end_date_ymd] => 2024-12-26 13:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:49:20] Production.INFO: count ==2169 [2024-12-26 13:49:21] Production.ERROR: pbx CDR StartTime 2024-12-26 10:49:05 - End Time 2024-12-26 13:49:05 [2024-12-26 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107272', 'tblTempUsageDetail_20' ) start [2024-12-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107272', 'tblTempUsageDetail_20' ) end [2024-12-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107272', 'tblTempVendorCDR_20' ) start [2024-12-26 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107272', 'tblTempVendorCDR_20' ) end [2024-12-26 13:49:21] Production.INFO: ProcessCDR(1,14107272,1,1,2) [2024-12-26 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107272', 'tblTempUsageDetail_20' ) start [2024-12-26 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107272', 'tblTempUsageDetail_20' ) end [2024-12-26 13:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:49:24] Production.INFO: ==27837== Releasing lock... [2024-12-26 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:49:24] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:50:05 [end_date_ymd] => 2024-12-26 13:50:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:50:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:50:18] Production.INFO: count ==2173 [2024-12-26 13:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:50:05 - End Time 2024-12-26 13:50:05 [2024-12-26 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107278', 'tblTempUsageDetail_20' ) start [2024-12-26 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107278', 'tblTempUsageDetail_20' ) end [2024-12-26 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107278', 'tblTempVendorCDR_20' ) start [2024-12-26 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107278', 'tblTempVendorCDR_20' ) end [2024-12-26 13:50:18] Production.INFO: ProcessCDR(1,14107278,1,1,2) [2024-12-26 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107278', 'tblTempUsageDetail_20' ) start [2024-12-26 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107278', 'tblTempUsageDetail_20' ) end [2024-12-26 13:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:50:23] Production.INFO: ==27921== Releasing lock... [2024-12-26 13:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:50:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:51:05 [end_date_ymd] => 2024-12-26 13:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:51:18] Production.INFO: count ==2217 [2024-12-26 13:51:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:51:05 - End Time 2024-12-26 13:51:05 [2024-12-26 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107283', 'tblTempUsageDetail_20' ) start [2024-12-26 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107283', 'tblTempUsageDetail_20' ) end [2024-12-26 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107283', 'tblTempVendorCDR_20' ) start [2024-12-26 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107283', 'tblTempVendorCDR_20' ) end [2024-12-26 13:51:19] Production.INFO: ProcessCDR(1,14107283,1,1,2) [2024-12-26 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107283', 'tblTempUsageDetail_20' ) start [2024-12-26 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107283', 'tblTempUsageDetail_20' ) end [2024-12-26 13:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:51:23] Production.INFO: ==28003== Releasing lock... [2024-12-26 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:51:23] Production.INFO: 45 MB #Memory Used# [2024-12-26 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:52:05 [end_date_ymd] => 2024-12-26 13:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:52:19] Production.INFO: count ==2220 [2024-12-26 13:52:20] Production.ERROR: pbx CDR StartTime 2024-12-26 10:52:05 - End Time 2024-12-26 13:52:05 [2024-12-26 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107288', 'tblTempUsageDetail_20' ) start [2024-12-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107288', 'tblTempUsageDetail_20' ) end [2024-12-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107288', 'tblTempVendorCDR_20' ) start [2024-12-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107288', 'tblTempVendorCDR_20' ) end [2024-12-26 13:52:20] Production.INFO: ProcessCDR(1,14107288,1,1,2) [2024-12-26 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107288', 'tblTempUsageDetail_20' ) start [2024-12-26 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107288', 'tblTempUsageDetail_20' ) end [2024-12-26 13:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:52:24] Production.INFO: ==28079== Releasing lock... [2024-12-26 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:52:24] Production.INFO: 45 MB #Memory Used# [2024-12-26 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:53:05 [end_date_ymd] => 2024-12-26 13:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:53:18] Production.INFO: count ==2225 [2024-12-26 13:53:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:53:05 - End Time 2024-12-26 13:53:05 [2024-12-26 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107293', 'tblTempUsageDetail_20' ) start [2024-12-26 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107293', 'tblTempUsageDetail_20' ) end [2024-12-26 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107293', 'tblTempVendorCDR_20' ) start [2024-12-26 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107293', 'tblTempVendorCDR_20' ) end [2024-12-26 13:53:19] Production.INFO: ProcessCDR(1,14107293,1,1,2) [2024-12-26 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107293', 'tblTempUsageDetail_20' ) start [2024-12-26 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107293', 'tblTempUsageDetail_20' ) end [2024-12-26 13:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:53:22] Production.INFO: ==28159== Releasing lock... [2024-12-26 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:53:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:54:04 [end_date_ymd] => 2024-12-26 13:54:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:54:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:54:17] Production.INFO: count ==2230 [2024-12-26 13:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:54:04 - End Time 2024-12-26 13:54:04 [2024-12-26 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107298', 'tblTempUsageDetail_20' ) start [2024-12-26 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107298', 'tblTempUsageDetail_20' ) end [2024-12-26 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107298', 'tblTempVendorCDR_20' ) start [2024-12-26 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107298', 'tblTempVendorCDR_20' ) end [2024-12-26 13:54:18] Production.INFO: ProcessCDR(1,14107298,1,1,2) [2024-12-26 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107298', 'tblTempUsageDetail_20' ) start [2024-12-26 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107298', 'tblTempUsageDetail_20' ) end [2024-12-26 13:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:54:21] Production.INFO: ==28243== Releasing lock... [2024-12-26 13:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:54:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:55:04 [end_date_ymd] => 2024-12-26 13:55:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:55:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:55:17] Production.INFO: count ==2231 [2024-12-26 13:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:55:04 - End Time 2024-12-26 13:55:04 [2024-12-26 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107303', 'tblTempUsageDetail_20' ) start [2024-12-26 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107303', 'tblTempUsageDetail_20' ) end [2024-12-26 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107303', 'tblTempVendorCDR_20' ) start [2024-12-26 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107303', 'tblTempVendorCDR_20' ) end [2024-12-26 13:55:18] Production.INFO: ProcessCDR(1,14107303,1,1,2) [2024-12-26 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107303', 'tblTempUsageDetail_20' ) start [2024-12-26 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107303', 'tblTempUsageDetail_20' ) end [2024-12-26 13:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:55:22] Production.INFO: ==28318== Releasing lock... [2024-12-26 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:55:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:56:05 [end_date_ymd] => 2024-12-26 13:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 10:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 13:56:18] Production.INFO: count ==2229 [2024-12-26 13:56:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:56:05 - End Time 2024-12-26 13:56:05 [2024-12-26 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107308', 'tblTempUsageDetail_20' ) start [2024-12-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107308', 'tblTempUsageDetail_20' ) end [2024-12-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107308', 'tblTempVendorCDR_20' ) start [2024-12-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107308', 'tblTempVendorCDR_20' ) end [2024-12-26 13:56:19] Production.INFO: ProcessCDR(1,14107308,1,1,2) [2024-12-26 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107308', 'tblTempUsageDetail_20' ) start [2024-12-26 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107308', 'tblTempUsageDetail_20' ) end [2024-12-26 13:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:56:22] Production.INFO: ==28405== Releasing lock... [2024-12-26 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:56:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:57:04 [end_date_ymd] => 2024-12-26 13:57:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:57:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:57:17] Production.INFO: count ==2238 [2024-12-26 13:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 10:57:04 - End Time 2024-12-26 13:57:04 [2024-12-26 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107313', 'tblTempUsageDetail_20' ) start [2024-12-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107313', 'tblTempUsageDetail_20' ) end [2024-12-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107313', 'tblTempVendorCDR_20' ) start [2024-12-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107313', 'tblTempVendorCDR_20' ) end [2024-12-26 13:57:18] Production.INFO: ProcessCDR(1,14107313,1,1,2) [2024-12-26 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107313', 'tblTempUsageDetail_20' ) start [2024-12-26 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107313', 'tblTempUsageDetail_20' ) end [2024-12-26 13:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:57:21] Production.INFO: ==28486== Releasing lock... [2024-12-26 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:57:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:58:05 [end_date_ymd] => 2024-12-26 13:58:05 [RateCDR] => 1 ) [2024-12-26 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 10:58:05' and `end` < '2024-12-26 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 13:58:18] Production.INFO: count ==2219 [2024-12-26 13:58:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:58:05 - End Time 2024-12-26 13:58:05 [2024-12-26 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107318', 'tblTempUsageDetail_20' ) start [2024-12-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107318', 'tblTempUsageDetail_20' ) end [2024-12-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107318', 'tblTempVendorCDR_20' ) start [2024-12-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107318', 'tblTempVendorCDR_20' ) end [2024-12-26 13:58:19] Production.INFO: ProcessCDR(1,14107318,1,1,2) [2024-12-26 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107318', 'tblTempUsageDetail_20' ) start [2024-12-26 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107318', 'tblTempUsageDetail_20' ) end [2024-12-26 13:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:58:22] Production.INFO: ==28563== Releasing lock... [2024-12-26 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:58:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 10:59:04 [end_date_ymd] => 2024-12-26 13:59:04 [RateCDR] => 1 ) [2024-12-26 13: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` >= '2024-12-26 10:59:04' and `end` < '2024-12-26 13: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 ,'') [2024-12-26 13:59:18] Production.INFO: count ==2221 [2024-12-26 13:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 10:59:04 - End Time 2024-12-26 13:59:04 [2024-12-26 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107323', 'tblTempUsageDetail_20' ) start [2024-12-26 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107323', 'tblTempUsageDetail_20' ) end [2024-12-26 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107323', 'tblTempVendorCDR_20' ) start [2024-12-26 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107323', 'tblTempVendorCDR_20' ) end [2024-12-26 13:59:19] Production.INFO: ProcessCDR(1,14107323,1,1,2) [2024-12-26 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107323', 'tblTempUsageDetail_20' ) start [2024-12-26 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107323', 'tblTempUsageDetail_20' ) end [2024-12-26 13:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 13:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 13:59:22] Production.INFO: ==28644== Releasing lock... [2024-12-26 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 13:59:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:00:06 [end_date_ymd] => 2024-12-26 14:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:00:18] Production.INFO: count ==2221 [2024-12-26 14:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:00:06 - End Time 2024-12-26 14:00:06 [2024-12-26 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107329', 'tblTempUsageDetail_20' ) start [2024-12-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107329', 'tblTempUsageDetail_20' ) end [2024-12-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107329', 'tblTempVendorCDR_20' ) start [2024-12-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107329', 'tblTempVendorCDR_20' ) end [2024-12-26 14:00:19] Production.INFO: ProcessCDR(1,14107329,1,1,2) [2024-12-26 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107329', 'tblTempUsageDetail_20' ) start [2024-12-26 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107329', 'tblTempUsageDetail_20' ) end [2024-12-26 14:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:00:22] Production.INFO: ==28732== Releasing lock... [2024-12-26 14:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:00:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:01:05 [end_date_ymd] => 2024-12-26 14:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:01:18] Production.INFO: count ==2214 [2024-12-26 14:01:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:01:05 - End Time 2024-12-26 14:01:05 [2024-12-26 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107334', 'tblTempUsageDetail_20' ) start [2024-12-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107334', 'tblTempUsageDetail_20' ) end [2024-12-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107334', 'tblTempVendorCDR_20' ) start [2024-12-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107334', 'tblTempVendorCDR_20' ) end [2024-12-26 14:01:19] Production.INFO: ProcessCDR(1,14107334,1,1,2) [2024-12-26 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107334', 'tblTempUsageDetail_20' ) start [2024-12-26 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107334', 'tblTempUsageDetail_20' ) end [2024-12-26 14:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:01:22] Production.INFO: ==28866== Releasing lock... [2024-12-26 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:01:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:02:05 [end_date_ymd] => 2024-12-26 14:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:02:19] Production.INFO: count ==2213 [2024-12-26 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:02:05 - End Time 2024-12-26 14:02:05 [2024-12-26 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107339', 'tblTempUsageDetail_20' ) start [2024-12-26 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107339', 'tblTempUsageDetail_20' ) end [2024-12-26 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107339', 'tblTempVendorCDR_20' ) start [2024-12-26 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107339', 'tblTempVendorCDR_20' ) end [2024-12-26 14:02:20] Production.INFO: ProcessCDR(1,14107339,1,1,2) [2024-12-26 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107339', 'tblTempUsageDetail_20' ) start [2024-12-26 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107339', 'tblTempUsageDetail_20' ) end [2024-12-26 14:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:02:23] Production.INFO: ==28950== Releasing lock... [2024-12-26 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:02:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:03:05 [end_date_ymd] => 2024-12-26 14:03:05 [RateCDR] => 1 ) [2024-12-26 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:03:05' and `end` < '2024-12-26 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:03:19] Production.INFO: count ==2212 [2024-12-26 14:03:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:03:05 - End Time 2024-12-26 14:03:05 [2024-12-26 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107344', 'tblTempUsageDetail_20' ) start [2024-12-26 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107344', 'tblTempUsageDetail_20' ) end [2024-12-26 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107344', 'tblTempVendorCDR_20' ) start [2024-12-26 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107344', 'tblTempVendorCDR_20' ) end [2024-12-26 14:03:20] Production.INFO: ProcessCDR(1,14107344,1,1,2) [2024-12-26 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107344', 'tblTempUsageDetail_20' ) start [2024-12-26 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107344', 'tblTempUsageDetail_20' ) end [2024-12-26 14:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:03:23] Production.INFO: ==29025== Releasing lock... [2024-12-26 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:03:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:04:05 [end_date_ymd] => 2024-12-26 14:04:05 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:04:05' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:04:18] Production.INFO: count ==2212 [2024-12-26 14:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:04:05 - End Time 2024-12-26 14:04:05 [2024-12-26 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107349', 'tblTempUsageDetail_20' ) start [2024-12-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107349', 'tblTempUsageDetail_20' ) end [2024-12-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107349', 'tblTempVendorCDR_20' ) start [2024-12-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107349', 'tblTempVendorCDR_20' ) end [2024-12-26 14:04:18] Production.INFO: ProcessCDR(1,14107349,1,1,2) [2024-12-26 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107349', 'tblTempUsageDetail_20' ) start [2024-12-26 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107349', 'tblTempUsageDetail_20' ) end [2024-12-26 14:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:04:21] Production.INFO: ==29110== Releasing lock... [2024-12-26 14:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:04:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:05:04 [end_date_ymd] => 2024-12-26 14:05:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:05:04' and `end` < '2024-12-26 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:05:18] Production.INFO: count ==2212 [2024-12-26 14:05:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:05:04 - End Time 2024-12-26 14:05:04 [2024-12-26 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107354', 'tblTempUsageDetail_20' ) start [2024-12-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107354', 'tblTempUsageDetail_20' ) end [2024-12-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107354', 'tblTempVendorCDR_20' ) start [2024-12-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107354', 'tblTempVendorCDR_20' ) end [2024-12-26 14:05:19] Production.INFO: ProcessCDR(1,14107354,1,1,2) [2024-12-26 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107354', 'tblTempUsageDetail_20' ) start [2024-12-26 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107354', 'tblTempUsageDetail_20' ) end [2024-12-26 14:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:05:22] Production.INFO: ==29194== Releasing lock... [2024-12-26 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:05:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:06:05 [end_date_ymd] => 2024-12-26 14:06:05 [RateCDR] => 1 ) [2024-12-26 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:06:18] Production.INFO: count ==2209 [2024-12-26 14:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:06:05 - End Time 2024-12-26 14:06:05 [2024-12-26 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107359', 'tblTempUsageDetail_20' ) start [2024-12-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107359', 'tblTempUsageDetail_20' ) end [2024-12-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107359', 'tblTempVendorCDR_20' ) start [2024-12-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107359', 'tblTempVendorCDR_20' ) end [2024-12-26 14:06:19] Production.INFO: ProcessCDR(1,14107359,1,1,2) [2024-12-26 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107359', 'tblTempUsageDetail_20' ) start [2024-12-26 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107359', 'tblTempUsageDetail_20' ) end [2024-12-26 14:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:06:22] Production.INFO: ==29269== Releasing lock... [2024-12-26 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:06:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:07:05 [end_date_ymd] => 2024-12-26 14:07:05 [RateCDR] => 1 ) [2024-12-26 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:07:05' and `end` < '2024-12-26 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:07:18] Production.INFO: count ==2208 [2024-12-26 14:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:07:05 - End Time 2024-12-26 14:07:05 [2024-12-26 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107364', 'tblTempUsageDetail_20' ) start [2024-12-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107364', 'tblTempUsageDetail_20' ) end [2024-12-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107364', 'tblTempVendorCDR_20' ) start [2024-12-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107364', 'tblTempVendorCDR_20' ) end [2024-12-26 14:07:19] Production.INFO: ProcessCDR(1,14107364,1,1,2) [2024-12-26 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107364', 'tblTempUsageDetail_20' ) start [2024-12-26 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107364', 'tblTempUsageDetail_20' ) end [2024-12-26 14:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:07:22] Production.INFO: ==29348== Releasing lock... [2024-12-26 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:07:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:08:05 [end_date_ymd] => 2024-12-26 14:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:08:19] Production.INFO: count ==2218 [2024-12-26 14:08:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:08:05 - End Time 2024-12-26 14:08:05 [2024-12-26 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107369', 'tblTempUsageDetail_20' ) start [2024-12-26 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107369', 'tblTempUsageDetail_20' ) end [2024-12-26 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107369', 'tblTempVendorCDR_20' ) start [2024-12-26 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107369', 'tblTempVendorCDR_20' ) end [2024-12-26 14:08:20] Production.INFO: ProcessCDR(1,14107369,1,1,2) [2024-12-26 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107369', 'tblTempUsageDetail_20' ) start [2024-12-26 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107369', 'tblTempUsageDetail_20' ) end [2024-12-26 14:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:08:23] Production.INFO: ==29428== Releasing lock... [2024-12-26 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:08:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:09:05 [end_date_ymd] => 2024-12-26 14:09:05 [RateCDR] => 1 ) [2024-12-26 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:09:05' and `end` < '2024-12-26 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:09:18] Production.INFO: count ==2219 [2024-12-26 14:09:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:09:05 - End Time 2024-12-26 14:09:05 [2024-12-26 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107374', 'tblTempUsageDetail_20' ) start [2024-12-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107374', 'tblTempUsageDetail_20' ) end [2024-12-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107374', 'tblTempVendorCDR_20' ) start [2024-12-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107374', 'tblTempVendorCDR_20' ) end [2024-12-26 14:09:19] Production.INFO: ProcessCDR(1,14107374,1,1,2) [2024-12-26 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107374', 'tblTempUsageDetail_20' ) start [2024-12-26 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107374', 'tblTempUsageDetail_20' ) end [2024-12-26 14:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:09:24] Production.INFO: ==29509== Releasing lock... [2024-12-26 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:09:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:10:06 [end_date_ymd] => 2024-12-26 14:10:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:10:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:10:18] Production.INFO: count ==2186 [2024-12-26 14:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:10:06 - End Time 2024-12-26 14:10:06 [2024-12-26 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107380', 'tblTempUsageDetail_20' ) start [2024-12-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107380', 'tblTempUsageDetail_20' ) end [2024-12-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107380', 'tblTempVendorCDR_20' ) start [2024-12-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107380', 'tblTempVendorCDR_20' ) end [2024-12-26 14:10:19] Production.INFO: ProcessCDR(1,14107380,1,1,2) [2024-12-26 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107380', 'tblTempUsageDetail_20' ) start [2024-12-26 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107380', 'tblTempUsageDetail_20' ) end [2024-12-26 14:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:10:23] Production.INFO: ==29594== Releasing lock... [2024-12-26 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:10:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:11:05 [end_date_ymd] => 2024-12-26 14:11:05 [RateCDR] => 1 ) [2024-12-26 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:11:05' and `end` < '2024-12-26 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:11:19] Production.INFO: count ==2176 [2024-12-26 14:11:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:11:05 - End Time 2024-12-26 14:11:05 [2024-12-26 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107385', 'tblTempUsageDetail_20' ) start [2024-12-26 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107385', 'tblTempUsageDetail_20' ) end [2024-12-26 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107385', 'tblTempVendorCDR_20' ) start [2024-12-26 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107385', 'tblTempVendorCDR_20' ) end [2024-12-26 14:11:20] Production.INFO: ProcessCDR(1,14107385,1,1,2) [2024-12-26 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107385', 'tblTempUsageDetail_20' ) start [2024-12-26 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107385', 'tblTempUsageDetail_20' ) end [2024-12-26 14:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:11:24] Production.INFO: ==29676== Releasing lock... [2024-12-26 14:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:11:24] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:12:05 [end_date_ymd] => 2024-12-26 14:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:12:17] Production.INFO: count ==2176 [2024-12-26 14:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:12:05 - End Time 2024-12-26 14:12:05 [2024-12-26 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107390', 'tblTempUsageDetail_20' ) start [2024-12-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107390', 'tblTempUsageDetail_20' ) end [2024-12-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107390', 'tblTempVendorCDR_20' ) start [2024-12-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107390', 'tblTempVendorCDR_20' ) end [2024-12-26 14:12:18] Production.INFO: ProcessCDR(1,14107390,1,1,2) [2024-12-26 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107390', 'tblTempUsageDetail_20' ) start [2024-12-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107390', 'tblTempUsageDetail_20' ) end [2024-12-26 14:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:12:23] Production.INFO: ==29752== Releasing lock... [2024-12-26 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:12:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:13:05 [end_date_ymd] => 2024-12-26 14:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:13:18] Production.INFO: count ==2160 [2024-12-26 14:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:13:05 - End Time 2024-12-26 14:13:05 [2024-12-26 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107395', 'tblTempUsageDetail_20' ) start [2024-12-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107395', 'tblTempUsageDetail_20' ) end [2024-12-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107395', 'tblTempVendorCDR_20' ) start [2024-12-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107395', 'tblTempVendorCDR_20' ) end [2024-12-26 14:13:19] Production.INFO: ProcessCDR(1,14107395,1,1,2) [2024-12-26 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107395', 'tblTempUsageDetail_20' ) start [2024-12-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107395', 'tblTempUsageDetail_20' ) end [2024-12-26 14:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:13:22] Production.INFO: ==29830== Releasing lock... [2024-12-26 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:13:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:14:04 [end_date_ymd] => 2024-12-26 14:14:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:14:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:14:17] Production.INFO: count ==2157 [2024-12-26 14:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:14:04 - End Time 2024-12-26 14:14:04 [2024-12-26 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107400', 'tblTempUsageDetail_20' ) start [2024-12-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107400', 'tblTempUsageDetail_20' ) end [2024-12-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107400', 'tblTempVendorCDR_20' ) start [2024-12-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107400', 'tblTempVendorCDR_20' ) end [2024-12-26 14:14:18] Production.INFO: ProcessCDR(1,14107400,1,1,2) [2024-12-26 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107400', 'tblTempUsageDetail_20' ) start [2024-12-26 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107400', 'tblTempUsageDetail_20' ) end [2024-12-26 14:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:14:21] Production.INFO: ==29907== Releasing lock... [2024-12-26 14:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:14:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:15:05 [end_date_ymd] => 2024-12-26 14:15:05 [RateCDR] => 1 ) [2024-12-26 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:15:05' and `end` < '2024-12-26 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:15:18] Production.INFO: count ==2136 [2024-12-26 14:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:15:05 - End Time 2024-12-26 14:15:05 [2024-12-26 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107405', 'tblTempUsageDetail_20' ) start [2024-12-26 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107405', 'tblTempUsageDetail_20' ) end [2024-12-26 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107405', 'tblTempVendorCDR_20' ) start [2024-12-26 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107405', 'tblTempVendorCDR_20' ) end [2024-12-26 14:15:18] Production.INFO: ProcessCDR(1,14107405,1,1,2) [2024-12-26 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107405', 'tblTempUsageDetail_20' ) start [2024-12-26 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107405', 'tblTempUsageDetail_20' ) end [2024-12-26 14:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:15:21] Production.INFO: ==29987== Releasing lock... [2024-12-26 14:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:15:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:16:05 [end_date_ymd] => 2024-12-26 14:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:16:17] Production.INFO: count ==2136 [2024-12-26 14:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:16:05 - End Time 2024-12-26 14:16:05 [2024-12-26 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107410', 'tblTempUsageDetail_20' ) start [2024-12-26 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107410', 'tblTempUsageDetail_20' ) end [2024-12-26 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107410', 'tblTempVendorCDR_20' ) start [2024-12-26 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107410', 'tblTempVendorCDR_20' ) end [2024-12-26 14:16:18] Production.INFO: ProcessCDR(1,14107410,1,1,2) [2024-12-26 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107410', 'tblTempUsageDetail_20' ) start [2024-12-26 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107410', 'tblTempUsageDetail_20' ) end [2024-12-26 14:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:16:22] Production.INFO: ==30106== Releasing lock... [2024-12-26 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:16:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:17:05 [end_date_ymd] => 2024-12-26 14:17:05 [RateCDR] => 1 ) [2024-12-26 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:17:05' and `end` < '2024-12-26 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:17:18] Production.INFO: count ==2139 [2024-12-26 14:17:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:17:05 - End Time 2024-12-26 14:17:05 [2024-12-26 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107415', 'tblTempUsageDetail_20' ) start [2024-12-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107415', 'tblTempUsageDetail_20' ) end [2024-12-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107415', 'tblTempVendorCDR_20' ) start [2024-12-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107415', 'tblTempVendorCDR_20' ) end [2024-12-26 14:17:19] Production.INFO: ProcessCDR(1,14107415,1,1,2) [2024-12-26 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107415', 'tblTempUsageDetail_20' ) start [2024-12-26 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107415', 'tblTempUsageDetail_20' ) end [2024-12-26 14:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:17:23] Production.INFO: ==30180== Releasing lock... [2024-12-26 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:17:23] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:18:05 [end_date_ymd] => 2024-12-26 14:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:18:18] Production.INFO: count ==2138 [2024-12-26 14:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:18:05 - End Time 2024-12-26 14:18:05 [2024-12-26 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107420', 'tblTempUsageDetail_20' ) start [2024-12-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107420', 'tblTempUsageDetail_20' ) end [2024-12-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107420', 'tblTempVendorCDR_20' ) start [2024-12-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107420', 'tblTempVendorCDR_20' ) end [2024-12-26 14:18:18] Production.INFO: ProcessCDR(1,14107420,1,1,2) [2024-12-26 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107420', 'tblTempUsageDetail_20' ) start [2024-12-26 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107420', 'tblTempUsageDetail_20' ) end [2024-12-26 14:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:18:21] Production.INFO: ==30259== Releasing lock... [2024-12-26 14:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:18:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:19:05 [end_date_ymd] => 2024-12-26 14:19:05 [RateCDR] => 1 ) [2024-12-26 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:19:05' and `end` < '2024-12-26 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:19:17] Production.INFO: count ==2140 [2024-12-26 14:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:19:05 - End Time 2024-12-26 14:19:05 [2024-12-26 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107425', 'tblTempUsageDetail_20' ) start [2024-12-26 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107425', 'tblTempUsageDetail_20' ) end [2024-12-26 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107425', 'tblTempVendorCDR_20' ) start [2024-12-26 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107425', 'tblTempVendorCDR_20' ) end [2024-12-26 14:19:18] Production.INFO: ProcessCDR(1,14107425,1,1,2) [2024-12-26 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107425', 'tblTempUsageDetail_20' ) start [2024-12-26 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107425', 'tblTempUsageDetail_20' ) end [2024-12-26 14:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:19:22] Production.INFO: ==30334== Releasing lock... [2024-12-26 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:19:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:20:05 [end_date_ymd] => 2024-12-26 14:20:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:20:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:20:17] Production.INFO: count ==2137 [2024-12-26 14:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:20:05 - End Time 2024-12-26 14:20:05 [2024-12-26 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107429', 'tblTempUsageDetail_20' ) start [2024-12-26 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107429', 'tblTempUsageDetail_20' ) end [2024-12-26 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107429', 'tblTempVendorCDR_20' ) start [2024-12-26 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107429', 'tblTempVendorCDR_20' ) end [2024-12-26 14:20:18] Production.INFO: ProcessCDR(1,14107429,1,1,2) [2024-12-26 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107429', 'tblTempUsageDetail_20' ) start [2024-12-26 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107429', 'tblTempUsageDetail_20' ) end [2024-12-26 14:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:20:21] Production.INFO: ==30413== Releasing lock... [2024-12-26 14:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:20:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:21:05 [end_date_ymd] => 2024-12-26 14:21:05 [RateCDR] => 1 ) [2024-12-26 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:21:05' and `end` < '2024-12-26 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:21:17] Production.INFO: count ==2127 [2024-12-26 14:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:21:05 - End Time 2024-12-26 14:21:05 [2024-12-26 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107436', 'tblTempUsageDetail_20' ) start [2024-12-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107436', 'tblTempUsageDetail_20' ) end [2024-12-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107436', 'tblTempVendorCDR_20' ) start [2024-12-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107436', 'tblTempVendorCDR_20' ) end [2024-12-26 14:21:18] Production.INFO: ProcessCDR(1,14107436,1,1,2) [2024-12-26 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107436', 'tblTempUsageDetail_20' ) start [2024-12-26 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107436', 'tblTempUsageDetail_20' ) end [2024-12-26 14:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:21:21] Production.INFO: ==30495== Releasing lock... [2024-12-26 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:21:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:22:05 [end_date_ymd] => 2024-12-26 14:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:22:17] Production.INFO: count ==2124 [2024-12-26 14:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:22:05 - End Time 2024-12-26 14:22:05 [2024-12-26 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107441', 'tblTempUsageDetail_20' ) start [2024-12-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107441', 'tblTempUsageDetail_20' ) end [2024-12-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107441', 'tblTempVendorCDR_20' ) start [2024-12-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107441', 'tblTempVendorCDR_20' ) end [2024-12-26 14:22:18] Production.INFO: ProcessCDR(1,14107441,1,1,2) [2024-12-26 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107441', 'tblTempUsageDetail_20' ) start [2024-12-26 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107441', 'tblTempUsageDetail_20' ) end [2024-12-26 14:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:22:21] Production.INFO: ==30574== Releasing lock... [2024-12-26 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:22:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:23:05 [end_date_ymd] => 2024-12-26 14:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:23:19] Production.INFO: count ==2125 [2024-12-26 14:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:23:05 - End Time 2024-12-26 14:23:05 [2024-12-26 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107446', 'tblTempUsageDetail_20' ) start [2024-12-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107446', 'tblTempUsageDetail_20' ) end [2024-12-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107446', 'tblTempVendorCDR_20' ) start [2024-12-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107446', 'tblTempVendorCDR_20' ) end [2024-12-26 14:23:19] Production.INFO: ProcessCDR(1,14107446,1,1,2) [2024-12-26 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107446', 'tblTempUsageDetail_20' ) start [2024-12-26 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107446', 'tblTempUsageDetail_20' ) end [2024-12-26 14:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:23:24] Production.INFO: ==30649== Releasing lock... [2024-12-26 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:23:24] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:24:04 [end_date_ymd] => 2024-12-26 14:24:04 [RateCDR] => 1 ) [2024-12-26 14:24: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` >= '2024-12-26 11:24:04' and `end` < '2024-12-26 14:24: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 ,'') [2024-12-26 14:24:17] Production.INFO: count ==2123 [2024-12-26 14:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:24:04 - End Time 2024-12-26 14:24:04 [2024-12-26 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107451', 'tblTempUsageDetail_20' ) start [2024-12-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107451', 'tblTempUsageDetail_20' ) end [2024-12-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107451', 'tblTempVendorCDR_20' ) start [2024-12-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107451', 'tblTempVendorCDR_20' ) end [2024-12-26 14:24:18] Production.INFO: ProcessCDR(1,14107451,1,1,2) [2024-12-26 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107451', 'tblTempUsageDetail_20' ) start [2024-12-26 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107451', 'tblTempUsageDetail_20' ) end [2024-12-26 14:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:24:21] Production.INFO: ==30728== Releasing lock... [2024-12-26 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:24:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:25:05 [end_date_ymd] => 2024-12-26 14:25:05 [RateCDR] => 1 ) [2024-12-26 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:25:05' and `end` < '2024-12-26 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:25:17] Production.INFO: count ==2125 [2024-12-26 14:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:25:05 - End Time 2024-12-26 14:25:05 [2024-12-26 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107456', 'tblTempUsageDetail_20' ) start [2024-12-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107456', 'tblTempUsageDetail_20' ) end [2024-12-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107456', 'tblTempVendorCDR_20' ) start [2024-12-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107456', 'tblTempVendorCDR_20' ) end [2024-12-26 14:25:18] Production.INFO: ProcessCDR(1,14107456,1,1,2) [2024-12-26 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107456', 'tblTempUsageDetail_20' ) start [2024-12-26 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107456', 'tblTempUsageDetail_20' ) end [2024-12-26 14:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:25:21] Production.INFO: ==30805== Releasing lock... [2024-12-26 14:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:25:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:26:05 [end_date_ymd] => 2024-12-26 14:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:26:19] Production.INFO: count ==2108 [2024-12-26 14:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:26:05 - End Time 2024-12-26 14:26:05 [2024-12-26 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107461', 'tblTempUsageDetail_20' ) start [2024-12-26 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107461', 'tblTempUsageDetail_20' ) end [2024-12-26 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107461', 'tblTempVendorCDR_20' ) start [2024-12-26 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107461', 'tblTempVendorCDR_20' ) end [2024-12-26 14:26:19] Production.INFO: ProcessCDR(1,14107461,1,1,2) [2024-12-26 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107461', 'tblTempUsageDetail_20' ) start [2024-12-26 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107461', 'tblTempUsageDetail_20' ) end [2024-12-26 14:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:26:22] Production.INFO: ==30881== Releasing lock... [2024-12-26 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:26:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:27:05 [end_date_ymd] => 2024-12-26 14:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:27:18] Production.INFO: count ==2108 [2024-12-26 14:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:27:05 - End Time 2024-12-26 14:27:05 [2024-12-26 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107466', 'tblTempUsageDetail_20' ) start [2024-12-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107466', 'tblTempUsageDetail_20' ) end [2024-12-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107466', 'tblTempVendorCDR_20' ) start [2024-12-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107466', 'tblTempVendorCDR_20' ) end [2024-12-26 14:27:18] Production.INFO: ProcessCDR(1,14107466,1,1,2) [2024-12-26 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107466', 'tblTempUsageDetail_20' ) start [2024-12-26 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107466', 'tblTempUsageDetail_20' ) end [2024-12-26 14:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:27:23] Production.INFO: ==30965== Releasing lock... [2024-12-26 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:27:23] Production.INFO: 44 MB #Memory Used# [2024-12-26 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:28:05 [end_date_ymd] => 2024-12-26 14:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:28:19] Production.INFO: count ==2101 [2024-12-26 14:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:28:05 - End Time 2024-12-26 14:28:05 [2024-12-26 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107471', 'tblTempUsageDetail_20' ) start [2024-12-26 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107471', 'tblTempUsageDetail_20' ) end [2024-12-26 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107471', 'tblTempVendorCDR_20' ) start [2024-12-26 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107471', 'tblTempVendorCDR_20' ) end [2024-12-26 14:28:20] Production.INFO: ProcessCDR(1,14107471,1,1,2) [2024-12-26 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107471', 'tblTempUsageDetail_20' ) start [2024-12-26 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107471', 'tblTempUsageDetail_20' ) end [2024-12-26 14:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:28:24] Production.INFO: ==31044== Releasing lock... [2024-12-26 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:28:24] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:29:04 [end_date_ymd] => 2024-12-26 14:29:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:29:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:29:19] Production.INFO: count ==2098 [2024-12-26 14:29:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:29:04 - End Time 2024-12-26 14:29:04 [2024-12-26 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107476', 'tblTempUsageDetail_20' ) start [2024-12-26 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107476', 'tblTempUsageDetail_20' ) end [2024-12-26 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107476', 'tblTempVendorCDR_20' ) start [2024-12-26 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107476', 'tblTempVendorCDR_20' ) end [2024-12-26 14:29:20] Production.INFO: ProcessCDR(1,14107476,1,1,2) [2024-12-26 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107476', 'tblTempUsageDetail_20' ) start [2024-12-26 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107476', 'tblTempUsageDetail_20' ) end [2024-12-26 14:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:29:23] Production.INFO: ==31124== Releasing lock... [2024-12-26 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:29:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:30:06 [end_date_ymd] => 2024-12-26 14:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:30:19] Production.INFO: count ==2093 [2024-12-26 14:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:30:06 - End Time 2024-12-26 14:30:06 [2024-12-26 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107482', 'tblTempUsageDetail_20' ) start [2024-12-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107482', 'tblTempUsageDetail_20' ) end [2024-12-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107482', 'tblTempVendorCDR_20' ) start [2024-12-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107482', 'tblTempVendorCDR_20' ) end [2024-12-26 14:30:19] Production.INFO: ProcessCDR(1,14107482,1,1,2) [2024-12-26 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107482', 'tblTempUsageDetail_20' ) start [2024-12-26 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107482', 'tblTempUsageDetail_20' ) end [2024-12-26 14:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:30:23] Production.INFO: ==31212== Releasing lock... [2024-12-26 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:30:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:31:05 [end_date_ymd] => 2024-12-26 14:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:31:17] Production.INFO: count ==2078 [2024-12-26 14:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:31:05 - End Time 2024-12-26 14:31:05 [2024-12-26 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107487', 'tblTempUsageDetail_20' ) start [2024-12-26 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107487', 'tblTempUsageDetail_20' ) end [2024-12-26 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107487', 'tblTempVendorCDR_20' ) start [2024-12-26 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107487', 'tblTempVendorCDR_20' ) end [2024-12-26 14:31:18] Production.INFO: ProcessCDR(1,14107487,1,1,2) [2024-12-26 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107487', 'tblTempUsageDetail_20' ) start [2024-12-26 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107487', 'tblTempUsageDetail_20' ) end [2024-12-26 14:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:31:21] Production.INFO: ==31304== Releasing lock... [2024-12-26 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:31:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:32:05 [end_date_ymd] => 2024-12-26 14:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:32:17] Production.INFO: count ==2072 [2024-12-26 14:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:32:05 - End Time 2024-12-26 14:32:05 [2024-12-26 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107492', 'tblTempUsageDetail_20' ) start [2024-12-26 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107492', 'tblTempUsageDetail_20' ) end [2024-12-26 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107492', 'tblTempVendorCDR_20' ) start [2024-12-26 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107492', 'tblTempVendorCDR_20' ) end [2024-12-26 14:32:18] Production.INFO: ProcessCDR(1,14107492,1,1,2) [2024-12-26 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107492', 'tblTempUsageDetail_20' ) start [2024-12-26 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107492', 'tblTempUsageDetail_20' ) end [2024-12-26 14:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:32:21] Production.INFO: ==31431== Releasing lock... [2024-12-26 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:32:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:33:04 [end_date_ymd] => 2024-12-26 14:33:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:33:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:33:17] Production.INFO: count ==2068 [2024-12-26 14:33:17] Production.ERROR: pbx CDR StartTime 2024-12-26 11:33:04 - End Time 2024-12-26 14:33:04 [2024-12-26 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107497', 'tblTempUsageDetail_20' ) start [2024-12-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107497', 'tblTempUsageDetail_20' ) end [2024-12-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107497', 'tblTempVendorCDR_20' ) start [2024-12-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107497', 'tblTempVendorCDR_20' ) end [2024-12-26 14:33:18] Production.INFO: ProcessCDR(1,14107497,1,1,2) [2024-12-26 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107497', 'tblTempUsageDetail_20' ) start [2024-12-26 14:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107497', 'tblTempUsageDetail_20' ) end [2024-12-26 14:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:33:20] Production.INFO: ==31515== Releasing lock... [2024-12-26 14:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:33:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:34:05 [end_date_ymd] => 2024-12-26 14:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:34:17] Production.INFO: count ==2054 [2024-12-26 14:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:34:05 - End Time 2024-12-26 14:34:05 [2024-12-26 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107502', 'tblTempUsageDetail_20' ) start [2024-12-26 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107502', 'tblTempUsageDetail_20' ) end [2024-12-26 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107502', 'tblTempVendorCDR_20' ) start [2024-12-26 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107502', 'tblTempVendorCDR_20' ) end [2024-12-26 14:34:18] Production.INFO: ProcessCDR(1,14107502,1,1,2) [2024-12-26 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107502', 'tblTempUsageDetail_20' ) start [2024-12-26 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107502', 'tblTempUsageDetail_20' ) end [2024-12-26 14:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:34:21] Production.INFO: ==31612== Releasing lock... [2024-12-26 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:34:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:35:04 [end_date_ymd] => 2024-12-26 14:35:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:35:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:35:18] Production.INFO: count ==2047 [2024-12-26 14:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:35:04 - End Time 2024-12-26 14:35:04 [2024-12-26 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107507', 'tblTempUsageDetail_20' ) start [2024-12-26 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107507', 'tblTempUsageDetail_20' ) end [2024-12-26 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107507', 'tblTempVendorCDR_20' ) start [2024-12-26 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107507', 'tblTempVendorCDR_20' ) end [2024-12-26 14:35:18] Production.INFO: ProcessCDR(1,14107507,1,1,2) [2024-12-26 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107507', 'tblTempUsageDetail_20' ) start [2024-12-26 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107507', 'tblTempUsageDetail_20' ) end [2024-12-26 14:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:35:22] Production.INFO: ==31709== Releasing lock... [2024-12-26 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:35:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:36:04 [end_date_ymd] => 2024-12-26 14:36:04 [RateCDR] => 1 ) [2024-12-26 14:36: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` >= '2024-12-26 11:36:04' and `end` < '2024-12-26 14:36: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 ,'') [2024-12-26 14:36:17] Production.INFO: count ==2037 [2024-12-26 14:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:36:04 - End Time 2024-12-26 14:36:04 [2024-12-26 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107512', 'tblTempUsageDetail_20' ) start [2024-12-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107512', 'tblTempUsageDetail_20' ) end [2024-12-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107512', 'tblTempVendorCDR_20' ) start [2024-12-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107512', 'tblTempVendorCDR_20' ) end [2024-12-26 14:36:18] Production.INFO: ProcessCDR(1,14107512,1,1,2) [2024-12-26 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107512', 'tblTempUsageDetail_20' ) start [2024-12-26 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107512', 'tblTempUsageDetail_20' ) end [2024-12-26 14:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:36:22] Production.INFO: ==31798== Releasing lock... [2024-12-26 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:36:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:37:05 [end_date_ymd] => 2024-12-26 14:37:05 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:37:05' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:37:19] Production.INFO: count ==2048 [2024-12-26 14:37:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:37:05 - End Time 2024-12-26 14:37:05 [2024-12-26 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107517', 'tblTempUsageDetail_20' ) start [2024-12-26 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107517', 'tblTempUsageDetail_20' ) end [2024-12-26 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107517', 'tblTempVendorCDR_20' ) start [2024-12-26 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107517', 'tblTempVendorCDR_20' ) end [2024-12-26 14:37:20] Production.INFO: ProcessCDR(1,14107517,1,1,2) [2024-12-26 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107517', 'tblTempUsageDetail_20' ) start [2024-12-26 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107517', 'tblTempUsageDetail_20' ) end [2024-12-26 14:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:37:23] Production.INFO: ==31889== Releasing lock... [2024-12-26 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:37:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:38:05 [end_date_ymd] => 2024-12-26 14:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:38:17] Production.INFO: count ==2029 [2024-12-26 14:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:38:05 - End Time 2024-12-26 14:38:05 [2024-12-26 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107522', 'tblTempUsageDetail_20' ) start [2024-12-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107522', 'tblTempUsageDetail_20' ) end [2024-12-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107522', 'tblTempVendorCDR_20' ) start [2024-12-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107522', 'tblTempVendorCDR_20' ) end [2024-12-26 14:38:18] Production.INFO: ProcessCDR(1,14107522,1,1,2) [2024-12-26 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107522', 'tblTempUsageDetail_20' ) start [2024-12-26 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107522', 'tblTempUsageDetail_20' ) end [2024-12-26 14:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:38:21] Production.INFO: ==31966== Releasing lock... [2024-12-26 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:38:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:39:05 [end_date_ymd] => 2024-12-26 14:39:05 [RateCDR] => 1 ) [2024-12-26 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:39:05' and `end` < '2024-12-26 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:39:17] Production.INFO: count ==2027 [2024-12-26 14:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:39:05 - End Time 2024-12-26 14:39:05 [2024-12-26 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107527', 'tblTempUsageDetail_20' ) start [2024-12-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107527', 'tblTempUsageDetail_20' ) end [2024-12-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107527', 'tblTempVendorCDR_20' ) start [2024-12-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107527', 'tblTempVendorCDR_20' ) end [2024-12-26 14:39:18] Production.INFO: ProcessCDR(1,14107527,1,1,2) [2024-12-26 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107527', 'tblTempUsageDetail_20' ) start [2024-12-26 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107527', 'tblTempUsageDetail_20' ) end [2024-12-26 14:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:39:21] Production.INFO: ==32047== Releasing lock... [2024-12-26 14:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:39:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:40:06 [end_date_ymd] => 2024-12-26 14:40:06 [RateCDR] => 1 ) [2024-12-26 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:40:06' and `end` < '2024-12-26 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:40:18] Production.INFO: count ==2003 [2024-12-26 14:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:40:06 - End Time 2024-12-26 14:40:06 [2024-12-26 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107533', 'tblTempUsageDetail_20' ) start [2024-12-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107533', 'tblTempUsageDetail_20' ) end [2024-12-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107533', 'tblTempVendorCDR_20' ) start [2024-12-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107533', 'tblTempVendorCDR_20' ) end [2024-12-26 14:40:19] Production.INFO: ProcessCDR(1,14107533,1,1,2) [2024-12-26 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107533', 'tblTempUsageDetail_20' ) start [2024-12-26 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107533', 'tblTempUsageDetail_20' ) end [2024-12-26 14:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:40:22] Production.INFO: ==32126== Releasing lock... [2024-12-26 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:40:22] Production.INFO: 43 MB #Memory Used# [2024-12-26 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:41:05 [end_date_ymd] => 2024-12-26 14:41:05 [RateCDR] => 1 ) [2024-12-26 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:41:05' and `end` < '2024-12-26 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:41:18] Production.INFO: count ==1982 [2024-12-26 14:41:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:41:05 - End Time 2024-12-26 14:41:05 [2024-12-26 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107538', 'tblTempUsageDetail_20' ) start [2024-12-26 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107538', 'tblTempUsageDetail_20' ) end [2024-12-26 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107538', 'tblTempVendorCDR_20' ) start [2024-12-26 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107538', 'tblTempVendorCDR_20' ) end [2024-12-26 14:41:19] Production.INFO: ProcessCDR(1,14107538,1,1,2) [2024-12-26 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107538', 'tblTempUsageDetail_20' ) start [2024-12-26 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107538', 'tblTempUsageDetail_20' ) end [2024-12-26 14:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:41:22] Production.INFO: ==32212== Releasing lock... [2024-12-26 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:41:22] Production.INFO: 43 MB #Memory Used# [2024-12-26 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:42:05 [end_date_ymd] => 2024-12-26 14:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:42:18] Production.INFO: count ==1981 [2024-12-26 14:42:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:42:05 - End Time 2024-12-26 14:42:05 [2024-12-26 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107543', 'tblTempUsageDetail_20' ) start [2024-12-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107543', 'tblTempUsageDetail_20' ) end [2024-12-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107543', 'tblTempVendorCDR_20' ) start [2024-12-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107543', 'tblTempVendorCDR_20' ) end [2024-12-26 14:42:19] Production.INFO: ProcessCDR(1,14107543,1,1,2) [2024-12-26 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107543', 'tblTempUsageDetail_20' ) start [2024-12-26 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107543', 'tblTempUsageDetail_20' ) end [2024-12-26 14:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:42:22] Production.INFO: ==32289== Releasing lock... [2024-12-26 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:42:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:43:04 [end_date_ymd] => 2024-12-26 14:43:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:43:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:43:19] Production.INFO: count ==1988 [2024-12-26 14:43:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:43:04 - End Time 2024-12-26 14:43:04 [2024-12-26 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107548', 'tblTempUsageDetail_20' ) start [2024-12-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107548', 'tblTempUsageDetail_20' ) end [2024-12-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107548', 'tblTempVendorCDR_20' ) start [2024-12-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107548', 'tblTempVendorCDR_20' ) end [2024-12-26 14:43:19] Production.INFO: ProcessCDR(1,14107548,1,1,2) [2024-12-26 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107548', 'tblTempUsageDetail_20' ) start [2024-12-26 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107548', 'tblTempUsageDetail_20' ) end [2024-12-26 14:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:43:22] Production.INFO: ==32367== Releasing lock... [2024-12-26 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:43:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:44:04 [end_date_ymd] => 2024-12-26 14:44:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:44:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:44:18] Production.INFO: count ==1989 [2024-12-26 14:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:44:04 - End Time 2024-12-26 14:44:04 [2024-12-26 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107553', 'tblTempUsageDetail_20' ) start [2024-12-26 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107553', 'tblTempUsageDetail_20' ) end [2024-12-26 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107553', 'tblTempVendorCDR_20' ) start [2024-12-26 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107553', 'tblTempVendorCDR_20' ) end [2024-12-26 14:44:19] Production.INFO: ProcessCDR(1,14107553,1,1,2) [2024-12-26 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107553', 'tblTempUsageDetail_20' ) start [2024-12-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107553', 'tblTempUsageDetail_20' ) end [2024-12-26 14:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:44:23] Production.INFO: ==32446== Releasing lock... [2024-12-26 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:44:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:45:04 [end_date_ymd] => 2024-12-26 14:45:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:45:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:45:17] Production.INFO: count ==1982 [2024-12-26 14:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:45:04 - End Time 2024-12-26 14:45:04 [2024-12-26 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107558', 'tblTempUsageDetail_20' ) start [2024-12-26 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107558', 'tblTempUsageDetail_20' ) end [2024-12-26 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107558', 'tblTempVendorCDR_20' ) start [2024-12-26 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107558', 'tblTempVendorCDR_20' ) end [2024-12-26 14:45:18] Production.INFO: ProcessCDR(1,14107558,1,1,2) [2024-12-26 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107558', 'tblTempUsageDetail_20' ) start [2024-12-26 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107558', 'tblTempUsageDetail_20' ) end [2024-12-26 14:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:45:22] Production.INFO: ==32523== Releasing lock... [2024-12-26 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:45:22] Production.INFO: 43 MB #Memory Used# [2024-12-26 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:46:04 [end_date_ymd] => 2024-12-26 14:46:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:46:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:46:17] Production.INFO: count ==1974 [2024-12-26 14:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:46:04 - End Time 2024-12-26 14:46:04 [2024-12-26 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107563', 'tblTempUsageDetail_20' ) start [2024-12-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107563', 'tblTempUsageDetail_20' ) end [2024-12-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107563', 'tblTempVendorCDR_20' ) start [2024-12-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107563', 'tblTempVendorCDR_20' ) end [2024-12-26 14:46:18] Production.INFO: ProcessCDR(1,14107563,1,1,2) [2024-12-26 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107563', 'tblTempUsageDetail_20' ) start [2024-12-26 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107563', 'tblTempUsageDetail_20' ) end [2024-12-26 14:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:46:21] Production.INFO: ==32598== Releasing lock... [2024-12-26 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:46:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-26 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:47:05 [end_date_ymd] => 2024-12-26 14:47:05 [RateCDR] => 1 ) [2024-12-26 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:47:05' and `end` < '2024-12-26 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:47:18] Production.INFO: count ==1967 [2024-12-26 14:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:47:05 - End Time 2024-12-26 14:47:05 [2024-12-26 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107568', 'tblTempUsageDetail_20' ) start [2024-12-26 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107568', 'tblTempUsageDetail_20' ) end [2024-12-26 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107568', 'tblTempVendorCDR_20' ) start [2024-12-26 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107568', 'tblTempVendorCDR_20' ) end [2024-12-26 14:47:18] Production.INFO: ProcessCDR(1,14107568,1,1,2) [2024-12-26 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107568', 'tblTempUsageDetail_20' ) start [2024-12-26 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107568', 'tblTempUsageDetail_20' ) end [2024-12-26 14:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:47:23] Production.INFO: ==32678== Releasing lock... [2024-12-26 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:47:23] Production.INFO: 43 MB #Memory Used# [2024-12-26 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:48:05 [end_date_ymd] => 2024-12-26 14:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:48:18] Production.INFO: count ==1976 [2024-12-26 14:48:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:48:05 - End Time 2024-12-26 14:48:05 [2024-12-26 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107573', 'tblTempUsageDetail_20' ) start [2024-12-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107573', 'tblTempUsageDetail_20' ) end [2024-12-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107573', 'tblTempVendorCDR_20' ) start [2024-12-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107573', 'tblTempVendorCDR_20' ) end [2024-12-26 14:48:18] Production.INFO: ProcessCDR(1,14107573,1,1,2) [2024-12-26 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107573', 'tblTempUsageDetail_20' ) start [2024-12-26 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107573', 'tblTempUsageDetail_20' ) end [2024-12-26 14:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:48:21] Production.INFO: ==336== Releasing lock... [2024-12-26 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:48:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-26 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:49:05 [end_date_ymd] => 2024-12-26 14:49:05 [RateCDR] => 1 ) [2024-12-26 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:49:05' and `end` < '2024-12-26 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:49:17] Production.INFO: count ==2004 [2024-12-26 14:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:49:05 - End Time 2024-12-26 14:49:05 [2024-12-26 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107578', 'tblTempUsageDetail_20' ) start [2024-12-26 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107578', 'tblTempUsageDetail_20' ) end [2024-12-26 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107578', 'tblTempVendorCDR_20' ) start [2024-12-26 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107578', 'tblTempVendorCDR_20' ) end [2024-12-26 14:49:18] Production.INFO: ProcessCDR(1,14107578,1,1,2) [2024-12-26 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107578', 'tblTempUsageDetail_20' ) start [2024-12-26 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107578', 'tblTempUsageDetail_20' ) end [2024-12-26 14:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:49:23] Production.INFO: ==425== Releasing lock... [2024-12-26 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:49:23] Production.INFO: 43 MB #Memory Used# [2024-12-26 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:50:05 [end_date_ymd] => 2024-12-26 14:50:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:50:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:50:18] Production.INFO: count ==2031 [2024-12-26 14:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:50:05 - End Time 2024-12-26 14:50:05 [2024-12-26 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107583', 'tblTempUsageDetail_20' ) start [2024-12-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107583', 'tblTempUsageDetail_20' ) end [2024-12-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107583', 'tblTempVendorCDR_20' ) start [2024-12-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107583', 'tblTempVendorCDR_20' ) end [2024-12-26 14:50:18] Production.INFO: ProcessCDR(1,14107583,1,1,2) [2024-12-26 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107583', 'tblTempUsageDetail_20' ) start [2024-12-26 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107583', 'tblTempUsageDetail_20' ) end [2024-12-26 14:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:50:21] Production.INFO: ==510== Releasing lock... [2024-12-26 14:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:50:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:51:05 [end_date_ymd] => 2024-12-26 14:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:51:17] Production.INFO: count ==2059 [2024-12-26 14:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:51:05 - End Time 2024-12-26 14:51:05 [2024-12-26 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107589', 'tblTempUsageDetail_20' ) start [2024-12-26 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107589', 'tblTempUsageDetail_20' ) end [2024-12-26 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107589', 'tblTempVendorCDR_20' ) start [2024-12-26 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107589', 'tblTempVendorCDR_20' ) end [2024-12-26 14:51:18] Production.INFO: ProcessCDR(1,14107589,1,1,2) [2024-12-26 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107589', 'tblTempUsageDetail_20' ) start [2024-12-26 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107589', 'tblTempUsageDetail_20' ) end [2024-12-26 14:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:51:23] Production.INFO: ==594== Releasing lock... [2024-12-26 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:51:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:52:05 [end_date_ymd] => 2024-12-26 14:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:52:18] Production.INFO: count ==2044 [2024-12-26 14:52:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:52:05 - End Time 2024-12-26 14:52:05 [2024-12-26 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107594', 'tblTempUsageDetail_20' ) start [2024-12-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107594', 'tblTempUsageDetail_20' ) end [2024-12-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107594', 'tblTempVendorCDR_20' ) start [2024-12-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107594', 'tblTempVendorCDR_20' ) end [2024-12-26 14:52:19] Production.INFO: ProcessCDR(1,14107594,1,1,2) [2024-12-26 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107594', 'tblTempUsageDetail_20' ) start [2024-12-26 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107594', 'tblTempUsageDetail_20' ) end [2024-12-26 14:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:52:22] Production.INFO: ==694== Releasing lock... [2024-12-26 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:52:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-26 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:53:05 [end_date_ymd] => 2024-12-26 14:53:05 [RateCDR] => 1 ) [2024-12-26 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:53:05' and `end` < '2024-12-26 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:53:19] Production.INFO: count ==2046 [2024-12-26 14:53:20] Production.ERROR: pbx CDR StartTime 2024-12-26 11:53:05 - End Time 2024-12-26 14:53:05 [2024-12-26 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107599', 'tblTempUsageDetail_20' ) start [2024-12-26 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107599', 'tblTempUsageDetail_20' ) end [2024-12-26 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107599', 'tblTempVendorCDR_20' ) start [2024-12-26 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107599', 'tblTempVendorCDR_20' ) end [2024-12-26 14:53:20] Production.INFO: ProcessCDR(1,14107599,1,1,2) [2024-12-26 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107599', 'tblTempUsageDetail_20' ) start [2024-12-26 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107599', 'tblTempUsageDetail_20' ) end [2024-12-26 14:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:53:24] Production.INFO: ==781== Releasing lock... [2024-12-26 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:53:24] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:54:05 [end_date_ymd] => 2024-12-26 14:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:54:18] Production.INFO: count ==2049 [2024-12-26 14:54:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:54:05 - End Time 2024-12-26 14:54:05 [2024-12-26 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107604', 'tblTempUsageDetail_20' ) start [2024-12-26 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107604', 'tblTempUsageDetail_20' ) end [2024-12-26 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107604', 'tblTempVendorCDR_20' ) start [2024-12-26 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107604', 'tblTempVendorCDR_20' ) end [2024-12-26 14:54:19] Production.INFO: ProcessCDR(1,14107604,1,1,2) [2024-12-26 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107604', 'tblTempUsageDetail_20' ) start [2024-12-26 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107604', 'tblTempUsageDetail_20' ) end [2024-12-26 14:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:54:22] Production.INFO: ==857== Releasing lock... [2024-12-26 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:54:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:55:05 [end_date_ymd] => 2024-12-26 14:55:05 [RateCDR] => 1 ) [2024-12-26 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 11:55:05' and `end` < '2024-12-26 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 14:55:17] Production.INFO: count ==2048 [2024-12-26 14:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:55:05 - End Time 2024-12-26 14:55:05 [2024-12-26 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107609', 'tblTempUsageDetail_20' ) start [2024-12-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107609', 'tblTempUsageDetail_20' ) end [2024-12-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107609', 'tblTempVendorCDR_20' ) start [2024-12-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107609', 'tblTempVendorCDR_20' ) end [2024-12-26 14:55:18] Production.INFO: ProcessCDR(1,14107609,1,1,2) [2024-12-26 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107609', 'tblTempUsageDetail_20' ) start [2024-12-26 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107609', 'tblTempUsageDetail_20' ) end [2024-12-26 14:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:55:21] Production.INFO: ==934== Releasing lock... [2024-12-26 14:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:55:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:56:05 [end_date_ymd] => 2024-12-26 14:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:56:18] Production.INFO: count ==2046 [2024-12-26 14:56:19] Production.ERROR: pbx CDR StartTime 2024-12-26 11:56:05 - End Time 2024-12-26 14:56:05 [2024-12-26 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107614', 'tblTempUsageDetail_20' ) start [2024-12-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107614', 'tblTempUsageDetail_20' ) end [2024-12-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107614', 'tblTempVendorCDR_20' ) start [2024-12-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107614', 'tblTempVendorCDR_20' ) end [2024-12-26 14:56:19] Production.INFO: ProcessCDR(1,14107614,1,1,2) [2024-12-26 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107614', 'tblTempUsageDetail_20' ) start [2024-12-26 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107614', 'tblTempUsageDetail_20' ) end [2024-12-26 14:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:56:22] Production.INFO: ==1010== Releasing lock... [2024-12-26 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:56:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:57:04 [end_date_ymd] => 2024-12-26 14:57:04 [RateCDR] => 1 ) [2024-12-26 14: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` >= '2024-12-26 11:57:04' and `end` < '2024-12-26 14: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 ,'') [2024-12-26 14:57:17] Production.INFO: count ==2046 [2024-12-26 14:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:57:04 - End Time 2024-12-26 14:57:04 [2024-12-26 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107619', 'tblTempUsageDetail_20' ) start [2024-12-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107619', 'tblTempUsageDetail_20' ) end [2024-12-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107619', 'tblTempVendorCDR_20' ) start [2024-12-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107619', 'tblTempVendorCDR_20' ) end [2024-12-26 14:57:18] Production.INFO: ProcessCDR(1,14107619,1,1,2) [2024-12-26 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107619', 'tblTempUsageDetail_20' ) start [2024-12-26 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107619', 'tblTempUsageDetail_20' ) end [2024-12-26 14:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:57:22] Production.INFO: ==1088== Releasing lock... [2024-12-26 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:57:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:58:05 [end_date_ymd] => 2024-12-26 14:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:58:20] Production.INFO: count ==2047 [2024-12-26 14:58:21] Production.ERROR: pbx CDR StartTime 2024-12-26 11:58:05 - End Time 2024-12-26 14:58:05 [2024-12-26 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107624', 'tblTempUsageDetail_20' ) start [2024-12-26 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107624', 'tblTempUsageDetail_20' ) end [2024-12-26 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107624', 'tblTempVendorCDR_20' ) start [2024-12-26 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107624', 'tblTempVendorCDR_20' ) end [2024-12-26 14:58:21] Production.INFO: ProcessCDR(1,14107624,1,1,2) [2024-12-26 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107624', 'tblTempUsageDetail_20' ) start [2024-12-26 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107624', 'tblTempUsageDetail_20' ) end [2024-12-26 14:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:58:25] Production.INFO: ==1164== Releasing lock... [2024-12-26 14:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:58:25] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 11:59:05 [end_date_ymd] => 2024-12-26 14:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 11:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 14:59:17] Production.INFO: count ==2045 [2024-12-26 14:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 11:59:05 - End Time 2024-12-26 14:59:05 [2024-12-26 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107629', 'tblTempUsageDetail_20' ) start [2024-12-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107629', 'tblTempUsageDetail_20' ) end [2024-12-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107629', 'tblTempVendorCDR_20' ) start [2024-12-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107629', 'tblTempVendorCDR_20' ) end [2024-12-26 14:59:18] Production.INFO: ProcessCDR(1,14107629,1,1,2) [2024-12-26 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107629', 'tblTempUsageDetail_20' ) start [2024-12-26 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107629', 'tblTempUsageDetail_20' ) end [2024-12-26 14:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 14:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 14:59:22] Production.INFO: ==1254== Releasing lock... [2024-12-26 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 14:59:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:00:05 [end_date_ymd] => 2024-12-26 15:00:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:00:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:00:18] Production.INFO: count ==2057 [2024-12-26 15:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:00:05 - End Time 2024-12-26 15:00:05 [2024-12-26 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107634', 'tblTempUsageDetail_20' ) start [2024-12-26 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107634', 'tblTempUsageDetail_20' ) end [2024-12-26 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107634', 'tblTempVendorCDR_20' ) start [2024-12-26 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107634', 'tblTempVendorCDR_20' ) end [2024-12-26 15:00:19] Production.INFO: ProcessCDR(1,14107634,1,1,2) [2024-12-26 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107634', 'tblTempUsageDetail_20' ) start [2024-12-26 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107634', 'tblTempUsageDetail_20' ) end [2024-12-26 15:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:00:22] Production.INFO: ==1338== Releasing lock... [2024-12-26 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:00:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-26 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:01:05 [end_date_ymd] => 2024-12-26 15:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:01:18] Production.INFO: count ==2086 [2024-12-26 15:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:01:05 - End Time 2024-12-26 15:01:05 [2024-12-26 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107640', 'tblTempUsageDetail_20' ) start [2024-12-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107640', 'tblTempUsageDetail_20' ) end [2024-12-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107640', 'tblTempVendorCDR_20' ) start [2024-12-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107640', 'tblTempVendorCDR_20' ) end [2024-12-26 15:01:18] Production.INFO: ProcessCDR(1,14107640,1,1,2) [2024-12-26 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107640', 'tblTempUsageDetail_20' ) start [2024-12-26 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107640', 'tblTempUsageDetail_20' ) end [2024-12-26 15:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:01:22] Production.INFO: ==1505== Releasing lock... [2024-12-26 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:01:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:02:04 [end_date_ymd] => 2024-12-26 15:02:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:02:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:02:17] Production.INFO: count ==2087 [2024-12-26 15:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:02:04 - End Time 2024-12-26 15:02:04 [2024-12-26 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107645', 'tblTempUsageDetail_20' ) start [2024-12-26 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107645', 'tblTempUsageDetail_20' ) end [2024-12-26 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107645', 'tblTempVendorCDR_20' ) start [2024-12-26 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107645', 'tblTempVendorCDR_20' ) end [2024-12-26 15:02:18] Production.INFO: ProcessCDR(1,14107645,1,1,2) [2024-12-26 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107645', 'tblTempUsageDetail_20' ) start [2024-12-26 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107645', 'tblTempUsageDetail_20' ) end [2024-12-26 15:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:02:21] Production.INFO: ==1618== Releasing lock... [2024-12-26 15:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:02:21] Production.INFO: 44 MB #Memory Used# [2024-12-26 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:03:05 [end_date_ymd] => 2024-12-26 15:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:03:17] Production.INFO: count ==2094 [2024-12-26 15:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:03:05 - End Time 2024-12-26 15:03:05 [2024-12-26 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107650', 'tblTempUsageDetail_20' ) start [2024-12-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107650', 'tblTempUsageDetail_20' ) end [2024-12-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107650', 'tblTempVendorCDR_20' ) start [2024-12-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107650', 'tblTempVendorCDR_20' ) end [2024-12-26 15:03:18] Production.INFO: ProcessCDR(1,14107650,1,1,2) [2024-12-26 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107650', 'tblTempUsageDetail_20' ) start [2024-12-26 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107650', 'tblTempUsageDetail_20' ) end [2024-12-26 15:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:03:21] Production.INFO: ==1728== Releasing lock... [2024-12-26 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:03:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:04:05 [end_date_ymd] => 2024-12-26 15:04:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:04:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:04:18] Production.INFO: count ==2213 [2024-12-26 15:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:04:05 - End Time 2024-12-26 15:04:05 [2024-12-26 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107655', 'tblTempUsageDetail_20' ) start [2024-12-26 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107655', 'tblTempUsageDetail_20' ) end [2024-12-26 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107655', 'tblTempVendorCDR_20' ) start [2024-12-26 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107655', 'tblTempVendorCDR_20' ) end [2024-12-26 15:04:18] Production.INFO: ProcessCDR(1,14107655,1,1,2) [2024-12-26 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107655', 'tblTempUsageDetail_20' ) start [2024-12-26 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107655', 'tblTempUsageDetail_20' ) end [2024-12-26 15:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:04:23] Production.INFO: ==1811== Releasing lock... [2024-12-26 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:04:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:05:05 [end_date_ymd] => 2024-12-26 15:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:05:17] Production.INFO: count ==2227 [2024-12-26 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:05:05 - End Time 2024-12-26 15:05:05 [2024-12-26 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107660', 'tblTempUsageDetail_20' ) start [2024-12-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107660', 'tblTempUsageDetail_20' ) end [2024-12-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107660', 'tblTempVendorCDR_20' ) start [2024-12-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107660', 'tblTempVendorCDR_20' ) end [2024-12-26 15:05:18] Production.INFO: ProcessCDR(1,14107660,1,1,2) [2024-12-26 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107660', 'tblTempUsageDetail_20' ) start [2024-12-26 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107660', 'tblTempUsageDetail_20' ) end [2024-12-26 15:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:05:21] Production.INFO: ==1967== Releasing lock... [2024-12-26 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:05:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:06:05 [end_date_ymd] => 2024-12-26 15:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:06:18] Production.INFO: count ==2248 [2024-12-26 15:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:06:05 - End Time 2024-12-26 15:06:05 [2024-12-26 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107665', 'tblTempUsageDetail_20' ) start [2024-12-26 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107665', 'tblTempUsageDetail_20' ) end [2024-12-26 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107665', 'tblTempVendorCDR_20' ) start [2024-12-26 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107665', 'tblTempVendorCDR_20' ) end [2024-12-26 15:06:19] Production.INFO: ProcessCDR(1,14107665,1,1,2) [2024-12-26 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107665', 'tblTempUsageDetail_20' ) start [2024-12-26 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107665', 'tblTempUsageDetail_20' ) end [2024-12-26 15:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:06:23] Production.INFO: ==2049== Releasing lock... [2024-12-26 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:06:23] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:07:04 [end_date_ymd] => 2024-12-26 15:07:04 [RateCDR] => 1 ) [2024-12-26 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:07:04' and `end` < '2024-12-26 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:07:18] Production.INFO: count ==2244 [2024-12-26 15:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:07:04 - End Time 2024-12-26 15:07:04 [2024-12-26 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107670', 'tblTempUsageDetail_20' ) start [2024-12-26 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107670', 'tblTempUsageDetail_20' ) end [2024-12-26 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107670', 'tblTempVendorCDR_20' ) start [2024-12-26 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107670', 'tblTempVendorCDR_20' ) end [2024-12-26 15:07:19] Production.INFO: ProcessCDR(1,14107670,1,1,2) [2024-12-26 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107670', 'tblTempUsageDetail_20' ) start [2024-12-26 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107670', 'tblTempUsageDetail_20' ) end [2024-12-26 15:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:07:24] Production.INFO: ==2123== Releasing lock... [2024-12-26 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:07:24] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:08:05 [end_date_ymd] => 2024-12-26 15:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:08:18] Production.INFO: count ==2233 [2024-12-26 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:08:05 - End Time 2024-12-26 15:08:05 [2024-12-26 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107675', 'tblTempUsageDetail_20' ) start [2024-12-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107675', 'tblTempUsageDetail_20' ) end [2024-12-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107675', 'tblTempVendorCDR_20' ) start [2024-12-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107675', 'tblTempVendorCDR_20' ) end [2024-12-26 15:08:19] Production.INFO: ProcessCDR(1,14107675,1,1,2) [2024-12-26 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107675', 'tblTempUsageDetail_20' ) start [2024-12-26 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107675', 'tblTempUsageDetail_20' ) end [2024-12-26 15:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:08:22] Production.INFO: ==2276== Releasing lock... [2024-12-26 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:08:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:09:04 [end_date_ymd] => 2024-12-26 15:09:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:09:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:09:17] Production.INFO: count ==2223 [2024-12-26 15:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:09:04 - End Time 2024-12-26 15:09:04 [2024-12-26 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107680', 'tblTempUsageDetail_20' ) start [2024-12-26 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107680', 'tblTempUsageDetail_20' ) end [2024-12-26 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107680', 'tblTempVendorCDR_20' ) start [2024-12-26 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107680', 'tblTempVendorCDR_20' ) end [2024-12-26 15:09:18] Production.INFO: ProcessCDR(1,14107680,1,1,2) [2024-12-26 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107680', 'tblTempUsageDetail_20' ) start [2024-12-26 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107680', 'tblTempUsageDetail_20' ) end [2024-12-26 15:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:09:22] Production.INFO: ==2354== Releasing lock... [2024-12-26 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:09:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:10:05 [end_date_ymd] => 2024-12-26 15:10:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:10:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:10:18] Production.INFO: count ==2235 [2024-12-26 15:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:10:05 - End Time 2024-12-26 15:10:05 [2024-12-26 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107685', 'tblTempUsageDetail_20' ) start [2024-12-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107685', 'tblTempUsageDetail_20' ) end [2024-12-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107685', 'tblTempVendorCDR_20' ) start [2024-12-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107685', 'tblTempVendorCDR_20' ) end [2024-12-26 15:10:19] Production.INFO: ProcessCDR(1,14107685,1,1,2) [2024-12-26 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107685', 'tblTempUsageDetail_20' ) start [2024-12-26 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107685', 'tblTempUsageDetail_20' ) end [2024-12-26 15:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:10:24] Production.INFO: ==2428== Releasing lock... [2024-12-26 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:10:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:11:04 [end_date_ymd] => 2024-12-26 15:11:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:11:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:11:17] Production.INFO: count ==2227 [2024-12-26 15:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:11:04 - End Time 2024-12-26 15:11:04 [2024-12-26 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107691', 'tblTempUsageDetail_20' ) start [2024-12-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107691', 'tblTempUsageDetail_20' ) end [2024-12-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107691', 'tblTempVendorCDR_20' ) start [2024-12-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107691', 'tblTempVendorCDR_20' ) end [2024-12-26 15:11:18] Production.INFO: ProcessCDR(1,14107691,1,1,2) [2024-12-26 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107691', 'tblTempUsageDetail_20' ) start [2024-12-26 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107691', 'tblTempUsageDetail_20' ) end [2024-12-26 15:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:11:21] Production.INFO: ==2511== Releasing lock... [2024-12-26 15:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:11:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:12:05 [end_date_ymd] => 2024-12-26 15:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:12:18] Production.INFO: count ==2216 [2024-12-26 15:12:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:12:05 - End Time 2024-12-26 15:12:05 [2024-12-26 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107696', 'tblTempUsageDetail_20' ) start [2024-12-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107696', 'tblTempUsageDetail_20' ) end [2024-12-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107696', 'tblTempVendorCDR_20' ) start [2024-12-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107696', 'tblTempVendorCDR_20' ) end [2024-12-26 15:12:19] Production.INFO: ProcessCDR(1,14107696,1,1,2) [2024-12-26 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107696', 'tblTempUsageDetail_20' ) start [2024-12-26 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107696', 'tblTempUsageDetail_20' ) end [2024-12-26 15:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:12:23] Production.INFO: ==2663== Releasing lock... [2024-12-26 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:12:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:13:05 [end_date_ymd] => 2024-12-26 15:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:13:19] Production.INFO: count ==2205 [2024-12-26 15:13:20] Production.ERROR: pbx CDR StartTime 2024-12-26 12:13:05 - End Time 2024-12-26 15:13:05 [2024-12-26 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107701', 'tblTempUsageDetail_20' ) start [2024-12-26 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107701', 'tblTempUsageDetail_20' ) end [2024-12-26 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107701', 'tblTempVendorCDR_20' ) start [2024-12-26 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107701', 'tblTempVendorCDR_20' ) end [2024-12-26 15:13:20] Production.INFO: ProcessCDR(1,14107701,1,1,2) [2024-12-26 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107701', 'tblTempUsageDetail_20' ) start [2024-12-26 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107701', 'tblTempUsageDetail_20' ) end [2024-12-26 15:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:13:23] Production.INFO: ==2740== Releasing lock... [2024-12-26 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:13:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:14:04 [end_date_ymd] => 2024-12-26 15:14:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:14:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:14:17] Production.INFO: count ==2205 [2024-12-26 15:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:14:04 - End Time 2024-12-26 15:14:04 [2024-12-26 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107706', 'tblTempUsageDetail_20' ) start [2024-12-26 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107706', 'tblTempUsageDetail_20' ) end [2024-12-26 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107706', 'tblTempVendorCDR_20' ) start [2024-12-26 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107706', 'tblTempVendorCDR_20' ) end [2024-12-26 15:14:18] Production.INFO: ProcessCDR(1,14107706,1,1,2) [2024-12-26 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107706', 'tblTempUsageDetail_20' ) start [2024-12-26 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107706', 'tblTempUsageDetail_20' ) end [2024-12-26 15:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:14:22] Production.INFO: ==2815== Releasing lock... [2024-12-26 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:14:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:15:05 [end_date_ymd] => 2024-12-26 15:15:05 [RateCDR] => 1 ) [2024-12-26 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:15:05' and `end` < '2024-12-26 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:15:17] Production.INFO: count ==2251 [2024-12-26 15:15:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:15:05 - End Time 2024-12-26 15:15:05 [2024-12-26 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107711', 'tblTempUsageDetail_20' ) start [2024-12-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107711', 'tblTempUsageDetail_20' ) end [2024-12-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107711', 'tblTempVendorCDR_20' ) start [2024-12-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107711', 'tblTempVendorCDR_20' ) end [2024-12-26 15:15:18] Production.INFO: ProcessCDR(1,14107711,1,1,2) [2024-12-26 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107711', 'tblTempUsageDetail_20' ) start [2024-12-26 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107711', 'tblTempUsageDetail_20' ) end [2024-12-26 15:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:15:21] Production.INFO: ==2968== Releasing lock... [2024-12-26 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:15:21] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:16:04 [end_date_ymd] => 2024-12-26 15:16:04 [RateCDR] => 1 ) [2024-12-26 15:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:16:04' and `end` < '2024-12-26 15:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:16:20] Production.INFO: count ==2250 [2024-12-26 15:16:21] Production.ERROR: pbx CDR StartTime 2024-12-26 12:16:04 - End Time 2024-12-26 15:16:04 [2024-12-26 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107716', 'tblTempUsageDetail_20' ) start [2024-12-26 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107716', 'tblTempUsageDetail_20' ) end [2024-12-26 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107716', 'tblTempVendorCDR_20' ) start [2024-12-26 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107716', 'tblTempVendorCDR_20' ) end [2024-12-26 15:16:21] Production.INFO: ProcessCDR(1,14107716,1,1,2) [2024-12-26 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107716', 'tblTempUsageDetail_20' ) start [2024-12-26 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107716', 'tblTempUsageDetail_20' ) end [2024-12-26 15:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:16:24] Production.INFO: ==3046== Releasing lock... [2024-12-26 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:16:24] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:17:05 [end_date_ymd] => 2024-12-26 15:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:17:17] Production.INFO: count ==2249 [2024-12-26 15:17:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:17:05 - End Time 2024-12-26 15:17:05 [2024-12-26 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107721', 'tblTempUsageDetail_20' ) start [2024-12-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107721', 'tblTempUsageDetail_20' ) end [2024-12-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107721', 'tblTempVendorCDR_20' ) start [2024-12-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107721', 'tblTempVendorCDR_20' ) end [2024-12-26 15:17:18] Production.INFO: ProcessCDR(1,14107721,1,1,2) [2024-12-26 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107721', 'tblTempUsageDetail_20' ) start [2024-12-26 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107721', 'tblTempUsageDetail_20' ) end [2024-12-26 15:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:17:21] Production.INFO: ==3120== Releasing lock... [2024-12-26 15:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:17:21] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:18:04 [end_date_ymd] => 2024-12-26 15:18:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:18:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:18:17] Production.INFO: count ==2248 [2024-12-26 15:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:18:04 - End Time 2024-12-26 15:18:04 [2024-12-26 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107726', 'tblTempUsageDetail_20' ) start [2024-12-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107726', 'tblTempUsageDetail_20' ) end [2024-12-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107726', 'tblTempVendorCDR_20' ) start [2024-12-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107726', 'tblTempVendorCDR_20' ) end [2024-12-26 15:18:18] Production.INFO: ProcessCDR(1,14107726,1,1,2) [2024-12-26 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107726', 'tblTempUsageDetail_20' ) start [2024-12-26 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107726', 'tblTempUsageDetail_20' ) end [2024-12-26 15:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:18:21] Production.INFO: ==3202== Releasing lock... [2024-12-26 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:18:21] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:19:04 [end_date_ymd] => 2024-12-26 15:19:04 [RateCDR] => 1 ) [2024-12-26 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:19:04' and `end` < '2024-12-26 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:19:17] Production.INFO: count ==2246 [2024-12-26 15:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:19:04 - End Time 2024-12-26 15:19:04 [2024-12-26 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107731', 'tblTempUsageDetail_20' ) start [2024-12-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107731', 'tblTempUsageDetail_20' ) end [2024-12-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107731', 'tblTempVendorCDR_20' ) start [2024-12-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107731', 'tblTempVendorCDR_20' ) end [2024-12-26 15:19:18] Production.INFO: ProcessCDR(1,14107731,1,1,2) [2024-12-26 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107731', 'tblTempUsageDetail_20' ) start [2024-12-26 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107731', 'tblTempUsageDetail_20' ) end [2024-12-26 15:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:19:21] Production.INFO: ==3317== Releasing lock... [2024-12-26 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:19:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:20:05 [end_date_ymd] => 2024-12-26 15:20:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:20:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:20:18] Production.INFO: count ==2244 [2024-12-26 15:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:20:05 - End Time 2024-12-26 15:20:05 [2024-12-26 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107737', 'tblTempUsageDetail_20' ) start [2024-12-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107737', 'tblTempUsageDetail_20' ) end [2024-12-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107737', 'tblTempVendorCDR_20' ) start [2024-12-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107737', 'tblTempVendorCDR_20' ) end [2024-12-26 15:20:19] Production.INFO: ProcessCDR(1,14107737,1,1,2) [2024-12-26 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107737', 'tblTempUsageDetail_20' ) start [2024-12-26 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107737', 'tblTempUsageDetail_20' ) end [2024-12-26 15:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:20:24] Production.INFO: ==3401== Releasing lock... [2024-12-26 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:20:24] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:21:04 [end_date_ymd] => 2024-12-26 15:21:04 [RateCDR] => 1 ) [2024-12-26 15:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:21:04' and `end` < '2024-12-26 15:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:21:17] Production.INFO: count ==2232 [2024-12-26 15:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:21:04 - End Time 2024-12-26 15:21:04 [2024-12-26 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107742', 'tblTempUsageDetail_20' ) start [2024-12-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107742', 'tblTempUsageDetail_20' ) end [2024-12-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107742', 'tblTempVendorCDR_20' ) start [2024-12-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107742', 'tblTempVendorCDR_20' ) end [2024-12-26 15:21:18] Production.INFO: ProcessCDR(1,14107742,1,1,2) [2024-12-26 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107742', 'tblTempUsageDetail_20' ) start [2024-12-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107742', 'tblTempUsageDetail_20' ) end [2024-12-26 15:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:21:21] Production.INFO: ==3477== Releasing lock... [2024-12-26 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:21:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:22:05 [end_date_ymd] => 2024-12-26 15:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:22:18] Production.INFO: count ==2228 [2024-12-26 15:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:22:05 - End Time 2024-12-26 15:22:05 [2024-12-26 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107747', 'tblTempUsageDetail_20' ) start [2024-12-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107747', 'tblTempUsageDetail_20' ) end [2024-12-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107747', 'tblTempVendorCDR_20' ) start [2024-12-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107747', 'tblTempVendorCDR_20' ) end [2024-12-26 15:22:19] Production.INFO: ProcessCDR(1,14107747,1,1,2) [2024-12-26 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107747', 'tblTempUsageDetail_20' ) start [2024-12-26 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107747', 'tblTempUsageDetail_20' ) end [2024-12-26 15:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:22:22] Production.INFO: ==3553== Releasing lock... [2024-12-26 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:22:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:23:04 [end_date_ymd] => 2024-12-26 15:23:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:23:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:23:18] Production.INFO: count ==2438 [2024-12-26 15:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:23:04 - End Time 2024-12-26 15:23:04 [2024-12-26 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107752', 'tblTempUsageDetail_20' ) start [2024-12-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107752', 'tblTempUsageDetail_20' ) end [2024-12-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107752', 'tblTempVendorCDR_20' ) start [2024-12-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107752', 'tblTempVendorCDR_20' ) end [2024-12-26 15:23:19] Production.INFO: ProcessCDR(1,14107752,1,1,2) [2024-12-26 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107752', 'tblTempUsageDetail_20' ) start [2024-12-26 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107752', 'tblTempUsageDetail_20' ) end [2024-12-26 15:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:23:22] Production.INFO: ==3624== Releasing lock... [2024-12-26 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:23:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-26 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:24:05 [end_date_ymd] => 2024-12-26 15:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:24:19] Production.INFO: count ==2418 [2024-12-26 15:24:20] Production.ERROR: pbx CDR StartTime 2024-12-26 12:24:05 - End Time 2024-12-26 15:24:05 [2024-12-26 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107757', 'tblTempUsageDetail_20' ) start [2024-12-26 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107757', 'tblTempUsageDetail_20' ) end [2024-12-26 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107757', 'tblTempVendorCDR_20' ) start [2024-12-26 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107757', 'tblTempVendorCDR_20' ) end [2024-12-26 15:24:20] Production.INFO: ProcessCDR(1,14107757,1,1,2) [2024-12-26 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107757', 'tblTempUsageDetail_20' ) start [2024-12-26 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107757', 'tblTempUsageDetail_20' ) end [2024-12-26 15:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:24:23] Production.INFO: ==3703== Releasing lock... [2024-12-26 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:24:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-26 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:25:04 [end_date_ymd] => 2024-12-26 15:25:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:25:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:25:17] Production.INFO: count ==2405 [2024-12-26 15:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:25:04 - End Time 2024-12-26 15:25:04 [2024-12-26 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107762', 'tblTempUsageDetail_20' ) start [2024-12-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107762', 'tblTempUsageDetail_20' ) end [2024-12-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107762', 'tblTempVendorCDR_20' ) start [2024-12-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107762', 'tblTempVendorCDR_20' ) end [2024-12-26 15:25:18] Production.INFO: ProcessCDR(1,14107762,1,1,2) [2024-12-26 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107762', 'tblTempUsageDetail_20' ) start [2024-12-26 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107762', 'tblTempUsageDetail_20' ) end [2024-12-26 15:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:25:21] Production.INFO: ==3774== Releasing lock... [2024-12-26 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:25:21] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:26:05 [end_date_ymd] => 2024-12-26 15:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:26:19] Production.INFO: count ==2406 [2024-12-26 15:26:20] Production.ERROR: pbx CDR StartTime 2024-12-26 12:26:05 - End Time 2024-12-26 15:26:05 [2024-12-26 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107767', 'tblTempUsageDetail_20' ) start [2024-12-26 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107767', 'tblTempUsageDetail_20' ) end [2024-12-26 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107767', 'tblTempVendorCDR_20' ) start [2024-12-26 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107767', 'tblTempVendorCDR_20' ) end [2024-12-26 15:26:20] Production.INFO: ProcessCDR(1,14107767,1,1,2) [2024-12-26 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107767', 'tblTempUsageDetail_20' ) start [2024-12-26 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107767', 'tblTempUsageDetail_20' ) end [2024-12-26 15:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:26:25] Production.INFO: ==3848== Releasing lock... [2024-12-26 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:26:25] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:27:05 [end_date_ymd] => 2024-12-26 15:27:05 [RateCDR] => 1 ) [2024-12-26 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:27:05' and `end` < '2024-12-26 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:27:18] Production.INFO: count ==2408 [2024-12-26 15:27:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:27:05 - End Time 2024-12-26 15:27:05 [2024-12-26 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107772', 'tblTempUsageDetail_20' ) start [2024-12-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107772', 'tblTempUsageDetail_20' ) end [2024-12-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107772', 'tblTempVendorCDR_20' ) start [2024-12-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107772', 'tblTempVendorCDR_20' ) end [2024-12-26 15:27:19] Production.INFO: ProcessCDR(1,14107772,1,1,2) [2024-12-26 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107772', 'tblTempUsageDetail_20' ) start [2024-12-26 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107772', 'tblTempUsageDetail_20' ) end [2024-12-26 15:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:27:23] Production.INFO: ==3926== Releasing lock... [2024-12-26 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:27:23] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:28:04 [end_date_ymd] => 2024-12-26 15:28:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:28:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:28:17] Production.INFO: count ==2408 [2024-12-26 15:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:28:04 - End Time 2024-12-26 15:28:04 [2024-12-26 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107774', 'tblTempUsageDetail_20' ) start [2024-12-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107774', 'tblTempUsageDetail_20' ) end [2024-12-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107774', 'tblTempVendorCDR_20' ) start [2024-12-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107774', 'tblTempVendorCDR_20' ) end [2024-12-26 15:28:18] Production.INFO: ProcessCDR(1,14107774,1,1,2) [2024-12-26 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107774', 'tblTempUsageDetail_20' ) start [2024-12-26 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107774', 'tblTempUsageDetail_20' ) end [2024-12-26 15:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:28:21] Production.INFO: ==3996== Releasing lock... [2024-12-26 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:28:21] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:29:05 [end_date_ymd] => 2024-12-26 15:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:29:17] Production.INFO: count ==2403 [2024-12-26 15:29:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:29:05 - End Time 2024-12-26 15:29:05 [2024-12-26 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107782', 'tblTempUsageDetail_20' ) start [2024-12-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107782', 'tblTempUsageDetail_20' ) end [2024-12-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107782', 'tblTempVendorCDR_20' ) start [2024-12-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107782', 'tblTempVendorCDR_20' ) end [2024-12-26 15:29:18] Production.INFO: ProcessCDR(1,14107782,1,1,2) [2024-12-26 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107782', 'tblTempUsageDetail_20' ) start [2024-12-26 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107782', 'tblTempUsageDetail_20' ) end [2024-12-26 15:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:29:21] Production.INFO: ==4076== Releasing lock... [2024-12-26 15:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:29:21] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:30:05 [end_date_ymd] => 2024-12-26 15:30:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:30:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:30:18] Production.INFO: count ==2403 [2024-12-26 15:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:30:05 - End Time 2024-12-26 15:30:05 [2024-12-26 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107788', 'tblTempUsageDetail_20' ) start [2024-12-26 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107788', 'tblTempUsageDetail_20' ) end [2024-12-26 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107788', 'tblTempVendorCDR_20' ) start [2024-12-26 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107788', 'tblTempVendorCDR_20' ) end [2024-12-26 15:30:19] Production.INFO: ProcessCDR(1,14107788,1,1,2) [2024-12-26 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107788', 'tblTempUsageDetail_20' ) start [2024-12-26 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107788', 'tblTempUsageDetail_20' ) end [2024-12-26 15:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:30:22] Production.INFO: ==4152== Releasing lock... [2024-12-26 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:30:22] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:31:05 [end_date_ymd] => 2024-12-26 15:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:31:18] Production.INFO: count ==2402 [2024-12-26 15:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:31:05 - End Time 2024-12-26 15:31:05 [2024-12-26 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107793', 'tblTempUsageDetail_20' ) start [2024-12-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107793', 'tblTempUsageDetail_20' ) end [2024-12-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107793', 'tblTempVendorCDR_20' ) start [2024-12-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107793', 'tblTempVendorCDR_20' ) end [2024-12-26 15:31:19] Production.INFO: ProcessCDR(1,14107793,1,1,2) [2024-12-26 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107793', 'tblTempUsageDetail_20' ) start [2024-12-26 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107793', 'tblTempUsageDetail_20' ) end [2024-12-26 15:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:31:23] Production.INFO: ==4228== Releasing lock... [2024-12-26 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:31:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-26 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:32:04 [end_date_ymd] => 2024-12-26 15:32:04 [RateCDR] => 1 ) [2024-12-26 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:32:04' and `end` < '2024-12-26 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:32:17] Production.INFO: count ==2398 [2024-12-26 15:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:32:04 - End Time 2024-12-26 15:32:04 [2024-12-26 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107798', 'tblTempUsageDetail_20' ) start [2024-12-26 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107798', 'tblTempUsageDetail_20' ) end [2024-12-26 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107798', 'tblTempVendorCDR_20' ) start [2024-12-26 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107798', 'tblTempVendorCDR_20' ) end [2024-12-26 15:32:18] Production.INFO: ProcessCDR(1,14107798,1,1,2) [2024-12-26 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107798', 'tblTempUsageDetail_20' ) start [2024-12-26 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107798', 'tblTempUsageDetail_20' ) end [2024-12-26 15:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:32:22] Production.INFO: ==4301== Releasing lock... [2024-12-26 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:32:22] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:33:05 [end_date_ymd] => 2024-12-26 15:33:05 [RateCDR] => 1 ) [2024-12-26 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:33:05' and `end` < '2024-12-26 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:33:18] Production.INFO: count ==2388 [2024-12-26 15:33:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:33:05 - End Time 2024-12-26 15:33:05 [2024-12-26 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107803', 'tblTempUsageDetail_20' ) start [2024-12-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107803', 'tblTempUsageDetail_20' ) end [2024-12-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107803', 'tblTempVendorCDR_20' ) start [2024-12-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107803', 'tblTempVendorCDR_20' ) end [2024-12-26 15:33:19] Production.INFO: ProcessCDR(1,14107803,1,1,2) [2024-12-26 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107803', 'tblTempUsageDetail_20' ) start [2024-12-26 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107803', 'tblTempUsageDetail_20' ) end [2024-12-26 15:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:33:22] Production.INFO: ==4380== Releasing lock... [2024-12-26 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:33:22] Production.INFO: 46 MB #Memory Used# [2024-12-26 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:34:04 [end_date_ymd] => 2024-12-26 15:34:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:34:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:34:17] Production.INFO: count ==2336 [2024-12-26 15:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:34:04 - End Time 2024-12-26 15:34:04 [2024-12-26 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107806', 'tblTempUsageDetail_20' ) start [2024-12-26 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107806', 'tblTempUsageDetail_20' ) end [2024-12-26 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107806', 'tblTempVendorCDR_20' ) start [2024-12-26 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107806', 'tblTempVendorCDR_20' ) end [2024-12-26 15:34:18] Production.INFO: ProcessCDR(1,14107806,1,1,2) [2024-12-26 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107806', 'tblTempUsageDetail_20' ) start [2024-12-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107806', 'tblTempUsageDetail_20' ) end [2024-12-26 15:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:34:22] Production.INFO: ==4458== Releasing lock... [2024-12-26 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:34:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:35:05 [end_date_ymd] => 2024-12-26 15:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:35:17] Production.INFO: count ==2303 [2024-12-26 15:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:35:05 - End Time 2024-12-26 15:35:05 [2024-12-26 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107813', 'tblTempUsageDetail_20' ) start [2024-12-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107813', 'tblTempUsageDetail_20' ) end [2024-12-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107813', 'tblTempVendorCDR_20' ) start [2024-12-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107813', 'tblTempVendorCDR_20' ) end [2024-12-26 15:35:18] Production.INFO: ProcessCDR(1,14107813,1,1,2) [2024-12-26 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107813', 'tblTempUsageDetail_20' ) start [2024-12-26 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107813', 'tblTempUsageDetail_20' ) end [2024-12-26 15:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:35:21] Production.INFO: ==4585== Releasing lock... [2024-12-26 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:35:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:36:05 [end_date_ymd] => 2024-12-26 15:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:36:18] Production.INFO: count ==2271 [2024-12-26 15:36:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:36:05 - End Time 2024-12-26 15:36:05 [2024-12-26 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107818', 'tblTempUsageDetail_20' ) start [2024-12-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107818', 'tblTempUsageDetail_20' ) end [2024-12-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107818', 'tblTempVendorCDR_20' ) start [2024-12-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107818', 'tblTempVendorCDR_20' ) end [2024-12-26 15:36:19] Production.INFO: ProcessCDR(1,14107818,1,1,2) [2024-12-26 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107818', 'tblTempUsageDetail_20' ) start [2024-12-26 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107818', 'tblTempUsageDetail_20' ) end [2024-12-26 15:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:36:22] Production.INFO: ==4669== Releasing lock... [2024-12-26 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:36:22] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:37:05 [end_date_ymd] => 2024-12-26 15:37:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:37:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:37:19] Production.INFO: count ==2268 [2024-12-26 15:37:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:37:05 - End Time 2024-12-26 15:37:05 [2024-12-26 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107823', 'tblTempUsageDetail_20' ) start [2024-12-26 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107823', 'tblTempUsageDetail_20' ) end [2024-12-26 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107823', 'tblTempVendorCDR_20' ) start [2024-12-26 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107823', 'tblTempVendorCDR_20' ) end [2024-12-26 15:37:20] Production.INFO: ProcessCDR(1,14107823,1,1,2) [2024-12-26 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107823', 'tblTempUsageDetail_20' ) start [2024-12-26 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107823', 'tblTempUsageDetail_20' ) end [2024-12-26 15:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:37:23] Production.INFO: ==4739== Releasing lock... [2024-12-26 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:37:23] Production.INFO: 45 MB #Memory Used# [2024-12-26 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:38:05 [end_date_ymd] => 2024-12-26 15:38:05 [RateCDR] => 1 ) [2024-12-26 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:38:05' and `end` < '2024-12-26 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:38:19] Production.INFO: count ==2230 [2024-12-26 15:38:20] Production.ERROR: pbx CDR StartTime 2024-12-26 12:38:05 - End Time 2024-12-26 15:38:05 [2024-12-26 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107828', 'tblTempUsageDetail_20' ) start [2024-12-26 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107828', 'tblTempUsageDetail_20' ) end [2024-12-26 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107828', 'tblTempVendorCDR_20' ) start [2024-12-26 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107828', 'tblTempVendorCDR_20' ) end [2024-12-26 15:38:20] Production.INFO: ProcessCDR(1,14107828,1,1,2) [2024-12-26 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107828', 'tblTempUsageDetail_20' ) start [2024-12-26 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107828', 'tblTempUsageDetail_20' ) end [2024-12-26 15:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:38:24] Production.INFO: ==4827== Releasing lock... [2024-12-26 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:38:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:39:04 [end_date_ymd] => 2024-12-26 15:39:04 [RateCDR] => 1 ) [2024-12-26 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:39:04' and `end` < '2024-12-26 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:39:17] Production.INFO: count ==2183 [2024-12-26 15:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:39:04 - End Time 2024-12-26 15:39:04 [2024-12-26 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107833', 'tblTempUsageDetail_20' ) start [2024-12-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107833', 'tblTempUsageDetail_20' ) end [2024-12-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107833', 'tblTempVendorCDR_20' ) start [2024-12-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107833', 'tblTempVendorCDR_20' ) end [2024-12-26 15:39:18] Production.INFO: ProcessCDR(1,14107833,1,1,2) [2024-12-26 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107833', 'tblTempUsageDetail_20' ) start [2024-12-26 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107833', 'tblTempUsageDetail_20' ) end [2024-12-26 15:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:39:21] Production.INFO: ==4900== Releasing lock... [2024-12-26 15:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:39:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-26 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:40:05 [end_date_ymd] => 2024-12-26 15:40:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:40:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:40:18] Production.INFO: count ==2158 [2024-12-26 15:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:40:05 - End Time 2024-12-26 15:40:05 [2024-12-26 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107839', 'tblTempUsageDetail_20' ) start [2024-12-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107839', 'tblTempUsageDetail_20' ) end [2024-12-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107839', 'tblTempVendorCDR_20' ) start [2024-12-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107839', 'tblTempVendorCDR_20' ) end [2024-12-26 15:40:19] Production.INFO: ProcessCDR(1,14107839,1,1,2) [2024-12-26 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107839', 'tblTempUsageDetail_20' ) start [2024-12-26 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107839', 'tblTempUsageDetail_20' ) end [2024-12-26 15:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:40:22] Production.INFO: ==4980== Releasing lock... [2024-12-26 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:40:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:41:04 [end_date_ymd] => 2024-12-26 15:41:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:41:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:41:17] Production.INFO: count ==2159 [2024-12-26 15:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:41:04 - End Time 2024-12-26 15:41:04 [2024-12-26 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107844', 'tblTempUsageDetail_20' ) start [2024-12-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107844', 'tblTempUsageDetail_20' ) end [2024-12-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107844', 'tblTempVendorCDR_20' ) start [2024-12-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107844', 'tblTempVendorCDR_20' ) end [2024-12-26 15:41:18] Production.INFO: ProcessCDR(1,14107844,1,1,2) [2024-12-26 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107844', 'tblTempUsageDetail_20' ) start [2024-12-26 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107844', 'tblTempUsageDetail_20' ) end [2024-12-26 15:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:41:21] Production.INFO: ==5059== Releasing lock... [2024-12-26 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:41:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 15:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:42:04 [end_date_ymd] => 2024-12-26 15:42:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:42:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:42:17] Production.INFO: count ==2156 [2024-12-26 15:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:42:04 - End Time 2024-12-26 15:42:04 [2024-12-26 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107849', 'tblTempUsageDetail_20' ) start [2024-12-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107849', 'tblTempUsageDetail_20' ) end [2024-12-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107849', 'tblTempVendorCDR_20' ) start [2024-12-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107849', 'tblTempVendorCDR_20' ) end [2024-12-26 15:42:18] Production.INFO: ProcessCDR(1,14107849,1,1,2) [2024-12-26 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107849', 'tblTempUsageDetail_20' ) start [2024-12-26 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107849', 'tblTempUsageDetail_20' ) end [2024-12-26 15:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:42:21] Production.INFO: ==5134== Releasing lock... [2024-12-26 15:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:42:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:43:04 [end_date_ymd] => 2024-12-26 15:43:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:43:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:43:17] Production.INFO: count ==2156 [2024-12-26 15:43:17] Production.ERROR: pbx CDR StartTime 2024-12-26 12:43:04 - End Time 2024-12-26 15:43:04 [2024-12-26 15:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107854', 'tblTempUsageDetail_20' ) start [2024-12-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107854', 'tblTempUsageDetail_20' ) end [2024-12-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107854', 'tblTempVendorCDR_20' ) start [2024-12-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107854', 'tblTempVendorCDR_20' ) end [2024-12-26 15:43:18] Production.INFO: ProcessCDR(1,14107854,1,1,2) [2024-12-26 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107854', 'tblTempUsageDetail_20' ) start [2024-12-26 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107854', 'tblTempUsageDetail_20' ) end [2024-12-26 15:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:43:21] Production.INFO: ==5209== Releasing lock... [2024-12-26 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:43:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-26 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:44:05 [end_date_ymd] => 2024-12-26 15:44:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:44:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:44:18] Production.INFO: count ==2300 [2024-12-26 15:44:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:44:05 - End Time 2024-12-26 15:44:05 [2024-12-26 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107859', 'tblTempUsageDetail_20' ) start [2024-12-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107859', 'tblTempUsageDetail_20' ) end [2024-12-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107859', 'tblTempVendorCDR_20' ) start [2024-12-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107859', 'tblTempVendorCDR_20' ) end [2024-12-26 15:44:19] Production.INFO: ProcessCDR(1,14107859,1,1,2) [2024-12-26 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107859', 'tblTempUsageDetail_20' ) start [2024-12-26 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107859', 'tblTempUsageDetail_20' ) end [2024-12-26 15:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:44:23] Production.INFO: ==5286== Releasing lock... [2024-12-26 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:44:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:45:05 [end_date_ymd] => 2024-12-26 15:45:05 [RateCDR] => 1 ) [2024-12-26 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:45:05' and `end` < '2024-12-26 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:45:18] Production.INFO: count ==2304 [2024-12-26 15:45:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:45:05 - End Time 2024-12-26 15:45:05 [2024-12-26 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107864', 'tblTempUsageDetail_20' ) start [2024-12-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107864', 'tblTempUsageDetail_20' ) end [2024-12-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107864', 'tblTempVendorCDR_20' ) start [2024-12-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107864', 'tblTempVendorCDR_20' ) end [2024-12-26 15:45:19] Production.INFO: ProcessCDR(1,14107864,1,1,2) [2024-12-26 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107864', 'tblTempUsageDetail_20' ) start [2024-12-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107864', 'tblTempUsageDetail_20' ) end [2024-12-26 15:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:45:22] Production.INFO: ==5366== Releasing lock... [2024-12-26 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:45:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:46:05 [end_date_ymd] => 2024-12-26 15:46:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:46:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:46:18] Production.INFO: count ==2305 [2024-12-26 15:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:46:05 - End Time 2024-12-26 15:46:05 [2024-12-26 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107869', 'tblTempUsageDetail_20' ) start [2024-12-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107869', 'tblTempUsageDetail_20' ) end [2024-12-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107869', 'tblTempVendorCDR_20' ) start [2024-12-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107869', 'tblTempVendorCDR_20' ) end [2024-12-26 15:46:18] Production.INFO: ProcessCDR(1,14107869,1,1,2) [2024-12-26 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107869', 'tblTempUsageDetail_20' ) start [2024-12-26 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107869', 'tblTempUsageDetail_20' ) end [2024-12-26 15:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:46:23] Production.INFO: ==5439== Releasing lock... [2024-12-26 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:46:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:47:05 [end_date_ymd] => 2024-12-26 15:47:05 [RateCDR] => 1 ) [2024-12-26 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:47:05' and `end` < '2024-12-26 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:47:18] Production.INFO: count ==2312 [2024-12-26 15:47:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:47:05 - End Time 2024-12-26 15:47:05 [2024-12-26 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107874', 'tblTempUsageDetail_20' ) start [2024-12-26 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107874', 'tblTempUsageDetail_20' ) end [2024-12-26 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107874', 'tblTempVendorCDR_20' ) start [2024-12-26 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107874', 'tblTempVendorCDR_20' ) end [2024-12-26 15:47:19] Production.INFO: ProcessCDR(1,14107874,1,1,2) [2024-12-26 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107874', 'tblTempUsageDetail_20' ) start [2024-12-26 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107874', 'tblTempUsageDetail_20' ) end [2024-12-26 15:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:47:24] Production.INFO: ==5516== Releasing lock... [2024-12-26 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:47:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:48:04 [end_date_ymd] => 2024-12-26 15:48:04 [RateCDR] => 1 ) [2024-12-26 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:48:04' and `end` < '2024-12-26 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:48:17] Production.INFO: count ==2317 [2024-12-26 15:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 12:48:04 - End Time 2024-12-26 15:48:04 [2024-12-26 15:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107879', 'tblTempUsageDetail_20' ) start [2024-12-26 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107879', 'tblTempUsageDetail_20' ) end [2024-12-26 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107879', 'tblTempVendorCDR_20' ) start [2024-12-26 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107879', 'tblTempVendorCDR_20' ) end [2024-12-26 15:48:17] Production.INFO: ProcessCDR(1,14107879,1,1,2) [2024-12-26 15:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107879', 'tblTempUsageDetail_20' ) start [2024-12-26 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107879', 'tblTempUsageDetail_20' ) end [2024-12-26 15:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:48:21] Production.INFO: ==5592== Releasing lock... [2024-12-26 15:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:48:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:49:05 [end_date_ymd] => 2024-12-26 15:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:49:18] Production.INFO: count ==2322 [2024-12-26 15:49:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:49:05 - End Time 2024-12-26 15:49:05 [2024-12-26 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107884', 'tblTempUsageDetail_20' ) start [2024-12-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107884', 'tblTempUsageDetail_20' ) end [2024-12-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107884', 'tblTempVendorCDR_20' ) start [2024-12-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107884', 'tblTempVendorCDR_20' ) end [2024-12-26 15:49:19] Production.INFO: ProcessCDR(1,14107884,1,1,2) [2024-12-26 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107884', 'tblTempUsageDetail_20' ) start [2024-12-26 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107884', 'tblTempUsageDetail_20' ) end [2024-12-26 15:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:49:23] Production.INFO: ==5678== Releasing lock... [2024-12-26 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:49:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:50:06 [end_date_ymd] => 2024-12-26 15:50:06 [RateCDR] => 1 ) [2024-12-26 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:50:06' and `end` < '2024-12-26 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:50:20] Production.INFO: count ==2319 [2024-12-26 15:50:21] Production.ERROR: pbx CDR StartTime 2024-12-26 12:50:06 - End Time 2024-12-26 15:50:06 [2024-12-26 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107890', 'tblTempUsageDetail_20' ) start [2024-12-26 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107890', 'tblTempUsageDetail_20' ) end [2024-12-26 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107890', 'tblTempVendorCDR_20' ) start [2024-12-26 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107890', 'tblTempVendorCDR_20' ) end [2024-12-26 15:50:21] Production.INFO: ProcessCDR(1,14107890,1,1,2) [2024-12-26 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107890', 'tblTempUsageDetail_20' ) start [2024-12-26 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107890', 'tblTempUsageDetail_20' ) end [2024-12-26 15:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:50:24] Production.INFO: ==5761== Releasing lock... [2024-12-26 15:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:50:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:51:04 [end_date_ymd] => 2024-12-26 15:51:04 [RateCDR] => 1 ) [2024-12-26 15:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:51:04' and `end` < '2024-12-26 15:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:51:17] Production.INFO: count ==2335 [2024-12-26 15:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:51:04 - End Time 2024-12-26 15:51:04 [2024-12-26 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107895', 'tblTempUsageDetail_20' ) start [2024-12-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107895', 'tblTempUsageDetail_20' ) end [2024-12-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107895', 'tblTempVendorCDR_20' ) start [2024-12-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107895', 'tblTempVendorCDR_20' ) end [2024-12-26 15:51:18] Production.INFO: ProcessCDR(1,14107895,1,1,2) [2024-12-26 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107895', 'tblTempUsageDetail_20' ) start [2024-12-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107895', 'tblTempUsageDetail_20' ) end [2024-12-26 15:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:51:23] Production.INFO: ==5883== Releasing lock... [2024-12-26 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:51:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:52:05 [end_date_ymd] => 2024-12-26 15:52:05 [RateCDR] => 1 ) [2024-12-26 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:52:05' and `end` < '2024-12-26 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:52:18] Production.INFO: count ==2334 [2024-12-26 15:52:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:52:05 - End Time 2024-12-26 15:52:05 [2024-12-26 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107900', 'tblTempUsageDetail_20' ) start [2024-12-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107900', 'tblTempUsageDetail_20' ) end [2024-12-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107900', 'tblTempVendorCDR_20' ) start [2024-12-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107900', 'tblTempVendorCDR_20' ) end [2024-12-26 15:52:19] Production.INFO: ProcessCDR(1,14107900,1,1,2) [2024-12-26 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107900', 'tblTempUsageDetail_20' ) start [2024-12-26 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107900', 'tblTempUsageDetail_20' ) end [2024-12-26 15:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:52:22] Production.INFO: ==5966== Releasing lock... [2024-12-26 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:52:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:53:05 [end_date_ymd] => 2024-12-26 15:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 12:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 15:53:18] Production.INFO: count ==2340 [2024-12-26 15:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 12:53:05 - End Time 2024-12-26 15:53:05 [2024-12-26 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107905', 'tblTempUsageDetail_20' ) start [2024-12-26 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107905', 'tblTempUsageDetail_20' ) end [2024-12-26 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107905', 'tblTempVendorCDR_20' ) start [2024-12-26 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107905', 'tblTempVendorCDR_20' ) end [2024-12-26 15:53:19] Production.INFO: ProcessCDR(1,14107905,1,1,2) [2024-12-26 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107905', 'tblTempUsageDetail_20' ) start [2024-12-26 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107905', 'tblTempUsageDetail_20' ) end [2024-12-26 15:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:53:22] Production.INFO: ==6045== Releasing lock... [2024-12-26 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:53:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:54:05 [end_date_ymd] => 2024-12-26 15:54:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:54:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:54:18] Production.INFO: count ==2339 [2024-12-26 15:54:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:54:05 - End Time 2024-12-26 15:54:05 [2024-12-26 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107910', 'tblTempUsageDetail_20' ) start [2024-12-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107910', 'tblTempUsageDetail_20' ) end [2024-12-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107910', 'tblTempVendorCDR_20' ) start [2024-12-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107910', 'tblTempVendorCDR_20' ) end [2024-12-26 15:54:18] Production.INFO: ProcessCDR(1,14107910,1,1,2) [2024-12-26 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107910', 'tblTempUsageDetail_20' ) start [2024-12-26 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107910', 'tblTempUsageDetail_20' ) end [2024-12-26 15:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:54:22] Production.INFO: ==6121== Releasing lock... [2024-12-26 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:54:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-26 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:55:05 [end_date_ymd] => 2024-12-26 15:55:05 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:55:05' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:55:18] Production.INFO: count ==2363 [2024-12-26 15:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:55:05 - End Time 2024-12-26 15:55:05 [2024-12-26 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107915', 'tblTempUsageDetail_20' ) start [2024-12-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107915', 'tblTempUsageDetail_20' ) end [2024-12-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107915', 'tblTempVendorCDR_20' ) start [2024-12-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107915', 'tblTempVendorCDR_20' ) end [2024-12-26 15:55:18] Production.INFO: ProcessCDR(1,14107915,1,1,2) [2024-12-26 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107915', 'tblTempUsageDetail_20' ) start [2024-12-26 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107915', 'tblTempUsageDetail_20' ) end [2024-12-26 15:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:55:22] Production.INFO: ==6195== Releasing lock... [2024-12-26 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:55:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:56:05 [end_date_ymd] => 2024-12-26 15:56:05 [RateCDR] => 1 ) [2024-12-26 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:56:05' and `end` < '2024-12-26 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:56:18] Production.INFO: count ==2370 [2024-12-26 15:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:56:05 - End Time 2024-12-26 15:56:05 [2024-12-26 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107920', 'tblTempUsageDetail_20' ) start [2024-12-26 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107920', 'tblTempUsageDetail_20' ) end [2024-12-26 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107920', 'tblTempVendorCDR_20' ) start [2024-12-26 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107920', 'tblTempVendorCDR_20' ) end [2024-12-26 15:56:18] Production.INFO: ProcessCDR(1,14107920,1,1,2) [2024-12-26 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107920', 'tblTempUsageDetail_20' ) start [2024-12-26 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107920', 'tblTempUsageDetail_20' ) end [2024-12-26 15:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:56:23] Production.INFO: ==6274== Releasing lock... [2024-12-26 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:56:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:57:04 [end_date_ymd] => 2024-12-26 15:57:04 [RateCDR] => 1 ) [2024-12-26 15: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` >= '2024-12-26 12:57:04' and `end` < '2024-12-26 15: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 ,'') [2024-12-26 15:57:17] Production.INFO: count ==2373 [2024-12-26 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:57:04 - End Time 2024-12-26 15:57:04 [2024-12-26 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107925', 'tblTempUsageDetail_20' ) start [2024-12-26 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107925', 'tblTempUsageDetail_20' ) end [2024-12-26 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107925', 'tblTempVendorCDR_20' ) start [2024-12-26 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107925', 'tblTempVendorCDR_20' ) end [2024-12-26 15:57:18] Production.INFO: ProcessCDR(1,14107925,1,1,2) [2024-12-26 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107925', 'tblTempUsageDetail_20' ) start [2024-12-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107925', 'tblTempUsageDetail_20' ) end [2024-12-26 15:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:57:22] Production.INFO: ==6348== Releasing lock... [2024-12-26 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:57:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:58:05 [end_date_ymd] => 2024-12-26 15:58:05 [RateCDR] => 1 ) [2024-12-26 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:58:05' and `end` < '2024-12-26 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:58:17] Production.INFO: count ==2372 [2024-12-26 15:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:58:05 - End Time 2024-12-26 15:58:05 [2024-12-26 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107930', 'tblTempUsageDetail_20' ) start [2024-12-26 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107930', 'tblTempUsageDetail_20' ) end [2024-12-26 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107930', 'tblTempVendorCDR_20' ) start [2024-12-26 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107930', 'tblTempVendorCDR_20' ) end [2024-12-26 15:58:18] Production.INFO: ProcessCDR(1,14107930,1,1,2) [2024-12-26 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107930', 'tblTempUsageDetail_20' ) start [2024-12-26 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107930', 'tblTempUsageDetail_20' ) end [2024-12-26 15:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:58:23] Production.INFO: ==6424== Releasing lock... [2024-12-26 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:58:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 12:59:05 [end_date_ymd] => 2024-12-26 15:59:05 [RateCDR] => 1 ) [2024-12-26 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 12:59:05' and `end` < '2024-12-26 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 15:59:18] Production.INFO: count ==2372 [2024-12-26 15:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 12:59:05 - End Time 2024-12-26 15:59:05 [2024-12-26 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107935', 'tblTempUsageDetail_20' ) start [2024-12-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107935', 'tblTempUsageDetail_20' ) end [2024-12-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107935', 'tblTempVendorCDR_20' ) start [2024-12-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107935', 'tblTempVendorCDR_20' ) end [2024-12-26 15:59:19] Production.INFO: ProcessCDR(1,14107935,1,1,2) [2024-12-26 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107935', 'tblTempUsageDetail_20' ) start [2024-12-26 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107935', 'tblTempUsageDetail_20' ) end [2024-12-26 15:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 15:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 15:59:22] Production.INFO: ==6498== Releasing lock... [2024-12-26 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 15:59:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:00:05 [end_date_ymd] => 2024-12-26 16:00:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:00:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:00:18] Production.INFO: count ==2367 [2024-12-26 16:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:00:05 - End Time 2024-12-26 16:00:05 [2024-12-26 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107941', 'tblTempUsageDetail_20' ) start [2024-12-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107941', 'tblTempUsageDetail_20' ) end [2024-12-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107941', 'tblTempVendorCDR_20' ) start [2024-12-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107941', 'tblTempVendorCDR_20' ) end [2024-12-26 16:00:19] Production.INFO: ProcessCDR(1,14107941,1,1,2) [2024-12-26 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107941', 'tblTempUsageDetail_20' ) start [2024-12-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107941', 'tblTempUsageDetail_20' ) end [2024-12-26 16:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:00:23] Production.INFO: ==6572== Releasing lock... [2024-12-26 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:00:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:01:05 [end_date_ymd] => 2024-12-26 16:01:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:01:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:01:18] Production.INFO: count ==2376 [2024-12-26 16:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:01:05 - End Time 2024-12-26 16:01:05 [2024-12-26 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107946', 'tblTempUsageDetail_20' ) start [2024-12-26 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107946', 'tblTempUsageDetail_20' ) end [2024-12-26 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107946', 'tblTempVendorCDR_20' ) start [2024-12-26 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107946', 'tblTempVendorCDR_20' ) end [2024-12-26 16:01:18] Production.INFO: ProcessCDR(1,14107946,1,1,2) [2024-12-26 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107946', 'tblTempUsageDetail_20' ) start [2024-12-26 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107946', 'tblTempUsageDetail_20' ) end [2024-12-26 16:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:01:23] Production.INFO: ==6667== Releasing lock... [2024-12-26 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:01:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-26 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:02:05 [end_date_ymd] => 2024-12-26 16:02:05 [RateCDR] => 1 ) [2024-12-26 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:02:05' and `end` < '2024-12-26 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:02:18] Production.INFO: count ==2380 [2024-12-26 16:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:02:05 - End Time 2024-12-26 16:02:05 [2024-12-26 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107951', 'tblTempUsageDetail_20' ) start [2024-12-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107951', 'tblTempUsageDetail_20' ) end [2024-12-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107951', 'tblTempVendorCDR_20' ) start [2024-12-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107951', 'tblTempVendorCDR_20' ) end [2024-12-26 16:02:18] Production.INFO: ProcessCDR(1,14107951,1,1,2) [2024-12-26 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107951', 'tblTempUsageDetail_20' ) start [2024-12-26 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107951', 'tblTempUsageDetail_20' ) end [2024-12-26 16:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:02:23] Production.INFO: ==6742== Releasing lock... [2024-12-26 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:02:23] Production.INFO: 46 MB #Memory Used# [2024-12-26 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:03:04 [end_date_ymd] => 2024-12-26 16:03:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:03:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:03:18] Production.INFO: count ==2720 [2024-12-26 16:03:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:03:04 - End Time 2024-12-26 16:03:04 [2024-12-26 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107956', 'tblTempUsageDetail_20' ) start [2024-12-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107956', 'tblTempUsageDetail_20' ) end [2024-12-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107956', 'tblTempVendorCDR_20' ) start [2024-12-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107956', 'tblTempVendorCDR_20' ) end [2024-12-26 16:03:19] Production.INFO: ProcessCDR(1,14107956,1,1,2) [2024-12-26 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107956', 'tblTempUsageDetail_20' ) start [2024-12-26 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107956', 'tblTempUsageDetail_20' ) end [2024-12-26 16:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:03:24] Production.INFO: ==6823== Releasing lock... [2024-12-26 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:03:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:04:05 [end_date_ymd] => 2024-12-26 16:04:05 [RateCDR] => 1 ) [2024-12-26 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:04:05' and `end` < '2024-12-26 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:04:17] Production.INFO: count ==2726 [2024-12-26 16:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:04:05 - End Time 2024-12-26 16:04:05 [2024-12-26 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107961', 'tblTempUsageDetail_20' ) start [2024-12-26 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107961', 'tblTempUsageDetail_20' ) end [2024-12-26 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107961', 'tblTempVendorCDR_20' ) start [2024-12-26 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107961', 'tblTempVendorCDR_20' ) end [2024-12-26 16:04:19] Production.INFO: ProcessCDR(1,14107961,1,1,2) [2024-12-26 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107961', 'tblTempUsageDetail_20' ) start [2024-12-26 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107961', 'tblTempUsageDetail_20' ) end [2024-12-26 16:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:04:23] Production.INFO: ==6896== Releasing lock... [2024-12-26 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:04:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:05:05 [end_date_ymd] => 2024-12-26 16:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:05:18] Production.INFO: count ==2749 [2024-12-26 16:05:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:05:05 - End Time 2024-12-26 16:05:05 [2024-12-26 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107966', 'tblTempUsageDetail_20' ) start [2024-12-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107966', 'tblTempUsageDetail_20' ) end [2024-12-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107966', 'tblTempVendorCDR_20' ) start [2024-12-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107966', 'tblTempVendorCDR_20' ) end [2024-12-26 16:05:19] Production.INFO: ProcessCDR(1,14107966,1,1,2) [2024-12-26 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107966', 'tblTempUsageDetail_20' ) start [2024-12-26 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107966', 'tblTempUsageDetail_20' ) end [2024-12-26 16:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:05:22] Production.INFO: ==6977== Releasing lock... [2024-12-26 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:05:22] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:06:04 [end_date_ymd] => 2024-12-26 16:06:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:06:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:06:17] Production.INFO: count ==2766 [2024-12-26 16:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:06:04 - End Time 2024-12-26 16:06:04 [2024-12-26 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107971', 'tblTempUsageDetail_20' ) start [2024-12-26 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107971', 'tblTempUsageDetail_20' ) end [2024-12-26 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107971', 'tblTempVendorCDR_20' ) start [2024-12-26 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107971', 'tblTempVendorCDR_20' ) end [2024-12-26 16:06:18] Production.INFO: ProcessCDR(1,14107971,1,1,2) [2024-12-26 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107971', 'tblTempUsageDetail_20' ) start [2024-12-26 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107971', 'tblTempUsageDetail_20' ) end [2024-12-26 16:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:06:23] Production.INFO: ==7092== Releasing lock... [2024-12-26 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:06:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:07:05 [end_date_ymd] => 2024-12-26 16:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:07:18] Production.INFO: count ==2742 [2024-12-26 16:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:07:05 - End Time 2024-12-26 16:07:05 [2024-12-26 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107976', 'tblTempUsageDetail_20' ) start [2024-12-26 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107976', 'tblTempUsageDetail_20' ) end [2024-12-26 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107976', 'tblTempVendorCDR_20' ) start [2024-12-26 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107976', 'tblTempVendorCDR_20' ) end [2024-12-26 16:07:19] Production.INFO: ProcessCDR(1,14107976,1,1,2) [2024-12-26 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107976', 'tblTempUsageDetail_20' ) start [2024-12-26 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107976', 'tblTempUsageDetail_20' ) end [2024-12-26 16:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:07:24] Production.INFO: ==7167== Releasing lock... [2024-12-26 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:07:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:08:05 [end_date_ymd] => 2024-12-26 16:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:08:17] Production.INFO: count ==2738 [2024-12-26 16:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:08:05 - End Time 2024-12-26 16:08:05 [2024-12-26 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107981', 'tblTempUsageDetail_20' ) start [2024-12-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107981', 'tblTempUsageDetail_20' ) end [2024-12-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107981', 'tblTempVendorCDR_20' ) start [2024-12-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107981', 'tblTempVendorCDR_20' ) end [2024-12-26 16:08:19] Production.INFO: ProcessCDR(1,14107981,1,1,2) [2024-12-26 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107981', 'tblTempUsageDetail_20' ) start [2024-12-26 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107981', 'tblTempUsageDetail_20' ) end [2024-12-26 16:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:08:22] Production.INFO: ==7245== Releasing lock... [2024-12-26 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:08:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-26 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:09:05 [end_date_ymd] => 2024-12-26 16:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:09:18] Production.INFO: count ==2728 [2024-12-26 16:09:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:09:05 - End Time 2024-12-26 16:09:05 [2024-12-26 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107986', 'tblTempUsageDetail_20' ) start [2024-12-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107986', 'tblTempUsageDetail_20' ) end [2024-12-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107986', 'tblTempVendorCDR_20' ) start [2024-12-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107986', 'tblTempVendorCDR_20' ) end [2024-12-26 16:09:19] Production.INFO: ProcessCDR(1,14107986,1,1,2) [2024-12-26 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107986', 'tblTempUsageDetail_20' ) start [2024-12-26 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107986', 'tblTempUsageDetail_20' ) end [2024-12-26 16:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:09:23] Production.INFO: ==7318== Releasing lock... [2024-12-26 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:09:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:10:05 [end_date_ymd] => 2024-12-26 16:10:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:10:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:10:18] Production.INFO: count ==2695 [2024-12-26 16:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:10:05 - End Time 2024-12-26 16:10:05 [2024-12-26 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107991', 'tblTempUsageDetail_20' ) start [2024-12-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107991', 'tblTempUsageDetail_20' ) end [2024-12-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107991', 'tblTempVendorCDR_20' ) start [2024-12-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107991', 'tblTempVendorCDR_20' ) end [2024-12-26 16:10:20] Production.INFO: ProcessCDR(1,14107991,1,1,2) [2024-12-26 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107991', 'tblTempUsageDetail_20' ) start [2024-12-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107991', 'tblTempUsageDetail_20' ) end [2024-12-26 16:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:10:24] Production.INFO: ==7398== Releasing lock... [2024-12-26 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:10:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-26 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:11:04 [end_date_ymd] => 2024-12-26 16:11:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:11:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:11:17] Production.INFO: count ==2836 [2024-12-26 16:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:11:04 - End Time 2024-12-26 16:11:04 [2024-12-26 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107997', 'tblTempUsageDetail_20' ) start [2024-12-26 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14107997', 'tblTempUsageDetail_20' ) end [2024-12-26 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107997', 'tblTempVendorCDR_20' ) start [2024-12-26 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14107997', 'tblTempVendorCDR_20' ) end [2024-12-26 16:11:18] Production.INFO: ProcessCDR(1,14107997,1,1,2) [2024-12-26 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14107997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14107997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14107997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14107997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107997', 'tblTempUsageDetail_20' ) start [2024-12-26 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14107997', 'tblTempUsageDetail_20' ) end [2024-12-26 16:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:11:23] Production.INFO: ==7472== Releasing lock... [2024-12-26 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:11:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-26 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:12:05 [end_date_ymd] => 2024-12-26 16:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:12:18] Production.INFO: count ==2824 [2024-12-26 16:12:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:12:05 - End Time 2024-12-26 16:12:05 [2024-12-26 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108002', 'tblTempUsageDetail_20' ) start [2024-12-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108002', 'tblTempUsageDetail_20' ) end [2024-12-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108002', 'tblTempVendorCDR_20' ) start [2024-12-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108002', 'tblTempVendorCDR_20' ) end [2024-12-26 16:12:19] Production.INFO: ProcessCDR(1,14108002,1,1,2) [2024-12-26 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108002', 'tblTempUsageDetail_20' ) start [2024-12-26 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108002', 'tblTempUsageDetail_20' ) end [2024-12-26 16:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:12:22] Production.INFO: ==7547== Releasing lock... [2024-12-26 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:12:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:13:05 [end_date_ymd] => 2024-12-26 16:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:13:19] Production.INFO: count ==2795 [2024-12-26 16:13:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:13:05 - End Time 2024-12-26 16:13:05 [2024-12-26 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108007', 'tblTempUsageDetail_20' ) start [2024-12-26 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108007', 'tblTempUsageDetail_20' ) end [2024-12-26 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108007', 'tblTempVendorCDR_20' ) start [2024-12-26 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108007', 'tblTempVendorCDR_20' ) end [2024-12-26 16:13:20] Production.INFO: ProcessCDR(1,14108007,1,1,2) [2024-12-26 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108007', 'tblTempUsageDetail_20' ) start [2024-12-26 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108007', 'tblTempUsageDetail_20' ) end [2024-12-26 16:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:13:23] Production.INFO: ==7619== Releasing lock... [2024-12-26 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:13:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:14:05 [end_date_ymd] => 2024-12-26 16:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:14:18] Production.INFO: count ==2790 [2024-12-26 16:14:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:14:05 - End Time 2024-12-26 16:14:05 [2024-12-26 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108012', 'tblTempUsageDetail_20' ) start [2024-12-26 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108012', 'tblTempUsageDetail_20' ) end [2024-12-26 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108012', 'tblTempVendorCDR_20' ) start [2024-12-26 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108012', 'tblTempVendorCDR_20' ) end [2024-12-26 16:14:20] Production.INFO: ProcessCDR(1,14108012,1,1,2) [2024-12-26 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108012', 'tblTempUsageDetail_20' ) start [2024-12-26 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108012', 'tblTempUsageDetail_20' ) end [2024-12-26 16:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:14:23] Production.INFO: ==7695== Releasing lock... [2024-12-26 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:14:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:15:05 [end_date_ymd] => 2024-12-26 16:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:15:18] Production.INFO: count ==2782 [2024-12-26 16:15:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:15:05 - End Time 2024-12-26 16:15:05 [2024-12-26 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108017', 'tblTempUsageDetail_20' ) start [2024-12-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108017', 'tblTempUsageDetail_20' ) end [2024-12-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108017', 'tblTempVendorCDR_20' ) start [2024-12-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108017', 'tblTempVendorCDR_20' ) end [2024-12-26 16:15:19] Production.INFO: ProcessCDR(1,14108017,1,1,2) [2024-12-26 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108017', 'tblTempUsageDetail_20' ) start [2024-12-26 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108017', 'tblTempUsageDetail_20' ) end [2024-12-26 16:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:15:23] Production.INFO: ==7771== Releasing lock... [2024-12-26 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:15:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:16:05 [end_date_ymd] => 2024-12-26 16:16:05 [RateCDR] => 1 ) [2024-12-26 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:16:05' and `end` < '2024-12-26 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:16:18] Production.INFO: count ==2819 [2024-12-26 16:16:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:16:05 - End Time 2024-12-26 16:16:05 [2024-12-26 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108022', 'tblTempUsageDetail_20' ) start [2024-12-26 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108022', 'tblTempUsageDetail_20' ) end [2024-12-26 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108022', 'tblTempVendorCDR_20' ) start [2024-12-26 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108022', 'tblTempVendorCDR_20' ) end [2024-12-26 16:16:19] Production.INFO: ProcessCDR(1,14108022,1,1,2) [2024-12-26 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108022', 'tblTempUsageDetail_20' ) start [2024-12-26 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108022', 'tblTempUsageDetail_20' ) end [2024-12-26 16:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:16:22] Production.INFO: ==7845== Releasing lock... [2024-12-26 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:16:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:17:05 [end_date_ymd] => 2024-12-26 16:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:17:19] Production.INFO: count ==2823 [2024-12-26 16:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:17:05 - End Time 2024-12-26 16:17:05 [2024-12-26 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108027', 'tblTempUsageDetail_20' ) start [2024-12-26 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108027', 'tblTempUsageDetail_20' ) end [2024-12-26 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108027', 'tblTempVendorCDR_20' ) start [2024-12-26 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108027', 'tblTempVendorCDR_20' ) end [2024-12-26 16:17:20] Production.INFO: ProcessCDR(1,14108027,1,1,2) [2024-12-26 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108027', 'tblTempUsageDetail_20' ) start [2024-12-26 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108027', 'tblTempUsageDetail_20' ) end [2024-12-26 16:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:17:25] Production.INFO: ==7934== Releasing lock... [2024-12-26 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:17:25] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:18:04 [end_date_ymd] => 2024-12-26 16:18:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:18:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:18:17] Production.INFO: count ==2810 [2024-12-26 16:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:18:04 - End Time 2024-12-26 16:18:04 [2024-12-26 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108032', 'tblTempUsageDetail_20' ) start [2024-12-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108032', 'tblTempUsageDetail_20' ) end [2024-12-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108032', 'tblTempVendorCDR_20' ) start [2024-12-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108032', 'tblTempVendorCDR_20' ) end [2024-12-26 16:18:18] Production.INFO: ProcessCDR(1,14108032,1,1,2) [2024-12-26 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108032', 'tblTempUsageDetail_20' ) start [2024-12-26 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108032', 'tblTempUsageDetail_20' ) end [2024-12-26 16:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:18:23] Production.INFO: ==8008== Releasing lock... [2024-12-26 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:18:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:19:05 [end_date_ymd] => 2024-12-26 16:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:19:17] Production.INFO: count ==2813 [2024-12-26 16:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:19:05 - End Time 2024-12-26 16:19:05 [2024-12-26 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108037', 'tblTempUsageDetail_20' ) start [2024-12-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108037', 'tblTempUsageDetail_20' ) end [2024-12-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108037', 'tblTempVendorCDR_20' ) start [2024-12-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108037', 'tblTempVendorCDR_20' ) end [2024-12-26 16:19:19] Production.INFO: ProcessCDR(1,14108037,1,1,2) [2024-12-26 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108037', 'tblTempUsageDetail_20' ) start [2024-12-26 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108037', 'tblTempUsageDetail_20' ) end [2024-12-26 16:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:19:23] Production.INFO: ==8082== Releasing lock... [2024-12-26 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:19:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-26 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:20:05 [end_date_ymd] => 2024-12-26 16:20:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:20:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:20:18] Production.INFO: count ==2801 [2024-12-26 16:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:20:05 - End Time 2024-12-26 16:20:05 [2024-12-26 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108043', 'tblTempUsageDetail_20' ) start [2024-12-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108043', 'tblTempUsageDetail_20' ) end [2024-12-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108043', 'tblTempVendorCDR_20' ) start [2024-12-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108043', 'tblTempVendorCDR_20' ) end [2024-12-26 16:20:19] Production.INFO: ProcessCDR(1,14108043,1,1,2) [2024-12-26 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108043', 'tblTempUsageDetail_20' ) start [2024-12-26 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108043', 'tblTempUsageDetail_20' ) end [2024-12-26 16:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:20:23] Production.INFO: ==8162== Releasing lock... [2024-12-26 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:20:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:21:05 [end_date_ymd] => 2024-12-26 16:21:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:21:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:21:17] Production.INFO: count ==2829 [2024-12-26 16:21:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:21:05 - End Time 2024-12-26 16:21:05 [2024-12-26 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108048', 'tblTempUsageDetail_20' ) start [2024-12-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108048', 'tblTempUsageDetail_20' ) end [2024-12-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108048', 'tblTempVendorCDR_20' ) start [2024-12-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108048', 'tblTempVendorCDR_20' ) end [2024-12-26 16:21:19] Production.INFO: ProcessCDR(1,14108048,1,1,2) [2024-12-26 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108048', 'tblTempUsageDetail_20' ) start [2024-12-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108048', 'tblTempUsageDetail_20' ) end [2024-12-26 16:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:21:23] Production.INFO: ==8243== Releasing lock... [2024-12-26 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:21:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:22:05 [end_date_ymd] => 2024-12-26 16:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:22:18] Production.INFO: count ==2819 [2024-12-26 16:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:22:05 - End Time 2024-12-26 16:22:05 [2024-12-26 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108053', 'tblTempUsageDetail_20' ) start [2024-12-26 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108053', 'tblTempUsageDetail_20' ) end [2024-12-26 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108053', 'tblTempVendorCDR_20' ) start [2024-12-26 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108053', 'tblTempVendorCDR_20' ) end [2024-12-26 16:22:19] Production.INFO: ProcessCDR(1,14108053,1,1,2) [2024-12-26 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108053', 'tblTempUsageDetail_20' ) start [2024-12-26 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108053', 'tblTempUsageDetail_20' ) end [2024-12-26 16:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:22:23] Production.INFO: ==8354== Releasing lock... [2024-12-26 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:22:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-26 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:23:04 [end_date_ymd] => 2024-12-26 16:23:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:23:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:23:17] Production.INFO: count ==2805 [2024-12-26 16:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:23:04 - End Time 2024-12-26 16:23:04 [2024-12-26 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108058', 'tblTempUsageDetail_20' ) start [2024-12-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108058', 'tblTempUsageDetail_20' ) end [2024-12-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108058', 'tblTempVendorCDR_20' ) start [2024-12-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108058', 'tblTempVendorCDR_20' ) end [2024-12-26 16:23:18] Production.INFO: ProcessCDR(1,14108058,1,1,2) [2024-12-26 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108058', 'tblTempUsageDetail_20' ) start [2024-12-26 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108058', 'tblTempUsageDetail_20' ) end [2024-12-26 16:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:23:23] Production.INFO: ==8434== Releasing lock... [2024-12-26 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:23:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:24:05 [end_date_ymd] => 2024-12-26 16:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:24:18] Production.INFO: count ==2803 [2024-12-26 16:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:24:05 - End Time 2024-12-26 16:24:05 [2024-12-26 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108063', 'tblTempUsageDetail_20' ) start [2024-12-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108063', 'tblTempUsageDetail_20' ) end [2024-12-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108063', 'tblTempVendorCDR_20' ) start [2024-12-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108063', 'tblTempVendorCDR_20' ) end [2024-12-26 16:24:19] Production.INFO: ProcessCDR(1,14108063,1,1,2) [2024-12-26 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108063', 'tblTempUsageDetail_20' ) start [2024-12-26 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108063', 'tblTempUsageDetail_20' ) end [2024-12-26 16:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:24:23] Production.INFO: ==8505== Releasing lock... [2024-12-26 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:24:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:25:04 [end_date_ymd] => 2024-12-26 16:25:04 [RateCDR] => 1 ) [2024-12-26 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:25:04' and `end` < '2024-12-26 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:25:17] Production.INFO: count ==2780 [2024-12-26 16:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:25:04 - End Time 2024-12-26 16:25:04 [2024-12-26 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108068', 'tblTempUsageDetail_20' ) start [2024-12-26 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108068', 'tblTempUsageDetail_20' ) end [2024-12-26 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108068', 'tblTempVendorCDR_20' ) start [2024-12-26 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108068', 'tblTempVendorCDR_20' ) end [2024-12-26 16:25:18] Production.INFO: ProcessCDR(1,14108068,1,1,2) [2024-12-26 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108068', 'tblTempUsageDetail_20' ) start [2024-12-26 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108068', 'tblTempUsageDetail_20' ) end [2024-12-26 16:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:25:23] Production.INFO: ==8580== Releasing lock... [2024-12-26 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:25:23] Production.INFO: 49 MB #Memory Used# [2024-12-26 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:26:05 [end_date_ymd] => 2024-12-26 16:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:26:17] Production.INFO: count ==2785 [2024-12-26 16:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:26:05 - End Time 2024-12-26 16:26:05 [2024-12-26 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108073', 'tblTempUsageDetail_20' ) start [2024-12-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108073', 'tblTempUsageDetail_20' ) end [2024-12-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108073', 'tblTempVendorCDR_20' ) start [2024-12-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108073', 'tblTempVendorCDR_20' ) end [2024-12-26 16:26:19] Production.INFO: ProcessCDR(1,14108073,1,1,2) [2024-12-26 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108073', 'tblTempUsageDetail_20' ) start [2024-12-26 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108073', 'tblTempUsageDetail_20' ) end [2024-12-26 16:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:26:23] Production.INFO: ==8650== Releasing lock... [2024-12-26 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:26:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:27:05 [end_date_ymd] => 2024-12-26 16:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:27:18] Production.INFO: count ==2796 [2024-12-26 16:27:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:27:05 - End Time 2024-12-26 16:27:05 [2024-12-26 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108078', 'tblTempUsageDetail_20' ) start [2024-12-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108078', 'tblTempUsageDetail_20' ) end [2024-12-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108078', 'tblTempVendorCDR_20' ) start [2024-12-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108078', 'tblTempVendorCDR_20' ) end [2024-12-26 16:27:19] Production.INFO: ProcessCDR(1,14108078,1,1,2) [2024-12-26 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108078', 'tblTempUsageDetail_20' ) start [2024-12-26 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108078', 'tblTempUsageDetail_20' ) end [2024-12-26 16:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:27:23] Production.INFO: ==8724== Releasing lock... [2024-12-26 16:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:27:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:28:05 [end_date_ymd] => 2024-12-26 16:28:05 [RateCDR] => 1 ) [2024-12-26 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:28:05' and `end` < '2024-12-26 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:28:18] Production.INFO: count ==2802 [2024-12-26 16:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:28:05 - End Time 2024-12-26 16:28:05 [2024-12-26 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108083', 'tblTempUsageDetail_20' ) start [2024-12-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108083', 'tblTempUsageDetail_20' ) end [2024-12-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108083', 'tblTempVendorCDR_20' ) start [2024-12-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108083', 'tblTempVendorCDR_20' ) end [2024-12-26 16:28:19] Production.INFO: ProcessCDR(1,14108083,1,1,2) [2024-12-26 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108083', 'tblTempUsageDetail_20' ) start [2024-12-26 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108083', 'tblTempUsageDetail_20' ) end [2024-12-26 16:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:28:23] Production.INFO: ==8798== Releasing lock... [2024-12-26 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:28:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-26 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:29:05 [end_date_ymd] => 2024-12-26 16:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:29:18] Production.INFO: count ==3056 [2024-12-26 16:29:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:29:05 - End Time 2024-12-26 16:29:05 [2024-12-26 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108088', 'tblTempUsageDetail_20' ) start [2024-12-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108088', 'tblTempUsageDetail_20' ) end [2024-12-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108088', 'tblTempVendorCDR_20' ) start [2024-12-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108088', 'tblTempVendorCDR_20' ) end [2024-12-26 16:29:19] Production.INFO: ProcessCDR(1,14108088,1,1,2) [2024-12-26 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108088', 'tblTempUsageDetail_20' ) start [2024-12-26 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108088', 'tblTempUsageDetail_20' ) end [2024-12-26 16:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:29:23] Production.INFO: ==8874== Releasing lock... [2024-12-26 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:29:23] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:30:05 [end_date_ymd] => 2024-12-26 16:30:05 [RateCDR] => 1 ) [2024-12-26 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:30:05' and `end` < '2024-12-26 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:30:18] Production.INFO: count ==3072 [2024-12-26 16:30:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:30:05 - End Time 2024-12-26 16:30:05 [2024-12-26 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108093', 'tblTempUsageDetail_20' ) start [2024-12-26 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108093', 'tblTempUsageDetail_20' ) end [2024-12-26 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108093', 'tblTempVendorCDR_20' ) start [2024-12-26 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108093', 'tblTempVendorCDR_20' ) end [2024-12-26 16:30:19] Production.INFO: ProcessCDR(1,14108093,1,1,2) [2024-12-26 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108093', 'tblTempUsageDetail_20' ) start [2024-12-26 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108093', 'tblTempUsageDetail_20' ) end [2024-12-26 16:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:30:24] Production.INFO: ==8948== Releasing lock... [2024-12-26 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:30:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:31:05 [end_date_ymd] => 2024-12-26 16:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:31:18] Production.INFO: count ==3140 [2024-12-26 16:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:31:05 - End Time 2024-12-26 16:31:05 [2024-12-26 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108099', 'tblTempUsageDetail_20' ) start [2024-12-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108099', 'tblTempUsageDetail_20' ) end [2024-12-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108099', 'tblTempVendorCDR_20' ) start [2024-12-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108099', 'tblTempVendorCDR_20' ) end [2024-12-26 16:31:19] Production.INFO: ProcessCDR(1,14108099,1,1,2) [2024-12-26 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108099', 'tblTempUsageDetail_20' ) start [2024-12-26 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108099', 'tblTempUsageDetail_20' ) end [2024-12-26 16:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:31:22] Production.INFO: ==9023== Releasing lock... [2024-12-26 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:31:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:32:05 [end_date_ymd] => 2024-12-26 16:32:05 [RateCDR] => 1 ) [2024-12-26 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:32:05' and `end` < '2024-12-26 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:32:17] Production.INFO: count ==3139 [2024-12-26 16:32:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:32:05 - End Time 2024-12-26 16:32:05 [2024-12-26 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108104', 'tblTempUsageDetail_20' ) start [2024-12-26 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108104', 'tblTempUsageDetail_20' ) end [2024-12-26 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108104', 'tblTempVendorCDR_20' ) start [2024-12-26 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108104', 'tblTempVendorCDR_20' ) end [2024-12-26 16:32:19] Production.INFO: ProcessCDR(1,14108104,1,1,2) [2024-12-26 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108104', 'tblTempUsageDetail_20' ) start [2024-12-26 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108104', 'tblTempUsageDetail_20' ) end [2024-12-26 16:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:32:24] Production.INFO: ==9095== Releasing lock... [2024-12-26 16:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:32:24] Production.INFO: 51.75 MB #Memory Used# [2024-12-26 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:33:05 [end_date_ymd] => 2024-12-26 16:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:33:18] Production.INFO: count ==3139 [2024-12-26 16:33:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:33:05 - End Time 2024-12-26 16:33:05 [2024-12-26 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108109', 'tblTempUsageDetail_20' ) start [2024-12-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108109', 'tblTempUsageDetail_20' ) end [2024-12-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108109', 'tblTempVendorCDR_20' ) start [2024-12-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108109', 'tblTempVendorCDR_20' ) end [2024-12-26 16:33:19] Production.INFO: ProcessCDR(1,14108109,1,1,2) [2024-12-26 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108109', 'tblTempUsageDetail_20' ) start [2024-12-26 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108109', 'tblTempUsageDetail_20' ) end [2024-12-26 16:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:33:24] Production.INFO: ==9172== Releasing lock... [2024-12-26 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:33:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:34:04 [end_date_ymd] => 2024-12-26 16:34:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:34:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:34:17] Production.INFO: count ==3139 [2024-12-26 16:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:34:04 - End Time 2024-12-26 16:34:04 [2024-12-26 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108114', 'tblTempUsageDetail_20' ) start [2024-12-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108114', 'tblTempUsageDetail_20' ) end [2024-12-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108114', 'tblTempVendorCDR_20' ) start [2024-12-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108114', 'tblTempVendorCDR_20' ) end [2024-12-26 16:34:18] Production.INFO: ProcessCDR(1,14108114,1,1,2) [2024-12-26 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108114', 'tblTempUsageDetail_20' ) start [2024-12-26 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108114', 'tblTempUsageDetail_20' ) end [2024-12-26 16:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:34:23] Production.INFO: ==9244== Releasing lock... [2024-12-26 16:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:34:23] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:35:05 [end_date_ymd] => 2024-12-26 16:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:35:18] Production.INFO: count ==3309 [2024-12-26 16:35:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:35:05 - End Time 2024-12-26 16:35:05 [2024-12-26 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108119', 'tblTempUsageDetail_20' ) start [2024-12-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108119', 'tblTempUsageDetail_20' ) end [2024-12-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108119', 'tblTempVendorCDR_20' ) start [2024-12-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108119', 'tblTempVendorCDR_20' ) end [2024-12-26 16:35:19] Production.INFO: ProcessCDR(1,14108119,1,1,2) [2024-12-26 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108119', 'tblTempUsageDetail_20' ) start [2024-12-26 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108119', 'tblTempUsageDetail_20' ) end [2024-12-26 16:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:35:23] Production.INFO: ==9325== Releasing lock... [2024-12-26 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:35:23] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:36:04 [end_date_ymd] => 2024-12-26 16:36:04 [RateCDR] => 1 ) [2024-12-26 16:36: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` >= '2024-12-26 13:36:04' and `end` < '2024-12-26 16:36: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 ,'') [2024-12-26 16:36:17] Production.INFO: count ==3306 [2024-12-26 16:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:36:04 - End Time 2024-12-26 16:36:04 [2024-12-26 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108124', 'tblTempUsageDetail_20' ) start [2024-12-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108124', 'tblTempUsageDetail_20' ) end [2024-12-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108124', 'tblTempVendorCDR_20' ) start [2024-12-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108124', 'tblTempVendorCDR_20' ) end [2024-12-26 16:36:19] Production.INFO: ProcessCDR(1,14108124,1,1,2) [2024-12-26 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108124', 'tblTempUsageDetail_20' ) start [2024-12-26 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108124', 'tblTempUsageDetail_20' ) end [2024-12-26 16:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:36:23] Production.INFO: ==9400== Releasing lock... [2024-12-26 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:36:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-26 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:37:04 [end_date_ymd] => 2024-12-26 16:37:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:37:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:37:17] Production.INFO: count ==3296 [2024-12-26 16:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:37:04 - End Time 2024-12-26 16:37:04 [2024-12-26 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108129', 'tblTempUsageDetail_20' ) start [2024-12-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108129', 'tblTempUsageDetail_20' ) end [2024-12-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108129', 'tblTempVendorCDR_20' ) start [2024-12-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108129', 'tblTempVendorCDR_20' ) end [2024-12-26 16:37:19] Production.INFO: ProcessCDR(1,14108129,1,1,2) [2024-12-26 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108129', 'tblTempUsageDetail_20' ) start [2024-12-26 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108129', 'tblTempUsageDetail_20' ) end [2024-12-26 16:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:37:23] Production.INFO: ==9472== Releasing lock... [2024-12-26 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:37:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-26 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:38:05 [end_date_ymd] => 2024-12-26 16:38:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:38:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:38:18] Production.INFO: count ==3310 [2024-12-26 16:38:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:38:05 - End Time 2024-12-26 16:38:05 [2024-12-26 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108134', 'tblTempUsageDetail_20' ) start [2024-12-26 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108134', 'tblTempUsageDetail_20' ) end [2024-12-26 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108134', 'tblTempVendorCDR_20' ) start [2024-12-26 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108134', 'tblTempVendorCDR_20' ) end [2024-12-26 16:38:19] Production.INFO: ProcessCDR(1,14108134,1,1,2) [2024-12-26 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108134', 'tblTempUsageDetail_20' ) start [2024-12-26 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108134', 'tblTempUsageDetail_20' ) end [2024-12-26 16:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:38:24] Production.INFO: ==9586== Releasing lock... [2024-12-26 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:38:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-26 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:39:04 [end_date_ymd] => 2024-12-26 16:39:04 [RateCDR] => 1 ) [2024-12-26 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:39:04' and `end` < '2024-12-26 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:39:17] Production.INFO: count ==3332 [2024-12-26 16:39:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:39:04 - End Time 2024-12-26 16:39:04 [2024-12-26 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108139', 'tblTempUsageDetail_20' ) start [2024-12-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108139', 'tblTempUsageDetail_20' ) end [2024-12-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108139', 'tblTempVendorCDR_20' ) start [2024-12-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108139', 'tblTempVendorCDR_20' ) end [2024-12-26 16:39:19] Production.INFO: ProcessCDR(1,14108139,1,1,2) [2024-12-26 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108139', 'tblTempUsageDetail_20' ) start [2024-12-26 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108139', 'tblTempUsageDetail_20' ) end [2024-12-26 16:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:39:23] Production.INFO: ==9657== Releasing lock... [2024-12-26 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:39:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-26 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:40:05 [end_date_ymd] => 2024-12-26 16:40:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:40:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:40:19] Production.INFO: count ==3323 [2024-12-26 16:40:21] Production.ERROR: pbx CDR StartTime 2024-12-26 13:40:05 - End Time 2024-12-26 16:40:05 [2024-12-26 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108144', 'tblTempUsageDetail_20' ) start [2024-12-26 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108144', 'tblTempUsageDetail_20' ) end [2024-12-26 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108144', 'tblTempVendorCDR_20' ) start [2024-12-26 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108144', 'tblTempVendorCDR_20' ) end [2024-12-26 16:40:21] Production.INFO: ProcessCDR(1,14108144,1,1,2) [2024-12-26 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108144', 'tblTempUsageDetail_20' ) start [2024-12-26 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108144', 'tblTempUsageDetail_20' ) end [2024-12-26 16:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:40:25] Production.INFO: ==9733== Releasing lock... [2024-12-26 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:40:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-26 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:41:05 [end_date_ymd] => 2024-12-26 16:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:41:18] Production.INFO: count ==3316 [2024-12-26 16:41:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:41:05 - End Time 2024-12-26 16:41:05 [2024-12-26 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108150', 'tblTempUsageDetail_20' ) start [2024-12-26 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108150', 'tblTempUsageDetail_20' ) end [2024-12-26 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108150', 'tblTempVendorCDR_20' ) start [2024-12-26 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108150', 'tblTempVendorCDR_20' ) end [2024-12-26 16:41:20] Production.INFO: ProcessCDR(1,14108150,1,1,2) [2024-12-26 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108150', 'tblTempUsageDetail_20' ) start [2024-12-26 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108150', 'tblTempUsageDetail_20' ) end [2024-12-26 16:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:41:24] Production.INFO: ==9810== Releasing lock... [2024-12-26 16:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:41:24] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:42:04 [end_date_ymd] => 2024-12-26 16:42:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:42:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:42:19] Production.INFO: count ==3314 [2024-12-26 16:42:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:42:04 - End Time 2024-12-26 16:42:04 [2024-12-26 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108155', 'tblTempUsageDetail_20' ) start [2024-12-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108155', 'tblTempUsageDetail_20' ) end [2024-12-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108155', 'tblTempVendorCDR_20' ) start [2024-12-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108155', 'tblTempVendorCDR_20' ) end [2024-12-26 16:42:20] Production.INFO: ProcessCDR(1,14108155,1,1,2) [2024-12-26 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108155', 'tblTempUsageDetail_20' ) start [2024-12-26 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108155', 'tblTempUsageDetail_20' ) end [2024-12-26 16:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:42:25] Production.INFO: ==9884== Releasing lock... [2024-12-26 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:42:25] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:43:05 [end_date_ymd] => 2024-12-26 16:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:43:19] Production.INFO: count ==3311 [2024-12-26 16:43:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:43:05 - End Time 2024-12-26 16:43:05 [2024-12-26 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108160', 'tblTempUsageDetail_20' ) start [2024-12-26 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108160', 'tblTempUsageDetail_20' ) end [2024-12-26 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108160', 'tblTempVendorCDR_20' ) start [2024-12-26 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108160', 'tblTempVendorCDR_20' ) end [2024-12-26 16:43:20] Production.INFO: ProcessCDR(1,14108160,1,1,2) [2024-12-26 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108160', 'tblTempUsageDetail_20' ) start [2024-12-26 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108160', 'tblTempUsageDetail_20' ) end [2024-12-26 16:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:43:25] Production.INFO: ==10007== Releasing lock... [2024-12-26 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:43:25] Production.INFO: 52.75 MB #Memory Used# [2024-12-26 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:44:05 [end_date_ymd] => 2024-12-26 16:44:05 [RateCDR] => 1 ) [2024-12-26 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:44:05' and `end` < '2024-12-26 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:44:19] Production.INFO: count ==3326 [2024-12-26 16:44:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:44:05 - End Time 2024-12-26 16:44:05 [2024-12-26 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108165', 'tblTempUsageDetail_20' ) start [2024-12-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108165', 'tblTempUsageDetail_20' ) end [2024-12-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108165', 'tblTempVendorCDR_20' ) start [2024-12-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108165', 'tblTempVendorCDR_20' ) end [2024-12-26 16:44:20] Production.INFO: ProcessCDR(1,14108165,1,1,2) [2024-12-26 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108165', 'tblTempUsageDetail_20' ) start [2024-12-26 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108165', 'tblTempUsageDetail_20' ) end [2024-12-26 16:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:44:25] Production.INFO: ==10231== Releasing lock... [2024-12-26 16:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:44:25] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:45:05 [end_date_ymd] => 2024-12-26 16:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:45:18] Production.INFO: count ==3324 [2024-12-26 16:45:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:45:05 - End Time 2024-12-26 16:45:05 [2024-12-26 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108170', 'tblTempUsageDetail_20' ) start [2024-12-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108170', 'tblTempUsageDetail_20' ) end [2024-12-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108170', 'tblTempVendorCDR_20' ) start [2024-12-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108170', 'tblTempVendorCDR_20' ) end [2024-12-26 16:45:19] Production.INFO: ProcessCDR(1,14108170,1,1,2) [2024-12-26 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108170', 'tblTempUsageDetail_20' ) start [2024-12-26 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108170', 'tblTempUsageDetail_20' ) end [2024-12-26 16:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:45:24] Production.INFO: ==10420== Releasing lock... [2024-12-26 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:45:24] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:46:04 [end_date_ymd] => 2024-12-26 16:46:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:46:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:46:17] Production.INFO: count ==3321 [2024-12-26 16:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:46:04 - End Time 2024-12-26 16:46:04 [2024-12-26 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108175', 'tblTempUsageDetail_20' ) start [2024-12-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108175', 'tblTempUsageDetail_20' ) end [2024-12-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108175', 'tblTempVendorCDR_20' ) start [2024-12-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108175', 'tblTempVendorCDR_20' ) end [2024-12-26 16:46:19] Production.INFO: ProcessCDR(1,14108175,1,1,2) [2024-12-26 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108175', 'tblTempUsageDetail_20' ) start [2024-12-26 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108175', 'tblTempUsageDetail_20' ) end [2024-12-26 16:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:46:23] Production.INFO: ==10495== Releasing lock... [2024-12-26 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:46:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-26 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:47:05 [end_date_ymd] => 2024-12-26 16:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:47:18] Production.INFO: count ==3330 [2024-12-26 16:47:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:47:05 - End Time 2024-12-26 16:47:05 [2024-12-26 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108180', 'tblTempUsageDetail_20' ) start [2024-12-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108180', 'tblTempUsageDetail_20' ) end [2024-12-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108180', 'tblTempVendorCDR_20' ) start [2024-12-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108180', 'tblTempVendorCDR_20' ) end [2024-12-26 16:47:20] Production.INFO: ProcessCDR(1,14108180,1,1,2) [2024-12-26 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108180', 'tblTempUsageDetail_20' ) start [2024-12-26 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108180', 'tblTempUsageDetail_20' ) end [2024-12-26 16:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:47:23] Production.INFO: ==10571== Releasing lock... [2024-12-26 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:47:23] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:48:05 [end_date_ymd] => 2024-12-26 16:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:48:19] Production.INFO: count ==3335 [2024-12-26 16:48:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:48:05 - End Time 2024-12-26 16:48:05 [2024-12-26 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108185', 'tblTempUsageDetail_20' ) start [2024-12-26 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108185', 'tblTempUsageDetail_20' ) end [2024-12-26 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108185', 'tblTempVendorCDR_20' ) start [2024-12-26 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108185', 'tblTempVendorCDR_20' ) end [2024-12-26 16:48:20] Production.INFO: ProcessCDR(1,14108185,1,1,2) [2024-12-26 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108185', 'tblTempUsageDetail_20' ) start [2024-12-26 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108185', 'tblTempUsageDetail_20' ) end [2024-12-26 16:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:48:23] Production.INFO: ==10647== Releasing lock... [2024-12-26 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:48:23] Production.INFO: 53 MB #Memory Used# [2024-12-26 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:49:05 [end_date_ymd] => 2024-12-26 16:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:49:18] Production.INFO: count ==3339 [2024-12-26 16:49:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:49:05 - End Time 2024-12-26 16:49:05 [2024-12-26 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108190', 'tblTempUsageDetail_20' ) start [2024-12-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108190', 'tblTempUsageDetail_20' ) end [2024-12-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108190', 'tblTempVendorCDR_20' ) start [2024-12-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108190', 'tblTempVendorCDR_20' ) end [2024-12-26 16:49:19] Production.INFO: ProcessCDR(1,14108190,1,1,2) [2024-12-26 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108190', 'tblTempUsageDetail_20' ) start [2024-12-26 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108190', 'tblTempUsageDetail_20' ) end [2024-12-26 16:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:49:23] Production.INFO: ==10729== Releasing lock... [2024-12-26 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:49:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-26 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:50:05 [end_date_ymd] => 2024-12-26 16:50:05 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:50:05' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:50:24] Production.INFO: count ==3787 [2024-12-26 16:50:26] Production.ERROR: pbx CDR StartTime 2024-12-26 13:50:05 - End Time 2024-12-26 16:50:05 [2024-12-26 16:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108195', 'tblTempUsageDetail_20' ) start [2024-12-26 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108195', 'tblTempUsageDetail_20' ) end [2024-12-26 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108195', 'tblTempVendorCDR_20' ) start [2024-12-26 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108195', 'tblTempVendorCDR_20' ) end [2024-12-26 16:50:26] Production.INFO: ProcessCDR(1,14108195,1,1,2) [2024-12-26 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108195', 'tblTempUsageDetail_20' ) start [2024-12-26 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108195', 'tblTempUsageDetail_20' ) end [2024-12-26 16:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:50:31] Production.INFO: ==10804== Releasing lock... [2024-12-26 16:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:50:31] Production.INFO: 56.25 MB #Memory Used# [2024-12-26 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:51:05 [end_date_ymd] => 2024-12-26 16:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:51:22] Production.INFO: count ==3858 [2024-12-26 16:51:24] Production.ERROR: pbx CDR StartTime 2024-12-26 13:51:05 - End Time 2024-12-26 16:51:05 [2024-12-26 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108201', 'tblTempUsageDetail_20' ) start [2024-12-26 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108201', 'tblTempUsageDetail_20' ) end [2024-12-26 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108201', 'tblTempVendorCDR_20' ) start [2024-12-26 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108201', 'tblTempVendorCDR_20' ) end [2024-12-26 16:51:24] Production.INFO: ProcessCDR(1,14108201,1,1,2) [2024-12-26 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108201', 'tblTempUsageDetail_20' ) start [2024-12-26 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108201', 'tblTempUsageDetail_20' ) end [2024-12-26 16:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:51:28] Production.INFO: ==10882== Releasing lock... [2024-12-26 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:51:28] Production.INFO: 56.75 MB #Memory Used# [2024-12-26 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:52:05 [end_date_ymd] => 2024-12-26 16:52:05 [RateCDR] => 1 ) [2024-12-26 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 13:52:05' and `end` < '2024-12-26 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:52:19] Production.INFO: count ==3858 [2024-12-26 16:52:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:52:05 - End Time 2024-12-26 16:52:05 [2024-12-26 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108206', 'tblTempUsageDetail_20' ) start [2024-12-26 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108206', 'tblTempUsageDetail_20' ) end [2024-12-26 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108206', 'tblTempVendorCDR_20' ) start [2024-12-26 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108206', 'tblTempVendorCDR_20' ) end [2024-12-26 16:52:20] Production.INFO: ProcessCDR(1,14108206,1,1,2) [2024-12-26 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108206', 'tblTempUsageDetail_20' ) start [2024-12-26 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108206', 'tblTempUsageDetail_20' ) end [2024-12-26 16:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:52:25] Production.INFO: ==10969== Releasing lock... [2024-12-26 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:52:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-26 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:53:04 [end_date_ymd] => 2024-12-26 16:53:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:53:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:53:17] Production.INFO: count ==3860 [2024-12-26 16:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 13:53:04 - End Time 2024-12-26 16:53:04 [2024-12-26 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108211', 'tblTempUsageDetail_20' ) start [2024-12-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108211', 'tblTempUsageDetail_20' ) end [2024-12-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108211', 'tblTempVendorCDR_20' ) start [2024-12-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108211', 'tblTempVendorCDR_20' ) end [2024-12-26 16:53:19] Production.INFO: ProcessCDR(1,14108211,1,1,2) [2024-12-26 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108211', 'tblTempUsageDetail_20' ) start [2024-12-26 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108211', 'tblTempUsageDetail_20' ) end [2024-12-26 16:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:53:24] Production.INFO: ==11087== Releasing lock... [2024-12-26 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:53:24] Production.INFO: 57 MB #Memory Used# [2024-12-26 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:54:05 [end_date_ymd] => 2024-12-26 16:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:54:24] Production.INFO: count ==3862 [2024-12-26 16:54:25] Production.ERROR: pbx CDR StartTime 2024-12-26 13:54:05 - End Time 2024-12-26 16:54:05 [2024-12-26 16:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108216', 'tblTempUsageDetail_20' ) start [2024-12-26 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108216', 'tblTempUsageDetail_20' ) end [2024-12-26 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108216', 'tblTempVendorCDR_20' ) start [2024-12-26 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108216', 'tblTempVendorCDR_20' ) end [2024-12-26 16:54:25] Production.INFO: ProcessCDR(1,14108216,1,1,2) [2024-12-26 16:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108216', 'tblTempUsageDetail_20' ) start [2024-12-26 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108216', 'tblTempUsageDetail_20' ) end [2024-12-26 16:54:30] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:54:30] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:54:30] Production.INFO: ==11168== Releasing lock... [2024-12-26 16:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:54:30] Production.INFO: 56.75 MB #Memory Used# [2024-12-26 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:55:05 [end_date_ymd] => 2024-12-26 16:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:55:05' and `end` < '2024-12-26 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 16:55:18] Production.INFO: count ==3872 [2024-12-26 16:55:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:55:05 - End Time 2024-12-26 16:55:05 [2024-12-26 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108221', 'tblTempUsageDetail_20' ) start [2024-12-26 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108221', 'tblTempUsageDetail_20' ) end [2024-12-26 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108221', 'tblTempVendorCDR_20' ) start [2024-12-26 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108221', 'tblTempVendorCDR_20' ) end [2024-12-26 16:55:20] Production.INFO: ProcessCDR(1,14108221,1,1,2) [2024-12-26 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108221', 'tblTempUsageDetail_20' ) start [2024-12-26 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108221', 'tblTempUsageDetail_20' ) end [2024-12-26 16:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:55:24] Production.INFO: ==11252== Releasing lock... [2024-12-26 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:55:24] Production.INFO: 57 MB #Memory Used# [2024-12-26 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:56:05 [end_date_ymd] => 2024-12-26 16:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:56:19] Production.INFO: count ==3873 [2024-12-26 16:56:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:56:05 - End Time 2024-12-26 16:56:05 [2024-12-26 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108226', 'tblTempUsageDetail_20' ) start [2024-12-26 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108226', 'tblTempUsageDetail_20' ) end [2024-12-26 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108226', 'tblTempVendorCDR_20' ) start [2024-12-26 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108226', 'tblTempVendorCDR_20' ) end [2024-12-26 16:56:20] Production.INFO: ProcessCDR(1,14108226,1,1,2) [2024-12-26 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108226', 'tblTempUsageDetail_20' ) start [2024-12-26 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108226', 'tblTempUsageDetail_20' ) end [2024-12-26 16:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:56:25] Production.INFO: ==11336== Releasing lock... [2024-12-26 16:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:56:25] Production.INFO: 57 MB #Memory Used# [2024-12-26 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:57:04 [end_date_ymd] => 2024-12-26 16:57:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:57:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:57:17] Production.INFO: count ==3863 [2024-12-26 16:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 13:57:04 - End Time 2024-12-26 16:57:04 [2024-12-26 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108231', 'tblTempUsageDetail_20' ) start [2024-12-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108231', 'tblTempUsageDetail_20' ) end [2024-12-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108231', 'tblTempVendorCDR_20' ) start [2024-12-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108231', 'tblTempVendorCDR_20' ) end [2024-12-26 16:57:19] Production.INFO: ProcessCDR(1,14108231,1,1,2) [2024-12-26 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108231', 'tblTempUsageDetail_20' ) start [2024-12-26 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108231', 'tblTempUsageDetail_20' ) end [2024-12-26 16:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:57:23] Production.INFO: ==11418== Releasing lock... [2024-12-26 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:57:23] Production.INFO: 57 MB #Memory Used# [2024-12-26 16:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:58:04 [end_date_ymd] => 2024-12-26 16:58:04 [RateCDR] => 1 ) [2024-12-26 16: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` >= '2024-12-26 13:58:04' and `end` < '2024-12-26 16: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 ,'') [2024-12-26 16:58:18] Production.INFO: count ==3862 [2024-12-26 16:58:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:58:04 - End Time 2024-12-26 16:58:04 [2024-12-26 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108236', 'tblTempUsageDetail_20' ) start [2024-12-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108236', 'tblTempUsageDetail_20' ) end [2024-12-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108236', 'tblTempVendorCDR_20' ) start [2024-12-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108236', 'tblTempVendorCDR_20' ) end [2024-12-26 16:58:20] Production.INFO: ProcessCDR(1,14108236,1,1,2) [2024-12-26 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108236', 'tblTempUsageDetail_20' ) start [2024-12-26 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108236', 'tblTempUsageDetail_20' ) end [2024-12-26 16:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:58:24] Production.INFO: ==11499== Releasing lock... [2024-12-26 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:58:24] Production.INFO: 57 MB #Memory Used# [2024-12-26 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 13:59:05 [end_date_ymd] => 2024-12-26 16:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 13:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 16:59:18] Production.INFO: count ==3861 [2024-12-26 16:59:20] Production.ERROR: pbx CDR StartTime 2024-12-26 13:59:05 - End Time 2024-12-26 16:59:05 [2024-12-26 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108241', 'tblTempUsageDetail_20' ) start [2024-12-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108241', 'tblTempUsageDetail_20' ) end [2024-12-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108241', 'tblTempVendorCDR_20' ) start [2024-12-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108241', 'tblTempVendorCDR_20' ) end [2024-12-26 16:59:20] Production.INFO: ProcessCDR(1,14108241,1,1,2) [2024-12-26 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108241', 'tblTempUsageDetail_20' ) start [2024-12-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108241', 'tblTempUsageDetail_20' ) end [2024-12-26 16:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 16:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 16:59:23] Production.INFO: ==11578== Releasing lock... [2024-12-26 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 16:59:23] Production.INFO: 57 MB #Memory Used# [2024-12-26 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:00:06 [end_date_ymd] => 2024-12-26 17:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:00:18] Production.INFO: count ==3860 [2024-12-26 17:00:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:00:06 - End Time 2024-12-26 17:00:06 [2024-12-26 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108247', 'tblTempUsageDetail_20' ) start [2024-12-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108247', 'tblTempUsageDetail_20' ) end [2024-12-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108247', 'tblTempVendorCDR_20' ) start [2024-12-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108247', 'tblTempVendorCDR_20' ) end [2024-12-26 17:00:20] Production.INFO: ProcessCDR(1,14108247,1,1,2) [2024-12-26 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108247', 'tblTempUsageDetail_20' ) start [2024-12-26 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108247', 'tblTempUsageDetail_20' ) end [2024-12-26 17:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:00:25] Production.INFO: ==11666== Releasing lock... [2024-12-26 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:00:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-26 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:01:05 [end_date_ymd] => 2024-12-26 17:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:01:18] Production.INFO: count ==3915 [2024-12-26 17:01:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:01:05 - End Time 2024-12-26 17:01:05 [2024-12-26 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108252', 'tblTempUsageDetail_20' ) start [2024-12-26 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108252', 'tblTempUsageDetail_20' ) end [2024-12-26 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108252', 'tblTempVendorCDR_20' ) start [2024-12-26 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108252', 'tblTempVendorCDR_20' ) end [2024-12-26 17:01:19] Production.INFO: ProcessCDR(1,14108252,1,1,2) [2024-12-26 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108252', 'tblTempUsageDetail_20' ) start [2024-12-26 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108252', 'tblTempUsageDetail_20' ) end [2024-12-26 17:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:01:24] Production.INFO: ==11761== Releasing lock... [2024-12-26 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:01:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:02:05 [end_date_ymd] => 2024-12-26 17:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:02:24] Production.INFO: count ==3929 [2024-12-26 17:02:26] Production.ERROR: pbx CDR StartTime 2024-12-26 14:02:05 - End Time 2024-12-26 17:02:05 [2024-12-26 17:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108257', 'tblTempUsageDetail_20' ) start [2024-12-26 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108257', 'tblTempUsageDetail_20' ) end [2024-12-26 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108257', 'tblTempVendorCDR_20' ) start [2024-12-26 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108257', 'tblTempVendorCDR_20' ) end [2024-12-26 17:02:26] Production.INFO: ProcessCDR(1,14108257,1,1,2) [2024-12-26 17:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108257', 'tblTempUsageDetail_20' ) start [2024-12-26 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108257', 'tblTempUsageDetail_20' ) end [2024-12-26 17:02:31] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:02:31] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:02:31] Production.INFO: ==11844== Releasing lock... [2024-12-26 17:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:02:31] Production.INFO: 57.5 MB #Memory Used# [2024-12-26 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:03:04 [end_date_ymd] => 2024-12-26 17:03:04 [RateCDR] => 1 ) [2024-12-26 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:03:04' and `end` < '2024-12-26 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:03:19] Production.INFO: count ==3931 [2024-12-26 17:03:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:03:04 - End Time 2024-12-26 17:03:04 [2024-12-26 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108261', 'tblTempUsageDetail_20' ) start [2024-12-26 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108261', 'tblTempUsageDetail_20' ) end [2024-12-26 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108261', 'tblTempVendorCDR_20' ) start [2024-12-26 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108261', 'tblTempVendorCDR_20' ) end [2024-12-26 17:03:21] Production.INFO: ProcessCDR(1,14108261,1,1,2) [2024-12-26 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108261', 'tblTempUsageDetail_20' ) start [2024-12-26 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108261', 'tblTempUsageDetail_20' ) end [2024-12-26 17:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:03:25] Production.INFO: ==11932== Releasing lock... [2024-12-26 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:03:25] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:04:04 [end_date_ymd] => 2024-12-26 17:04:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:04:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:04:17] Production.INFO: count ==3938 [2024-12-26 17:04:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:04:04 - End Time 2024-12-26 17:04:04 [2024-12-26 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108267', 'tblTempUsageDetail_20' ) start [2024-12-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108267', 'tblTempUsageDetail_20' ) end [2024-12-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108267', 'tblTempVendorCDR_20' ) start [2024-12-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108267', 'tblTempVendorCDR_20' ) end [2024-12-26 17:04:19] Production.INFO: ProcessCDR(1,14108267,1,1,2) [2024-12-26 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108267', 'tblTempUsageDetail_20' ) start [2024-12-26 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108267', 'tblTempUsageDetail_20' ) end [2024-12-26 17:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:04:24] Production.INFO: ==12006== Releasing lock... [2024-12-26 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:04:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:05:05 [end_date_ymd] => 2024-12-26 17:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:05:20] Production.INFO: count ==3945 [2024-12-26 17:05:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:05:05 - End Time 2024-12-26 17:05:05 [2024-12-26 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108272', 'tblTempUsageDetail_20' ) start [2024-12-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108272', 'tblTempUsageDetail_20' ) end [2024-12-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108272', 'tblTempVendorCDR_20' ) start [2024-12-26 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108272', 'tblTempVendorCDR_20' ) end [2024-12-26 17:05:22] Production.INFO: ProcessCDR(1,14108272,1,1,2) [2024-12-26 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108272', 'tblTempUsageDetail_20' ) start [2024-12-26 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108272', 'tblTempUsageDetail_20' ) end [2024-12-26 17:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:05:26] Production.INFO: ==12099== Releasing lock... [2024-12-26 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:05:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:06:04 [end_date_ymd] => 2024-12-26 17:06:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:06:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:06:18] Production.INFO: count ==3946 [2024-12-26 17:06:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:06:04 - End Time 2024-12-26 17:06:04 [2024-12-26 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108277', 'tblTempUsageDetail_20' ) start [2024-12-26 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108277', 'tblTempUsageDetail_20' ) end [2024-12-26 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108277', 'tblTempVendorCDR_20' ) start [2024-12-26 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108277', 'tblTempVendorCDR_20' ) end [2024-12-26 17:06:20] Production.INFO: ProcessCDR(1,14108277,1,1,2) [2024-12-26 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108277', 'tblTempUsageDetail_20' ) start [2024-12-26 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108277', 'tblTempUsageDetail_20' ) end [2024-12-26 17:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:06:24] Production.INFO: ==12174== Releasing lock... [2024-12-26 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:06:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:07:05 [end_date_ymd] => 2024-12-26 17:07:05 [RateCDR] => 1 ) [2024-12-26 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:07:05' and `end` < '2024-12-26 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:07:18] Production.INFO: count ==3948 [2024-12-26 17:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:07:05 - End Time 2024-12-26 17:07:05 [2024-12-26 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108282', 'tblTempUsageDetail_20' ) start [2024-12-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108282', 'tblTempUsageDetail_20' ) end [2024-12-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108282', 'tblTempVendorCDR_20' ) start [2024-12-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108282', 'tblTempVendorCDR_20' ) end [2024-12-26 17:07:19] Production.INFO: ProcessCDR(1,14108282,1,1,2) [2024-12-26 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108282', 'tblTempUsageDetail_20' ) start [2024-12-26 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108282', 'tblTempUsageDetail_20' ) end [2024-12-26 17:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:07:24] Production.INFO: ==12259== Releasing lock... [2024-12-26 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:07:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-26 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:08:05 [end_date_ymd] => 2024-12-26 17:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:08:20] Production.INFO: count ==3936 [2024-12-26 17:08:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:08:05 - End Time 2024-12-26 17:08:05 [2024-12-26 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108287', 'tblTempUsageDetail_20' ) start [2024-12-26 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108287', 'tblTempUsageDetail_20' ) end [2024-12-26 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108287', 'tblTempVendorCDR_20' ) start [2024-12-26 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108287', 'tblTempVendorCDR_20' ) end [2024-12-26 17:08:21] Production.INFO: ProcessCDR(1,14108287,1,1,2) [2024-12-26 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108287', 'tblTempUsageDetail_20' ) start [2024-12-26 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108287', 'tblTempUsageDetail_20' ) end [2024-12-26 17:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:08:26] Production.INFO: ==12341== Releasing lock... [2024-12-26 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:08:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-26 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:09:05 [end_date_ymd] => 2024-12-26 17:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:09:19] Production.INFO: count ==4090 [2024-12-26 17:09:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:09:05 - End Time 2024-12-26 17:09:05 [2024-12-26 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108292', 'tblTempUsageDetail_20' ) start [2024-12-26 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108292', 'tblTempUsageDetail_20' ) end [2024-12-26 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108292', 'tblTempVendorCDR_20' ) start [2024-12-26 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108292', 'tblTempVendorCDR_20' ) end [2024-12-26 17:09:21] Production.INFO: ProcessCDR(1,14108292,1,1,2) [2024-12-26 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108292', 'tblTempUsageDetail_20' ) start [2024-12-26 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108292', 'tblTempUsageDetail_20' ) end [2024-12-26 17:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:09:24] Production.INFO: ==12461== Releasing lock... [2024-12-26 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:09:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-26 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:10:05 [end_date_ymd] => 2024-12-26 17:10:05 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:10:05' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:10:19] Production.INFO: count ==4302 [2024-12-26 17:10:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:10:05 - End Time 2024-12-26 17:10:05 [2024-12-26 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108298', 'tblTempUsageDetail_20' ) start [2024-12-26 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108298', 'tblTempUsageDetail_20' ) end [2024-12-26 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108298', 'tblTempVendorCDR_20' ) start [2024-12-26 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108298', 'tblTempVendorCDR_20' ) end [2024-12-26 17:10:21] Production.INFO: ProcessCDR(1,14108298,1,1,2) [2024-12-26 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108298', 'tblTempUsageDetail_20' ) start [2024-12-26 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108298', 'tblTempUsageDetail_20' ) end [2024-12-26 17:10:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:10:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:10:26] Production.INFO: ==12542== Releasing lock... [2024-12-26 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:10:26] Production.INFO: 60 MB #Memory Used# [2024-12-26 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:11:04 [end_date_ymd] => 2024-12-26 17:11:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:11:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:11:17] Production.INFO: count ==4312 [2024-12-26 17:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:11:04 - End Time 2024-12-26 17:11:04 [2024-12-26 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108303', 'tblTempUsageDetail_20' ) start [2024-12-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108303', 'tblTempUsageDetail_20' ) end [2024-12-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108303', 'tblTempVendorCDR_20' ) start [2024-12-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108303', 'tblTempVendorCDR_20' ) end [2024-12-26 17:11:19] Production.INFO: ProcessCDR(1,14108303,1,1,2) [2024-12-26 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108303', 'tblTempUsageDetail_20' ) start [2024-12-26 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108303', 'tblTempUsageDetail_20' ) end [2024-12-26 17:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:11:24] Production.INFO: ==12625== Releasing lock... [2024-12-26 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:11:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-26 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:12:05 [end_date_ymd] => 2024-12-26 17:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:12:18] Production.INFO: count ==4312 [2024-12-26 17:12:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:12:05 - End Time 2024-12-26 17:12:05 [2024-12-26 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108308', 'tblTempUsageDetail_20' ) start [2024-12-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108308', 'tblTempUsageDetail_20' ) end [2024-12-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108308', 'tblTempVendorCDR_20' ) start [2024-12-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108308', 'tblTempVendorCDR_20' ) end [2024-12-26 17:12:19] Production.INFO: ProcessCDR(1,14108308,1,1,2) [2024-12-26 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108308', 'tblTempUsageDetail_20' ) start [2024-12-26 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108308', 'tblTempUsageDetail_20' ) end [2024-12-26 17:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:12:24] Production.INFO: ==12701== Releasing lock... [2024-12-26 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:12:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-26 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:13:05 [end_date_ymd] => 2024-12-26 17:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:13:18] Production.INFO: count ==4312 [2024-12-26 17:13:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:13:05 - End Time 2024-12-26 17:13:05 [2024-12-26 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108313', 'tblTempUsageDetail_20' ) start [2024-12-26 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108313', 'tblTempUsageDetail_20' ) end [2024-12-26 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108313', 'tblTempVendorCDR_20' ) start [2024-12-26 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108313', 'tblTempVendorCDR_20' ) end [2024-12-26 17:13:20] Production.INFO: ProcessCDR(1,14108313,1,1,2) [2024-12-26 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108313', 'tblTempUsageDetail_20' ) start [2024-12-26 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108313', 'tblTempUsageDetail_20' ) end [2024-12-26 17:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:13:23] Production.INFO: ==12789== Releasing lock... [2024-12-26 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:13:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-26 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:14:04 [end_date_ymd] => 2024-12-26 17:14:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:14:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:14:17] Production.INFO: count ==4309 [2024-12-26 17:14:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:14:04 - End Time 2024-12-26 17:14:04 [2024-12-26 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108318', 'tblTempUsageDetail_20' ) start [2024-12-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108318', 'tblTempUsageDetail_20' ) end [2024-12-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108318', 'tblTempVendorCDR_20' ) start [2024-12-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108318', 'tblTempVendorCDR_20' ) end [2024-12-26 17:14:19] Production.INFO: ProcessCDR(1,14108318,1,1,2) [2024-12-26 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108318', 'tblTempUsageDetail_20' ) start [2024-12-26 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108318', 'tblTempUsageDetail_20' ) end [2024-12-26 17:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:14:22] Production.INFO: ==12863== Releasing lock... [2024-12-26 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:14:22] Production.INFO: 60 MB #Memory Used# [2024-12-26 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:15:05 [end_date_ymd] => 2024-12-26 17:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:15:21] Production.INFO: count ==4309 [2024-12-26 17:15:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:15:05 - End Time 2024-12-26 17:15:05 [2024-12-26 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108323', 'tblTempUsageDetail_20' ) start [2024-12-26 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108323', 'tblTempUsageDetail_20' ) end [2024-12-26 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108323', 'tblTempVendorCDR_20' ) start [2024-12-26 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108323', 'tblTempVendorCDR_20' ) end [2024-12-26 17:15:23] Production.INFO: ProcessCDR(1,14108323,1,1,2) [2024-12-26 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108323', 'tblTempUsageDetail_20' ) start [2024-12-26 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108323', 'tblTempUsageDetail_20' ) end [2024-12-26 17:15:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:15:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:15:26] Production.INFO: ==12948== Releasing lock... [2024-12-26 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:15:26] Production.INFO: 60 MB #Memory Used# [2024-12-26 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:16:05 [end_date_ymd] => 2024-12-26 17:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:16:20] Production.INFO: count ==4483 [2024-12-26 17:16:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:16:05 - End Time 2024-12-26 17:16:05 [2024-12-26 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108328', 'tblTempUsageDetail_20' ) start [2024-12-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108328', 'tblTempUsageDetail_20' ) end [2024-12-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108328', 'tblTempVendorCDR_20' ) start [2024-12-26 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108328', 'tblTempVendorCDR_20' ) end [2024-12-26 17:16:22] Production.INFO: ProcessCDR(1,14108328,1,1,2) [2024-12-26 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108328', 'tblTempUsageDetail_20' ) start [2024-12-26 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108328', 'tblTempUsageDetail_20' ) end [2024-12-26 17:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:16:25] Production.INFO: ==13033== Releasing lock... [2024-12-26 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:16:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-26 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:17:05 [end_date_ymd] => 2024-12-26 17:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:17:18] Production.INFO: count ==4485 [2024-12-26 17:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:17:05 - End Time 2024-12-26 17:17:05 [2024-12-26 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108333', 'tblTempUsageDetail_20' ) start [2024-12-26 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108333', 'tblTempUsageDetail_20' ) end [2024-12-26 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108333', 'tblTempVendorCDR_20' ) start [2024-12-26 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108333', 'tblTempVendorCDR_20' ) end [2024-12-26 17:17:20] Production.INFO: ProcessCDR(1,14108333,1,1,2) [2024-12-26 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108333', 'tblTempUsageDetail_20' ) start [2024-12-26 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108333', 'tblTempUsageDetail_20' ) end [2024-12-26 17:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:17:24] Production.INFO: ==13110== Releasing lock... [2024-12-26 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:17:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-26 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:18:04 [end_date_ymd] => 2024-12-26 17:18:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:18:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:18:18] Production.INFO: count ==4486 [2024-12-26 17:18:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:18:04 - End Time 2024-12-26 17:18:04 [2024-12-26 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108338', 'tblTempUsageDetail_20' ) start [2024-12-26 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108338', 'tblTempUsageDetail_20' ) end [2024-12-26 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108338', 'tblTempVendorCDR_20' ) start [2024-12-26 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108338', 'tblTempVendorCDR_20' ) end [2024-12-26 17:18:20] Production.INFO: ProcessCDR(1,14108338,1,1,2) [2024-12-26 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108338', 'tblTempUsageDetail_20' ) start [2024-12-26 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108338', 'tblTempUsageDetail_20' ) end [2024-12-26 17:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:18:24] Production.INFO: ==13193== Releasing lock... [2024-12-26 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:18:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-26 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:19:05 [end_date_ymd] => 2024-12-26 17:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:19:18] Production.INFO: count ==4618 [2024-12-26 17:19:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:19:05 - End Time 2024-12-26 17:19:05 [2024-12-26 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108343', 'tblTempUsageDetail_20' ) start [2024-12-26 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108343', 'tblTempUsageDetail_20' ) end [2024-12-26 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108343', 'tblTempVendorCDR_20' ) start [2024-12-26 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108343', 'tblTempVendorCDR_20' ) end [2024-12-26 17:19:20] Production.INFO: ProcessCDR(1,14108343,1,1,2) [2024-12-26 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108343', 'tblTempUsageDetail_20' ) start [2024-12-26 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108343', 'tblTempUsageDetail_20' ) end [2024-12-26 17:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:19:24] Production.INFO: ==13276== Releasing lock... [2024-12-26 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:19:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-26 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:20:05 [end_date_ymd] => 2024-12-26 17:20:05 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:20:05' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:20:18] Production.INFO: count ==4617 [2024-12-26 17:20:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:20:05 - End Time 2024-12-26 17:20:05 [2024-12-26 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108348', 'tblTempUsageDetail_20' ) start [2024-12-26 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108348', 'tblTempUsageDetail_20' ) end [2024-12-26 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108348', 'tblTempVendorCDR_20' ) start [2024-12-26 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108348', 'tblTempVendorCDR_20' ) end [2024-12-26 17:20:20] Production.INFO: ProcessCDR(1,14108348,1,1,2) [2024-12-26 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108348', 'tblTempUsageDetail_20' ) start [2024-12-26 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108348', 'tblTempUsageDetail_20' ) end [2024-12-26 17:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:20:23] Production.INFO: ==13367== Releasing lock... [2024-12-26 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:20:23] Production.INFO: 62.5 MB #Memory Used# [2024-12-26 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:21:04 [end_date_ymd] => 2024-12-26 17:21:04 [RateCDR] => 1 ) [2024-12-26 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:21:04' and `end` < '2024-12-26 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:21:23] Production.INFO: count ==4649 [2024-12-26 17:21:25] Production.ERROR: pbx CDR StartTime 2024-12-26 14:21:04 - End Time 2024-12-26 17:21:04 [2024-12-26 17:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108354', 'tblTempUsageDetail_20' ) start [2024-12-26 17:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108354', 'tblTempUsageDetail_20' ) end [2024-12-26 17:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108354', 'tblTempVendorCDR_20' ) start [2024-12-26 17:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108354', 'tblTempVendorCDR_20' ) end [2024-12-26 17:21:25] Production.INFO: ProcessCDR(1,14108354,1,1,2) [2024-12-26 17:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108354', 'tblTempUsageDetail_20' ) start [2024-12-26 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108354', 'tblTempUsageDetail_20' ) end [2024-12-26 17:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:21:29] Production.INFO: ==13452== Releasing lock... [2024-12-26 17:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:21:29] Production.INFO: 62.75 MB #Memory Used# [2024-12-26 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:22:05 [end_date_ymd] => 2024-12-26 17:22:05 [RateCDR] => 1 ) [2024-12-26 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:22:05' and `end` < '2024-12-26 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:22:20] Production.INFO: count ==4720 [2024-12-26 17:22:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:22:05 - End Time 2024-12-26 17:22:05 [2024-12-26 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108359', 'tblTempUsageDetail_20' ) start [2024-12-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108359', 'tblTempUsageDetail_20' ) end [2024-12-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108359', 'tblTempVendorCDR_20' ) start [2024-12-26 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108359', 'tblTempVendorCDR_20' ) end [2024-12-26 17:22:22] Production.INFO: ProcessCDR(1,14108359,1,1,2) [2024-12-26 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108359', 'tblTempUsageDetail_20' ) start [2024-12-26 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108359', 'tblTempUsageDetail_20' ) end [2024-12-26 17:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:22:25] Production.INFO: ==13530== Releasing lock... [2024-12-26 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:22:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:23:04 [end_date_ymd] => 2024-12-26 17:23:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:23:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:23:17] Production.INFO: count ==4721 [2024-12-26 17:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:23:04 - End Time 2024-12-26 17:23:04 [2024-12-26 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108364', 'tblTempUsageDetail_20' ) start [2024-12-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108364', 'tblTempUsageDetail_20' ) end [2024-12-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108364', 'tblTempVendorCDR_20' ) start [2024-12-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108364', 'tblTempVendorCDR_20' ) end [2024-12-26 17:23:19] Production.INFO: ProcessCDR(1,14108364,1,1,2) [2024-12-26 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108364', 'tblTempUsageDetail_20' ) start [2024-12-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108364', 'tblTempUsageDetail_20' ) end [2024-12-26 17:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:23:23] Production.INFO: ==13616== Releasing lock... [2024-12-26 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:23:23] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:24:05 [end_date_ymd] => 2024-12-26 17:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:24:18] Production.INFO: count ==4725 [2024-12-26 17:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:24:05 - End Time 2024-12-26 17:24:05 [2024-12-26 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108369', 'tblTempUsageDetail_20' ) start [2024-12-26 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108369', 'tblTempUsageDetail_20' ) end [2024-12-26 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108369', 'tblTempVendorCDR_20' ) start [2024-12-26 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108369', 'tblTempVendorCDR_20' ) end [2024-12-26 17:24:20] Production.INFO: ProcessCDR(1,14108369,1,1,2) [2024-12-26 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108369', 'tblTempUsageDetail_20' ) start [2024-12-26 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108369', 'tblTempUsageDetail_20' ) end [2024-12-26 17:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:24:23] Production.INFO: ==13699== Releasing lock... [2024-12-26 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:24:23] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:25:04 [end_date_ymd] => 2024-12-26 17:25:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:25:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:25:19] Production.INFO: count ==4722 [2024-12-26 17:25:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:25:04 - End Time 2024-12-26 17:25:04 [2024-12-26 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108374', 'tblTempUsageDetail_20' ) start [2024-12-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108374', 'tblTempUsageDetail_20' ) end [2024-12-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108374', 'tblTempVendorCDR_20' ) start [2024-12-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108374', 'tblTempVendorCDR_20' ) end [2024-12-26 17:25:21] Production.INFO: ProcessCDR(1,14108374,1,1,2) [2024-12-26 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108374', 'tblTempUsageDetail_20' ) start [2024-12-26 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108374', 'tblTempUsageDetail_20' ) end [2024-12-26 17:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:25:33] Production.INFO: ==13819== Releasing lock... [2024-12-26 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:25:33] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 17:26:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:26:18 [end_date_ymd] => 2024-12-26 17:26:18 [RateCDR] => 1 ) [2024-12-26 17:26:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:26:18' and `end` < '2024-12-26 17:26:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:26:31] Production.INFO: count ==4721 [2024-12-26 17:27:40] Production.ERROR: pbx CDR StartTime 2024-12-26 14:26:18 - End Time 2024-12-26 17:26:18 [2024-12-26 17:27:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108379', 'tblTempUsageDetail_20' ) start [2024-12-26 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108379', 'tblTempUsageDetail_20' ) end [2024-12-26 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108379', 'tblTempVendorCDR_20' ) start [2024-12-26 17:27:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108379', 'tblTempVendorCDR_20' ) end [2024-12-26 17:27:49] Production.INFO: ProcessCDR(1,14108379,1,1,2) [2024-12-26 17:27:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:27:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:27:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:28:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:28:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108379', 'tblTempUsageDetail_20' ) start [2024-12-26 17:28:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108379', 'tblTempUsageDetail_20' ) end [2024-12-26 17:28:09] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:28:09] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:28:11] Production.INFO: ==13907== Releasing lock... [2024-12-26 17:28:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:28:11] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 17:29:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:29:17 [end_date_ymd] => 2024-12-26 17:29:17 [RateCDR] => 1 ) [2024-12-26 17:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:29:17' and `end` < '2024-12-26 17:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:29:33] Production.INFO: count ==4751 [2024-12-26 17:30:27] Production.ERROR: pbx CDR StartTime 2024-12-26 14:29:17 - End Time 2024-12-26 17:29:17 [2024-12-26 17:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108390', 'tblTempUsageDetail_20' ) start [2024-12-26 17:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108390', 'tblTempUsageDetail_20' ) end [2024-12-26 17:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108390', 'tblTempVendorCDR_20' ) start [2024-12-26 17:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108390', 'tblTempVendorCDR_20' ) end [2024-12-26 17:30:31] Production.INFO: ProcessCDR(1,14108390,1,1,2) [2024-12-26 17:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:30:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:30:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108390', 'tblTempUsageDetail_20' ) start [2024-12-26 17:30:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108390', 'tblTempUsageDetail_20' ) end [2024-12-26 17:30:59] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:31:00] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:31:06] Production.INFO: ==14136== Releasing lock... [2024-12-26 17:31:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:31:06] Production.INFO: 63.5 MB #Memory Used# [2024-12-26 17:32:22] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:32:22 [end_date_ymd] => 2024-12-26 17:32:22 [RateCDR] => 1 ) [2024-12-26 17:32:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:32:22' and `end` < '2024-12-26 17:32:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:32:36] Production.INFO: count ==4814 [2024-12-26 17:32:56] Production.ERROR: pbx CDR StartTime 2024-12-26 14:32:22 - End Time 2024-12-26 17:32:22 [2024-12-26 17:32:56] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:32:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108402', 'tblTempUsageDetail_20' ) start [2024-12-26 17:32:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108402', 'tblTempUsageDetail_20' ) end [2024-12-26 17:32:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108402', 'tblTempVendorCDR_20' ) start [2024-12-26 17:32:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108402', 'tblTempVendorCDR_20' ) end [2024-12-26 17:32:56] Production.INFO: ProcessCDR(1,14108402,1,1,2) [2024-12-26 17:32:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:32:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:32:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:33:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:33:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108402', 'tblTempUsageDetail_20' ) start [2024-12-26 17:33:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108402', 'tblTempUsageDetail_20' ) end [2024-12-26 17:33:01] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:33:01] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:33:01] Production.INFO: ==14372== Releasing lock... [2024-12-26 17:33:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:33:01] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:33:04 [end_date_ymd] => 2024-12-26 17:33:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:33:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:33:17] Production.INFO: count ==4819 [2024-12-26 17:33:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:33:04 - End Time 2024-12-26 17:33:04 [2024-12-26 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108407', 'tblTempUsageDetail_20' ) start [2024-12-26 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108407', 'tblTempUsageDetail_20' ) end [2024-12-26 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108407', 'tblTempVendorCDR_20' ) start [2024-12-26 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108407', 'tblTempVendorCDR_20' ) end [2024-12-26 17:33:20] Production.INFO: ProcessCDR(1,14108407,1,1,2) [2024-12-26 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108407', 'tblTempUsageDetail_20' ) start [2024-12-26 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108407', 'tblTempUsageDetail_20' ) end [2024-12-26 17:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:33:25] Production.INFO: ==14451== Releasing lock... [2024-12-26 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:33:25] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:34:05 [end_date_ymd] => 2024-12-26 17:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:34:19] Production.INFO: count ==4821 [2024-12-26 17:34:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:34:05 - End Time 2024-12-26 17:34:05 [2024-12-26 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108412', 'tblTempUsageDetail_20' ) start [2024-12-26 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108412', 'tblTempUsageDetail_20' ) end [2024-12-26 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108412', 'tblTempVendorCDR_20' ) start [2024-12-26 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108412', 'tblTempVendorCDR_20' ) end [2024-12-26 17:34:21] Production.INFO: ProcessCDR(1,14108412,1,1,2) [2024-12-26 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108412', 'tblTempUsageDetail_20' ) start [2024-12-26 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108412', 'tblTempUsageDetail_20' ) end [2024-12-26 17:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:34:25] Production.INFO: ==14535== Releasing lock... [2024-12-26 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:34:25] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:35:04 [end_date_ymd] => 2024-12-26 17:35:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:35:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:35:18] Production.INFO: count ==4825 [2024-12-26 17:35:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:35:04 - End Time 2024-12-26 17:35:04 [2024-12-26 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108417', 'tblTempUsageDetail_20' ) start [2024-12-26 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108417', 'tblTempUsageDetail_20' ) end [2024-12-26 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108417', 'tblTempVendorCDR_20' ) start [2024-12-26 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108417', 'tblTempVendorCDR_20' ) end [2024-12-26 17:35:20] Production.INFO: ProcessCDR(1,14108417,1,1,2) [2024-12-26 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108417', 'tblTempUsageDetail_20' ) start [2024-12-26 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108417', 'tblTempUsageDetail_20' ) end [2024-12-26 17:35:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:35:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:35:25] Production.INFO: ==14617== Releasing lock... [2024-12-26 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:35:25] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:36:04 [end_date_ymd] => 2024-12-26 17:36:04 [RateCDR] => 1 ) [2024-12-26 17:36: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` >= '2024-12-26 14:36:04' and `end` < '2024-12-26 17:36: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 ,'') [2024-12-26 17:36:22] Production.INFO: count ==4837 [2024-12-26 17:36:24] Production.ERROR: pbx CDR StartTime 2024-12-26 14:36:04 - End Time 2024-12-26 17:36:04 [2024-12-26 17:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108422', 'tblTempUsageDetail_20' ) start [2024-12-26 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108422', 'tblTempUsageDetail_20' ) end [2024-12-26 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108422', 'tblTempVendorCDR_20' ) start [2024-12-26 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108422', 'tblTempVendorCDR_20' ) end [2024-12-26 17:36:24] Production.INFO: ProcessCDR(1,14108422,1,1,2) [2024-12-26 17:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108422', 'tblTempUsageDetail_20' ) start [2024-12-26 17:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108422', 'tblTempUsageDetail_20' ) end [2024-12-26 17:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:36:29] Production.INFO: ==14706== Releasing lock... [2024-12-26 17:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:36:29] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:37:04 [end_date_ymd] => 2024-12-26 17:37:04 [RateCDR] => 1 ) [2024-12-26 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:37:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:37:19] Production.INFO: count ==4823 [2024-12-26 17:37:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:37:04 - End Time 2024-12-26 17:37:04 [2024-12-26 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108427', 'tblTempUsageDetail_20' ) start [2024-12-26 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108427', 'tblTempUsageDetail_20' ) end [2024-12-26 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108427', 'tblTempVendorCDR_20' ) start [2024-12-26 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108427', 'tblTempVendorCDR_20' ) end [2024-12-26 17:37:21] Production.INFO: ProcessCDR(1,14108427,1,1,2) [2024-12-26 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108427', 'tblTempUsageDetail_20' ) start [2024-12-26 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108427', 'tblTempUsageDetail_20' ) end [2024-12-26 17:37:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:37:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:37:26] Production.INFO: ==14786== Releasing lock... [2024-12-26 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:37:26] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:38:04 [end_date_ymd] => 2024-12-26 17:38:04 [RateCDR] => 1 ) [2024-12-26 17:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:38:04' and `end` < '2024-12-26 17:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:38:20] Production.INFO: count ==4825 [2024-12-26 17:38:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:38:04 - End Time 2024-12-26 17:38:04 [2024-12-26 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108432', 'tblTempUsageDetail_20' ) start [2024-12-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108432', 'tblTempUsageDetail_20' ) end [2024-12-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108432', 'tblTempVendorCDR_20' ) start [2024-12-26 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108432', 'tblTempVendorCDR_20' ) end [2024-12-26 17:38:22] Production.INFO: ProcessCDR(1,14108432,1,1,2) [2024-12-26 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108432', 'tblTempUsageDetail_20' ) start [2024-12-26 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108432', 'tblTempUsageDetail_20' ) end [2024-12-26 17:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:38:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:38:27] Production.INFO: ==14867== Releasing lock... [2024-12-26 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:38:27] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:39:05 [end_date_ymd] => 2024-12-26 17:39:05 [RateCDR] => 1 ) [2024-12-26 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:39:05' and `end` < '2024-12-26 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:39:19] Production.INFO: count ==4829 [2024-12-26 17:39:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:39:05 - End Time 2024-12-26 17:39:05 [2024-12-26 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108437', 'tblTempUsageDetail_20' ) start [2024-12-26 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108437', 'tblTempUsageDetail_20' ) end [2024-12-26 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108437', 'tblTempVendorCDR_20' ) start [2024-12-26 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108437', 'tblTempVendorCDR_20' ) end [2024-12-26 17:39:21] Production.INFO: ProcessCDR(1,14108437,1,1,2) [2024-12-26 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108437', 'tblTempUsageDetail_20' ) start [2024-12-26 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108437', 'tblTempUsageDetail_20' ) end [2024-12-26 17:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:39:25] Production.INFO: ==14951== Releasing lock... [2024-12-26 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:39:25] Production.INFO: 64 MB #Memory Used# [2024-12-26 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:40:06 [end_date_ymd] => 2024-12-26 17:40:06 [RateCDR] => 1 ) [2024-12-26 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:40:06' and `end` < '2024-12-26 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:40:19] Production.INFO: count ==5286 [2024-12-26 17:40:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:40:06 - End Time 2024-12-26 17:40:06 [2024-12-26 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108443', 'tblTempUsageDetail_20' ) start [2024-12-26 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108443', 'tblTempUsageDetail_20' ) end [2024-12-26 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108443', 'tblTempVendorCDR_20' ) start [2024-12-26 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108443', 'tblTempVendorCDR_20' ) end [2024-12-26 17:40:22] Production.INFO: ProcessCDR(1,14108443,1,1,2) [2024-12-26 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108443', 'tblTempUsageDetail_20' ) start [2024-12-26 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108443', 'tblTempUsageDetail_20' ) end [2024-12-26 17:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:40:27] Production.INFO: ==15068== Releasing lock... [2024-12-26 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:40:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-26 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:41:04 [end_date_ymd] => 2024-12-26 17:41:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:41:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:41:18] Production.INFO: count ==5323 [2024-12-26 17:41:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:41:04 - End Time 2024-12-26 17:41:04 [2024-12-26 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108448', 'tblTempUsageDetail_20' ) start [2024-12-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108448', 'tblTempUsageDetail_20' ) end [2024-12-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108448', 'tblTempVendorCDR_20' ) start [2024-12-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108448', 'tblTempVendorCDR_20' ) end [2024-12-26 17:41:20] Production.INFO: ProcessCDR(1,14108448,1,1,2) [2024-12-26 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108448', 'tblTempUsageDetail_20' ) start [2024-12-26 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108448', 'tblTempUsageDetail_20' ) end [2024-12-26 17:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:41:25] Production.INFO: ==15156== Releasing lock... [2024-12-26 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:41:25] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:42:05 [end_date_ymd] => 2024-12-26 17:42:05 [RateCDR] => 1 ) [2024-12-26 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:42:05' and `end` < '2024-12-26 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:42:23] Production.INFO: count ==5327 [2024-12-26 17:42:25] Production.ERROR: pbx CDR StartTime 2024-12-26 14:42:05 - End Time 2024-12-26 17:42:05 [2024-12-26 17:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108453', 'tblTempUsageDetail_20' ) start [2024-12-26 17:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108453', 'tblTempUsageDetail_20' ) end [2024-12-26 17:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108453', 'tblTempVendorCDR_20' ) start [2024-12-26 17:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108453', 'tblTempVendorCDR_20' ) end [2024-12-26 17:42:25] Production.INFO: ProcessCDR(1,14108453,1,1,2) [2024-12-26 17:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108453', 'tblTempUsageDetail_20' ) start [2024-12-26 17:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108453', 'tblTempUsageDetail_20' ) end [2024-12-26 17:42:30] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:42:30] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:42:30] Production.INFO: ==15235== Releasing lock... [2024-12-26 17:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:42:30] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:43:04 [end_date_ymd] => 2024-12-26 17:43:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:43:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:43:25] Production.INFO: count ==5325 [2024-12-26 17:43:27] Production.ERROR: pbx CDR StartTime 2024-12-26 14:43:04 - End Time 2024-12-26 17:43:04 [2024-12-26 17:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108458', 'tblTempUsageDetail_20' ) start [2024-12-26 17:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108458', 'tblTempUsageDetail_20' ) end [2024-12-26 17:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108458', 'tblTempVendorCDR_20' ) start [2024-12-26 17:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108458', 'tblTempVendorCDR_20' ) end [2024-12-26 17:43:27] Production.INFO: ProcessCDR(1,14108458,1,1,2) [2024-12-26 17:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108458', 'tblTempUsageDetail_20' ) start [2024-12-26 17:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108458', 'tblTempUsageDetail_20' ) end [2024-12-26 17:43:32] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:43:32] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:43:32] Production.INFO: ==15320== Releasing lock... [2024-12-26 17:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:43:32] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:44:05 [end_date_ymd] => 2024-12-26 17:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:44:19] Production.INFO: count ==5324 [2024-12-26 17:44:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:44:05 - End Time 2024-12-26 17:44:05 [2024-12-26 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108463', 'tblTempUsageDetail_20' ) start [2024-12-26 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108463', 'tblTempUsageDetail_20' ) end [2024-12-26 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108463', 'tblTempVendorCDR_20' ) start [2024-12-26 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108463', 'tblTempVendorCDR_20' ) end [2024-12-26 17:44:21] Production.INFO: ProcessCDR(1,14108463,1,1,2) [2024-12-26 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108463', 'tblTempUsageDetail_20' ) start [2024-12-26 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108463', 'tblTempUsageDetail_20' ) end [2024-12-26 17:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:44:25] Production.INFO: ==15399== Releasing lock... [2024-12-26 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:44:25] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:45:05 [end_date_ymd] => 2024-12-26 17:45:05 [RateCDR] => 1 ) [2024-12-26 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:45:05' and `end` < '2024-12-26 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:45:18] Production.INFO: count ==5320 [2024-12-26 17:45:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:45:05 - End Time 2024-12-26 17:45:05 [2024-12-26 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108468', 'tblTempUsageDetail_20' ) start [2024-12-26 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108468', 'tblTempUsageDetail_20' ) end [2024-12-26 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108468', 'tblTempVendorCDR_20' ) start [2024-12-26 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108468', 'tblTempVendorCDR_20' ) end [2024-12-26 17:45:20] Production.INFO: ProcessCDR(1,14108468,1,1,2) [2024-12-26 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108468', 'tblTempUsageDetail_20' ) start [2024-12-26 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108468', 'tblTempUsageDetail_20' ) end [2024-12-26 17:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:45:25] Production.INFO: ==15512== Releasing lock... [2024-12-26 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:45:25] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:46:05 [end_date_ymd] => 2024-12-26 17:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:46:19] Production.INFO: count ==5308 [2024-12-26 17:46:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:46:05 - End Time 2024-12-26 17:46:05 [2024-12-26 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108473', 'tblTempUsageDetail_20' ) start [2024-12-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108473', 'tblTempUsageDetail_20' ) end [2024-12-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108473', 'tblTempVendorCDR_20' ) start [2024-12-26 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108473', 'tblTempVendorCDR_20' ) end [2024-12-26 17:46:22] Production.INFO: ProcessCDR(1,14108473,1,1,2) [2024-12-26 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108473', 'tblTempUsageDetail_20' ) start [2024-12-26 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108473', 'tblTempUsageDetail_20' ) end [2024-12-26 17:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:46:26] Production.INFO: ==15631== Releasing lock... [2024-12-26 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:46:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-26 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:47:05 [end_date_ymd] => 2024-12-26 17:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:47:20] Production.INFO: count ==5487 [2024-12-26 17:47:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:47:05 - End Time 2024-12-26 17:47:05 [2024-12-26 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108478', 'tblTempUsageDetail_20' ) start [2024-12-26 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108478', 'tblTempUsageDetail_20' ) end [2024-12-26 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108478', 'tblTempVendorCDR_20' ) start [2024-12-26 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108478', 'tblTempVendorCDR_20' ) end [2024-12-26 17:47:22] Production.INFO: ProcessCDR(1,14108478,1,1,2) [2024-12-26 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108478', 'tblTempUsageDetail_20' ) start [2024-12-26 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108478', 'tblTempUsageDetail_20' ) end [2024-12-26 17:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:47:27] Production.INFO: ==15722== Releasing lock... [2024-12-26 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:47:27] Production.INFO: 69 MB #Memory Used# [2024-12-26 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:48:04 [end_date_ymd] => 2024-12-26 17:48:04 [RateCDR] => 1 ) [2024-12-26 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:48:04' and `end` < '2024-12-26 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:48:17] Production.INFO: count ==5477 [2024-12-26 17:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:48:04 - End Time 2024-12-26 17:48:04 [2024-12-26 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108483', 'tblTempUsageDetail_20' ) start [2024-12-26 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108483', 'tblTempUsageDetail_20' ) end [2024-12-26 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108483', 'tblTempVendorCDR_20' ) start [2024-12-26 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108483', 'tblTempVendorCDR_20' ) end [2024-12-26 17:48:20] Production.INFO: ProcessCDR(1,14108483,1,1,2) [2024-12-26 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108483', 'tblTempUsageDetail_20' ) start [2024-12-26 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108483', 'tblTempUsageDetail_20' ) end [2024-12-26 17:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:48:24] Production.INFO: ==15800== Releasing lock... [2024-12-26 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:48:24] Production.INFO: 68.75 MB #Memory Used# [2024-12-26 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:49:04 [end_date_ymd] => 2024-12-26 17:49:04 [RateCDR] => 1 ) [2024-12-26 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:49:04' and `end` < '2024-12-26 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:49:18] Production.INFO: count ==5441 [2024-12-26 17:49:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:49:04 - End Time 2024-12-26 17:49:04 [2024-12-26 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108488', 'tblTempUsageDetail_20' ) start [2024-12-26 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108488', 'tblTempUsageDetail_20' ) end [2024-12-26 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108488', 'tblTempVendorCDR_20' ) start [2024-12-26 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108488', 'tblTempVendorCDR_20' ) end [2024-12-26 17:49:21] Production.INFO: ProcessCDR(1,14108488,1,1,2) [2024-12-26 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108488', 'tblTempUsageDetail_20' ) start [2024-12-26 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108488', 'tblTempUsageDetail_20' ) end [2024-12-26 17:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:49:24] Production.INFO: ==15885== Releasing lock... [2024-12-26 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:49:24] Production.INFO: 68.5 MB #Memory Used# [2024-12-26 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:50:06 [end_date_ymd] => 2024-12-26 17:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:50:19] Production.INFO: count ==5440 [2024-12-26 17:50:22] Production.ERROR: pbx CDR StartTime 2024-12-26 14:50:06 - End Time 2024-12-26 17:50:06 [2024-12-26 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108494', 'tblTempUsageDetail_20' ) start [2024-12-26 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108494', 'tblTempUsageDetail_20' ) end [2024-12-26 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108494', 'tblTempVendorCDR_20' ) start [2024-12-26 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108494', 'tblTempVendorCDR_20' ) end [2024-12-26 17:50:22] Production.INFO: ProcessCDR(1,14108494,1,1,2) [2024-12-26 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108494', 'tblTempUsageDetail_20' ) start [2024-12-26 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108494', 'tblTempUsageDetail_20' ) end [2024-12-26 17:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:50:26] Production.INFO: ==15967== Releasing lock... [2024-12-26 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:50:26] Production.INFO: 68.5 MB #Memory Used# [2024-12-26 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:51:04 [end_date_ymd] => 2024-12-26 17:51:04 [RateCDR] => 1 ) [2024-12-26 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:51:04' and `end` < '2024-12-26 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:51:17] Production.INFO: count ==5454 [2024-12-26 17:51:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:51:04 - End Time 2024-12-26 17:51:04 [2024-12-26 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108499', 'tblTempUsageDetail_20' ) start [2024-12-26 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108499', 'tblTempUsageDetail_20' ) end [2024-12-26 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108499', 'tblTempVendorCDR_20' ) start [2024-12-26 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108499', 'tblTempVendorCDR_20' ) end [2024-12-26 17:51:20] Production.INFO: ProcessCDR(1,14108499,1,1,2) [2024-12-26 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108499', 'tblTempUsageDetail_20' ) start [2024-12-26 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108499', 'tblTempUsageDetail_20' ) end [2024-12-26 17:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:51:23] Production.INFO: ==16059== Releasing lock... [2024-12-26 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:51:23] Production.INFO: 68.75 MB #Memory Used# [2024-12-26 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:52:05 [end_date_ymd] => 2024-12-26 17:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:52:19] Production.INFO: count ==5457 [2024-12-26 17:52:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:52:05 - End Time 2024-12-26 17:52:05 [2024-12-26 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108504', 'tblTempUsageDetail_20' ) start [2024-12-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108504', 'tblTempUsageDetail_20' ) end [2024-12-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108504', 'tblTempVendorCDR_20' ) start [2024-12-26 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108504', 'tblTempVendorCDR_20' ) end [2024-12-26 17:52:22] Production.INFO: ProcessCDR(1,14108504,1,1,2) [2024-12-26 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108504', 'tblTempUsageDetail_20' ) start [2024-12-26 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108504', 'tblTempUsageDetail_20' ) end [2024-12-26 17:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:52:26] Production.INFO: ==16136== Releasing lock... [2024-12-26 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:52:26] Production.INFO: 68.75 MB #Memory Used# [2024-12-26 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:53:04 [end_date_ymd] => 2024-12-26 17:53:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:53:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:53:17] Production.INFO: count ==5487 [2024-12-26 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 14:53:04 - End Time 2024-12-26 17:53:04 [2024-12-26 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108509', 'tblTempUsageDetail_20' ) start [2024-12-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108509', 'tblTempUsageDetail_20' ) end [2024-12-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108509', 'tblTempVendorCDR_20' ) start [2024-12-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108509', 'tblTempVendorCDR_20' ) end [2024-12-26 17:53:19] Production.INFO: ProcessCDR(1,14108509,1,1,2) [2024-12-26 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108509', 'tblTempUsageDetail_20' ) start [2024-12-26 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108509', 'tblTempUsageDetail_20' ) end [2024-12-26 17:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:53:23] Production.INFO: ==16219== Releasing lock... [2024-12-26 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:53:23] Production.INFO: 69 MB #Memory Used# [2024-12-26 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:54:05 [end_date_ymd] => 2024-12-26 17:54:05 [RateCDR] => 1 ) [2024-12-26 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:54:05' and `end` < '2024-12-26 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:54:18] Production.INFO: count ==6077 [2024-12-26 17:54:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:54:05 - End Time 2024-12-26 17:54:05 [2024-12-26 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108514', 'tblTempUsageDetail_20' ) start [2024-12-26 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108514', 'tblTempUsageDetail_20' ) end [2024-12-26 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108514', 'tblTempVendorCDR_20' ) start [2024-12-26 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108514', 'tblTempVendorCDR_20' ) end [2024-12-26 17:54:21] Production.INFO: ProcessCDR(1,14108514,1,1,2) [2024-12-26 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108514', 'tblTempUsageDetail_20' ) start [2024-12-26 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108514', 'tblTempUsageDetail_20' ) end [2024-12-26 17:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:54:26] Production.INFO: ==16305== Releasing lock... [2024-12-26 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:54:26] Production.INFO: 73.25 MB #Memory Used# [2024-12-26 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:55:05 [end_date_ymd] => 2024-12-26 17:55:05 [RateCDR] => 1 ) [2024-12-26 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 14:55:05' and `end` < '2024-12-26 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 17:55:18] Production.INFO: count ==6173 [2024-12-26 17:55:21] Production.ERROR: pbx CDR StartTime 2024-12-26 14:55:05 - End Time 2024-12-26 17:55:05 [2024-12-26 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108519', 'tblTempUsageDetail_20' ) start [2024-12-26 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108519', 'tblTempUsageDetail_20' ) end [2024-12-26 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108519', 'tblTempVendorCDR_20' ) start [2024-12-26 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108519', 'tblTempVendorCDR_20' ) end [2024-12-26 17:55:21] Production.INFO: ProcessCDR(1,14108519,1,1,2) [2024-12-26 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108519', 'tblTempUsageDetail_20' ) start [2024-12-26 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108519', 'tblTempUsageDetail_20' ) end [2024-12-26 17:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:55:24] Production.INFO: ==16385== Releasing lock... [2024-12-26 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:55:24] Production.INFO: 74 MB #Memory Used# [2024-12-26 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:56:05 [end_date_ymd] => 2024-12-26 17:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:56:18] Production.INFO: count ==6179 [2024-12-26 17:56:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:56:05 - End Time 2024-12-26 17:56:05 [2024-12-26 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108524', 'tblTempUsageDetail_20' ) start [2024-12-26 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108524', 'tblTempUsageDetail_20' ) end [2024-12-26 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108524', 'tblTempVendorCDR_20' ) start [2024-12-26 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108524', 'tblTempVendorCDR_20' ) end [2024-12-26 17:56:21] Production.INFO: ProcessCDR(1,14108524,1,1,2) [2024-12-26 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108524', 'tblTempUsageDetail_20' ) start [2024-12-26 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108524', 'tblTempUsageDetail_20' ) end [2024-12-26 17:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:56:25] Production.INFO: ==16506== Releasing lock... [2024-12-26 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:56:25] Production.INFO: 74 MB #Memory Used# [2024-12-26 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:57:05 [end_date_ymd] => 2024-12-26 17:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 14:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 17:57:20] Production.INFO: count ==6175 [2024-12-26 17:57:23] Production.ERROR: pbx CDR StartTime 2024-12-26 14:57:05 - End Time 2024-12-26 17:57:05 [2024-12-26 17:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108529', 'tblTempUsageDetail_20' ) start [2024-12-26 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108529', 'tblTempUsageDetail_20' ) end [2024-12-26 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108529', 'tblTempVendorCDR_20' ) start [2024-12-26 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108529', 'tblTempVendorCDR_20' ) end [2024-12-26 17:57:23] Production.INFO: ProcessCDR(1,14108529,1,1,2) [2024-12-26 17:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108529', 'tblTempUsageDetail_20' ) start [2024-12-26 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108529', 'tblTempUsageDetail_20' ) end [2024-12-26 17:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:57:26] Production.INFO: ==16584== Releasing lock... [2024-12-26 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:57:26] Production.INFO: 74 MB #Memory Used# [2024-12-26 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:58:04 [end_date_ymd] => 2024-12-26 17:58:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:58:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:58:17] Production.INFO: count ==6232 [2024-12-26 17:58:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:58:04 - End Time 2024-12-26 17:58:04 [2024-12-26 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108534', 'tblTempUsageDetail_20' ) start [2024-12-26 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108534', 'tblTempUsageDetail_20' ) end [2024-12-26 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108534', 'tblTempVendorCDR_20' ) start [2024-12-26 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108534', 'tblTempVendorCDR_20' ) end [2024-12-26 17:58:20] Production.INFO: ProcessCDR(1,14108534,1,1,2) [2024-12-26 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108534', 'tblTempUsageDetail_20' ) start [2024-12-26 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108534', 'tblTempUsageDetail_20' ) end [2024-12-26 17:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:58:25] Production.INFO: ==16666== Releasing lock... [2024-12-26 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:58:25] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 14:59:04 [end_date_ymd] => 2024-12-26 17:59:04 [RateCDR] => 1 ) [2024-12-26 17: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` >= '2024-12-26 14:59:04' and `end` < '2024-12-26 17: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 ,'') [2024-12-26 17:59:17] Production.INFO: count ==6229 [2024-12-26 17:59:20] Production.ERROR: pbx CDR StartTime 2024-12-26 14:59:04 - End Time 2024-12-26 17:59:04 [2024-12-26 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108539', 'tblTempUsageDetail_20' ) start [2024-12-26 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108539', 'tblTempUsageDetail_20' ) end [2024-12-26 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108539', 'tblTempVendorCDR_20' ) start [2024-12-26 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108539', 'tblTempVendorCDR_20' ) end [2024-12-26 17:59:20] Production.INFO: ProcessCDR(1,14108539,1,1,2) [2024-12-26 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108539', 'tblTempUsageDetail_20' ) start [2024-12-26 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108539', 'tblTempUsageDetail_20' ) end [2024-12-26 17:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 17:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 17:59:25] Production.INFO: ==16751== Releasing lock... [2024-12-26 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 17:59:25] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:00:05 [end_date_ymd] => 2024-12-26 18:00:05 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:00:05' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:00:18] Production.INFO: count ==6217 [2024-12-26 18:00:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:00:05 - End Time 2024-12-26 18:00:05 [2024-12-26 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108545', 'tblTempUsageDetail_20' ) start [2024-12-26 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108545', 'tblTempUsageDetail_20' ) end [2024-12-26 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108545', 'tblTempVendorCDR_20' ) start [2024-12-26 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108545', 'tblTempVendorCDR_20' ) end [2024-12-26 18:00:21] Production.INFO: ProcessCDR(1,14108545,1,1,2) [2024-12-26 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108545', 'tblTempUsageDetail_20' ) start [2024-12-26 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108545', 'tblTempUsageDetail_20' ) end [2024-12-26 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:00:24] Production.INFO: ==16831== Releasing lock... [2024-12-26 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:00:24] Production.INFO: 74.25 MB #Memory Used# [2024-12-26 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:01:05 [end_date_ymd] => 2024-12-26 18:01:05 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:01:05' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:01:18] Production.INFO: count ==6185 [2024-12-26 18:01:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:01:05 - End Time 2024-12-26 18:01:05 [2024-12-26 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108550', 'tblTempUsageDetail_20' ) start [2024-12-26 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108550', 'tblTempUsageDetail_20' ) end [2024-12-26 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108550', 'tblTempVendorCDR_20' ) start [2024-12-26 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108550', 'tblTempVendorCDR_20' ) end [2024-12-26 18:01:21] Production.INFO: ProcessCDR(1,14108550,1,1,2) [2024-12-26 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108550', 'tblTempUsageDetail_20' ) start [2024-12-26 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108550', 'tblTempUsageDetail_20' ) end [2024-12-26 18:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:01:24] Production.INFO: ==16926== Releasing lock... [2024-12-26 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:01:24] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:02:05 [end_date_ymd] => 2024-12-26 18:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:02:19] Production.INFO: count ==6249 [2024-12-26 18:02:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:02:05 - End Time 2024-12-26 18:02:05 [2024-12-26 18:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108555', 'tblTempUsageDetail_20' ) start [2024-12-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108555', 'tblTempUsageDetail_20' ) end [2024-12-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108555', 'tblTempVendorCDR_20' ) start [2024-12-26 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108555', 'tblTempVendorCDR_20' ) end [2024-12-26 18:02:22] Production.INFO: ProcessCDR(1,14108555,1,1,2) [2024-12-26 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108555', 'tblTempUsageDetail_20' ) start [2024-12-26 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108555', 'tblTempUsageDetail_20' ) end [2024-12-26 18:02:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:02:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:02:27] Production.INFO: ==17004== Releasing lock... [2024-12-26 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:02:27] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:03:04 [end_date_ymd] => 2024-12-26 18:03:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:03:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:03:20] Production.INFO: count ==6201 [2024-12-26 18:03:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:03:04 - End Time 2024-12-26 18:03:04 [2024-12-26 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108560', 'tblTempUsageDetail_20' ) start [2024-12-26 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108560', 'tblTempUsageDetail_20' ) end [2024-12-26 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108560', 'tblTempVendorCDR_20' ) start [2024-12-26 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108560', 'tblTempVendorCDR_20' ) end [2024-12-26 18:03:23] Production.INFO: ProcessCDR(1,14108560,1,1,2) [2024-12-26 18:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108560', 'tblTempUsageDetail_20' ) start [2024-12-26 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108560', 'tblTempUsageDetail_20' ) end [2024-12-26 18:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:03:26] Production.INFO: ==17084== Releasing lock... [2024-12-26 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:03:26] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:04:05 [end_date_ymd] => 2024-12-26 18:04:05 [RateCDR] => 1 ) [2024-12-26 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:04:05' and `end` < '2024-12-26 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:04:18] Production.INFO: count ==6174 [2024-12-26 18:04:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:04:05 - End Time 2024-12-26 18:04:05 [2024-12-26 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108565', 'tblTempUsageDetail_20' ) start [2024-12-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108565', 'tblTempUsageDetail_20' ) end [2024-12-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108565', 'tblTempVendorCDR_20' ) start [2024-12-26 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108565', 'tblTempVendorCDR_20' ) end [2024-12-26 18:04:21] Production.INFO: ProcessCDR(1,14108565,1,1,2) [2024-12-26 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108565', 'tblTempUsageDetail_20' ) start [2024-12-26 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108565', 'tblTempUsageDetail_20' ) end [2024-12-26 18:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:04:24] Production.INFO: ==17167== Releasing lock... [2024-12-26 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:04:24] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:05:05 [end_date_ymd] => 2024-12-26 18:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:05:18] Production.INFO: count ==6153 [2024-12-26 18:05:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:05:05 - End Time 2024-12-26 18:05:05 [2024-12-26 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108570', 'tblTempUsageDetail_20' ) start [2024-12-26 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108570', 'tblTempUsageDetail_20' ) end [2024-12-26 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108570', 'tblTempVendorCDR_20' ) start [2024-12-26 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108570', 'tblTempVendorCDR_20' ) end [2024-12-26 18:05:21] Production.INFO: ProcessCDR(1,14108570,1,1,2) [2024-12-26 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108570', 'tblTempUsageDetail_20' ) start [2024-12-26 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108570', 'tblTempUsageDetail_20' ) end [2024-12-26 18:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:05:25] Production.INFO: ==17250== Releasing lock... [2024-12-26 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:05:25] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:06:04 [end_date_ymd] => 2024-12-26 18:06:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:06:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:06:20] Production.INFO: count ==6154 [2024-12-26 18:06:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:06:04 - End Time 2024-12-26 18:06:04 [2024-12-26 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108575', 'tblTempUsageDetail_20' ) start [2024-12-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108575', 'tblTempUsageDetail_20' ) end [2024-12-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108575', 'tblTempVendorCDR_20' ) start [2024-12-26 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108575', 'tblTempVendorCDR_20' ) end [2024-12-26 18:06:22] Production.INFO: ProcessCDR(1,14108575,1,1,2) [2024-12-26 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108575', 'tblTempUsageDetail_20' ) start [2024-12-26 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108575', 'tblTempUsageDetail_20' ) end [2024-12-26 18:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:06:27] Production.INFO: ==17336== Releasing lock... [2024-12-26 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:06:27] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:07:05 [end_date_ymd] => 2024-12-26 18:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:07:20] Production.INFO: count ==6152 [2024-12-26 18:07:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:07:05 - End Time 2024-12-26 18:07:05 [2024-12-26 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108580', 'tblTempUsageDetail_20' ) start [2024-12-26 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108580', 'tblTempUsageDetail_20' ) end [2024-12-26 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108580', 'tblTempVendorCDR_20' ) start [2024-12-26 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108580', 'tblTempVendorCDR_20' ) end [2024-12-26 18:07:22] Production.INFO: ProcessCDR(1,14108580,1,1,2) [2024-12-26 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108580', 'tblTempUsageDetail_20' ) start [2024-12-26 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108580', 'tblTempUsageDetail_20' ) end [2024-12-26 18:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:07:25] Production.INFO: ==17417== Releasing lock... [2024-12-26 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:07:25] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:08:04 [end_date_ymd] => 2024-12-26 18:08:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:08:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:08:17] Production.INFO: count ==6144 [2024-12-26 18:08:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:08:04 - End Time 2024-12-26 18:08:04 [2024-12-26 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108585', 'tblTempUsageDetail_20' ) start [2024-12-26 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108585', 'tblTempUsageDetail_20' ) end [2024-12-26 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108585', 'tblTempVendorCDR_20' ) start [2024-12-26 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108585', 'tblTempVendorCDR_20' ) end [2024-12-26 18:08:20] Production.INFO: ProcessCDR(1,14108585,1,1,2) [2024-12-26 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108585', 'tblTempUsageDetail_20' ) start [2024-12-26 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108585', 'tblTempUsageDetail_20' ) end [2024-12-26 18:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:08:24] Production.INFO: ==17493== Releasing lock... [2024-12-26 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:08:24] Production.INFO: 73.75 MB #Memory Used# [2024-12-26 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:09:05 [end_date_ymd] => 2024-12-26 18:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:09:18] Production.INFO: count ==6138 [2024-12-26 18:09:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:09:05 - End Time 2024-12-26 18:09:05 [2024-12-26 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108590', 'tblTempUsageDetail_20' ) start [2024-12-26 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108590', 'tblTempUsageDetail_20' ) end [2024-12-26 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108590', 'tblTempVendorCDR_20' ) start [2024-12-26 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108590', 'tblTempVendorCDR_20' ) end [2024-12-26 18:09:21] Production.INFO: ProcessCDR(1,14108590,1,1,2) [2024-12-26 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108590', 'tblTempUsageDetail_20' ) start [2024-12-26 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108590', 'tblTempUsageDetail_20' ) end [2024-12-26 18:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:09:25] Production.INFO: ==17576== Releasing lock... [2024-12-26 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:09:25] Production.INFO: 73.75 MB #Memory Used# [2024-12-26 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:10:05 [end_date_ymd] => 2024-12-26 18:10:05 [RateCDR] => 1 ) [2024-12-26 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:10:05' and `end` < '2024-12-26 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:10:18] Production.INFO: count ==6131 [2024-12-26 18:10:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:10:05 - End Time 2024-12-26 18:10:05 [2024-12-26 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108596', 'tblTempUsageDetail_20' ) start [2024-12-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108596', 'tblTempUsageDetail_20' ) end [2024-12-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108596', 'tblTempVendorCDR_20' ) start [2024-12-26 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108596', 'tblTempVendorCDR_20' ) end [2024-12-26 18:10:22] Production.INFO: ProcessCDR(1,14108596,1,1,2) [2024-12-26 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108596', 'tblTempUsageDetail_20' ) start [2024-12-26 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108596', 'tblTempUsageDetail_20' ) end [2024-12-26 18:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:10:25] Production.INFO: ==17660== Releasing lock... [2024-12-26 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:10:25] Production.INFO: 73.75 MB #Memory Used# [2024-12-26 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:11:04 [end_date_ymd] => 2024-12-26 18:11:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:11:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:11:18] Production.INFO: count ==6214 [2024-12-26 18:11:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:11:04 - End Time 2024-12-26 18:11:04 [2024-12-26 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108601', 'tblTempUsageDetail_20' ) start [2024-12-26 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108601', 'tblTempUsageDetail_20' ) end [2024-12-26 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108601', 'tblTempVendorCDR_20' ) start [2024-12-26 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108601', 'tblTempVendorCDR_20' ) end [2024-12-26 18:11:21] Production.INFO: ProcessCDR(1,14108601,1,1,2) [2024-12-26 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108601', 'tblTempUsageDetail_20' ) start [2024-12-26 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108601', 'tblTempUsageDetail_20' ) end [2024-12-26 18:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:11:24] Production.INFO: ==17737== Releasing lock... [2024-12-26 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:11:24] Production.INFO: 74.25 MB #Memory Used# [2024-12-26 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:12:05 [end_date_ymd] => 2024-12-26 18:12:05 [RateCDR] => 1 ) [2024-12-26 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:12:05' and `end` < '2024-12-26 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:12:18] Production.INFO: count ==6213 [2024-12-26 18:12:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:12:05 - End Time 2024-12-26 18:12:05 [2024-12-26 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108606', 'tblTempUsageDetail_20' ) start [2024-12-26 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108606', 'tblTempUsageDetail_20' ) end [2024-12-26 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108606', 'tblTempVendorCDR_20' ) start [2024-12-26 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108606', 'tblTempVendorCDR_20' ) end [2024-12-26 18:12:21] Production.INFO: ProcessCDR(1,14108606,1,1,2) [2024-12-26 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108606', 'tblTempUsageDetail_20' ) start [2024-12-26 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108606', 'tblTempUsageDetail_20' ) end [2024-12-26 18:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:12:25] Production.INFO: ==17854== Releasing lock... [2024-12-26 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:12:25] Production.INFO: 74.25 MB #Memory Used# [2024-12-26 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:13:04 [end_date_ymd] => 2024-12-26 18:13:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:13:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:13:17] Production.INFO: count ==6253 [2024-12-26 18:13:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:13:04 - End Time 2024-12-26 18:13:04 [2024-12-26 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108611', 'tblTempUsageDetail_20' ) start [2024-12-26 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108611', 'tblTempUsageDetail_20' ) end [2024-12-26 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108611', 'tblTempVendorCDR_20' ) start [2024-12-26 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108611', 'tblTempVendorCDR_20' ) end [2024-12-26 18:13:20] Production.INFO: ProcessCDR(1,14108611,1,1,2) [2024-12-26 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108611', 'tblTempUsageDetail_20' ) start [2024-12-26 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108611', 'tblTempUsageDetail_20' ) end [2024-12-26 18:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:13:24] Production.INFO: ==17934== Releasing lock... [2024-12-26 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:13:24] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:14:05 [end_date_ymd] => 2024-12-26 18:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:14:18] Production.INFO: count ==6231 [2024-12-26 18:14:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:14:05 - End Time 2024-12-26 18:14:05 [2024-12-26 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108616', 'tblTempUsageDetail_20' ) start [2024-12-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108616', 'tblTempUsageDetail_20' ) end [2024-12-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108616', 'tblTempVendorCDR_20' ) start [2024-12-26 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108616', 'tblTempVendorCDR_20' ) end [2024-12-26 18:14:21] Production.INFO: ProcessCDR(1,14108616,1,1,2) [2024-12-26 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108616', 'tblTempUsageDetail_20' ) start [2024-12-26 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108616', 'tblTempUsageDetail_20' ) end [2024-12-26 18:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:14:24] Production.INFO: ==18009== Releasing lock... [2024-12-26 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:14:24] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:15:05 [end_date_ymd] => 2024-12-26 18:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:15:18] Production.INFO: count ==6206 [2024-12-26 18:15:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:15:05 - End Time 2024-12-26 18:15:05 [2024-12-26 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108621', 'tblTempUsageDetail_20' ) start [2024-12-26 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108621', 'tblTempUsageDetail_20' ) end [2024-12-26 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108621', 'tblTempVendorCDR_20' ) start [2024-12-26 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108621', 'tblTempVendorCDR_20' ) end [2024-12-26 18:15:21] Production.INFO: ProcessCDR(1,14108621,1,1,2) [2024-12-26 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108621', 'tblTempUsageDetail_20' ) start [2024-12-26 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108621', 'tblTempUsageDetail_20' ) end [2024-12-26 18:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:15:24] Production.INFO: ==18090== Releasing lock... [2024-12-26 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:15:24] Production.INFO: 74.25 MB #Memory Used# [2024-12-26 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:16:05 [end_date_ymd] => 2024-12-26 18:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:16:18] Production.INFO: count ==6239 [2024-12-26 18:16:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:16:05 - End Time 2024-12-26 18:16:05 [2024-12-26 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108626', 'tblTempUsageDetail_20' ) start [2024-12-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108626', 'tblTempUsageDetail_20' ) end [2024-12-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108626', 'tblTempVendorCDR_20' ) start [2024-12-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108626', 'tblTempVendorCDR_20' ) end [2024-12-26 18:16:21] Production.INFO: ProcessCDR(1,14108626,1,1,2) [2024-12-26 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108626', 'tblTempUsageDetail_20' ) start [2024-12-26 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108626', 'tblTempUsageDetail_20' ) end [2024-12-26 18:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:16:25] Production.INFO: ==18163== Releasing lock... [2024-12-26 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:16:25] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:17:05 [end_date_ymd] => 2024-12-26 18:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:17:18] Production.INFO: count ==6231 [2024-12-26 18:17:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:17:05 - End Time 2024-12-26 18:17:05 [2024-12-26 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108631', 'tblTempUsageDetail_20' ) start [2024-12-26 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108631', 'tblTempUsageDetail_20' ) end [2024-12-26 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108631', 'tblTempVendorCDR_20' ) start [2024-12-26 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108631', 'tblTempVendorCDR_20' ) end [2024-12-26 18:17:21] Production.INFO: ProcessCDR(1,14108631,1,1,2) [2024-12-26 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108631', 'tblTempUsageDetail_20' ) start [2024-12-26 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108631', 'tblTempUsageDetail_20' ) end [2024-12-26 18:17:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:17:26] Production.INFO: ==18240== Releasing lock... [2024-12-26 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:17:26] Production.INFO: 74.5 MB #Memory Used# [2024-12-26 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:18:05 [end_date_ymd] => 2024-12-26 18:18:05 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:18:05' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:18:18] Production.INFO: count ==6198 [2024-12-26 18:18:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:18:05 - End Time 2024-12-26 18:18:05 [2024-12-26 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108636', 'tblTempUsageDetail_20' ) start [2024-12-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108636', 'tblTempUsageDetail_20' ) end [2024-12-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108636', 'tblTempVendorCDR_20' ) start [2024-12-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108636', 'tblTempVendorCDR_20' ) end [2024-12-26 18:18:21] Production.INFO: ProcessCDR(1,14108636,1,1,2) [2024-12-26 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108636', 'tblTempUsageDetail_20' ) start [2024-12-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108636', 'tblTempUsageDetail_20' ) end [2024-12-26 18:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:18:24] Production.INFO: ==18312== Releasing lock... [2024-12-26 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:18:24] Production.INFO: 74.25 MB #Memory Used# [2024-12-26 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:19:05 [end_date_ymd] => 2024-12-26 18:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:19:19] Production.INFO: count ==6168 [2024-12-26 18:19:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:19:05 - End Time 2024-12-26 18:19:05 [2024-12-26 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108641', 'tblTempUsageDetail_20' ) start [2024-12-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108641', 'tblTempUsageDetail_20' ) end [2024-12-26 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108641', 'tblTempVendorCDR_20' ) start [2024-12-26 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108641', 'tblTempVendorCDR_20' ) end [2024-12-26 18:19:22] Production.INFO: ProcessCDR(1,14108641,1,1,2) [2024-12-26 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108641', 'tblTempUsageDetail_20' ) start [2024-12-26 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108641', 'tblTempUsageDetail_20' ) end [2024-12-26 18:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:19:24] Production.INFO: ==18391== Releasing lock... [2024-12-26 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:19:24] Production.INFO: 74 MB #Memory Used# [2024-12-26 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:20:05 [end_date_ymd] => 2024-12-26 18:20:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:20:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:20:18] Production.INFO: count ==6134 [2024-12-26 18:20:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:20:05 - End Time 2024-12-26 18:20:05 [2024-12-26 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108647', 'tblTempUsageDetail_20' ) start [2024-12-26 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108647', 'tblTempUsageDetail_20' ) end [2024-12-26 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108647', 'tblTempVendorCDR_20' ) start [2024-12-26 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108647', 'tblTempVendorCDR_20' ) end [2024-12-26 18:20:21] Production.INFO: ProcessCDR(1,14108647,1,1,2) [2024-12-26 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108647', 'tblTempUsageDetail_20' ) start [2024-12-26 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108647', 'tblTempUsageDetail_20' ) end [2024-12-26 18:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:20:25] Production.INFO: ==18469== Releasing lock... [2024-12-26 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:20:25] Production.INFO: 73.75 MB #Memory Used# [2024-12-26 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:21:04 [end_date_ymd] => 2024-12-26 18:21:04 [RateCDR] => 1 ) [2024-12-26 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:21:04' and `end` < '2024-12-26 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:21:17] Production.INFO: count ==6121 [2024-12-26 18:21:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:21:04 - End Time 2024-12-26 18:21:04 [2024-12-26 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108652', 'tblTempUsageDetail_20' ) start [2024-12-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108652', 'tblTempUsageDetail_20' ) end [2024-12-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108652', 'tblTempVendorCDR_20' ) start [2024-12-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108652', 'tblTempVendorCDR_20' ) end [2024-12-26 18:21:20] Production.INFO: ProcessCDR(1,14108652,1,1,2) [2024-12-26 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108652', 'tblTempUsageDetail_20' ) start [2024-12-26 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108652', 'tblTempUsageDetail_20' ) end [2024-12-26 18:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:21:23] Production.INFO: ==18555== Releasing lock... [2024-12-26 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:21:23] Production.INFO: 73.75 MB #Memory Used# [2024-12-26 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:22:05 [end_date_ymd] => 2024-12-26 18:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:22:19] Production.INFO: count ==6062 [2024-12-26 18:22:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:22:05 - End Time 2024-12-26 18:22:05 [2024-12-26 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108657', 'tblTempUsageDetail_20' ) start [2024-12-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108657', 'tblTempUsageDetail_20' ) end [2024-12-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108657', 'tblTempVendorCDR_20' ) start [2024-12-26 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108657', 'tblTempVendorCDR_20' ) end [2024-12-26 18:22:21] Production.INFO: ProcessCDR(1,14108657,1,1,2) [2024-12-26 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108657', 'tblTempUsageDetail_20' ) start [2024-12-26 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108657', 'tblTempUsageDetail_20' ) end [2024-12-26 18:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:22:24] Production.INFO: ==18630== Releasing lock... [2024-12-26 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:22:24] Production.INFO: 73.25 MB #Memory Used# [2024-12-26 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:23:04 [end_date_ymd] => 2024-12-26 18:23:04 [RateCDR] => 1 ) [2024-12-26 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:23:04' and `end` < '2024-12-26 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:23:17] Production.INFO: count ==6010 [2024-12-26 18:23:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:23:04 - End Time 2024-12-26 18:23:04 [2024-12-26 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108662', 'tblTempUsageDetail_20' ) start [2024-12-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108662', 'tblTempUsageDetail_20' ) end [2024-12-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108662', 'tblTempVendorCDR_20' ) start [2024-12-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108662', 'tblTempVendorCDR_20' ) end [2024-12-26 18:23:20] Production.INFO: ProcessCDR(1,14108662,1,1,2) [2024-12-26 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108662', 'tblTempUsageDetail_20' ) start [2024-12-26 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108662', 'tblTempUsageDetail_20' ) end [2024-12-26 18:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:23:23] Production.INFO: ==18703== Releasing lock... [2024-12-26 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:23:23] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:24:05 [end_date_ymd] => 2024-12-26 18:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:24:18] Production.INFO: count ==6009 [2024-12-26 18:24:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:24:05 - End Time 2024-12-26 18:24:05 [2024-12-26 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108667', 'tblTempUsageDetail_20' ) start [2024-12-26 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108667', 'tblTempUsageDetail_20' ) end [2024-12-26 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108667', 'tblTempVendorCDR_20' ) start [2024-12-26 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108667', 'tblTempVendorCDR_20' ) end [2024-12-26 18:24:20] Production.INFO: ProcessCDR(1,14108667,1,1,2) [2024-12-26 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108667', 'tblTempUsageDetail_20' ) start [2024-12-26 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108667', 'tblTempUsageDetail_20' ) end [2024-12-26 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:24:23] Production.INFO: ==18779== Releasing lock... [2024-12-26 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:24:23] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:25:05 [end_date_ymd] => 2024-12-26 18:25:05 [RateCDR] => 1 ) [2024-12-26 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:25:05' and `end` < '2024-12-26 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:25:18] Production.INFO: count ==6009 [2024-12-26 18:25:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:25:05 - End Time 2024-12-26 18:25:05 [2024-12-26 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108672', 'tblTempUsageDetail_20' ) start [2024-12-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108672', 'tblTempUsageDetail_20' ) end [2024-12-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108672', 'tblTempVendorCDR_20' ) start [2024-12-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108672', 'tblTempVendorCDR_20' ) end [2024-12-26 18:25:21] Production.INFO: ProcessCDR(1,14108672,1,1,2) [2024-12-26 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108672', 'tblTempUsageDetail_20' ) start [2024-12-26 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108672', 'tblTempUsageDetail_20' ) end [2024-12-26 18:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:25:25] Production.INFO: ==18851== Releasing lock... [2024-12-26 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:25:25] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:26:05 [end_date_ymd] => 2024-12-26 18:26:05 [RateCDR] => 1 ) [2024-12-26 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:26:05' and `end` < '2024-12-26 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:26:19] Production.INFO: count ==6008 [2024-12-26 18:26:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:26:05 - End Time 2024-12-26 18:26:05 [2024-12-26 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108677', 'tblTempUsageDetail_20' ) start [2024-12-26 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108677', 'tblTempUsageDetail_20' ) end [2024-12-26 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108677', 'tblTempVendorCDR_20' ) start [2024-12-26 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108677', 'tblTempVendorCDR_20' ) end [2024-12-26 18:26:22] Production.INFO: ProcessCDR(1,14108677,1,1,2) [2024-12-26 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108677', 'tblTempUsageDetail_20' ) start [2024-12-26 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108677', 'tblTempUsageDetail_20' ) end [2024-12-26 18:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:26:27] Production.INFO: ==18928== Releasing lock... [2024-12-26 18:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:26:27] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:27:05 [end_date_ymd] => 2024-12-26 18:27:05 [RateCDR] => 1 ) [2024-12-26 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:27:05' and `end` < '2024-12-26 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:27:18] Production.INFO: count ==6005 [2024-12-26 18:27:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:27:05 - End Time 2024-12-26 18:27:05 [2024-12-26 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108682', 'tblTempUsageDetail_20' ) start [2024-12-26 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108682', 'tblTempUsageDetail_20' ) end [2024-12-26 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108682', 'tblTempVendorCDR_20' ) start [2024-12-26 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108682', 'tblTempVendorCDR_20' ) end [2024-12-26 18:27:21] Production.INFO: ProcessCDR(1,14108682,1,1,2) [2024-12-26 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108682', 'tblTempUsageDetail_20' ) start [2024-12-26 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108682', 'tblTempUsageDetail_20' ) end [2024-12-26 18:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:27:24] Production.INFO: ==19036== Releasing lock... [2024-12-26 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:27:24] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:28:04 [end_date_ymd] => 2024-12-26 18:28:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:28:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:28:17] Production.INFO: count ==6007 [2024-12-26 18:28:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:28:04 - End Time 2024-12-26 18:28:04 [2024-12-26 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108687', 'tblTempUsageDetail_20' ) start [2024-12-26 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108687', 'tblTempUsageDetail_20' ) end [2024-12-26 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108687', 'tblTempVendorCDR_20' ) start [2024-12-26 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108687', 'tblTempVendorCDR_20' ) end [2024-12-26 18:28:20] Production.INFO: ProcessCDR(1,14108687,1,1,2) [2024-12-26 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108687', 'tblTempUsageDetail_20' ) start [2024-12-26 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108687', 'tblTempUsageDetail_20' ) end [2024-12-26 18:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:28:23] Production.INFO: ==19107== Releasing lock... [2024-12-26 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:28:23] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:29:05 [end_date_ymd] => 2024-12-26 18:29:05 [RateCDR] => 1 ) [2024-12-26 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:29:05' and `end` < '2024-12-26 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:29:19] Production.INFO: count ==6016 [2024-12-26 18:29:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:29:05 - End Time 2024-12-26 18:29:05 [2024-12-26 18:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108692', 'tblTempUsageDetail_20' ) start [2024-12-26 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108692', 'tblTempUsageDetail_20' ) end [2024-12-26 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108692', 'tblTempVendorCDR_20' ) start [2024-12-26 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108692', 'tblTempVendorCDR_20' ) end [2024-12-26 18:29:22] Production.INFO: ProcessCDR(1,14108692,1,1,2) [2024-12-26 18:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108692', 'tblTempUsageDetail_20' ) start [2024-12-26 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108692', 'tblTempUsageDetail_20' ) end [2024-12-26 18:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:29:27] Production.INFO: ==19180== Releasing lock... [2024-12-26 18:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:29:27] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:30:06 [end_date_ymd] => 2024-12-26 18:30:06 [RateCDR] => 1 ) [2024-12-26 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:30:06' and `end` < '2024-12-26 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:30:19] Production.INFO: count ==6010 [2024-12-26 18:30:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:30:06 - End Time 2024-12-26 18:30:06 [2024-12-26 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108698', 'tblTempUsageDetail_20' ) start [2024-12-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108698', 'tblTempUsageDetail_20' ) end [2024-12-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108698', 'tblTempVendorCDR_20' ) start [2024-12-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108698', 'tblTempVendorCDR_20' ) end [2024-12-26 18:30:21] Production.INFO: ProcessCDR(1,14108698,1,1,2) [2024-12-26 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108698', 'tblTempUsageDetail_20' ) start [2024-12-26 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108698', 'tblTempUsageDetail_20' ) end [2024-12-26 18:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:30:24] Production.INFO: ==19251== Releasing lock... [2024-12-26 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:30:24] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:31:04 [end_date_ymd] => 2024-12-26 18:31:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:31:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:31:17] Production.INFO: count ==5998 [2024-12-26 18:31:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:31:04 - End Time 2024-12-26 18:31:04 [2024-12-26 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108703', 'tblTempUsageDetail_20' ) start [2024-12-26 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108703', 'tblTempUsageDetail_20' ) end [2024-12-26 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108703', 'tblTempVendorCDR_20' ) start [2024-12-26 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108703', 'tblTempVendorCDR_20' ) end [2024-12-26 18:31:20] Production.INFO: ProcessCDR(1,14108703,1,1,2) [2024-12-26 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108703', 'tblTempUsageDetail_20' ) start [2024-12-26 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108703', 'tblTempUsageDetail_20' ) end [2024-12-26 18:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:31:23] Production.INFO: ==19327== Releasing lock... [2024-12-26 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:31:23] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:32:05 [end_date_ymd] => 2024-12-26 18:32:05 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:32:05' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:32:19] Production.INFO: count ==5986 [2024-12-26 18:32:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:32:05 - End Time 2024-12-26 18:32:05 [2024-12-26 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108708', 'tblTempUsageDetail_20' ) start [2024-12-26 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108708', 'tblTempUsageDetail_20' ) end [2024-12-26 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108708', 'tblTempVendorCDR_20' ) start [2024-12-26 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108708', 'tblTempVendorCDR_20' ) end [2024-12-26 18:32:22] Production.INFO: ProcessCDR(1,14108708,1,1,2) [2024-12-26 18:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108708', 'tblTempUsageDetail_20' ) start [2024-12-26 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108708', 'tblTempUsageDetail_20' ) end [2024-12-26 18:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:32:25] Production.INFO: ==19397== Releasing lock... [2024-12-26 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:32:25] Production.INFO: 72.75 MB #Memory Used# [2024-12-26 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:33:04 [end_date_ymd] => 2024-12-26 18:33:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:33:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:33:18] Production.INFO: count ==5975 [2024-12-26 18:33:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:33:04 - End Time 2024-12-26 18:33:04 [2024-12-26 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108713', 'tblTempUsageDetail_20' ) start [2024-12-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108713', 'tblTempUsageDetail_20' ) end [2024-12-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108713', 'tblTempVendorCDR_20' ) start [2024-12-26 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108713', 'tblTempVendorCDR_20' ) end [2024-12-26 18:33:21] Production.INFO: ProcessCDR(1,14108713,1,1,2) [2024-12-26 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108713', 'tblTempUsageDetail_20' ) start [2024-12-26 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108713', 'tblTempUsageDetail_20' ) end [2024-12-26 18:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:33:25] Production.INFO: ==19466== Releasing lock... [2024-12-26 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:33:25] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:34:04 [end_date_ymd] => 2024-12-26 18:34:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:34:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:34:18] Production.INFO: count ==5968 [2024-12-26 18:34:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:34:04 - End Time 2024-12-26 18:34:04 [2024-12-26 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108718', 'tblTempUsageDetail_20' ) start [2024-12-26 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108718', 'tblTempUsageDetail_20' ) end [2024-12-26 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108718', 'tblTempVendorCDR_20' ) start [2024-12-26 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108718', 'tblTempVendorCDR_20' ) end [2024-12-26 18:34:21] Production.INFO: ProcessCDR(1,14108718,1,1,2) [2024-12-26 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108718', 'tblTempUsageDetail_20' ) start [2024-12-26 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108718', 'tblTempUsageDetail_20' ) end [2024-12-26 18:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:34:24] Production.INFO: ==19537== Releasing lock... [2024-12-26 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:34:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:35:05 [end_date_ymd] => 2024-12-26 18:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:35:18] Production.INFO: count ==5957 [2024-12-26 18:35:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:35:05 - End Time 2024-12-26 18:35:05 [2024-12-26 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108723', 'tblTempUsageDetail_20' ) start [2024-12-26 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108723', 'tblTempUsageDetail_20' ) end [2024-12-26 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108723', 'tblTempVendorCDR_20' ) start [2024-12-26 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108723', 'tblTempVendorCDR_20' ) end [2024-12-26 18:35:21] Production.INFO: ProcessCDR(1,14108723,1,1,2) [2024-12-26 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108723', 'tblTempUsageDetail_20' ) start [2024-12-26 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108723', 'tblTempUsageDetail_20' ) end [2024-12-26 18:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:35:24] Production.INFO: ==19609== Releasing lock... [2024-12-26 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:35:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:36:04 [end_date_ymd] => 2024-12-26 18:36:04 [RateCDR] => 1 ) [2024-12-26 18:36: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` >= '2024-12-26 15:36:04' and `end` < '2024-12-26 18:36: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 ,'') [2024-12-26 18:36:18] Production.INFO: count ==5957 [2024-12-26 18:36:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:36:04 - End Time 2024-12-26 18:36:04 [2024-12-26 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108728', 'tblTempUsageDetail_20' ) start [2024-12-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108728', 'tblTempUsageDetail_20' ) end [2024-12-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108728', 'tblTempVendorCDR_20' ) start [2024-12-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108728', 'tblTempVendorCDR_20' ) end [2024-12-26 18:36:21] Production.INFO: ProcessCDR(1,14108728,1,1,2) [2024-12-26 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108728', 'tblTempUsageDetail_20' ) start [2024-12-26 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108728', 'tblTempUsageDetail_20' ) end [2024-12-26 18:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:36:24] Production.INFO: ==19683== Releasing lock... [2024-12-26 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:36:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:37:04 [end_date_ymd] => 2024-12-26 18:37:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:37:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:37:18] Production.INFO: count ==5960 [2024-12-26 18:37:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:37:04 - End Time 2024-12-26 18:37:04 [2024-12-26 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108733', 'tblTempUsageDetail_20' ) start [2024-12-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108733', 'tblTempUsageDetail_20' ) end [2024-12-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108733', 'tblTempVendorCDR_20' ) start [2024-12-26 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108733', 'tblTempVendorCDR_20' ) end [2024-12-26 18:37:21] Production.INFO: ProcessCDR(1,14108733,1,1,2) [2024-12-26 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108733', 'tblTempUsageDetail_20' ) start [2024-12-26 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108733', 'tblTempUsageDetail_20' ) end [2024-12-26 18:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:37:25] Production.INFO: ==19758== Releasing lock... [2024-12-26 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:37:25] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:38:04 [end_date_ymd] => 2024-12-26 18:38:04 [RateCDR] => 1 ) [2024-12-26 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:38:04' and `end` < '2024-12-26 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:38:18] Production.INFO: count ==5960 [2024-12-26 18:38:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:38:04 - End Time 2024-12-26 18:38:04 [2024-12-26 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108738', 'tblTempUsageDetail_20' ) start [2024-12-26 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108738', 'tblTempUsageDetail_20' ) end [2024-12-26 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108738', 'tblTempVendorCDR_20' ) start [2024-12-26 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108738', 'tblTempVendorCDR_20' ) end [2024-12-26 18:38:21] Production.INFO: ProcessCDR(1,14108738,1,1,2) [2024-12-26 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108738', 'tblTempUsageDetail_20' ) start [2024-12-26 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108738', 'tblTempUsageDetail_20' ) end [2024-12-26 18:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:38:24] Production.INFO: ==19829== Releasing lock... [2024-12-26 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:38:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:39:05 [end_date_ymd] => 2024-12-26 18:39:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:39:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:39:18] Production.INFO: count ==5962 [2024-12-26 18:39:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:39:05 - End Time 2024-12-26 18:39:05 [2024-12-26 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108743', 'tblTempUsageDetail_20' ) start [2024-12-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108743', 'tblTempUsageDetail_20' ) end [2024-12-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108743', 'tblTempVendorCDR_20' ) start [2024-12-26 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108743', 'tblTempVendorCDR_20' ) end [2024-12-26 18:39:21] Production.INFO: ProcessCDR(1,14108743,1,1,2) [2024-12-26 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108743', 'tblTempUsageDetail_20' ) start [2024-12-26 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108743', 'tblTempUsageDetail_20' ) end [2024-12-26 18:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:39:25] Production.INFO: ==19902== Releasing lock... [2024-12-26 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:39:25] Production.INFO: 72.5 MB #Memory Used# [2024-12-26 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:40:05 [end_date_ymd] => 2024-12-26 18:40:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:40:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:40:18] Production.INFO: count ==5936 [2024-12-26 18:40:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:40:05 - End Time 2024-12-26 18:40:05 [2024-12-26 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108749', 'tblTempUsageDetail_20' ) start [2024-12-26 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108749', 'tblTempUsageDetail_20' ) end [2024-12-26 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108749', 'tblTempVendorCDR_20' ) start [2024-12-26 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108749', 'tblTempVendorCDR_20' ) end [2024-12-26 18:40:21] Production.INFO: ProcessCDR(1,14108749,1,1,2) [2024-12-26 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108749', 'tblTempUsageDetail_20' ) start [2024-12-26 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108749', 'tblTempUsageDetail_20' ) end [2024-12-26 18:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:40:24] Production.INFO: ==19976== Releasing lock... [2024-12-26 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:40:24] Production.INFO: 72.25 MB #Memory Used# [2024-12-26 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:41:05 [end_date_ymd] => 2024-12-26 18:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:41:17] Production.INFO: count ==5921 [2024-12-26 18:41:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:41:05 - End Time 2024-12-26 18:41:05 [2024-12-26 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108754', 'tblTempUsageDetail_20' ) start [2024-12-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108754', 'tblTempUsageDetail_20' ) end [2024-12-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108754', 'tblTempVendorCDR_20' ) start [2024-12-26 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108754', 'tblTempVendorCDR_20' ) end [2024-12-26 18:41:20] Production.INFO: ProcessCDR(1,14108754,1,1,2) [2024-12-26 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108754', 'tblTempUsageDetail_20' ) start [2024-12-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108754', 'tblTempUsageDetail_20' ) end [2024-12-26 18:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:41:24] Production.INFO: ==20054== Releasing lock... [2024-12-26 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:41:24] Production.INFO: 72.25 MB #Memory Used# [2024-12-26 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:42:05 [end_date_ymd] => 2024-12-26 18:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:42:18] Production.INFO: count ==5889 [2024-12-26 18:42:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:42:05 - End Time 2024-12-26 18:42:05 [2024-12-26 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108759', 'tblTempUsageDetail_20' ) start [2024-12-26 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108759', 'tblTempUsageDetail_20' ) end [2024-12-26 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108759', 'tblTempVendorCDR_20' ) start [2024-12-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108759', 'tblTempVendorCDR_20' ) end [2024-12-26 18:42:21] Production.INFO: ProcessCDR(1,14108759,1,1,2) [2024-12-26 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108759', 'tblTempUsageDetail_20' ) start [2024-12-26 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108759', 'tblTempUsageDetail_20' ) end [2024-12-26 18:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:42:24] Production.INFO: ==20134== Releasing lock... [2024-12-26 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:42:24] Production.INFO: 72 MB #Memory Used# [2024-12-26 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:43:04 [end_date_ymd] => 2024-12-26 18:43:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:43:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:43:17] Production.INFO: count ==5860 [2024-12-26 18:43:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:43:04 - End Time 2024-12-26 18:43:04 [2024-12-26 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108764', 'tblTempUsageDetail_20' ) start [2024-12-26 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108764', 'tblTempUsageDetail_20' ) end [2024-12-26 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108764', 'tblTempVendorCDR_20' ) start [2024-12-26 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108764', 'tblTempVendorCDR_20' ) end [2024-12-26 18:43:20] Production.INFO: ProcessCDR(1,14108764,1,1,2) [2024-12-26 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108764', 'tblTempUsageDetail_20' ) start [2024-12-26 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108764', 'tblTempUsageDetail_20' ) end [2024-12-26 18:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:43:25] Production.INFO: ==20248== Releasing lock... [2024-12-26 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:43:25] Production.INFO: 71.75 MB #Memory Used# [2024-12-26 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:44:05 [end_date_ymd] => 2024-12-26 18:44:05 [RateCDR] => 1 ) [2024-12-26 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:44:05' and `end` < '2024-12-26 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:44:18] Production.INFO: count ==5844 [2024-12-26 18:44:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:44:05 - End Time 2024-12-26 18:44:05 [2024-12-26 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108769', 'tblTempUsageDetail_20' ) start [2024-12-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108769', 'tblTempUsageDetail_20' ) end [2024-12-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108769', 'tblTempVendorCDR_20' ) start [2024-12-26 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108769', 'tblTempVendorCDR_20' ) end [2024-12-26 18:44:21] Production.INFO: ProcessCDR(1,14108769,1,1,2) [2024-12-26 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108769', 'tblTempUsageDetail_20' ) start [2024-12-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108769', 'tblTempUsageDetail_20' ) end [2024-12-26 18:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:44:24] Production.INFO: ==20322== Releasing lock... [2024-12-26 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:44:24] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:45:04 [end_date_ymd] => 2024-12-26 18:45:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:45:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:45:17] Production.INFO: count ==5838 [2024-12-26 18:45:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:45:04 - End Time 2024-12-26 18:45:04 [2024-12-26 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108774', 'tblTempUsageDetail_20' ) start [2024-12-26 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108774', 'tblTempUsageDetail_20' ) end [2024-12-26 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108774', 'tblTempVendorCDR_20' ) start [2024-12-26 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108774', 'tblTempVendorCDR_20' ) end [2024-12-26 18:45:20] Production.INFO: ProcessCDR(1,14108774,1,1,2) [2024-12-26 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108774', 'tblTempUsageDetail_20' ) start [2024-12-26 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108774', 'tblTempUsageDetail_20' ) end [2024-12-26 18:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:45:25] Production.INFO: ==20395== Releasing lock... [2024-12-26 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:45:25] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:46:05 [end_date_ymd] => 2024-12-26 18:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:46:18] Production.INFO: count ==5841 [2024-12-26 18:46:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:46:05 - End Time 2024-12-26 18:46:05 [2024-12-26 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108779', 'tblTempUsageDetail_20' ) start [2024-12-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108779', 'tblTempUsageDetail_20' ) end [2024-12-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108779', 'tblTempVendorCDR_20' ) start [2024-12-26 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108779', 'tblTempVendorCDR_20' ) end [2024-12-26 18:46:21] Production.INFO: ProcessCDR(1,14108779,1,1,2) [2024-12-26 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108779', 'tblTempUsageDetail_20' ) start [2024-12-26 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108779', 'tblTempUsageDetail_20' ) end [2024-12-26 18:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:46:24] Production.INFO: ==20470== Releasing lock... [2024-12-26 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:46:24] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:47:05 [end_date_ymd] => 2024-12-26 18:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:47:18] Production.INFO: count ==5826 [2024-12-26 18:47:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:47:05 - End Time 2024-12-26 18:47:05 [2024-12-26 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108784', 'tblTempUsageDetail_20' ) start [2024-12-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108784', 'tblTempUsageDetail_20' ) end [2024-12-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108784', 'tblTempVendorCDR_20' ) start [2024-12-26 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108784', 'tblTempVendorCDR_20' ) end [2024-12-26 18:47:21] Production.INFO: ProcessCDR(1,14108784,1,1,2) [2024-12-26 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108784', 'tblTempUsageDetail_20' ) start [2024-12-26 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108784', 'tblTempUsageDetail_20' ) end [2024-12-26 18:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:47:26] Production.INFO: ==20545== Releasing lock... [2024-12-26 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:47:26] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:48:05 [end_date_ymd] => 2024-12-26 18:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:48:18] Production.INFO: count ==5836 [2024-12-26 18:48:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:48:05 - End Time 2024-12-26 18:48:05 [2024-12-26 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108789', 'tblTempUsageDetail_20' ) start [2024-12-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108789', 'tblTempUsageDetail_20' ) end [2024-12-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108789', 'tblTempVendorCDR_20' ) start [2024-12-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108789', 'tblTempVendorCDR_20' ) end [2024-12-26 18:48:21] Production.INFO: ProcessCDR(1,14108789,1,1,2) [2024-12-26 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108789', 'tblTempUsageDetail_20' ) start [2024-12-26 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108789', 'tblTempUsageDetail_20' ) end [2024-12-26 18:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:48:26] Production.INFO: ==20619== Releasing lock... [2024-12-26 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:48:26] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:49:05 [end_date_ymd] => 2024-12-26 18:49:05 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:49:18] Production.INFO: count ==5825 [2024-12-26 18:49:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:49:05 - End Time 2024-12-26 18:49:05 [2024-12-26 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108794', 'tblTempUsageDetail_20' ) start [2024-12-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108794', 'tblTempUsageDetail_20' ) end [2024-12-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108794', 'tblTempVendorCDR_20' ) start [2024-12-26 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108794', 'tblTempVendorCDR_20' ) end [2024-12-26 18:49:21] Production.INFO: ProcessCDR(1,14108794,1,1,2) [2024-12-26 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108794', 'tblTempUsageDetail_20' ) start [2024-12-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108794', 'tblTempUsageDetail_20' ) end [2024-12-26 18:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:49:24] Production.INFO: ==20693== Releasing lock... [2024-12-26 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:49:24] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:50:06 [end_date_ymd] => 2024-12-26 18:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:50:19] Production.INFO: count ==5815 [2024-12-26 18:50:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:50:06 - End Time 2024-12-26 18:50:06 [2024-12-26 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108800', 'tblTempUsageDetail_20' ) start [2024-12-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108800', 'tblTempUsageDetail_20' ) end [2024-12-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108800', 'tblTempVendorCDR_20' ) start [2024-12-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108800', 'tblTempVendorCDR_20' ) end [2024-12-26 18:50:21] Production.INFO: ProcessCDR(1,14108800,1,1,2) [2024-12-26 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108800', 'tblTempUsageDetail_20' ) start [2024-12-26 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108800', 'tblTempUsageDetail_20' ) end [2024-12-26 18:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:50:24] Production.INFO: ==20768== Releasing lock... [2024-12-26 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:50:24] Production.INFO: 71.25 MB #Memory Used# [2024-12-26 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:51:04 [end_date_ymd] => 2024-12-26 18:51:04 [RateCDR] => 1 ) [2024-12-26 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:51:04' and `end` < '2024-12-26 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:51:17] Production.INFO: count ==5857 [2024-12-26 18:51:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:51:04 - End Time 2024-12-26 18:51:04 [2024-12-26 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108805', 'tblTempUsageDetail_20' ) start [2024-12-26 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108805', 'tblTempUsageDetail_20' ) end [2024-12-26 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108805', 'tblTempVendorCDR_20' ) start [2024-12-26 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108805', 'tblTempVendorCDR_20' ) end [2024-12-26 18:51:20] Production.INFO: ProcessCDR(1,14108805,1,1,2) [2024-12-26 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108805', 'tblTempUsageDetail_20' ) start [2024-12-26 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108805', 'tblTempUsageDetail_20' ) end [2024-12-26 18:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:51:25] Production.INFO: ==20848== Releasing lock... [2024-12-26 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:51:25] Production.INFO: 71.75 MB #Memory Used# [2024-12-26 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:52:05 [end_date_ymd] => 2024-12-26 18:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:52:18] Production.INFO: count ==5855 [2024-12-26 18:52:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:52:05 - End Time 2024-12-26 18:52:05 [2024-12-26 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108810', 'tblTempUsageDetail_20' ) start [2024-12-26 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108810', 'tblTempUsageDetail_20' ) end [2024-12-26 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108810', 'tblTempVendorCDR_20' ) start [2024-12-26 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108810', 'tblTempVendorCDR_20' ) end [2024-12-26 18:52:20] Production.INFO: ProcessCDR(1,14108810,1,1,2) [2024-12-26 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108810', 'tblTempUsageDetail_20' ) start [2024-12-26 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108810', 'tblTempUsageDetail_20' ) end [2024-12-26 18:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:52:24] Production.INFO: ==20946== Releasing lock... [2024-12-26 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:52:24] Production.INFO: 71.75 MB #Memory Used# [2024-12-26 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:53:04 [end_date_ymd] => 2024-12-26 18:53:04 [RateCDR] => 1 ) [2024-12-26 18: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` >= '2024-12-26 15:53:04' and `end` < '2024-12-26 18: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 ,'') [2024-12-26 18:53:20] Production.INFO: count ==5831 [2024-12-26 18:53:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:53:04 - End Time 2024-12-26 18:53:04 [2024-12-26 18:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108815', 'tblTempUsageDetail_20' ) start [2024-12-26 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108815', 'tblTempUsageDetail_20' ) end [2024-12-26 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108815', 'tblTempVendorCDR_20' ) start [2024-12-26 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108815', 'tblTempVendorCDR_20' ) end [2024-12-26 18:53:22] Production.INFO: ProcessCDR(1,14108815,1,1,2) [2024-12-26 18:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108815', 'tblTempUsageDetail_20' ) start [2024-12-26 18:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108815', 'tblTempUsageDetail_20' ) end [2024-12-26 18:53:27] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:53:27] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:53:27] Production.INFO: ==21030== Releasing lock... [2024-12-26 18:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:53:27] Production.INFO: 71.5 MB #Memory Used# [2024-12-26 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:54:05 [end_date_ymd] => 2024-12-26 18:54:05 [RateCDR] => 1 ) [2024-12-26 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 15:54:05' and `end` < '2024-12-26 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 18:54:19] Production.INFO: count ==5776 [2024-12-26 18:54:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:54:05 - End Time 2024-12-26 18:54:05 [2024-12-26 18:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108820', 'tblTempUsageDetail_20' ) start [2024-12-26 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108820', 'tblTempUsageDetail_20' ) end [2024-12-26 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108820', 'tblTempVendorCDR_20' ) start [2024-12-26 18:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108820', 'tblTempVendorCDR_20' ) end [2024-12-26 18:54:22] Production.INFO: ProcessCDR(1,14108820,1,1,2) [2024-12-26 18:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108820', 'tblTempUsageDetail_20' ) start [2024-12-26 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108820', 'tblTempUsageDetail_20' ) end [2024-12-26 18:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:54:25] Production.INFO: ==21105== Releasing lock... [2024-12-26 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:54:25] Production.INFO: 71 MB #Memory Used# [2024-12-26 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:55:05 [end_date_ymd] => 2024-12-26 18:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:55:18] Production.INFO: count ==5743 [2024-12-26 18:55:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:55:05 - End Time 2024-12-26 18:55:05 [2024-12-26 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108825', 'tblTempUsageDetail_20' ) start [2024-12-26 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108825', 'tblTempUsageDetail_20' ) end [2024-12-26 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108825', 'tblTempVendorCDR_20' ) start [2024-12-26 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108825', 'tblTempVendorCDR_20' ) end [2024-12-26 18:55:21] Production.INFO: ProcessCDR(1,14108825,1,1,2) [2024-12-26 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108825', 'tblTempUsageDetail_20' ) start [2024-12-26 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108825', 'tblTempUsageDetail_20' ) end [2024-12-26 18:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:55:24] Production.INFO: ==21179== Releasing lock... [2024-12-26 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:55:24] Production.INFO: 70.75 MB #Memory Used# [2024-12-26 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:56:05 [end_date_ymd] => 2024-12-26 18:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:56:19] Production.INFO: count ==5705 [2024-12-26 18:56:21] Production.ERROR: pbx CDR StartTime 2024-12-26 15:56:05 - End Time 2024-12-26 18:56:05 [2024-12-26 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108830', 'tblTempUsageDetail_20' ) start [2024-12-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108830', 'tblTempUsageDetail_20' ) end [2024-12-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108830', 'tblTempVendorCDR_20' ) start [2024-12-26 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108830', 'tblTempVendorCDR_20' ) end [2024-12-26 18:56:21] Production.INFO: ProcessCDR(1,14108830,1,1,2) [2024-12-26 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108830', 'tblTempUsageDetail_20' ) start [2024-12-26 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108830', 'tblTempUsageDetail_20' ) end [2024-12-26 18:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:56:26] Production.INFO: ==21250== Releasing lock... [2024-12-26 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:56:26] Production.INFO: 70.5 MB #Memory Used# [2024-12-26 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:57:05 [end_date_ymd] => 2024-12-26 18:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:57:18] Production.INFO: count ==5675 [2024-12-26 18:57:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:57:05 - End Time 2024-12-26 18:57:05 [2024-12-26 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108835', 'tblTempUsageDetail_20' ) start [2024-12-26 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108835', 'tblTempUsageDetail_20' ) end [2024-12-26 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108835', 'tblTempVendorCDR_20' ) start [2024-12-26 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108835', 'tblTempVendorCDR_20' ) end [2024-12-26 18:57:20] Production.INFO: ProcessCDR(1,14108835,1,1,2) [2024-12-26 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108835', 'tblTempUsageDetail_20' ) start [2024-12-26 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108835', 'tblTempUsageDetail_20' ) end [2024-12-26 18:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:57:25] Production.INFO: ==21326== Releasing lock... [2024-12-26 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:57:25] Production.INFO: 70.25 MB #Memory Used# [2024-12-26 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:58:05 [end_date_ymd] => 2024-12-26 18:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:58:18] Production.INFO: count ==5641 [2024-12-26 18:58:20] Production.ERROR: pbx CDR StartTime 2024-12-26 15:58:05 - End Time 2024-12-26 18:58:05 [2024-12-26 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108840', 'tblTempUsageDetail_20' ) start [2024-12-26 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108840', 'tblTempUsageDetail_20' ) end [2024-12-26 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108840', 'tblTempVendorCDR_20' ) start [2024-12-26 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108840', 'tblTempVendorCDR_20' ) end [2024-12-26 18:58:20] Production.INFO: ProcessCDR(1,14108840,1,1,2) [2024-12-26 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108840', 'tblTempUsageDetail_20' ) start [2024-12-26 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108840', 'tblTempUsageDetail_20' ) end [2024-12-26 18:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:58:24] Production.INFO: ==21405== Releasing lock... [2024-12-26 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:58:24] Production.INFO: 70 MB #Memory Used# [2024-12-26 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 15:59:05 [end_date_ymd] => 2024-12-26 18:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 15:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 18:59:20] Production.INFO: count ==5608 [2024-12-26 18:59:22] Production.ERROR: pbx CDR StartTime 2024-12-26 15:59:05 - End Time 2024-12-26 18:59:05 [2024-12-26 18:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108845', 'tblTempUsageDetail_20' ) start [2024-12-26 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108845', 'tblTempUsageDetail_20' ) end [2024-12-26 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108845', 'tblTempVendorCDR_20' ) start [2024-12-26 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108845', 'tblTempVendorCDR_20' ) end [2024-12-26 18:59:22] Production.INFO: ProcessCDR(1,14108845,1,1,2) [2024-12-26 18:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108845', 'tblTempUsageDetail_20' ) start [2024-12-26 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108845', 'tblTempUsageDetail_20' ) end [2024-12-26 18:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 18:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 18:59:25] Production.INFO: ==21517== Releasing lock... [2024-12-26 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 18:59:25] Production.INFO: 69.75 MB #Memory Used# [2024-12-26 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:00:05 [end_date_ymd] => 2024-12-26 19:00:05 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:00:05' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:00:18] Production.INFO: count ==5574 [2024-12-26 19:00:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:00:05 - End Time 2024-12-26 19:00:05 [2024-12-26 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108851', 'tblTempUsageDetail_20' ) start [2024-12-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108851', 'tblTempUsageDetail_20' ) end [2024-12-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108851', 'tblTempVendorCDR_20' ) start [2024-12-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108851', 'tblTempVendorCDR_20' ) end [2024-12-26 19:00:21] Production.INFO: ProcessCDR(1,14108851,1,1,2) [2024-12-26 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108851', 'tblTempUsageDetail_20' ) start [2024-12-26 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108851', 'tblTempUsageDetail_20' ) end [2024-12-26 19:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:00:24] Production.INFO: ==21596== Releasing lock... [2024-12-26 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:00:24] Production.INFO: 69.5 MB #Memory Used# [2024-12-26 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:01:05 [end_date_ymd] => 2024-12-26 19:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:01:19] Production.INFO: count ==5521 [2024-12-26 19:01:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:01:05 - End Time 2024-12-26 19:01:05 [2024-12-26 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108856', 'tblTempUsageDetail_20' ) start [2024-12-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108856', 'tblTempUsageDetail_20' ) end [2024-12-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108856', 'tblTempVendorCDR_20' ) start [2024-12-26 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108856', 'tblTempVendorCDR_20' ) end [2024-12-26 19:01:21] Production.INFO: ProcessCDR(1,14108856,1,1,2) [2024-12-26 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108856', 'tblTempUsageDetail_20' ) start [2024-12-26 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108856', 'tblTempUsageDetail_20' ) end [2024-12-26 19:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:01:26] Production.INFO: ==21686== Releasing lock... [2024-12-26 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:01:26] Production.INFO: 69.25 MB #Memory Used# [2024-12-26 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:02:04 [end_date_ymd] => 2024-12-26 19:02:04 [RateCDR] => 1 ) [2024-12-26 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:02:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:02:18] Production.INFO: count ==5478 [2024-12-26 19:02:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:02:04 - End Time 2024-12-26 19:02:04 [2024-12-26 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108861', 'tblTempUsageDetail_20' ) start [2024-12-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108861', 'tblTempUsageDetail_20' ) end [2024-12-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108861', 'tblTempVendorCDR_20' ) start [2024-12-26 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108861', 'tblTempVendorCDR_20' ) end [2024-12-26 19:02:21] Production.INFO: ProcessCDR(1,14108861,1,1,2) [2024-12-26 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108861', 'tblTempUsageDetail_20' ) start [2024-12-26 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108861', 'tblTempUsageDetail_20' ) end [2024-12-26 19:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:02:24] Production.INFO: ==21840== Releasing lock... [2024-12-26 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:02:24] Production.INFO: 68.75 MB #Memory Used# [2024-12-26 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:03:05 [end_date_ymd] => 2024-12-26 19:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:03:19] Production.INFO: count ==5431 [2024-12-26 19:03:22] Production.ERROR: pbx CDR StartTime 2024-12-26 16:03:05 - End Time 2024-12-26 19:03:05 [2024-12-26 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108866', 'tblTempUsageDetail_20' ) start [2024-12-26 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108866', 'tblTempUsageDetail_20' ) end [2024-12-26 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108866', 'tblTempVendorCDR_20' ) start [2024-12-26 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108866', 'tblTempVendorCDR_20' ) end [2024-12-26 19:03:22] Production.INFO: ProcessCDR(1,14108866,1,1,2) [2024-12-26 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108866', 'tblTempUsageDetail_20' ) start [2024-12-26 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108866', 'tblTempUsageDetail_20' ) end [2024-12-26 19:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:03:25] Production.INFO: ==21915== Releasing lock... [2024-12-26 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:03:25] Production.INFO: 68.75 MB #Memory Used# [2024-12-26 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:04:05 [end_date_ymd] => 2024-12-26 19:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:04:18] Production.INFO: count ==5406 [2024-12-26 19:04:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:04:05 - End Time 2024-12-26 19:04:05 [2024-12-26 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108871', 'tblTempUsageDetail_20' ) start [2024-12-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108871', 'tblTempUsageDetail_20' ) end [2024-12-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108871', 'tblTempVendorCDR_20' ) start [2024-12-26 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108871', 'tblTempVendorCDR_20' ) end [2024-12-26 19:04:20] Production.INFO: ProcessCDR(1,14108871,1,1,2) [2024-12-26 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108871', 'tblTempUsageDetail_20' ) start [2024-12-26 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108871', 'tblTempUsageDetail_20' ) end [2024-12-26 19:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:04:23] Production.INFO: ==21987== Releasing lock... [2024-12-26 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:04:23] Production.INFO: 68.25 MB #Memory Used# [2024-12-26 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:05:05 [end_date_ymd] => 2024-12-26 19:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:05:19] Production.INFO: count ==5376 [2024-12-26 19:05:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:05:05 - End Time 2024-12-26 19:05:05 [2024-12-26 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108876', 'tblTempUsageDetail_20' ) start [2024-12-26 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108876', 'tblTempUsageDetail_20' ) end [2024-12-26 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108876', 'tblTempVendorCDR_20' ) start [2024-12-26 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108876', 'tblTempVendorCDR_20' ) end [2024-12-26 19:05:21] Production.INFO: ProcessCDR(1,14108876,1,1,2) [2024-12-26 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108876', 'tblTempUsageDetail_20' ) start [2024-12-26 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108876', 'tblTempUsageDetail_20' ) end [2024-12-26 19:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:05:24] Production.INFO: ==22140== Releasing lock... [2024-12-26 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:05:24] Production.INFO: 68 MB #Memory Used# [2024-12-26 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:06:05 [end_date_ymd] => 2024-12-26 19:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:06:18] Production.INFO: count ==5348 [2024-12-26 19:06:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:06:05 - End Time 2024-12-26 19:06:05 [2024-12-26 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108881', 'tblTempUsageDetail_20' ) start [2024-12-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108881', 'tblTempUsageDetail_20' ) end [2024-12-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108881', 'tblTempVendorCDR_20' ) start [2024-12-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108881', 'tblTempVendorCDR_20' ) end [2024-12-26 19:06:20] Production.INFO: ProcessCDR(1,14108881,1,1,2) [2024-12-26 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108881', 'tblTempUsageDetail_20' ) start [2024-12-26 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108881', 'tblTempUsageDetail_20' ) end [2024-12-26 19:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:06:23] Production.INFO: ==22216== Releasing lock... [2024-12-26 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:06:23] Production.INFO: 67.75 MB #Memory Used# [2024-12-26 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:07:04 [end_date_ymd] => 2024-12-26 19:07:04 [RateCDR] => 1 ) [2024-12-26 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:07:04' and `end` < '2024-12-26 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:07:18] Production.INFO: count ==5316 [2024-12-26 19:07:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:07:04 - End Time 2024-12-26 19:07:04 [2024-12-26 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108886', 'tblTempUsageDetail_20' ) start [2024-12-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108886', 'tblTempUsageDetail_20' ) end [2024-12-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108886', 'tblTempVendorCDR_20' ) start [2024-12-26 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108886', 'tblTempVendorCDR_20' ) end [2024-12-26 19:07:20] Production.INFO: ProcessCDR(1,14108886,1,1,2) [2024-12-26 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108886', 'tblTempUsageDetail_20' ) start [2024-12-26 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108886', 'tblTempUsageDetail_20' ) end [2024-12-26 19:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:07:23] Production.INFO: ==22292== Releasing lock... [2024-12-26 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:07:23] Production.INFO: 67.5 MB #Memory Used# [2024-12-26 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:08:05 [end_date_ymd] => 2024-12-26 19:08:05 [RateCDR] => 1 ) [2024-12-26 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:08:05' and `end` < '2024-12-26 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:08:18] Production.INFO: count ==5275 [2024-12-26 19:08:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:08:05 - End Time 2024-12-26 19:08:05 [2024-12-26 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108891', 'tblTempUsageDetail_20' ) start [2024-12-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108891', 'tblTempUsageDetail_20' ) end [2024-12-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108891', 'tblTempVendorCDR_20' ) start [2024-12-26 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108891', 'tblTempVendorCDR_20' ) end [2024-12-26 19:08:21] Production.INFO: ProcessCDR(1,14108891,1,1,2) [2024-12-26 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108891', 'tblTempUsageDetail_20' ) start [2024-12-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108891', 'tblTempUsageDetail_20' ) end [2024-12-26 19:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:08:24] Production.INFO: ==22448== Releasing lock... [2024-12-26 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:08:24] Production.INFO: 67.25 MB #Memory Used# [2024-12-26 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:09:05 [end_date_ymd] => 2024-12-26 19:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:09:17] Production.INFO: count ==5233 [2024-12-26 19:09:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:09:05 - End Time 2024-12-26 19:09:05 [2024-12-26 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108896', 'tblTempUsageDetail_20' ) start [2024-12-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108896', 'tblTempUsageDetail_20' ) end [2024-12-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108896', 'tblTempVendorCDR_20' ) start [2024-12-26 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108896', 'tblTempVendorCDR_20' ) end [2024-12-26 19:09:20] Production.INFO: ProcessCDR(1,14108896,1,1,2) [2024-12-26 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108896', 'tblTempUsageDetail_20' ) start [2024-12-26 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108896', 'tblTempUsageDetail_20' ) end [2024-12-26 19:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:09:23] Production.INFO: ==22525== Releasing lock... [2024-12-26 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:09:23] Production.INFO: 67 MB #Memory Used# [2024-12-26 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:10:05 [end_date_ymd] => 2024-12-26 19:10:05 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:10:05' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:10:18] Production.INFO: count ==5211 [2024-12-26 19:10:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:10:05 - End Time 2024-12-26 19:10:05 [2024-12-26 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108901', 'tblTempUsageDetail_20' ) start [2024-12-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108901', 'tblTempUsageDetail_20' ) end [2024-12-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108901', 'tblTempVendorCDR_20' ) start [2024-12-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108901', 'tblTempVendorCDR_20' ) end [2024-12-26 19:10:20] Production.INFO: ProcessCDR(1,14108901,1,1,2) [2024-12-26 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108901', 'tblTempUsageDetail_20' ) start [2024-12-26 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108901', 'tblTempUsageDetail_20' ) end [2024-12-26 19:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:10:24] Production.INFO: ==22601== Releasing lock... [2024-12-26 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:10:24] Production.INFO: 66.75 MB #Memory Used# [2024-12-26 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:11:05 [end_date_ymd] => 2024-12-26 19:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:11:17] Production.INFO: count ==5202 [2024-12-26 19:11:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:11:05 - End Time 2024-12-26 19:11:05 [2024-12-26 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108907', 'tblTempUsageDetail_20' ) start [2024-12-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108907', 'tblTempUsageDetail_20' ) end [2024-12-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108907', 'tblTempVendorCDR_20' ) start [2024-12-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108907', 'tblTempVendorCDR_20' ) end [2024-12-26 19:11:20] Production.INFO: ProcessCDR(1,14108907,1,1,2) [2024-12-26 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108907', 'tblTempUsageDetail_20' ) start [2024-12-26 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108907', 'tblTempUsageDetail_20' ) end [2024-12-26 19:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:11:23] Production.INFO: ==22676== Releasing lock... [2024-12-26 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:11:23] Production.INFO: 66.75 MB #Memory Used# [2024-12-26 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:12:05 [end_date_ymd] => 2024-12-26 19:12:05 [RateCDR] => 1 ) [2024-12-26 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:12:05' and `end` < '2024-12-26 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:12:18] Production.INFO: count ==5203 [2024-12-26 19:12:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:12:05 - End Time 2024-12-26 19:12:05 [2024-12-26 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108912', 'tblTempUsageDetail_20' ) start [2024-12-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108912', 'tblTempUsageDetail_20' ) end [2024-12-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108912', 'tblTempVendorCDR_20' ) start [2024-12-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108912', 'tblTempVendorCDR_20' ) end [2024-12-26 19:12:20] Production.INFO: ProcessCDR(1,14108912,1,1,2) [2024-12-26 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108912', 'tblTempUsageDetail_20' ) start [2024-12-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108912', 'tblTempUsageDetail_20' ) end [2024-12-26 19:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:12:25] Production.INFO: ==22831== Releasing lock... [2024-12-26 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:12:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-26 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:13:05 [end_date_ymd] => 2024-12-26 19:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:13:18] Production.INFO: count ==5203 [2024-12-26 19:13:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:13:05 - End Time 2024-12-26 19:13:05 [2024-12-26 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108917', 'tblTempUsageDetail_20' ) start [2024-12-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108917', 'tblTempUsageDetail_20' ) end [2024-12-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108917', 'tblTempVendorCDR_20' ) start [2024-12-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108917', 'tblTempVendorCDR_20' ) end [2024-12-26 19:13:20] Production.INFO: ProcessCDR(1,14108917,1,1,2) [2024-12-26 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108917', 'tblTempUsageDetail_20' ) start [2024-12-26 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108917', 'tblTempUsageDetail_20' ) end [2024-12-26 19:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:13:23] Production.INFO: ==22906== Releasing lock... [2024-12-26 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:13:23] Production.INFO: 66.75 MB #Memory Used# [2024-12-26 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:14:05 [end_date_ymd] => 2024-12-26 19:14:05 [RateCDR] => 1 ) [2024-12-26 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:14:05' and `end` < '2024-12-26 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:14:18] Production.INFO: count ==5203 [2024-12-26 19:14:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:14:05 - End Time 2024-12-26 19:14:05 [2024-12-26 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108922', 'tblTempUsageDetail_20' ) start [2024-12-26 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108922', 'tblTempUsageDetail_20' ) end [2024-12-26 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108922', 'tblTempVendorCDR_20' ) start [2024-12-26 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108922', 'tblTempVendorCDR_20' ) end [2024-12-26 19:14:20] Production.INFO: ProcessCDR(1,14108922,1,1,2) [2024-12-26 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108922', 'tblTempUsageDetail_20' ) start [2024-12-26 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108922', 'tblTempUsageDetail_20' ) end [2024-12-26 19:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:14:25] Production.INFO: ==23019== Releasing lock... [2024-12-26 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:14:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-26 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:15:05 [end_date_ymd] => 2024-12-26 19:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:15:18] Production.INFO: count ==5173 [2024-12-26 19:15:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:15:05 - End Time 2024-12-26 19:15:05 [2024-12-26 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108927', 'tblTempUsageDetail_20' ) start [2024-12-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108927', 'tblTempUsageDetail_20' ) end [2024-12-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108927', 'tblTempVendorCDR_20' ) start [2024-12-26 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108927', 'tblTempVendorCDR_20' ) end [2024-12-26 19:15:20] Production.INFO: ProcessCDR(1,14108927,1,1,2) [2024-12-26 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108927', 'tblTempUsageDetail_20' ) start [2024-12-26 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108927', 'tblTempUsageDetail_20' ) end [2024-12-26 19:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:15:23] Production.INFO: ==23172== Releasing lock... [2024-12-26 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:15:23] Production.INFO: 66.5 MB #Memory Used# [2024-12-26 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:16:05 [end_date_ymd] => 2024-12-26 19:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:16:17] Production.INFO: count ==5152 [2024-12-26 19:16:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:16:05 - End Time 2024-12-26 19:16:05 [2024-12-26 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108932', 'tblTempUsageDetail_20' ) start [2024-12-26 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108932', 'tblTempUsageDetail_20' ) end [2024-12-26 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108932', 'tblTempVendorCDR_20' ) start [2024-12-26 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108932', 'tblTempVendorCDR_20' ) end [2024-12-26 19:16:20] Production.INFO: ProcessCDR(1,14108932,1,1,2) [2024-12-26 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108932', 'tblTempUsageDetail_20' ) start [2024-12-26 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108932', 'tblTempUsageDetail_20' ) end [2024-12-26 19:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:16:23] Production.INFO: ==23248== Releasing lock... [2024-12-26 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:16:23] Production.INFO: 66.5 MB #Memory Used# [2024-12-26 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:17:05 [end_date_ymd] => 2024-12-26 19:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:17:19] Production.INFO: count ==5139 [2024-12-26 19:17:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:17:05 - End Time 2024-12-26 19:17:05 [2024-12-26 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108937', 'tblTempUsageDetail_20' ) start [2024-12-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108937', 'tblTempUsageDetail_20' ) end [2024-12-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108937', 'tblTempVendorCDR_20' ) start [2024-12-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108937', 'tblTempVendorCDR_20' ) end [2024-12-26 19:17:21] Production.INFO: ProcessCDR(1,14108937,1,1,2) [2024-12-26 19:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108937', 'tblTempUsageDetail_20' ) start [2024-12-26 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108937', 'tblTempUsageDetail_20' ) end [2024-12-26 19:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:17:25] Production.INFO: ==23321== Releasing lock... [2024-12-26 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:17:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-26 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:18:05 [end_date_ymd] => 2024-12-26 19:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:18:19] Production.INFO: count ==5142 [2024-12-26 19:18:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:18:05 - End Time 2024-12-26 19:18:05 [2024-12-26 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108942', 'tblTempUsageDetail_20' ) start [2024-12-26 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108942', 'tblTempUsageDetail_20' ) end [2024-12-26 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108942', 'tblTempVendorCDR_20' ) start [2024-12-26 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108942', 'tblTempVendorCDR_20' ) end [2024-12-26 19:18:21] Production.INFO: ProcessCDR(1,14108942,1,1,2) [2024-12-26 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108942', 'tblTempUsageDetail_20' ) start [2024-12-26 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108942', 'tblTempUsageDetail_20' ) end [2024-12-26 19:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:18:26] Production.INFO: ==23396== Releasing lock... [2024-12-26 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:18:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-26 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:19:04 [end_date_ymd] => 2024-12-26 19:19:04 [RateCDR] => 1 ) [2024-12-26 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:19:04' and `end` < '2024-12-26 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:19:17] Production.INFO: count ==5131 [2024-12-26 19:19:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:19:04 - End Time 2024-12-26 19:19:04 [2024-12-26 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108947', 'tblTempUsageDetail_20' ) start [2024-12-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108947', 'tblTempUsageDetail_20' ) end [2024-12-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108947', 'tblTempVendorCDR_20' ) start [2024-12-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108947', 'tblTempVendorCDR_20' ) end [2024-12-26 19:19:19] Production.INFO: ProcessCDR(1,14108947,1,1,2) [2024-12-26 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108947', 'tblTempUsageDetail_20' ) start [2024-12-26 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108947', 'tblTempUsageDetail_20' ) end [2024-12-26 19:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:19:24] Production.INFO: ==23465== Releasing lock... [2024-12-26 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:19:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-26 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:20:05 [end_date_ymd] => 2024-12-26 19:20:05 [RateCDR] => 1 ) [2024-12-26 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:20:05' and `end` < '2024-12-26 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:20:18] Production.INFO: count ==5134 [2024-12-26 19:20:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:20:05 - End Time 2024-12-26 19:20:05 [2024-12-26 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108953', 'tblTempUsageDetail_20' ) start [2024-12-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108953', 'tblTempUsageDetail_20' ) end [2024-12-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108953', 'tblTempVendorCDR_20' ) start [2024-12-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108953', 'tblTempVendorCDR_20' ) end [2024-12-26 19:20:20] Production.INFO: ProcessCDR(1,14108953,1,1,2) [2024-12-26 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108953', 'tblTempUsageDetail_20' ) start [2024-12-26 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108953', 'tblTempUsageDetail_20' ) end [2024-12-26 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:20:24] Production.INFO: ==23546== Releasing lock... [2024-12-26 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:20:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-26 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:21:05 [end_date_ymd] => 2024-12-26 19:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:21:17] Production.INFO: count ==5110 [2024-12-26 19:21:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:21:05 - End Time 2024-12-26 19:21:05 [2024-12-26 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108958', 'tblTempUsageDetail_20' ) start [2024-12-26 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108958', 'tblTempUsageDetail_20' ) end [2024-12-26 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108958', 'tblTempVendorCDR_20' ) start [2024-12-26 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108958', 'tblTempVendorCDR_20' ) end [2024-12-26 19:21:20] Production.INFO: ProcessCDR(1,14108958,1,1,2) [2024-12-26 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108958', 'tblTempUsageDetail_20' ) start [2024-12-26 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108958', 'tblTempUsageDetail_20' ) end [2024-12-26 19:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:21:23] Production.INFO: ==23628== Releasing lock... [2024-12-26 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:21:23] Production.INFO: 66 MB #Memory Used# [2024-12-26 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:22:05 [end_date_ymd] => 2024-12-26 19:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:22:19] Production.INFO: count ==5083 [2024-12-26 19:22:22] Production.ERROR: pbx CDR StartTime 2024-12-26 16:22:05 - End Time 2024-12-26 19:22:05 [2024-12-26 19:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108963', 'tblTempUsageDetail_20' ) start [2024-12-26 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108963', 'tblTempUsageDetail_20' ) end [2024-12-26 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108963', 'tblTempVendorCDR_20' ) start [2024-12-26 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108963', 'tblTempVendorCDR_20' ) end [2024-12-26 19:22:22] Production.INFO: ProcessCDR(1,14108963,1,1,2) [2024-12-26 19:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108963', 'tblTempUsageDetail_20' ) start [2024-12-26 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108963', 'tblTempUsageDetail_20' ) end [2024-12-26 19:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:22:25] Production.INFO: ==23701== Releasing lock... [2024-12-26 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:22:25] Production.INFO: 66 MB #Memory Used# [2024-12-26 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:23:04 [end_date_ymd] => 2024-12-26 19:23:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:23:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:23:18] Production.INFO: count ==5053 [2024-12-26 19:23:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:23:04 - End Time 2024-12-26 19:23:04 [2024-12-26 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108968', 'tblTempUsageDetail_20' ) start [2024-12-26 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108968', 'tblTempUsageDetail_20' ) end [2024-12-26 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108968', 'tblTempVendorCDR_20' ) start [2024-12-26 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108968', 'tblTempVendorCDR_20' ) end [2024-12-26 19:23:20] Production.INFO: ProcessCDR(1,14108968,1,1,2) [2024-12-26 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108968', 'tblTempUsageDetail_20' ) start [2024-12-26 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108968', 'tblTempUsageDetail_20' ) end [2024-12-26 19:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:23:24] Production.INFO: ==23776== Releasing lock... [2024-12-26 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:23:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-26 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:24:05 [end_date_ymd] => 2024-12-26 19:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:24:18] Production.INFO: count ==5019 [2024-12-26 19:24:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:24:05 - End Time 2024-12-26 19:24:05 [2024-12-26 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108973', 'tblTempUsageDetail_20' ) start [2024-12-26 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108973', 'tblTempUsageDetail_20' ) end [2024-12-26 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108973', 'tblTempVendorCDR_20' ) start [2024-12-26 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108973', 'tblTempVendorCDR_20' ) end [2024-12-26 19:24:20] Production.INFO: ProcessCDR(1,14108973,1,1,2) [2024-12-26 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108973', 'tblTempUsageDetail_20' ) start [2024-12-26 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108973', 'tblTempUsageDetail_20' ) end [2024-12-26 19:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:24:23] Production.INFO: ==23850== Releasing lock... [2024-12-26 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:24:23] Production.INFO: 65.5 MB #Memory Used# [2024-12-26 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:25:04 [end_date_ymd] => 2024-12-26 19:25:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:25:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:25:17] Production.INFO: count ==4986 [2024-12-26 19:25:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:25:04 - End Time 2024-12-26 19:25:04 [2024-12-26 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108978', 'tblTempUsageDetail_20' ) start [2024-12-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108978', 'tblTempUsageDetail_20' ) end [2024-12-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108978', 'tblTempVendorCDR_20' ) start [2024-12-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108978', 'tblTempVendorCDR_20' ) end [2024-12-26 19:25:19] Production.INFO: ProcessCDR(1,14108978,1,1,2) [2024-12-26 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108978', 'tblTempUsageDetail_20' ) start [2024-12-26 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108978', 'tblTempUsageDetail_20' ) end [2024-12-26 19:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:25:23] Production.INFO: ==23927== Releasing lock... [2024-12-26 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:25:23] Production.INFO: 65.25 MB #Memory Used# [2024-12-26 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:26:05 [end_date_ymd] => 2024-12-26 19:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:26:18] Production.INFO: count ==4939 [2024-12-26 19:26:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:26:05 - End Time 2024-12-26 19:26:05 [2024-12-26 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108983', 'tblTempUsageDetail_20' ) start [2024-12-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108983', 'tblTempUsageDetail_20' ) end [2024-12-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108983', 'tblTempVendorCDR_20' ) start [2024-12-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108983', 'tblTempVendorCDR_20' ) end [2024-12-26 19:26:20] Production.INFO: ProcessCDR(1,14108983,1,1,2) [2024-12-26 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108983', 'tblTempUsageDetail_20' ) start [2024-12-26 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108983', 'tblTempUsageDetail_20' ) end [2024-12-26 19:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:26:24] Production.INFO: ==24001== Releasing lock... [2024-12-26 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:26:24] Production.INFO: 64.75 MB #Memory Used# [2024-12-26 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:27:05 [end_date_ymd] => 2024-12-26 19:27:05 [RateCDR] => 1 ) [2024-12-26 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:27:05' and `end` < '2024-12-26 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:27:18] Production.INFO: count ==4887 [2024-12-26 19:27:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:27:05 - End Time 2024-12-26 19:27:05 [2024-12-26 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108988', 'tblTempUsageDetail_20' ) start [2024-12-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108988', 'tblTempUsageDetail_20' ) end [2024-12-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108988', 'tblTempVendorCDR_20' ) start [2024-12-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108988', 'tblTempVendorCDR_20' ) end [2024-12-26 19:27:20] Production.INFO: ProcessCDR(1,14108988,1,1,2) [2024-12-26 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108988', 'tblTempUsageDetail_20' ) start [2024-12-26 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108988', 'tblTempUsageDetail_20' ) end [2024-12-26 19:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:27:24] Production.INFO: ==24076== Releasing lock... [2024-12-26 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:27:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-26 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:28:05 [end_date_ymd] => 2024-12-26 19:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:28:17] Production.INFO: count ==4844 [2024-12-26 19:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:28:05 - End Time 2024-12-26 19:28:05 [2024-12-26 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108993', 'tblTempUsageDetail_20' ) start [2024-12-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108993', 'tblTempUsageDetail_20' ) end [2024-12-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108993', 'tblTempVendorCDR_20' ) start [2024-12-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108993', 'tblTempVendorCDR_20' ) end [2024-12-26 19:28:19] Production.INFO: ProcessCDR(1,14108993,1,1,2) [2024-12-26 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108993', 'tblTempUsageDetail_20' ) start [2024-12-26 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108993', 'tblTempUsageDetail_20' ) end [2024-12-26 19:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:28:24] Production.INFO: ==24151== Releasing lock... [2024-12-26 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:28:24] Production.INFO: 64 MB #Memory Used# [2024-12-26 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:29:04 [end_date_ymd] => 2024-12-26 19:29:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:29:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:29:17] Production.INFO: count ==4943 [2024-12-26 19:29:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:29:04 - End Time 2024-12-26 19:29:04 [2024-12-26 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108998', 'tblTempUsageDetail_20' ) start [2024-12-26 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14108998', 'tblTempUsageDetail_20' ) end [2024-12-26 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108998', 'tblTempVendorCDR_20' ) start [2024-12-26 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14108998', 'tblTempVendorCDR_20' ) end [2024-12-26 19:29:20] Production.INFO: ProcessCDR(1,14108998,1,1,2) [2024-12-26 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14108998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14108998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14108998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14108998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108998', 'tblTempUsageDetail_20' ) start [2024-12-26 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14108998', 'tblTempUsageDetail_20' ) end [2024-12-26 19:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:29:23] Production.INFO: ==24225== Releasing lock... [2024-12-26 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:29:23] Production.INFO: 64.75 MB #Memory Used# [2024-12-26 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:30:05 [end_date_ymd] => 2024-12-26 19:30:05 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:30:05' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:30:18] Production.INFO: count ==4904 [2024-12-26 19:30:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:30:05 - End Time 2024-12-26 19:30:05 [2024-12-26 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109004', 'tblTempUsageDetail_20' ) start [2024-12-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109004', 'tblTempUsageDetail_20' ) end [2024-12-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109004', 'tblTempVendorCDR_20' ) start [2024-12-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109004', 'tblTempVendorCDR_20' ) end [2024-12-26 19:30:20] Production.INFO: ProcessCDR(1,14109004,1,1,2) [2024-12-26 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109004', 'tblTempUsageDetail_20' ) start [2024-12-26 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109004', 'tblTempUsageDetail_20' ) end [2024-12-26 19:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:30:24] Production.INFO: ==24343== Releasing lock... [2024-12-26 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:30:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-26 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:31:05 [end_date_ymd] => 2024-12-26 19:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:31:19] Production.INFO: count ==4838 [2024-12-26 19:31:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:31:05 - End Time 2024-12-26 19:31:05 [2024-12-26 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109009', 'tblTempUsageDetail_20' ) start [2024-12-26 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109009', 'tblTempUsageDetail_20' ) end [2024-12-26 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109009', 'tblTempVendorCDR_20' ) start [2024-12-26 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109009', 'tblTempVendorCDR_20' ) end [2024-12-26 19:31:21] Production.INFO: ProcessCDR(1,14109009,1,1,2) [2024-12-26 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109009', 'tblTempUsageDetail_20' ) start [2024-12-26 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109009', 'tblTempUsageDetail_20' ) end [2024-12-26 19:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:31:24] Production.INFO: ==24418== Releasing lock... [2024-12-26 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:31:24] Production.INFO: 64 MB #Memory Used# [2024-12-26 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:32:05 [end_date_ymd] => 2024-12-26 19:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:32:18] Production.INFO: count ==4805 [2024-12-26 19:32:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:32:05 - End Time 2024-12-26 19:32:05 [2024-12-26 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109014', 'tblTempUsageDetail_20' ) start [2024-12-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109014', 'tblTempUsageDetail_20' ) end [2024-12-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109014', 'tblTempVendorCDR_20' ) start [2024-12-26 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109014', 'tblTempVendorCDR_20' ) end [2024-12-26 19:32:20] Production.INFO: ProcessCDR(1,14109014,1,1,2) [2024-12-26 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109014', 'tblTempUsageDetail_20' ) start [2024-12-26 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109014', 'tblTempUsageDetail_20' ) end [2024-12-26 19:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:32:23] Production.INFO: ==24489== Releasing lock... [2024-12-26 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:32:23] Production.INFO: 63.75 MB #Memory Used# [2024-12-26 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:33:05 [end_date_ymd] => 2024-12-26 19:33:05 [RateCDR] => 1 ) [2024-12-26 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:33:05' and `end` < '2024-12-26 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:33:18] Production.INFO: count ==4771 [2024-12-26 19:33:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:33:05 - End Time 2024-12-26 19:33:05 [2024-12-26 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109019', 'tblTempUsageDetail_20' ) start [2024-12-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109019', 'tblTempUsageDetail_20' ) end [2024-12-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109019', 'tblTempVendorCDR_20' ) start [2024-12-26 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109019', 'tblTempVendorCDR_20' ) end [2024-12-26 19:33:20] Production.INFO: ProcessCDR(1,14109019,1,1,2) [2024-12-26 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109019', 'tblTempUsageDetail_20' ) start [2024-12-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109019', 'tblTempUsageDetail_20' ) end [2024-12-26 19:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:33:23] Production.INFO: ==24566== Releasing lock... [2024-12-26 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:33:23] Production.INFO: 63.5 MB #Memory Used# [2024-12-26 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:34:06 [end_date_ymd] => 2024-12-26 19:34:06 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:34:06' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:34:19] Production.INFO: count ==4731 [2024-12-26 19:34:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:34:06 - End Time 2024-12-26 19:34:06 [2024-12-26 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109024', 'tblTempUsageDetail_20' ) start [2024-12-26 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109024', 'tblTempUsageDetail_20' ) end [2024-12-26 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109024', 'tblTempVendorCDR_20' ) start [2024-12-26 19:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109024', 'tblTempVendorCDR_20' ) end [2024-12-26 19:34:22] Production.INFO: ProcessCDR(1,14109024,1,1,2) [2024-12-26 19:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109024', 'tblTempUsageDetail_20' ) start [2024-12-26 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109024', 'tblTempUsageDetail_20' ) end [2024-12-26 19:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:34:25] Production.INFO: ==24639== Releasing lock... [2024-12-26 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:34:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-26 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:35:05 [end_date_ymd] => 2024-12-26 19:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:35:17] Production.INFO: count ==4708 [2024-12-26 19:35:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:35:05 - End Time 2024-12-26 19:35:05 [2024-12-26 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109029', 'tblTempUsageDetail_20' ) start [2024-12-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109029', 'tblTempUsageDetail_20' ) end [2024-12-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109029', 'tblTempVendorCDR_20' ) start [2024-12-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109029', 'tblTempVendorCDR_20' ) end [2024-12-26 19:35:19] Production.INFO: ProcessCDR(1,14109029,1,1,2) [2024-12-26 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109029', 'tblTempUsageDetail_20' ) start [2024-12-26 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109029', 'tblTempUsageDetail_20' ) end [2024-12-26 19:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:35:23] Production.INFO: ==24712== Releasing lock... [2024-12-26 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:35:23] Production.INFO: 63 MB #Memory Used# [2024-12-26 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:36:05 [end_date_ymd] => 2024-12-26 19:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:36:18] Production.INFO: count ==4674 [2024-12-26 19:36:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:36:05 - End Time 2024-12-26 19:36:05 [2024-12-26 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109034', 'tblTempUsageDetail_20' ) start [2024-12-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109034', 'tblTempUsageDetail_20' ) end [2024-12-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109034', 'tblTempVendorCDR_20' ) start [2024-12-26 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109034', 'tblTempVendorCDR_20' ) end [2024-12-26 19:36:20] Production.INFO: ProcessCDR(1,14109034,1,1,2) [2024-12-26 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109034', 'tblTempUsageDetail_20' ) start [2024-12-26 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109034', 'tblTempUsageDetail_20' ) end [2024-12-26 19:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:36:23] Production.INFO: ==24787== Releasing lock... [2024-12-26 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:36:23] Production.INFO: 62.75 MB #Memory Used# [2024-12-26 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:37:04 [end_date_ymd] => 2024-12-26 19:37:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:37:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:37:17] Production.INFO: count ==4641 [2024-12-26 19:37:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:37:04 - End Time 2024-12-26 19:37:04 [2024-12-26 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109039', 'tblTempUsageDetail_20' ) start [2024-12-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109039', 'tblTempUsageDetail_20' ) end [2024-12-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109039', 'tblTempVendorCDR_20' ) start [2024-12-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109039', 'tblTempVendorCDR_20' ) end [2024-12-26 19:37:19] Production.INFO: ProcessCDR(1,14109039,1,1,2) [2024-12-26 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109039', 'tblTempUsageDetail_20' ) start [2024-12-26 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109039', 'tblTempUsageDetail_20' ) end [2024-12-26 19:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:37:22] Production.INFO: ==24866== Releasing lock... [2024-12-26 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:37:22] Production.INFO: 62.5 MB #Memory Used# [2024-12-26 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:38:04 [end_date_ymd] => 2024-12-26 19:38:04 [RateCDR] => 1 ) [2024-12-26 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:38:04' and `end` < '2024-12-26 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:38:18] Production.INFO: count ==4588 [2024-12-26 19:38:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:38:04 - End Time 2024-12-26 19:38:04 [2024-12-26 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109044', 'tblTempUsageDetail_20' ) start [2024-12-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109044', 'tblTempUsageDetail_20' ) end [2024-12-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109044', 'tblTempVendorCDR_20' ) start [2024-12-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109044', 'tblTempVendorCDR_20' ) end [2024-12-26 19:38:20] Production.INFO: ProcessCDR(1,14109044,1,1,2) [2024-12-26 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109044', 'tblTempUsageDetail_20' ) start [2024-12-26 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109044', 'tblTempUsageDetail_20' ) end [2024-12-26 19:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:38:24] Production.INFO: ==24941== Releasing lock... [2024-12-26 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:38:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-26 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:39:04 [end_date_ymd] => 2024-12-26 19:39:04 [RateCDR] => 1 ) [2024-12-26 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:39:04' and `end` < '2024-12-26 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:39:17] Production.INFO: count ==4529 [2024-12-26 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:39:04 - End Time 2024-12-26 19:39:04 [2024-12-26 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109049', 'tblTempUsageDetail_20' ) start [2024-12-26 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109049', 'tblTempUsageDetail_20' ) end [2024-12-26 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109049', 'tblTempVendorCDR_20' ) start [2024-12-26 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109049', 'tblTempVendorCDR_20' ) end [2024-12-26 19:39:19] Production.INFO: ProcessCDR(1,14109049,1,1,2) [2024-12-26 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109049', 'tblTempUsageDetail_20' ) start [2024-12-26 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109049', 'tblTempUsageDetail_20' ) end [2024-12-26 19:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:39:22] Production.INFO: ==25012== Releasing lock... [2024-12-26 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:39:22] Production.INFO: 61.75 MB #Memory Used# [2024-12-26 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:40:05 [end_date_ymd] => 2024-12-26 19:40:05 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:40:05' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:40:18] Production.INFO: count ==4484 [2024-12-26 19:40:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:40:05 - End Time 2024-12-26 19:40:05 [2024-12-26 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109055', 'tblTempUsageDetail_20' ) start [2024-12-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109055', 'tblTempUsageDetail_20' ) end [2024-12-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109055', 'tblTempVendorCDR_20' ) start [2024-12-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109055', 'tblTempVendorCDR_20' ) end [2024-12-26 19:40:20] Production.INFO: ProcessCDR(1,14109055,1,1,2) [2024-12-26 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109055', 'tblTempUsageDetail_20' ) start [2024-12-26 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109055', 'tblTempUsageDetail_20' ) end [2024-12-26 19:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:40:23] Production.INFO: ==25089== Releasing lock... [2024-12-26 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:40:23] Production.INFO: 61.5 MB #Memory Used# [2024-12-26 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:41:05 [end_date_ymd] => 2024-12-26 19:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:41:18] Production.INFO: count ==4426 [2024-12-26 19:41:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:41:05 - End Time 2024-12-26 19:41:05 [2024-12-26 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109060', 'tblTempUsageDetail_20' ) start [2024-12-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109060', 'tblTempUsageDetail_20' ) end [2024-12-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109060', 'tblTempVendorCDR_20' ) start [2024-12-26 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109060', 'tblTempVendorCDR_20' ) end [2024-12-26 19:41:20] Production.INFO: ProcessCDR(1,14109060,1,1,2) [2024-12-26 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109060', 'tblTempUsageDetail_20' ) start [2024-12-26 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109060', 'tblTempUsageDetail_20' ) end [2024-12-26 19:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:41:23] Production.INFO: ==25170== Releasing lock... [2024-12-26 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:41:23] Production.INFO: 61 MB #Memory Used# [2024-12-26 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:42:05 [end_date_ymd] => 2024-12-26 19:42:05 [RateCDR] => 1 ) [2024-12-26 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:42:05' and `end` < '2024-12-26 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:42:18] Production.INFO: count ==4382 [2024-12-26 19:42:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:42:05 - End Time 2024-12-26 19:42:05 [2024-12-26 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109065', 'tblTempUsageDetail_20' ) start [2024-12-26 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109065', 'tblTempUsageDetail_20' ) end [2024-12-26 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109065', 'tblTempVendorCDR_20' ) start [2024-12-26 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109065', 'tblTempVendorCDR_20' ) end [2024-12-26 19:42:20] Production.INFO: ProcessCDR(1,14109065,1,1,2) [2024-12-26 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109065', 'tblTempUsageDetail_20' ) start [2024-12-26 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109065', 'tblTempUsageDetail_20' ) end [2024-12-26 19:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:42:23] Production.INFO: ==25242== Releasing lock... [2024-12-26 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:42:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-26 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:43:05 [end_date_ymd] => 2024-12-26 19:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:43:18] Production.INFO: count ==4341 [2024-12-26 19:43:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:43:05 - End Time 2024-12-26 19:43:05 [2024-12-26 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109070', 'tblTempUsageDetail_20' ) start [2024-12-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109070', 'tblTempUsageDetail_20' ) end [2024-12-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109070', 'tblTempVendorCDR_20' ) start [2024-12-26 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109070', 'tblTempVendorCDR_20' ) end [2024-12-26 19:43:20] Production.INFO: ProcessCDR(1,14109070,1,1,2) [2024-12-26 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109070', 'tblTempUsageDetail_20' ) start [2024-12-26 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109070', 'tblTempUsageDetail_20' ) end [2024-12-26 19:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:43:23] Production.INFO: ==25320== Releasing lock... [2024-12-26 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:43:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-26 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:44:05 [end_date_ymd] => 2024-12-26 19:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:44:19] Production.INFO: count ==4303 [2024-12-26 19:44:21] Production.ERROR: pbx CDR StartTime 2024-12-26 16:44:05 - End Time 2024-12-26 19:44:05 [2024-12-26 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109075', 'tblTempUsageDetail_20' ) start [2024-12-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109075', 'tblTempUsageDetail_20' ) end [2024-12-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109075', 'tblTempVendorCDR_20' ) start [2024-12-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109075', 'tblTempVendorCDR_20' ) end [2024-12-26 19:44:21] Production.INFO: ProcessCDR(1,14109075,1,1,2) [2024-12-26 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109075', 'tblTempUsageDetail_20' ) start [2024-12-26 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109075', 'tblTempUsageDetail_20' ) end [2024-12-26 19:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:44:24] Production.INFO: ==25392== Releasing lock... [2024-12-26 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:44:24] Production.INFO: 60 MB #Memory Used# [2024-12-26 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:45:05 [end_date_ymd] => 2024-12-26 19:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:45:17] Production.INFO: count ==4260 [2024-12-26 19:45:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:45:05 - End Time 2024-12-26 19:45:05 [2024-12-26 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109078', 'tblTempUsageDetail_20' ) start [2024-12-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109078', 'tblTempUsageDetail_20' ) end [2024-12-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109078', 'tblTempVendorCDR_20' ) start [2024-12-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109078', 'tblTempVendorCDR_20' ) end [2024-12-26 19:45:19] Production.INFO: ProcessCDR(1,14109078,1,1,2) [2024-12-26 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109078', 'tblTempUsageDetail_20' ) start [2024-12-26 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109078', 'tblTempUsageDetail_20' ) end [2024-12-26 19:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:45:22] Production.INFO: ==25466== Releasing lock... [2024-12-26 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:45:22] Production.INFO: 59.75 MB #Memory Used# [2024-12-26 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:46:04 [end_date_ymd] => 2024-12-26 19:46:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:46:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:46:17] Production.INFO: count ==4218 [2024-12-26 19:46:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:46:04 - End Time 2024-12-26 19:46:04 [2024-12-26 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109085', 'tblTempUsageDetail_20' ) start [2024-12-26 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109085', 'tblTempUsageDetail_20' ) end [2024-12-26 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109085', 'tblTempVendorCDR_20' ) start [2024-12-26 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109085', 'tblTempVendorCDR_20' ) end [2024-12-26 19:46:19] Production.INFO: ProcessCDR(1,14109085,1,1,2) [2024-12-26 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109085', 'tblTempUsageDetail_20' ) start [2024-12-26 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109085', 'tblTempUsageDetail_20' ) end [2024-12-26 19:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:46:22] Production.INFO: ==25582== Releasing lock... [2024-12-26 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:46:22] Production.INFO: 59.5 MB #Memory Used# [2024-12-26 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:47:05 [end_date_ymd] => 2024-12-26 19:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:47:18] Production.INFO: count ==4172 [2024-12-26 19:47:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:47:05 - End Time 2024-12-26 19:47:05 [2024-12-26 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109090', 'tblTempUsageDetail_20' ) start [2024-12-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109090', 'tblTempUsageDetail_20' ) end [2024-12-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109090', 'tblTempVendorCDR_20' ) start [2024-12-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109090', 'tblTempVendorCDR_20' ) end [2024-12-26 19:47:20] Production.INFO: ProcessCDR(1,14109090,1,1,2) [2024-12-26 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109090', 'tblTempUsageDetail_20' ) start [2024-12-26 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109090', 'tblTempUsageDetail_20' ) end [2024-12-26 19:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:47:23] Production.INFO: ==25656== Releasing lock... [2024-12-26 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:47:23] Production.INFO: 59 MB #Memory Used# [2024-12-26 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:48:05 [end_date_ymd] => 2024-12-26 19:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:48:18] Production.INFO: count ==4131 [2024-12-26 19:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:48:05 - End Time 2024-12-26 19:48:05 [2024-12-26 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109095', 'tblTempUsageDetail_20' ) start [2024-12-26 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109095', 'tblTempUsageDetail_20' ) end [2024-12-26 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109095', 'tblTempVendorCDR_20' ) start [2024-12-26 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109095', 'tblTempVendorCDR_20' ) end [2024-12-26 19:48:19] Production.INFO: ProcessCDR(1,14109095,1,1,2) [2024-12-26 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109095', 'tblTempUsageDetail_20' ) start [2024-12-26 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109095', 'tblTempUsageDetail_20' ) end [2024-12-26 19:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:48:24] Production.INFO: ==25734== Releasing lock... [2024-12-26 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:48:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-26 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:49:04 [end_date_ymd] => 2024-12-26 19:49:04 [RateCDR] => 1 ) [2024-12-26 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:49:04' and `end` < '2024-12-26 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:49:17] Production.INFO: count ==4091 [2024-12-26 19:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 16:49:04 - End Time 2024-12-26 19:49:04 [2024-12-26 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109100', 'tblTempUsageDetail_20' ) start [2024-12-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109100', 'tblTempUsageDetail_20' ) end [2024-12-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109100', 'tblTempVendorCDR_20' ) start [2024-12-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109100', 'tblTempVendorCDR_20' ) end [2024-12-26 19:49:19] Production.INFO: ProcessCDR(1,14109100,1,1,2) [2024-12-26 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109100', 'tblTempUsageDetail_20' ) start [2024-12-26 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109100', 'tblTempUsageDetail_20' ) end [2024-12-26 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:49:22] Production.INFO: ==25806== Releasing lock... [2024-12-26 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:49:22] Production.INFO: 58.5 MB #Memory Used# [2024-12-26 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:50:05 [end_date_ymd] => 2024-12-26 19:50:05 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:50:05' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:50:18] Production.INFO: count ==4068 [2024-12-26 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:50:05 - End Time 2024-12-26 19:50:05 [2024-12-26 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109106', 'tblTempUsageDetail_20' ) start [2024-12-26 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109106', 'tblTempUsageDetail_20' ) end [2024-12-26 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109106', 'tblTempVendorCDR_20' ) start [2024-12-26 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109106', 'tblTempVendorCDR_20' ) end [2024-12-26 19:50:19] Production.INFO: ProcessCDR(1,14109106,1,1,2) [2024-12-26 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109106', 'tblTempUsageDetail_20' ) start [2024-12-26 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109106', 'tblTempUsageDetail_20' ) end [2024-12-26 19:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:50:22] Production.INFO: ==25881== Releasing lock... [2024-12-26 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:50:22] Production.INFO: 58.25 MB #Memory Used# [2024-12-26 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:51:05 [end_date_ymd] => 2024-12-26 19:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:51:18] Production.INFO: count ==4066 [2024-12-26 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:51:05 - End Time 2024-12-26 19:51:05 [2024-12-26 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109111', 'tblTempUsageDetail_20' ) start [2024-12-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109111', 'tblTempUsageDetail_20' ) end [2024-12-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109111', 'tblTempVendorCDR_20' ) start [2024-12-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109111', 'tblTempVendorCDR_20' ) end [2024-12-26 19:51:19] Production.INFO: ProcessCDR(1,14109111,1,1,2) [2024-12-26 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109111', 'tblTempUsageDetail_20' ) start [2024-12-26 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109111', 'tblTempUsageDetail_20' ) end [2024-12-26 19:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:51:24] Production.INFO: ==25959== Releasing lock... [2024-12-26 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:51:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-26 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:52:05 [end_date_ymd] => 2024-12-26 19:52:05 [RateCDR] => 1 ) [2024-12-26 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:52:05' and `end` < '2024-12-26 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:52:18] Production.INFO: count ==4064 [2024-12-26 19:52:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:52:05 - End Time 2024-12-26 19:52:05 [2024-12-26 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109116', 'tblTempUsageDetail_20' ) start [2024-12-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109116', 'tblTempUsageDetail_20' ) end [2024-12-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109116', 'tblTempVendorCDR_20' ) start [2024-12-26 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109116', 'tblTempVendorCDR_20' ) end [2024-12-26 19:52:20] Production.INFO: ProcessCDR(1,14109116,1,1,2) [2024-12-26 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109116', 'tblTempUsageDetail_20' ) start [2024-12-26 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109116', 'tblTempUsageDetail_20' ) end [2024-12-26 19:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:52:23] Production.INFO: ==26036== Releasing lock... [2024-12-26 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:52:23] Production.INFO: 58.25 MB #Memory Used# [2024-12-26 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:53:04 [end_date_ymd] => 2024-12-26 19:53:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:53:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:53:17] Production.INFO: count ==4048 [2024-12-26 19:53:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:53:04 - End Time 2024-12-26 19:53:04 [2024-12-26 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109121', 'tblTempUsageDetail_20' ) start [2024-12-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109121', 'tblTempUsageDetail_20' ) end [2024-12-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109121', 'tblTempVendorCDR_20' ) start [2024-12-26 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109121', 'tblTempVendorCDR_20' ) end [2024-12-26 19:53:19] Production.INFO: ProcessCDR(1,14109121,1,1,2) [2024-12-26 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109121', 'tblTempUsageDetail_20' ) start [2024-12-26 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109121', 'tblTempUsageDetail_20' ) end [2024-12-26 19:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:53:22] Production.INFO: ==26111== Releasing lock... [2024-12-26 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:53:22] Production.INFO: 58 MB #Memory Used# [2024-12-26 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:54:05 [end_date_ymd] => 2024-12-26 19:54:05 [RateCDR] => 1 ) [2024-12-26 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 16:54:05' and `end` < '2024-12-26 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 19:54:17] Production.INFO: count ==4042 [2024-12-26 19:54:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:54:05 - End Time 2024-12-26 19:54:05 [2024-12-26 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109126', 'tblTempUsageDetail_20' ) start [2024-12-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109126', 'tblTempUsageDetail_20' ) end [2024-12-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109126', 'tblTempVendorCDR_20' ) start [2024-12-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109126', 'tblTempVendorCDR_20' ) end [2024-12-26 19:54:19] Production.INFO: ProcessCDR(1,14109126,1,1,2) [2024-12-26 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109126', 'tblTempUsageDetail_20' ) start [2024-12-26 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109126', 'tblTempUsageDetail_20' ) end [2024-12-26 19:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:54:22] Production.INFO: ==26183== Releasing lock... [2024-12-26 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:54:22] Production.INFO: 58 MB #Memory Used# [2024-12-26 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:55:04 [end_date_ymd] => 2024-12-26 19:55:04 [RateCDR] => 1 ) [2024-12-26 19: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` >= '2024-12-26 16:55:04' and `end` < '2024-12-26 19: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 ,'') [2024-12-26 19:55:17] Production.INFO: count ==4032 [2024-12-26 19:55:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:55:04 - End Time 2024-12-26 19:55:04 [2024-12-26 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109131', 'tblTempUsageDetail_20' ) start [2024-12-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109131', 'tblTempUsageDetail_20' ) end [2024-12-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109131', 'tblTempVendorCDR_20' ) start [2024-12-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109131', 'tblTempVendorCDR_20' ) end [2024-12-26 19:55:19] Production.INFO: ProcessCDR(1,14109131,1,1,2) [2024-12-26 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109131', 'tblTempUsageDetail_20' ) start [2024-12-26 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109131', 'tblTempUsageDetail_20' ) end [2024-12-26 19:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:55:22] Production.INFO: ==26257== Releasing lock... [2024-12-26 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:55:22] Production.INFO: 58 MB #Memory Used# [2024-12-26 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:56:05 [end_date_ymd] => 2024-12-26 19:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:56:19] Production.INFO: count ==4031 [2024-12-26 19:56:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:56:05 - End Time 2024-12-26 19:56:05 [2024-12-26 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109136', 'tblTempUsageDetail_20' ) start [2024-12-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109136', 'tblTempUsageDetail_20' ) end [2024-12-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109136', 'tblTempVendorCDR_20' ) start [2024-12-26 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109136', 'tblTempVendorCDR_20' ) end [2024-12-26 19:56:20] Production.INFO: ProcessCDR(1,14109136,1,1,2) [2024-12-26 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109136', 'tblTempUsageDetail_20' ) start [2024-12-26 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109136', 'tblTempUsageDetail_20' ) end [2024-12-26 19:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:56:23] Production.INFO: ==26332== Releasing lock... [2024-12-26 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:56:23] Production.INFO: 58 MB #Memory Used# [2024-12-26 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:57:05 [end_date_ymd] => 2024-12-26 19:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:57:18] Production.INFO: count ==4030 [2024-12-26 19:57:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:57:05 - End Time 2024-12-26 19:57:05 [2024-12-26 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109141', 'tblTempUsageDetail_20' ) start [2024-12-26 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109141', 'tblTempUsageDetail_20' ) end [2024-12-26 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109141', 'tblTempVendorCDR_20' ) start [2024-12-26 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109141', 'tblTempVendorCDR_20' ) end [2024-12-26 19:57:20] Production.INFO: ProcessCDR(1,14109141,1,1,2) [2024-12-26 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109141', 'tblTempUsageDetail_20' ) start [2024-12-26 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109141', 'tblTempUsageDetail_20' ) end [2024-12-26 19:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:57:24] Production.INFO: ==26407== Releasing lock... [2024-12-26 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:57:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-26 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:58:05 [end_date_ymd] => 2024-12-26 19:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:58:18] Production.INFO: count ==4025 [2024-12-26 19:58:20] Production.ERROR: pbx CDR StartTime 2024-12-26 16:58:05 - End Time 2024-12-26 19:58:05 [2024-12-26 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109146', 'tblTempUsageDetail_20' ) start [2024-12-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109146', 'tblTempUsageDetail_20' ) end [2024-12-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109146', 'tblTempVendorCDR_20' ) start [2024-12-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109146', 'tblTempVendorCDR_20' ) end [2024-12-26 19:58:20] Production.INFO: ProcessCDR(1,14109146,1,1,2) [2024-12-26 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109146', 'tblTempUsageDetail_20' ) start [2024-12-26 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109146', 'tblTempUsageDetail_20' ) end [2024-12-26 19:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:58:23] Production.INFO: ==26477== Releasing lock... [2024-12-26 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:58:23] Production.INFO: 58 MB #Memory Used# [2024-12-26 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 16:59:05 [end_date_ymd] => 2024-12-26 19:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 16:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 19:59:18] Production.INFO: count ==4025 [2024-12-26 19:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 16:59:05 - End Time 2024-12-26 19:59:05 [2024-12-26 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109151', 'tblTempUsageDetail_20' ) start [2024-12-26 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109151', 'tblTempUsageDetail_20' ) end [2024-12-26 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109151', 'tblTempVendorCDR_20' ) start [2024-12-26 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109151', 'tblTempVendorCDR_20' ) end [2024-12-26 19:59:20] Production.INFO: ProcessCDR(1,14109151,1,1,2) [2024-12-26 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109151', 'tblTempUsageDetail_20' ) start [2024-12-26 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109151', 'tblTempUsageDetail_20' ) end [2024-12-26 19:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 19:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 19:59:24] Production.INFO: ==26551== Releasing lock... [2024-12-26 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 19:59:24] Production.INFO: 58 MB #Memory Used# [2024-12-26 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:00:05 [end_date_ymd] => 2024-12-26 20:00:05 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:00:05' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:00:17] Production.INFO: count ==4025 [2024-12-26 20:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:00:05 - End Time 2024-12-26 20:00:05 [2024-12-26 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109157', 'tblTempUsageDetail_20' ) start [2024-12-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109157', 'tblTempUsageDetail_20' ) end [2024-12-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109157', 'tblTempVendorCDR_20' ) start [2024-12-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109157', 'tblTempVendorCDR_20' ) end [2024-12-26 20:00:19] Production.INFO: ProcessCDR(1,14109157,1,1,2) [2024-12-26 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109157', 'tblTempUsageDetail_20' ) start [2024-12-26 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109157', 'tblTempUsageDetail_20' ) end [2024-12-26 20:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:00:23] Production.INFO: ==26623== Releasing lock... [2024-12-26 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:00:23] Production.INFO: 58 MB #Memory Used# [2024-12-26 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:01:04 [end_date_ymd] => 2024-12-26 20:01:04 [RateCDR] => 1 ) [2024-12-26 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:01:04' and `end` < '2024-12-26 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:01:17] Production.INFO: count ==3979 [2024-12-26 20:01:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:01:04 - End Time 2024-12-26 20:01:04 [2024-12-26 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109162', 'tblTempUsageDetail_20' ) start [2024-12-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109162', 'tblTempUsageDetail_20' ) end [2024-12-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109162', 'tblTempVendorCDR_20' ) start [2024-12-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109162', 'tblTempVendorCDR_20' ) end [2024-12-26 20:01:19] Production.INFO: ProcessCDR(1,14109162,1,1,2) [2024-12-26 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109162', 'tblTempUsageDetail_20' ) start [2024-12-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109162', 'tblTempUsageDetail_20' ) end [2024-12-26 20:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:01:23] Production.INFO: ==26788== Releasing lock... [2024-12-26 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:01:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-26 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:02:04 [end_date_ymd] => 2024-12-26 20:02:04 [RateCDR] => 1 ) [2024-12-26 20:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:02:04' and `end` < '2024-12-26 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:02:17] Production.INFO: count ==3966 [2024-12-26 20:02:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:02:04 - End Time 2024-12-26 20:02:04 [2024-12-26 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109167', 'tblTempUsageDetail_20' ) start [2024-12-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109167', 'tblTempUsageDetail_20' ) end [2024-12-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109167', 'tblTempVendorCDR_20' ) start [2024-12-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109167', 'tblTempVendorCDR_20' ) end [2024-12-26 20:02:19] Production.INFO: ProcessCDR(1,14109167,1,1,2) [2024-12-26 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109167', 'tblTempUsageDetail_20' ) start [2024-12-26 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109167', 'tblTempUsageDetail_20' ) end [2024-12-26 20:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:02:24] Production.INFO: ==26861== Releasing lock... [2024-12-26 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:02:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-26 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:03:05 [end_date_ymd] => 2024-12-26 20:03:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:03:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:03:18] Production.INFO: count ==3932 [2024-12-26 20:03:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:03:05 - End Time 2024-12-26 20:03:05 [2024-12-26 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109172', 'tblTempUsageDetail_20' ) start [2024-12-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109172', 'tblTempUsageDetail_20' ) end [2024-12-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109172', 'tblTempVendorCDR_20' ) start [2024-12-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109172', 'tblTempVendorCDR_20' ) end [2024-12-26 20:03:19] Production.INFO: ProcessCDR(1,14109172,1,1,2) [2024-12-26 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109172', 'tblTempUsageDetail_20' ) start [2024-12-26 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109172', 'tblTempUsageDetail_20' ) end [2024-12-26 20:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:03:24] Production.INFO: ==26934== Releasing lock... [2024-12-26 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:03:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-26 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:04:05 [end_date_ymd] => 2024-12-26 20:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:04:18] Production.INFO: count ==3871 [2024-12-26 20:04:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:04:05 - End Time 2024-12-26 20:04:05 [2024-12-26 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109177', 'tblTempUsageDetail_20' ) start [2024-12-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109177', 'tblTempUsageDetail_20' ) end [2024-12-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109177', 'tblTempVendorCDR_20' ) start [2024-12-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109177', 'tblTempVendorCDR_20' ) end [2024-12-26 20:04:19] Production.INFO: ProcessCDR(1,14109177,1,1,2) [2024-12-26 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109177', 'tblTempUsageDetail_20' ) start [2024-12-26 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109177', 'tblTempUsageDetail_20' ) end [2024-12-26 20:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:04:24] Production.INFO: ==27008== Releasing lock... [2024-12-26 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:04:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-26 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:05:05 [end_date_ymd] => 2024-12-26 20:05:05 [RateCDR] => 1 ) [2024-12-26 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:05:05' and `end` < '2024-12-26 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:05:17] Production.INFO: count ==3817 [2024-12-26 20:05:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:05:05 - End Time 2024-12-26 20:05:05 [2024-12-26 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109182', 'tblTempUsageDetail_20' ) start [2024-12-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109182', 'tblTempUsageDetail_20' ) end [2024-12-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109182', 'tblTempVendorCDR_20' ) start [2024-12-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109182', 'tblTempVendorCDR_20' ) end [2024-12-26 20:05:19] Production.INFO: ProcessCDR(1,14109182,1,1,2) [2024-12-26 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109182', 'tblTempUsageDetail_20' ) start [2024-12-26 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109182', 'tblTempUsageDetail_20' ) end [2024-12-26 20:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:05:23] Production.INFO: ==27079== Releasing lock... [2024-12-26 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:05:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-26 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:06:05 [end_date_ymd] => 2024-12-26 20:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:06:17] Production.INFO: count ==3764 [2024-12-26 20:06:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:06:05 - End Time 2024-12-26 20:06:05 [2024-12-26 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109187', 'tblTempUsageDetail_20' ) start [2024-12-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109187', 'tblTempUsageDetail_20' ) end [2024-12-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109187', 'tblTempVendorCDR_20' ) start [2024-12-26 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109187', 'tblTempVendorCDR_20' ) end [2024-12-26 20:06:19] Production.INFO: ProcessCDR(1,14109187,1,1,2) [2024-12-26 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109187', 'tblTempUsageDetail_20' ) start [2024-12-26 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109187', 'tblTempUsageDetail_20' ) end [2024-12-26 20:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:06:24] Production.INFO: ==27153== Releasing lock... [2024-12-26 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:06:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-26 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:07:04 [end_date_ymd] => 2024-12-26 20:07:04 [RateCDR] => 1 ) [2024-12-26 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:07:04' and `end` < '2024-12-26 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:07:17] Production.INFO: count ==3704 [2024-12-26 20:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:07:04 - End Time 2024-12-26 20:07:04 [2024-12-26 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109192', 'tblTempUsageDetail_20' ) start [2024-12-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109192', 'tblTempUsageDetail_20' ) end [2024-12-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109192', 'tblTempVendorCDR_20' ) start [2024-12-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109192', 'tblTempVendorCDR_20' ) end [2024-12-26 20:07:19] Production.INFO: ProcessCDR(1,14109192,1,1,2) [2024-12-26 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109192', 'tblTempUsageDetail_20' ) start [2024-12-26 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109192', 'tblTempUsageDetail_20' ) end [2024-12-26 20:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:07:24] Production.INFO: ==27229== Releasing lock... [2024-12-26 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:07:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-26 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:08:05 [end_date_ymd] => 2024-12-26 20:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:08:18] Production.INFO: count ==3641 [2024-12-26 20:08:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:08:05 - End Time 2024-12-26 20:08:05 [2024-12-26 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109197', 'tblTempUsageDetail_20' ) start [2024-12-26 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109197', 'tblTempUsageDetail_20' ) end [2024-12-26 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109197', 'tblTempVendorCDR_20' ) start [2024-12-26 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109197', 'tblTempVendorCDR_20' ) end [2024-12-26 20:08:19] Production.INFO: ProcessCDR(1,14109197,1,1,2) [2024-12-26 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109197', 'tblTempUsageDetail_20' ) start [2024-12-26 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109197', 'tblTempUsageDetail_20' ) end [2024-12-26 20:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:08:24] Production.INFO: ==27304== Releasing lock... [2024-12-26 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:08:24] Production.INFO: 55 MB #Memory Used# [2024-12-26 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:09:05 [end_date_ymd] => 2024-12-26 20:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:09:18] Production.INFO: count ==3592 [2024-12-26 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:09:05 - End Time 2024-12-26 20:09:05 [2024-12-26 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109202', 'tblTempUsageDetail_20' ) start [2024-12-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109202', 'tblTempUsageDetail_20' ) end [2024-12-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109202', 'tblTempVendorCDR_20' ) start [2024-12-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109202', 'tblTempVendorCDR_20' ) end [2024-12-26 20:09:19] Production.INFO: ProcessCDR(1,14109202,1,1,2) [2024-12-26 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109202', 'tblTempUsageDetail_20' ) start [2024-12-26 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109202', 'tblTempUsageDetail_20' ) end [2024-12-26 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:09:22] Production.INFO: ==27378== Releasing lock... [2024-12-26 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:09:22] Production.INFO: 54.75 MB #Memory Used# [2024-12-26 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:10:05 [end_date_ymd] => 2024-12-26 20:10:05 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:10:05' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:10:18] Production.INFO: count ==3589 [2024-12-26 20:10:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:10:05 - End Time 2024-12-26 20:10:05 [2024-12-26 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109207', 'tblTempUsageDetail_20' ) start [2024-12-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109207', 'tblTempUsageDetail_20' ) end [2024-12-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109207', 'tblTempVendorCDR_20' ) start [2024-12-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109207', 'tblTempVendorCDR_20' ) end [2024-12-26 20:10:19] Production.INFO: ProcessCDR(1,14109207,1,1,2) [2024-12-26 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109207', 'tblTempUsageDetail_20' ) start [2024-12-26 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109207', 'tblTempUsageDetail_20' ) end [2024-12-26 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:10:22] Production.INFO: ==27452== Releasing lock... [2024-12-26 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:10:22] Production.INFO: 54.75 MB #Memory Used# [2024-12-26 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:11:05 [end_date_ymd] => 2024-12-26 20:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:11:18] Production.INFO: count ==3556 [2024-12-26 20:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:11:05 - End Time 2024-12-26 20:11:05 [2024-12-26 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109213', 'tblTempUsageDetail_20' ) start [2024-12-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109213', 'tblTempUsageDetail_20' ) end [2024-12-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109213', 'tblTempVendorCDR_20' ) start [2024-12-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109213', 'tblTempVendorCDR_20' ) end [2024-12-26 20:11:19] Production.INFO: ProcessCDR(1,14109213,1,1,2) [2024-12-26 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109213', 'tblTempUsageDetail_20' ) start [2024-12-26 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109213', 'tblTempUsageDetail_20' ) end [2024-12-26 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:11:22] Production.INFO: ==27527== Releasing lock... [2024-12-26 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:11:22] Production.INFO: 54.5 MB #Memory Used# [2024-12-26 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:12:04 [end_date_ymd] => 2024-12-26 20:12:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:12:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:12:17] Production.INFO: count ==3522 [2024-12-26 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:12:04 - End Time 2024-12-26 20:12:04 [2024-12-26 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109218', 'tblTempUsageDetail_20' ) start [2024-12-26 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109218', 'tblTempUsageDetail_20' ) end [2024-12-26 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109218', 'tblTempVendorCDR_20' ) start [2024-12-26 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109218', 'tblTempVendorCDR_20' ) end [2024-12-26 20:12:18] Production.INFO: ProcessCDR(1,14109218,1,1,2) [2024-12-26 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109218', 'tblTempUsageDetail_20' ) start [2024-12-26 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109218', 'tblTempUsageDetail_20' ) end [2024-12-26 20:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:12:22] Production.INFO: ==27600== Releasing lock... [2024-12-26 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:12:22] Production.INFO: 54.25 MB #Memory Used# [2024-12-26 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:13:05 [end_date_ymd] => 2024-12-26 20:13:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:13:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:13:18] Production.INFO: count ==3490 [2024-12-26 20:13:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:13:05 - End Time 2024-12-26 20:13:05 [2024-12-26 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109223', 'tblTempUsageDetail_20' ) start [2024-12-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109223', 'tblTempUsageDetail_20' ) end [2024-12-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109223', 'tblTempVendorCDR_20' ) start [2024-12-26 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109223', 'tblTempVendorCDR_20' ) end [2024-12-26 20:13:19] Production.INFO: ProcessCDR(1,14109223,1,1,2) [2024-12-26 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109223', 'tblTempUsageDetail_20' ) start [2024-12-26 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109223', 'tblTempUsageDetail_20' ) end [2024-12-26 20:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:13:22] Production.INFO: ==27679== Releasing lock... [2024-12-26 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:13:22] Production.INFO: 54 MB #Memory Used# [2024-12-26 20:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:14:04 [end_date_ymd] => 2024-12-26 20:14:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:14:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:14:17] Production.INFO: count ==3459 [2024-12-26 20:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:14:04 - End Time 2024-12-26 20:14:04 [2024-12-26 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109228', 'tblTempUsageDetail_20' ) start [2024-12-26 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109228', 'tblTempUsageDetail_20' ) end [2024-12-26 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109228', 'tblTempVendorCDR_20' ) start [2024-12-26 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109228', 'tblTempVendorCDR_20' ) end [2024-12-26 20:14:18] Production.INFO: ProcessCDR(1,14109228,1,1,2) [2024-12-26 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109228', 'tblTempUsageDetail_20' ) start [2024-12-26 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109228', 'tblTempUsageDetail_20' ) end [2024-12-26 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:14:23] Production.INFO: ==27747== Releasing lock... [2024-12-26 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:14:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-26 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:15:05 [end_date_ymd] => 2024-12-26 20:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:15:17] Production.INFO: count ==3400 [2024-12-26 20:15:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:15:05 - End Time 2024-12-26 20:15:05 [2024-12-26 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109233', 'tblTempUsageDetail_20' ) start [2024-12-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109233', 'tblTempUsageDetail_20' ) end [2024-12-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109233', 'tblTempVendorCDR_20' ) start [2024-12-26 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109233', 'tblTempVendorCDR_20' ) end [2024-12-26 20:15:19] Production.INFO: ProcessCDR(1,14109233,1,1,2) [2024-12-26 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109233', 'tblTempUsageDetail_20' ) start [2024-12-26 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109233', 'tblTempUsageDetail_20' ) end [2024-12-26 20:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:15:23] Production.INFO: ==27818== Releasing lock... [2024-12-26 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:15:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-26 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:16:05 [end_date_ymd] => 2024-12-26 20:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:16:18] Production.INFO: count ==3365 [2024-12-26 20:16:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:16:05 - End Time 2024-12-26 20:16:05 [2024-12-26 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109238', 'tblTempUsageDetail_20' ) start [2024-12-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109238', 'tblTempUsageDetail_20' ) end [2024-12-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109238', 'tblTempVendorCDR_20' ) start [2024-12-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109238', 'tblTempVendorCDR_20' ) end [2024-12-26 20:16:19] Production.INFO: ProcessCDR(1,14109238,1,1,2) [2024-12-26 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109238', 'tblTempUsageDetail_20' ) start [2024-12-26 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109238', 'tblTempUsageDetail_20' ) end [2024-12-26 20:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:16:22] Production.INFO: ==27892== Releasing lock... [2024-12-26 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:16:22] Production.INFO: 53 MB #Memory Used# [2024-12-26 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:17:05 [end_date_ymd] => 2024-12-26 20:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:17:19] Production.INFO: count ==3334 [2024-12-26 20:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 17:17:05 - End Time 2024-12-26 20:17:05 [2024-12-26 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109243', 'tblTempUsageDetail_20' ) start [2024-12-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109243', 'tblTempUsageDetail_20' ) end [2024-12-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109243', 'tblTempVendorCDR_20' ) start [2024-12-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109243', 'tblTempVendorCDR_20' ) end [2024-12-26 20:17:20] Production.INFO: ProcessCDR(1,14109243,1,1,2) [2024-12-26 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109243', 'tblTempUsageDetail_20' ) start [2024-12-26 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109243', 'tblTempUsageDetail_20' ) end [2024-12-26 20:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:17:23] Production.INFO: ==28012== Releasing lock... [2024-12-26 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:17:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-26 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:18:05 [end_date_ymd] => 2024-12-26 20:18:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:18:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:18:17] Production.INFO: count ==3297 [2024-12-26 20:18:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:18:05 - End Time 2024-12-26 20:18:05 [2024-12-26 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109248', 'tblTempUsageDetail_20' ) start [2024-12-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109248', 'tblTempUsageDetail_20' ) end [2024-12-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109248', 'tblTempVendorCDR_20' ) start [2024-12-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109248', 'tblTempVendorCDR_20' ) end [2024-12-26 20:18:19] Production.INFO: ProcessCDR(1,14109248,1,1,2) [2024-12-26 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109248', 'tblTempUsageDetail_20' ) start [2024-12-26 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109248', 'tblTempUsageDetail_20' ) end [2024-12-26 20:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:18:23] Production.INFO: ==28083== Releasing lock... [2024-12-26 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:18:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-26 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:19:04 [end_date_ymd] => 2024-12-26 20:19:04 [RateCDR] => 1 ) [2024-12-26 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:19:04' and `end` < '2024-12-26 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:19:17] Production.INFO: count ==3271 [2024-12-26 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:19:04 - End Time 2024-12-26 20:19:04 [2024-12-26 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109253', 'tblTempUsageDetail_20' ) start [2024-12-26 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109253', 'tblTempUsageDetail_20' ) end [2024-12-26 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109253', 'tblTempVendorCDR_20' ) start [2024-12-26 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109253', 'tblTempVendorCDR_20' ) end [2024-12-26 20:19:18] Production.INFO: ProcessCDR(1,14109253,1,1,2) [2024-12-26 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109253', 'tblTempUsageDetail_20' ) start [2024-12-26 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109253', 'tblTempUsageDetail_20' ) end [2024-12-26 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:19:21] Production.INFO: ==28154== Releasing lock... [2024-12-26 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:19:21] Production.INFO: 52.25 MB #Memory Used# [2024-12-26 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:20:05 [end_date_ymd] => 2024-12-26 20:20:05 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:20:05' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:20:18] Production.INFO: count ==3237 [2024-12-26 20:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:20:05 - End Time 2024-12-26 20:20:05 [2024-12-26 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109259', 'tblTempUsageDetail_20' ) start [2024-12-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109259', 'tblTempUsageDetail_20' ) end [2024-12-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109259', 'tblTempVendorCDR_20' ) start [2024-12-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109259', 'tblTempVendorCDR_20' ) end [2024-12-26 20:20:19] Production.INFO: ProcessCDR(1,14109259,1,1,2) [2024-12-26 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109259', 'tblTempUsageDetail_20' ) start [2024-12-26 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109259', 'tblTempUsageDetail_20' ) end [2024-12-26 20:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:20:22] Production.INFO: ==28228== Releasing lock... [2024-12-26 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:20:22] Production.INFO: 52.25 MB #Memory Used# [2024-12-26 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:21:04 [end_date_ymd] => 2024-12-26 20:21:04 [RateCDR] => 1 ) [2024-12-26 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:21:04' and `end` < '2024-12-26 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:21:17] Production.INFO: count ==3170 [2024-12-26 20:21:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:21:04 - End Time 2024-12-26 20:21:04 [2024-12-26 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109264', 'tblTempUsageDetail_20' ) start [2024-12-26 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109264', 'tblTempUsageDetail_20' ) end [2024-12-26 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109264', 'tblTempVendorCDR_20' ) start [2024-12-26 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109264', 'tblTempVendorCDR_20' ) end [2024-12-26 20:21:18] Production.INFO: ProcessCDR(1,14109264,1,1,2) [2024-12-26 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109264', 'tblTempUsageDetail_20' ) start [2024-12-26 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109264', 'tblTempUsageDetail_20' ) end [2024-12-26 20:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:21:21] Production.INFO: ==28305== Releasing lock... [2024-12-26 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:21:21] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:22:05 [end_date_ymd] => 2024-12-26 20:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:22:18] Production.INFO: count ==3169 [2024-12-26 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:22:05 - End Time 2024-12-26 20:22:05 [2024-12-26 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109269', 'tblTempUsageDetail_20' ) start [2024-12-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109269', 'tblTempUsageDetail_20' ) end [2024-12-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109269', 'tblTempVendorCDR_20' ) start [2024-12-26 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109269', 'tblTempVendorCDR_20' ) end [2024-12-26 20:22:19] Production.INFO: ProcessCDR(1,14109269,1,1,2) [2024-12-26 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109269', 'tblTempUsageDetail_20' ) start [2024-12-26 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109269', 'tblTempUsageDetail_20' ) end [2024-12-26 20:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:22:22] Production.INFO: ==28378== Releasing lock... [2024-12-26 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:22:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:23:05 [end_date_ymd] => 2024-12-26 20:23:05 [RateCDR] => 1 ) [2024-12-26 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:23:05' and `end` < '2024-12-26 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:23:18] Production.INFO: count ==3165 [2024-12-26 20:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:23:05 - End Time 2024-12-26 20:23:05 [2024-12-26 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109274', 'tblTempUsageDetail_20' ) start [2024-12-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109274', 'tblTempUsageDetail_20' ) end [2024-12-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109274', 'tblTempVendorCDR_20' ) start [2024-12-26 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109274', 'tblTempVendorCDR_20' ) end [2024-12-26 20:23:19] Production.INFO: ProcessCDR(1,14109274,1,1,2) [2024-12-26 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109274', 'tblTempUsageDetail_20' ) start [2024-12-26 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109274', 'tblTempUsageDetail_20' ) end [2024-12-26 20:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:23:22] Production.INFO: ==28468== Releasing lock... [2024-12-26 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:23:22] Production.INFO: 52.25 MB #Memory Used# [2024-12-26 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:24:04 [end_date_ymd] => 2024-12-26 20:24:04 [RateCDR] => 1 ) [2024-12-26 20:24: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` >= '2024-12-26 17:24:04' and `end` < '2024-12-26 20:24: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 ,'') [2024-12-26 20:24:17] Production.INFO: count ==3158 [2024-12-26 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:24:04 - End Time 2024-12-26 20:24:04 [2024-12-26 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109279', 'tblTempUsageDetail_20' ) start [2024-12-26 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109279', 'tblTempUsageDetail_20' ) end [2024-12-26 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109279', 'tblTempVendorCDR_20' ) start [2024-12-26 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109279', 'tblTempVendorCDR_20' ) end [2024-12-26 20:24:18] Production.INFO: ProcessCDR(1,14109279,1,1,2) [2024-12-26 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109279', 'tblTempUsageDetail_20' ) start [2024-12-26 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109279', 'tblTempUsageDetail_20' ) end [2024-12-26 20:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:24:21] Production.INFO: ==28564== Releasing lock... [2024-12-26 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:24:21] Production.INFO: 51.5 MB #Memory Used# [2024-12-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:25:05 [end_date_ymd] => 2024-12-26 20:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:25:18] Production.INFO: count ==3128 [2024-12-26 20:25:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:25:05 - End Time 2024-12-26 20:25:05 [2024-12-26 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109284', 'tblTempUsageDetail_20' ) start [2024-12-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109284', 'tblTempUsageDetail_20' ) end [2024-12-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109284', 'tblTempVendorCDR_20' ) start [2024-12-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109284', 'tblTempVendorCDR_20' ) end [2024-12-26 20:25:19] Production.INFO: ProcessCDR(1,14109284,1,1,2) [2024-12-26 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109284', 'tblTempUsageDetail_20' ) start [2024-12-26 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109284', 'tblTempUsageDetail_20' ) end [2024-12-26 20:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:25:22] Production.INFO: ==28664== Releasing lock... [2024-12-26 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:25:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-26 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:26:05 [end_date_ymd] => 2024-12-26 20:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:26:18] Production.INFO: count ==3100 [2024-12-26 20:26:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:26:05 - End Time 2024-12-26 20:26:05 [2024-12-26 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109289', 'tblTempUsageDetail_20' ) start [2024-12-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109289', 'tblTempUsageDetail_20' ) end [2024-12-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109289', 'tblTempVendorCDR_20' ) start [2024-12-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109289', 'tblTempVendorCDR_20' ) end [2024-12-26 20:26:19] Production.INFO: ProcessCDR(1,14109289,1,1,2) [2024-12-26 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109289', 'tblTempUsageDetail_20' ) start [2024-12-26 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109289', 'tblTempUsageDetail_20' ) end [2024-12-26 20:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:26:23] Production.INFO: ==28764== Releasing lock... [2024-12-26 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:26:23] Production.INFO: 51 MB #Memory Used# [2024-12-26 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:27:05 [end_date_ymd] => 2024-12-26 20:27:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:27:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:27:17] Production.INFO: count ==3064 [2024-12-26 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:27:05 - End Time 2024-12-26 20:27:05 [2024-12-26 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109294', 'tblTempUsageDetail_20' ) start [2024-12-26 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109294', 'tblTempUsageDetail_20' ) end [2024-12-26 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109294', 'tblTempVendorCDR_20' ) start [2024-12-26 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109294', 'tblTempVendorCDR_20' ) end [2024-12-26 20:27:18] Production.INFO: ProcessCDR(1,14109294,1,1,2) [2024-12-26 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109294', 'tblTempUsageDetail_20' ) start [2024-12-26 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109294', 'tblTempUsageDetail_20' ) end [2024-12-26 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:27:21] Production.INFO: ==28862== Releasing lock... [2024-12-26 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:27:21] Production.INFO: 50.75 MB #Memory Used# [2024-12-26 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:28:05 [end_date_ymd] => 2024-12-26 20:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:28:19] Production.INFO: count ==3005 [2024-12-26 20:28:20] Production.ERROR: pbx CDR StartTime 2024-12-26 17:28:05 - End Time 2024-12-26 20:28:05 [2024-12-26 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109299', 'tblTempUsageDetail_20' ) start [2024-12-26 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109299', 'tblTempUsageDetail_20' ) end [2024-12-26 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109299', 'tblTempVendorCDR_20' ) start [2024-12-26 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109299', 'tblTempVendorCDR_20' ) end [2024-12-26 20:28:20] Production.INFO: ProcessCDR(1,14109299,1,1,2) [2024-12-26 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109299', 'tblTempUsageDetail_20' ) start [2024-12-26 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109299', 'tblTempUsageDetail_20' ) end [2024-12-26 20:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:28:24] Production.INFO: ==28962== Releasing lock... [2024-12-26 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:28:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-26 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:29:05 [end_date_ymd] => 2024-12-26 20:29:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:29:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:29:18] Production.INFO: count ==2969 [2024-12-26 20:29:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:29:05 - End Time 2024-12-26 20:29:05 [2024-12-26 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109304', 'tblTempUsageDetail_20' ) start [2024-12-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109304', 'tblTempUsageDetail_20' ) end [2024-12-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109304', 'tblTempVendorCDR_20' ) start [2024-12-26 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109304', 'tblTempVendorCDR_20' ) end [2024-12-26 20:29:19] Production.INFO: ProcessCDR(1,14109304,1,1,2) [2024-12-26 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109304', 'tblTempUsageDetail_20' ) start [2024-12-26 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109304', 'tblTempUsageDetail_20' ) end [2024-12-26 20:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:29:24] Production.INFO: ==29064== Releasing lock... [2024-12-26 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:29:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-26 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:30:06 [end_date_ymd] => 2024-12-26 20:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:30:18] Production.INFO: count ==2938 [2024-12-26 20:30:20] Production.ERROR: pbx CDR StartTime 2024-12-26 17:30:06 - End Time 2024-12-26 20:30:06 [2024-12-26 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109309', 'tblTempUsageDetail_20' ) start [2024-12-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109309', 'tblTempUsageDetail_20' ) end [2024-12-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109309', 'tblTempVendorCDR_20' ) start [2024-12-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109309', 'tblTempVendorCDR_20' ) end [2024-12-26 20:30:20] Production.INFO: ProcessCDR(1,14109309,1,1,2) [2024-12-26 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109309', 'tblTempUsageDetail_20' ) start [2024-12-26 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109309', 'tblTempUsageDetail_20' ) end [2024-12-26 20:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:30:25] Production.INFO: ==29137== Releasing lock... [2024-12-26 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:30:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-26 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:31:04 [end_date_ymd] => 2024-12-26 20:31:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:31:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:31:18] Production.INFO: count ==2858 [2024-12-26 20:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:31:04 - End Time 2024-12-26 20:31:04 [2024-12-26 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109315', 'tblTempUsageDetail_20' ) start [2024-12-26 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109315', 'tblTempUsageDetail_20' ) end [2024-12-26 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109315', 'tblTempVendorCDR_20' ) start [2024-12-26 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109315', 'tblTempVendorCDR_20' ) end [2024-12-26 20:31:19] Production.INFO: ProcessCDR(1,14109315,1,1,2) [2024-12-26 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109315', 'tblTempUsageDetail_20' ) start [2024-12-26 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109315', 'tblTempUsageDetail_20' ) end [2024-12-26 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:31:22] Production.INFO: ==29215== Releasing lock... [2024-12-26 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:31:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-26 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:32:05 [end_date_ymd] => 2024-12-26 20:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:32:18] Production.INFO: count ==2822 [2024-12-26 20:32:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:32:05 - End Time 2024-12-26 20:32:05 [2024-12-26 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109320', 'tblTempUsageDetail_20' ) start [2024-12-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109320', 'tblTempUsageDetail_20' ) end [2024-12-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109320', 'tblTempVendorCDR_20' ) start [2024-12-26 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109320', 'tblTempVendorCDR_20' ) end [2024-12-26 20:32:19] Production.INFO: ProcessCDR(1,14109320,1,1,2) [2024-12-26 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109320', 'tblTempUsageDetail_20' ) start [2024-12-26 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109320', 'tblTempUsageDetail_20' ) end [2024-12-26 20:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:32:23] Production.INFO: ==29288== Releasing lock... [2024-12-26 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:32:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:33:04 [end_date_ymd] => 2024-12-26 20:33:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:33:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:33:17] Production.INFO: count ==2789 [2024-12-26 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:33:04 - End Time 2024-12-26 20:33:04 [2024-12-26 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109325', 'tblTempUsageDetail_20' ) start [2024-12-26 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109325', 'tblTempUsageDetail_20' ) end [2024-12-26 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109325', 'tblTempVendorCDR_20' ) start [2024-12-26 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109325', 'tblTempVendorCDR_20' ) end [2024-12-26 20:33:18] Production.INFO: ProcessCDR(1,14109325,1,1,2) [2024-12-26 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109325', 'tblTempUsageDetail_20' ) start [2024-12-26 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109325', 'tblTempUsageDetail_20' ) end [2024-12-26 20:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:33:23] Production.INFO: ==29396== Releasing lock... [2024-12-26 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:33:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-26 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:34:05 [end_date_ymd] => 2024-12-26 20:34:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:34:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:34:18] Production.INFO: count ==2760 [2024-12-26 20:34:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:34:05 - End Time 2024-12-26 20:34:05 [2024-12-26 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109330', 'tblTempUsageDetail_20' ) start [2024-12-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109330', 'tblTempUsageDetail_20' ) end [2024-12-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109330', 'tblTempVendorCDR_20' ) start [2024-12-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109330', 'tblTempVendorCDR_20' ) end [2024-12-26 20:34:19] Production.INFO: ProcessCDR(1,14109330,1,1,2) [2024-12-26 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109330', 'tblTempUsageDetail_20' ) start [2024-12-26 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109330', 'tblTempUsageDetail_20' ) end [2024-12-26 20:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:34:23] Production.INFO: ==29469== Releasing lock... [2024-12-26 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:34:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-26 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:35:05 [end_date_ymd] => 2024-12-26 20:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:35:18] Production.INFO: count ==2714 [2024-12-26 20:35:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:35:05 - End Time 2024-12-26 20:35:05 [2024-12-26 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109335', 'tblTempUsageDetail_20' ) start [2024-12-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109335', 'tblTempUsageDetail_20' ) end [2024-12-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109335', 'tblTempVendorCDR_20' ) start [2024-12-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109335', 'tblTempVendorCDR_20' ) end [2024-12-26 20:35:19] Production.INFO: ProcessCDR(1,14109335,1,1,2) [2024-12-26 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109335', 'tblTempUsageDetail_20' ) start [2024-12-26 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109335', 'tblTempUsageDetail_20' ) end [2024-12-26 20:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:35:22] Production.INFO: ==29547== Releasing lock... [2024-12-26 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:35:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-26 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:36:05 [end_date_ymd] => 2024-12-26 20:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:36:17] Production.INFO: count ==2685 [2024-12-26 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:36:05 - End Time 2024-12-26 20:36:05 [2024-12-26 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109340', 'tblTempUsageDetail_20' ) start [2024-12-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109340', 'tblTempUsageDetail_20' ) end [2024-12-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109340', 'tblTempVendorCDR_20' ) start [2024-12-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109340', 'tblTempVendorCDR_20' ) end [2024-12-26 20:36:18] Production.INFO: ProcessCDR(1,14109340,1,1,2) [2024-12-26 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109340', 'tblTempUsageDetail_20' ) start [2024-12-26 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109340', 'tblTempUsageDetail_20' ) end [2024-12-26 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:36:21] Production.INFO: ==29625== Releasing lock... [2024-12-26 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:36:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-26 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:37:04 [end_date_ymd] => 2024-12-26 20:37:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:37:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:37:17] Production.INFO: count ==2653 [2024-12-26 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:37:04 - End Time 2024-12-26 20:37:04 [2024-12-26 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109345', 'tblTempUsageDetail_20' ) start [2024-12-26 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109345', 'tblTempUsageDetail_20' ) end [2024-12-26 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109345', 'tblTempVendorCDR_20' ) start [2024-12-26 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109345', 'tblTempVendorCDR_20' ) end [2024-12-26 20:37:18] Production.INFO: ProcessCDR(1,14109345,1,1,2) [2024-12-26 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109345', 'tblTempUsageDetail_20' ) start [2024-12-26 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109345', 'tblTempUsageDetail_20' ) end [2024-12-26 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:37:21] Production.INFO: ==29703== Releasing lock... [2024-12-26 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:37:21] Production.INFO: 48 MB #Memory Used# [2024-12-26 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:38:05 [end_date_ymd] => 2024-12-26 20:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:38:17] Production.INFO: count ==2619 [2024-12-26 20:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:38:05 - End Time 2024-12-26 20:38:05 [2024-12-26 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109350', 'tblTempUsageDetail_20' ) start [2024-12-26 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109350', 'tblTempUsageDetail_20' ) end [2024-12-26 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109350', 'tblTempVendorCDR_20' ) start [2024-12-26 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109350', 'tblTempVendorCDR_20' ) end [2024-12-26 20:38:18] Production.INFO: ProcessCDR(1,14109350,1,1,2) [2024-12-26 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109350', 'tblTempUsageDetail_20' ) start [2024-12-26 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109350', 'tblTempUsageDetail_20' ) end [2024-12-26 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:38:21] Production.INFO: ==29774== Releasing lock... [2024-12-26 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:38:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-26 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:39:04 [end_date_ymd] => 2024-12-26 20:39:04 [RateCDR] => 1 ) [2024-12-26 20:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:39:04' and `end` < '2024-12-26 20:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:39:16] Production.INFO: count ==2591 [2024-12-26 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:39:04 - End Time 2024-12-26 20:39:04 [2024-12-26 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109355', 'tblTempUsageDetail_20' ) start [2024-12-26 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109355', 'tblTempUsageDetail_20' ) end [2024-12-26 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109355', 'tblTempVendorCDR_20' ) start [2024-12-26 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109355', 'tblTempVendorCDR_20' ) end [2024-12-26 20:39:17] Production.INFO: ProcessCDR(1,14109355,1,1,2) [2024-12-26 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109355', 'tblTempUsageDetail_20' ) start [2024-12-26 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109355', 'tblTempUsageDetail_20' ) end [2024-12-26 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:39:20] Production.INFO: ==29851== Releasing lock... [2024-12-26 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:39:20] Production.INFO: 47.5 MB #Memory Used# [2024-12-26 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:40:06 [end_date_ymd] => 2024-12-26 20:40:06 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:40:06' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:40:18] Production.INFO: count ==2590 [2024-12-26 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:40:06 - End Time 2024-12-26 20:40:06 [2024-12-26 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109361', 'tblTempUsageDetail_20' ) start [2024-12-26 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109361', 'tblTempUsageDetail_20' ) end [2024-12-26 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109361', 'tblTempVendorCDR_20' ) start [2024-12-26 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109361', 'tblTempVendorCDR_20' ) end [2024-12-26 20:40:19] Production.INFO: ProcessCDR(1,14109361,1,1,2) [2024-12-26 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109361', 'tblTempUsageDetail_20' ) start [2024-12-26 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109361', 'tblTempUsageDetail_20' ) end [2024-12-26 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:40:22] Production.INFO: ==29934== Releasing lock... [2024-12-26 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:40:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-26 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:41:05 [end_date_ymd] => 2024-12-26 20:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:41:18] Production.INFO: count ==2509 [2024-12-26 20:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:41:05 - End Time 2024-12-26 20:41:05 [2024-12-26 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109366', 'tblTempUsageDetail_20' ) start [2024-12-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109366', 'tblTempUsageDetail_20' ) end [2024-12-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109366', 'tblTempVendorCDR_20' ) start [2024-12-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109366', 'tblTempVendorCDR_20' ) end [2024-12-26 20:41:18] Production.INFO: ProcessCDR(1,14109366,1,1,2) [2024-12-26 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109366', 'tblTempUsageDetail_20' ) start [2024-12-26 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109366', 'tblTempUsageDetail_20' ) end [2024-12-26 20:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:41:21] Production.INFO: ==30013== Releasing lock... [2024-12-26 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:41:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-26 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:42:04 [end_date_ymd] => 2024-12-26 20:42:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:42:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:42:17] Production.INFO: count ==2440 [2024-12-26 20:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:42:04 - End Time 2024-12-26 20:42:04 [2024-12-26 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109371', 'tblTempUsageDetail_20' ) start [2024-12-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109371', 'tblTempUsageDetail_20' ) end [2024-12-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109371', 'tblTempVendorCDR_20' ) start [2024-12-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109371', 'tblTempVendorCDR_20' ) end [2024-12-26 20:42:18] Production.INFO: ProcessCDR(1,14109371,1,1,2) [2024-12-26 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109371', 'tblTempUsageDetail_20' ) start [2024-12-26 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109371', 'tblTempUsageDetail_20' ) end [2024-12-26 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:42:21] Production.INFO: ==30086== Releasing lock... [2024-12-26 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:42:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-26 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:43:05 [end_date_ymd] => 2024-12-26 20:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:43:17] Production.INFO: count ==2364 [2024-12-26 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:43:05 - End Time 2024-12-26 20:43:05 [2024-12-26 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109376', 'tblTempUsageDetail_20' ) start [2024-12-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109376', 'tblTempUsageDetail_20' ) end [2024-12-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109376', 'tblTempVendorCDR_20' ) start [2024-12-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109376', 'tblTempVendorCDR_20' ) end [2024-12-26 20:43:18] Production.INFO: ProcessCDR(1,14109376,1,1,2) [2024-12-26 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109376', 'tblTempUsageDetail_20' ) start [2024-12-26 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109376', 'tblTempUsageDetail_20' ) end [2024-12-26 20:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:43:23] Production.INFO: ==30159== Releasing lock... [2024-12-26 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:43:23] Production.INFO: 46 MB #Memory Used# [2024-12-26 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:44:04 [end_date_ymd] => 2024-12-26 20:44:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:44:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:44:17] Production.INFO: count ==2300 [2024-12-26 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:44:04 - End Time 2024-12-26 20:44:04 [2024-12-26 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109381', 'tblTempUsageDetail_20' ) start [2024-12-26 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109381', 'tblTempUsageDetail_20' ) end [2024-12-26 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109381', 'tblTempVendorCDR_20' ) start [2024-12-26 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109381', 'tblTempVendorCDR_20' ) end [2024-12-26 20:44:17] Production.INFO: ProcessCDR(1,14109381,1,1,2) [2024-12-26 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109381', 'tblTempUsageDetail_20' ) start [2024-12-26 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109381', 'tblTempUsageDetail_20' ) end [2024-12-26 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:44:20] Production.INFO: ==30236== Releasing lock... [2024-12-26 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:44:20] Production.INFO: 45.5 MB #Memory Used# [2024-12-26 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:45:05 [end_date_ymd] => 2024-12-26 20:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:45:18] Production.INFO: count ==2217 [2024-12-26 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:45:05 - End Time 2024-12-26 20:45:05 [2024-12-26 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109386', 'tblTempUsageDetail_20' ) start [2024-12-26 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109386', 'tblTempUsageDetail_20' ) end [2024-12-26 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109386', 'tblTempVendorCDR_20' ) start [2024-12-26 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109386', 'tblTempVendorCDR_20' ) end [2024-12-26 20:45:19] Production.INFO: ProcessCDR(1,14109386,1,1,2) [2024-12-26 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109386', 'tblTempUsageDetail_20' ) start [2024-12-26 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109386', 'tblTempUsageDetail_20' ) end [2024-12-26 20:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:45:22] Production.INFO: ==30309== Releasing lock... [2024-12-26 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:45:22] Production.INFO: 45 MB #Memory Used# [2024-12-26 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:46:05 [end_date_ymd] => 2024-12-26 20:46:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:46:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:46:18] Production.INFO: count ==2151 [2024-12-26 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:46:05 - End Time 2024-12-26 20:46:05 [2024-12-26 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109391', 'tblTempUsageDetail_20' ) start [2024-12-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109391', 'tblTempUsageDetail_20' ) end [2024-12-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109391', 'tblTempVendorCDR_20' ) start [2024-12-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109391', 'tblTempVendorCDR_20' ) end [2024-12-26 20:46:18] Production.INFO: ProcessCDR(1,14109391,1,1,2) [2024-12-26 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109391', 'tblTempUsageDetail_20' ) start [2024-12-26 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109391', 'tblTempUsageDetail_20' ) end [2024-12-26 20:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:46:22] Production.INFO: ==30385== Releasing lock... [2024-12-26 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:46:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-26 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:47:04 [end_date_ymd] => 2024-12-26 20:47:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:47:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:47:17] Production.INFO: count ==2094 [2024-12-26 20:47:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:47:04 - End Time 2024-12-26 20:47:04 [2024-12-26 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109396', 'tblTempUsageDetail_20' ) start [2024-12-26 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109396', 'tblTempUsageDetail_20' ) end [2024-12-26 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109396', 'tblTempVendorCDR_20' ) start [2024-12-26 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109396', 'tblTempVendorCDR_20' ) end [2024-12-26 20:47:17] Production.INFO: ProcessCDR(1,14109396,1,1,2) [2024-12-26 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109396', 'tblTempUsageDetail_20' ) start [2024-12-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109396', 'tblTempUsageDetail_20' ) end [2024-12-26 20:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:47:22] Production.INFO: ==30462== Releasing lock... [2024-12-26 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:47:22] Production.INFO: 44 MB #Memory Used# [2024-12-26 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:48:05 [end_date_ymd] => 2024-12-26 20:48:05 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:48:05' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:48:18] Production.INFO: count ==2031 [2024-12-26 20:48:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:48:05 - End Time 2024-12-26 20:48:05 [2024-12-26 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109401', 'tblTempUsageDetail_20' ) start [2024-12-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109401', 'tblTempUsageDetail_20' ) end [2024-12-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109401', 'tblTempVendorCDR_20' ) start [2024-12-26 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109401', 'tblTempVendorCDR_20' ) end [2024-12-26 20:48:19] Production.INFO: ProcessCDR(1,14109401,1,1,2) [2024-12-26 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109401', 'tblTempUsageDetail_20' ) start [2024-12-26 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109401', 'tblTempUsageDetail_20' ) end [2024-12-26 20:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:48:22] Production.INFO: ==30578== Releasing lock... [2024-12-26 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:48:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-26 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:49:05 [end_date_ymd] => 2024-12-26 20:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:49:17] Production.INFO: count ==1956 [2024-12-26 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:49:05 - End Time 2024-12-26 20:49:05 [2024-12-26 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109406', 'tblTempUsageDetail_20' ) start [2024-12-26 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109406', 'tblTempUsageDetail_20' ) end [2024-12-26 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109406', 'tblTempVendorCDR_20' ) start [2024-12-26 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109406', 'tblTempVendorCDR_20' ) end [2024-12-26 20:49:18] Production.INFO: ProcessCDR(1,14109406,1,1,2) [2024-12-26 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109406', 'tblTempUsageDetail_20' ) start [2024-12-26 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109406', 'tblTempUsageDetail_20' ) end [2024-12-26 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:49:21] Production.INFO: ==30664== Releasing lock... [2024-12-26 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:49:21] Production.INFO: 43 MB #Memory Used# [2024-12-26 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:50:06 [end_date_ymd] => 2024-12-26 20:50:06 [RateCDR] => 1 ) [2024-12-26 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:50:06' and `end` < '2024-12-26 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:50:18] Production.INFO: count ==1880 [2024-12-26 20:50:19] Production.ERROR: pbx CDR StartTime 2024-12-26 17:50:06 - End Time 2024-12-26 20:50:06 [2024-12-26 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109412', 'tblTempUsageDetail_20' ) start [2024-12-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109412', 'tblTempUsageDetail_20' ) end [2024-12-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109412', 'tblTempVendorCDR_20' ) start [2024-12-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109412', 'tblTempVendorCDR_20' ) end [2024-12-26 20:50:19] Production.INFO: ProcessCDR(1,14109412,1,1,2) [2024-12-26 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109412', 'tblTempUsageDetail_20' ) start [2024-12-26 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109412', 'tblTempUsageDetail_20' ) end [2024-12-26 20:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:50:22] Production.INFO: ==30743== Releasing lock... [2024-12-26 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:50:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-26 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:51:04 [end_date_ymd] => 2024-12-26 20:51:04 [RateCDR] => 1 ) [2024-12-26 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:51:04' and `end` < '2024-12-26 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:51:17] Production.INFO: count ==1772 [2024-12-26 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:51:04 - End Time 2024-12-26 20:51:04 [2024-12-26 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109417', 'tblTempUsageDetail_20' ) start [2024-12-26 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109417', 'tblTempUsageDetail_20' ) end [2024-12-26 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109417', 'tblTempVendorCDR_20' ) start [2024-12-26 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109417', 'tblTempVendorCDR_20' ) end [2024-12-26 20:51:17] Production.INFO: ProcessCDR(1,14109417,1,1,2) [2024-12-26 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109417', 'tblTempUsageDetail_20' ) start [2024-12-26 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109417', 'tblTempUsageDetail_20' ) end [2024-12-26 20:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:51:20] Production.INFO: ==30830== Releasing lock... [2024-12-26 20:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:51:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-26 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:52:04 [end_date_ymd] => 2024-12-26 20:52:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:52:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:52:17] Production.INFO: count ==1703 [2024-12-26 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:52:04 - End Time 2024-12-26 20:52:04 [2024-12-26 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109422', 'tblTempUsageDetail_20' ) start [2024-12-26 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109422', 'tblTempUsageDetail_20' ) end [2024-12-26 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109422', 'tblTempVendorCDR_20' ) start [2024-12-26 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109422', 'tblTempVendorCDR_20' ) end [2024-12-26 20:52:17] Production.INFO: ProcessCDR(1,14109422,1,1,2) [2024-12-26 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109422', 'tblTempUsageDetail_20' ) start [2024-12-26 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109422', 'tblTempUsageDetail_20' ) end [2024-12-26 20:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:52:20] Production.INFO: ==30912== Releasing lock... [2024-12-26 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:52:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-26 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:53:05 [end_date_ymd] => 2024-12-26 20:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:53:17] Production.INFO: count ==1633 [2024-12-26 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:53:05 - End Time 2024-12-26 20:53:05 [2024-12-26 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109427', 'tblTempUsageDetail_20' ) start [2024-12-26 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109427', 'tblTempUsageDetail_20' ) end [2024-12-26 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109427', 'tblTempVendorCDR_20' ) start [2024-12-26 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109427', 'tblTempVendorCDR_20' ) end [2024-12-26 20:53:17] Production.INFO: ProcessCDR(1,14109427,1,1,2) [2024-12-26 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109427', 'tblTempUsageDetail_20' ) start [2024-12-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109427', 'tblTempUsageDetail_20' ) end [2024-12-26 20:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:53:22] Production.INFO: ==30996== Releasing lock... [2024-12-26 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:53:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-26 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:54:04 [end_date_ymd] => 2024-12-26 20:54:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:54:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:54:17] Production.INFO: count ==1608 [2024-12-26 20:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:54:04 - End Time 2024-12-26 20:54:04 [2024-12-26 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109432', 'tblTempUsageDetail_20' ) start [2024-12-26 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109432', 'tblTempUsageDetail_20' ) end [2024-12-26 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109432', 'tblTempVendorCDR_20' ) start [2024-12-26 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109432', 'tblTempVendorCDR_20' ) end [2024-12-26 20:54:17] Production.INFO: ProcessCDR(1,14109432,1,1,2) [2024-12-26 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109432', 'tblTempUsageDetail_20' ) start [2024-12-26 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109432', 'tblTempUsageDetail_20' ) end [2024-12-26 20:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:54:21] Production.INFO: ==31077== Releasing lock... [2024-12-26 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:54:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-26 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:55:05 [end_date_ymd] => 2024-12-26 20:55:05 [RateCDR] => 1 ) [2024-12-26 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:55:05' and `end` < '2024-12-26 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:55:18] Production.INFO: count ==1605 [2024-12-26 20:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:55:05 - End Time 2024-12-26 20:55:05 [2024-12-26 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109437', 'tblTempUsageDetail_20' ) start [2024-12-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109437', 'tblTempUsageDetail_20' ) end [2024-12-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109437', 'tblTempVendorCDR_20' ) start [2024-12-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109437', 'tblTempVendorCDR_20' ) end [2024-12-26 20:55:18] Production.INFO: ProcessCDR(1,14109437,1,1,2) [2024-12-26 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109437', 'tblTempUsageDetail_20' ) start [2024-12-26 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109437', 'tblTempUsageDetail_20' ) end [2024-12-26 20:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:55:21] Production.INFO: ==31157== Releasing lock... [2024-12-26 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:55:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-26 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:56:05 [end_date_ymd] => 2024-12-26 20:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:56:17] Production.INFO: count ==1604 [2024-12-26 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:56:05 - End Time 2024-12-26 20:56:05 [2024-12-26 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109442', 'tblTempUsageDetail_20' ) start [2024-12-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109442', 'tblTempUsageDetail_20' ) end [2024-12-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109442', 'tblTempVendorCDR_20' ) start [2024-12-26 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109442', 'tblTempVendorCDR_20' ) end [2024-12-26 20:56:18] Production.INFO: ProcessCDR(1,14109442,1,1,2) [2024-12-26 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109442', 'tblTempUsageDetail_20' ) start [2024-12-26 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109442', 'tblTempUsageDetail_20' ) end [2024-12-26 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:56:21] Production.INFO: ==31241== Releasing lock... [2024-12-26 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:56:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:57:05 [end_date_ymd] => 2024-12-26 20:57:05 [RateCDR] => 1 ) [2024-12-26 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 17:57:05' and `end` < '2024-12-26 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 20:57:17] Production.INFO: count ==1575 [2024-12-26 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:57:05 - End Time 2024-12-26 20:57:05 [2024-12-26 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109447', 'tblTempUsageDetail_20' ) start [2024-12-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109447', 'tblTempUsageDetail_20' ) end [2024-12-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109447', 'tblTempVendorCDR_20' ) start [2024-12-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109447', 'tblTempVendorCDR_20' ) end [2024-12-26 20:57:18] Production.INFO: ProcessCDR(1,14109447,1,1,2) [2024-12-26 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109447', 'tblTempUsageDetail_20' ) start [2024-12-26 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109447', 'tblTempUsageDetail_20' ) end [2024-12-26 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:57:21] Production.INFO: ==31324== Releasing lock... [2024-12-26 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:57:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:58:04 [end_date_ymd] => 2024-12-26 20:58:04 [RateCDR] => 1 ) [2024-12-26 20: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` >= '2024-12-26 17:58:04' and `end` < '2024-12-26 20: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 ,'') [2024-12-26 20:58:18] Production.INFO: count ==1556 [2024-12-26 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 17:58:04 - End Time 2024-12-26 20:58:04 [2024-12-26 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109452', 'tblTempUsageDetail_20' ) start [2024-12-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109452', 'tblTempUsageDetail_20' ) end [2024-12-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109452', 'tblTempVendorCDR_20' ) start [2024-12-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109452', 'tblTempVendorCDR_20' ) end [2024-12-26 20:58:18] Production.INFO: ProcessCDR(1,14109452,1,1,2) [2024-12-26 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109452', 'tblTempUsageDetail_20' ) start [2024-12-26 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109452', 'tblTempUsageDetail_20' ) end [2024-12-26 20:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:58:23] Production.INFO: ==31403== Releasing lock... [2024-12-26 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:58:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-26 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 17:59:05 [end_date_ymd] => 2024-12-26 20:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 17:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 20:59:17] Production.INFO: count ==1527 [2024-12-26 20:59:17] Production.ERROR: pbx CDR StartTime 2024-12-26 17:59:05 - End Time 2024-12-26 20:59:05 [2024-12-26 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109457', 'tblTempUsageDetail_20' ) start [2024-12-26 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109457', 'tblTempUsageDetail_20' ) end [2024-12-26 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109457', 'tblTempVendorCDR_20' ) start [2024-12-26 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109457', 'tblTempVendorCDR_20' ) end [2024-12-26 20:59:17] Production.INFO: ProcessCDR(1,14109457,1,1,2) [2024-12-26 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109457', 'tblTempUsageDetail_20' ) start [2024-12-26 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109457', 'tblTempUsageDetail_20' ) end [2024-12-26 20:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 20:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 20:59:20] Production.INFO: ==31486== Releasing lock... [2024-12-26 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 20:59:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-26 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:00:06 [end_date_ymd] => 2024-12-26 21:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:00:18] Production.INFO: count ==1494 [2024-12-26 21:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:00:06 - End Time 2024-12-26 21:00:06 [2024-12-26 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109463', 'tblTempUsageDetail_20' ) start [2024-12-26 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109463', 'tblTempUsageDetail_20' ) end [2024-12-26 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109463', 'tblTempVendorCDR_20' ) start [2024-12-26 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109463', 'tblTempVendorCDR_20' ) end [2024-12-26 21:00:18] Production.INFO: ProcessCDR(1,14109463,1,1,2) [2024-12-26 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109463', 'tblTempUsageDetail_20' ) start [2024-12-26 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109463', 'tblTempUsageDetail_20' ) end [2024-12-26 21:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:00:21] Production.INFO: ==31568== Releasing lock... [2024-12-26 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:00:21] Production.INFO: 39 MB #Memory Used# [2024-12-26 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:01:04 [end_date_ymd] => 2024-12-26 21:01:04 [RateCDR] => 1 ) [2024-12-26 21:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:01:04' and `end` < '2024-12-26 21:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:01:17] Production.INFO: count ==1444 [2024-12-26 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:01:04 - End Time 2024-12-26 21:01:04 [2024-12-26 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109468', 'tblTempUsageDetail_20' ) start [2024-12-26 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109468', 'tblTempUsageDetail_20' ) end [2024-12-26 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109468', 'tblTempVendorCDR_20' ) start [2024-12-26 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109468', 'tblTempVendorCDR_20' ) end [2024-12-26 21:01:17] Production.INFO: ProcessCDR(1,14109468,1,1,2) [2024-12-26 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109468', 'tblTempUsageDetail_20' ) start [2024-12-26 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109468', 'tblTempUsageDetail_20' ) end [2024-12-26 21:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:01:20] Production.INFO: ==31667== Releasing lock... [2024-12-26 21:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:01:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:02:05 [end_date_ymd] => 2024-12-26 21:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:02:18] Production.INFO: count ==1426 [2024-12-26 21:02:19] Production.ERROR: pbx CDR StartTime 2024-12-26 18:02:05 - End Time 2024-12-26 21:02:05 [2024-12-26 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109473', 'tblTempUsageDetail_20' ) start [2024-12-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109473', 'tblTempUsageDetail_20' ) end [2024-12-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109473', 'tblTempVendorCDR_20' ) start [2024-12-26 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109473', 'tblTempVendorCDR_20' ) end [2024-12-26 21:02:19] Production.INFO: ProcessCDR(1,14109473,1,1,2) [2024-12-26 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109473', 'tblTempUsageDetail_20' ) start [2024-12-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109473', 'tblTempUsageDetail_20' ) end [2024-12-26 21:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:02:23] Production.INFO: ==31755== Releasing lock... [2024-12-26 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:02:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:03:04 [end_date_ymd] => 2024-12-26 21:03:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:03:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:03:17] Production.INFO: count ==1426 [2024-12-26 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:03:04 - End Time 2024-12-26 21:03:04 [2024-12-26 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109478', 'tblTempUsageDetail_20' ) start [2024-12-26 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109478', 'tblTempUsageDetail_20' ) end [2024-12-26 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109478', 'tblTempVendorCDR_20' ) start [2024-12-26 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109478', 'tblTempVendorCDR_20' ) end [2024-12-26 21:03:17] Production.INFO: ProcessCDR(1,14109478,1,1,2) [2024-12-26 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109478', 'tblTempUsageDetail_20' ) start [2024-12-26 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109478', 'tblTempUsageDetail_20' ) end [2024-12-26 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:03:20] Production.INFO: ==31835== Releasing lock... [2024-12-26 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:03:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:04:05 [end_date_ymd] => 2024-12-26 21:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:04:17] Production.INFO: count ==1426 [2024-12-26 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:04:05 - End Time 2024-12-26 21:04:05 [2024-12-26 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109483', 'tblTempUsageDetail_20' ) start [2024-12-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109483', 'tblTempUsageDetail_20' ) end [2024-12-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109483', 'tblTempVendorCDR_20' ) start [2024-12-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109483', 'tblTempVendorCDR_20' ) end [2024-12-26 21:04:18] Production.INFO: ProcessCDR(1,14109483,1,1,2) [2024-12-26 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109483', 'tblTempUsageDetail_20' ) start [2024-12-26 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109483', 'tblTempUsageDetail_20' ) end [2024-12-26 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:04:21] Production.INFO: ==31963== Releasing lock... [2024-12-26 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:04:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:05:05 [end_date_ymd] => 2024-12-26 21:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:05:17] Production.INFO: count ==1426 [2024-12-26 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:05:05 - End Time 2024-12-26 21:05:05 [2024-12-26 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109488', 'tblTempUsageDetail_20' ) start [2024-12-26 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109488', 'tblTempUsageDetail_20' ) end [2024-12-26 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109488', 'tblTempVendorCDR_20' ) start [2024-12-26 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109488', 'tblTempVendorCDR_20' ) end [2024-12-26 21:05:17] Production.INFO: ProcessCDR(1,14109488,1,1,2) [2024-12-26 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109488', 'tblTempUsageDetail_20' ) start [2024-12-26 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109488', 'tblTempUsageDetail_20' ) end [2024-12-26 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:05:20] Production.INFO: ==32040== Releasing lock... [2024-12-26 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:05:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:06:04 [end_date_ymd] => 2024-12-26 21:06:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:06:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:06:17] Production.INFO: count ==1425 [2024-12-26 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:06:04 - End Time 2024-12-26 21:06:04 [2024-12-26 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109493', 'tblTempUsageDetail_20' ) start [2024-12-26 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109493', 'tblTempUsageDetail_20' ) end [2024-12-26 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109493', 'tblTempVendorCDR_20' ) start [2024-12-26 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109493', 'tblTempVendorCDR_20' ) end [2024-12-26 21:06:17] Production.INFO: ProcessCDR(1,14109493,1,1,2) [2024-12-26 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109493', 'tblTempUsageDetail_20' ) start [2024-12-26 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109493', 'tblTempUsageDetail_20' ) end [2024-12-26 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:06:20] Production.INFO: ==32135== Releasing lock... [2024-12-26 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:06:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:07:05 [end_date_ymd] => 2024-12-26 21:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:07:18] Production.INFO: count ==1428 [2024-12-26 21:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:07:05 - End Time 2024-12-26 21:07:05 [2024-12-26 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109498', 'tblTempUsageDetail_20' ) start [2024-12-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109498', 'tblTempUsageDetail_20' ) end [2024-12-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109498', 'tblTempVendorCDR_20' ) start [2024-12-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109498', 'tblTempVendorCDR_20' ) end [2024-12-26 21:07:18] Production.INFO: ProcessCDR(1,14109498,1,1,2) [2024-12-26 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109498', 'tblTempUsageDetail_20' ) start [2024-12-26 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109498', 'tblTempUsageDetail_20' ) end [2024-12-26 21:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:07:21] Production.INFO: ==32222== Releasing lock... [2024-12-26 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:07:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:08:05 [end_date_ymd] => 2024-12-26 21:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:08:18] Production.INFO: count ==1429 [2024-12-26 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:08:05 - End Time 2024-12-26 21:08:05 [2024-12-26 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109503', 'tblTempUsageDetail_20' ) start [2024-12-26 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109503', 'tblTempUsageDetail_20' ) end [2024-12-26 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109503', 'tblTempVendorCDR_20' ) start [2024-12-26 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109503', 'tblTempVendorCDR_20' ) end [2024-12-26 21:08:18] Production.INFO: ProcessCDR(1,14109503,1,1,2) [2024-12-26 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109503', 'tblTempUsageDetail_20' ) start [2024-12-26 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109503', 'tblTempUsageDetail_20' ) end [2024-12-26 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:08:21] Production.INFO: ==32300== Releasing lock... [2024-12-26 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:08:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-26 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:09:05 [end_date_ymd] => 2024-12-26 21:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:09:17] Production.INFO: count ==1399 [2024-12-26 21:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:09:05 - End Time 2024-12-26 21:09:05 [2024-12-26 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109508', 'tblTempUsageDetail_20' ) start [2024-12-26 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109508', 'tblTempUsageDetail_20' ) end [2024-12-26 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109508', 'tblTempVendorCDR_20' ) start [2024-12-26 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109508', 'tblTempVendorCDR_20' ) end [2024-12-26 21:09:17] Production.INFO: ProcessCDR(1,14109508,1,1,2) [2024-12-26 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109508', 'tblTempUsageDetail_20' ) start [2024-12-26 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109508', 'tblTempUsageDetail_20' ) end [2024-12-26 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:09:21] Production.INFO: ==32386== Releasing lock... [2024-12-26 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:09:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-26 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:10:05 [end_date_ymd] => 2024-12-26 21:10:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:10:05' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:10:18] Production.INFO: count ==1365 [2024-12-26 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:10:05 - End Time 2024-12-26 21:10:05 [2024-12-26 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109514', 'tblTempUsageDetail_20' ) start [2024-12-26 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109514', 'tblTempUsageDetail_20' ) end [2024-12-26 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109514', 'tblTempVendorCDR_20' ) start [2024-12-26 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109514', 'tblTempVendorCDR_20' ) end [2024-12-26 21:10:18] Production.INFO: ProcessCDR(1,14109514,1,1,2) [2024-12-26 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109514', 'tblTempUsageDetail_20' ) start [2024-12-26 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109514', 'tblTempUsageDetail_20' ) end [2024-12-26 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:10:21] Production.INFO: ==32466== Releasing lock... [2024-12-26 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:10:21] Production.INFO: 38 MB #Memory Used# [2024-12-26 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:11:05 [end_date_ymd] => 2024-12-26 21:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:11:18] Production.INFO: count ==1318 [2024-12-26 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:11:05 - End Time 2024-12-26 21:11:05 [2024-12-26 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109519', 'tblTempUsageDetail_20' ) start [2024-12-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109519', 'tblTempUsageDetail_20' ) end [2024-12-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109519', 'tblTempVendorCDR_20' ) start [2024-12-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109519', 'tblTempVendorCDR_20' ) end [2024-12-26 21:11:18] Production.INFO: ProcessCDR(1,14109519,1,1,2) [2024-12-26 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109519', 'tblTempUsageDetail_20' ) start [2024-12-26 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109519', 'tblTempUsageDetail_20' ) end [2024-12-26 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:11:21] Production.INFO: ==32562== Releasing lock... [2024-12-26 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:11:21] Production.INFO: 38 MB #Memory Used# [2024-12-26 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:12:04 [end_date_ymd] => 2024-12-26 21:12:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:12:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:12:17] Production.INFO: count ==1292 [2024-12-26 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:12:04 - End Time 2024-12-26 21:12:04 [2024-12-26 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109524', 'tblTempUsageDetail_20' ) start [2024-12-26 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109524', 'tblTempUsageDetail_20' ) end [2024-12-26 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109524', 'tblTempVendorCDR_20' ) start [2024-12-26 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109524', 'tblTempVendorCDR_20' ) end [2024-12-26 21:12:17] Production.INFO: ProcessCDR(1,14109524,1,1,2) [2024-12-26 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109524', 'tblTempUsageDetail_20' ) start [2024-12-26 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109524', 'tblTempUsageDetail_20' ) end [2024-12-26 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:12:20] Production.INFO: ==32641== Releasing lock... [2024-12-26 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:12:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:13:04 [end_date_ymd] => 2024-12-26 21:13:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:13:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:13:17] Production.INFO: count ==1280 [2024-12-26 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:13:04 - End Time 2024-12-26 21:13:04 [2024-12-26 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109529', 'tblTempUsageDetail_20' ) start [2024-12-26 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109529', 'tblTempUsageDetail_20' ) end [2024-12-26 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109529', 'tblTempVendorCDR_20' ) start [2024-12-26 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109529', 'tblTempVendorCDR_20' ) end [2024-12-26 21:13:18] Production.INFO: ProcessCDR(1,14109529,1,1,2) [2024-12-26 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109529', 'tblTempUsageDetail_20' ) start [2024-12-26 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109529', 'tblTempUsageDetail_20' ) end [2024-12-26 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:13:21] Production.INFO: ==32730== Releasing lock... [2024-12-26 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:13:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:14:05 [end_date_ymd] => 2024-12-26 21:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:14:17] Production.INFO: count ==1283 [2024-12-26 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:14:05 - End Time 2024-12-26 21:14:05 [2024-12-26 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109534', 'tblTempUsageDetail_20' ) start [2024-12-26 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109534', 'tblTempUsageDetail_20' ) end [2024-12-26 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109534', 'tblTempVendorCDR_20' ) start [2024-12-26 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109534', 'tblTempVendorCDR_20' ) end [2024-12-26 21:14:17] Production.INFO: ProcessCDR(1,14109534,1,1,2) [2024-12-26 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109534', 'tblTempUsageDetail_20' ) start [2024-12-26 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109534', 'tblTempUsageDetail_20' ) end [2024-12-26 21:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:14:20] Production.INFO: ==364== Releasing lock... [2024-12-26 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:14:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-26 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:15:04 [end_date_ymd] => 2024-12-26 21:15:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:15:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:15:17] Production.INFO: count ==1271 [2024-12-26 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:15:04 - End Time 2024-12-26 21:15:04 [2024-12-26 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109539', 'tblTempUsageDetail_20' ) start [2024-12-26 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109539', 'tblTempUsageDetail_20' ) end [2024-12-26 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109539', 'tblTempVendorCDR_20' ) start [2024-12-26 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109539', 'tblTempVendorCDR_20' ) end [2024-12-26 21:15:17] Production.INFO: ProcessCDR(1,14109539,1,1,2) [2024-12-26 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109539', 'tblTempUsageDetail_20' ) start [2024-12-26 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109539', 'tblTempUsageDetail_20' ) end [2024-12-26 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:15:22] Production.INFO: ==448== Releasing lock... [2024-12-26 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:15:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:16:05 [end_date_ymd] => 2024-12-26 21:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:16:19] Production.INFO: count ==1253 [2024-12-26 21:16:19] Production.ERROR: pbx CDR StartTime 2024-12-26 18:16:05 - End Time 2024-12-26 21:16:05 [2024-12-26 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109544', 'tblTempUsageDetail_20' ) start [2024-12-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109544', 'tblTempUsageDetail_20' ) end [2024-12-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109544', 'tblTempVendorCDR_20' ) start [2024-12-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109544', 'tblTempVendorCDR_20' ) end [2024-12-26 21:16:19] Production.INFO: ProcessCDR(1,14109544,1,1,2) [2024-12-26 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109544', 'tblTempUsageDetail_20' ) start [2024-12-26 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109544', 'tblTempUsageDetail_20' ) end [2024-12-26 21:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:16:24] Production.INFO: ==552== Releasing lock... [2024-12-26 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:16:24] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:17:04 [end_date_ymd] => 2024-12-26 21:17:04 [RateCDR] => 1 ) [2024-12-26 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:17:04' and `end` < '2024-12-26 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:17:17] Production.INFO: count ==1249 [2024-12-26 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:17:04 - End Time 2024-12-26 21:17:04 [2024-12-26 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109549', 'tblTempUsageDetail_20' ) start [2024-12-26 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109549', 'tblTempUsageDetail_20' ) end [2024-12-26 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109549', 'tblTempVendorCDR_20' ) start [2024-12-26 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109549', 'tblTempVendorCDR_20' ) end [2024-12-26 21:17:17] Production.INFO: ProcessCDR(1,14109549,1,1,2) [2024-12-26 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109549', 'tblTempUsageDetail_20' ) start [2024-12-26 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109549', 'tblTempUsageDetail_20' ) end [2024-12-26 21:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:17:21] Production.INFO: ==640== Releasing lock... [2024-12-26 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:17:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:18:04 [end_date_ymd] => 2024-12-26 21:18:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:18:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:18:17] Production.INFO: count ==1250 [2024-12-26 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:18:04 - End Time 2024-12-26 21:18:04 [2024-12-26 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109554', 'tblTempUsageDetail_20' ) start [2024-12-26 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109554', 'tblTempUsageDetail_20' ) end [2024-12-26 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109554', 'tblTempVendorCDR_20' ) start [2024-12-26 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109554', 'tblTempVendorCDR_20' ) end [2024-12-26 21:18:17] Production.INFO: ProcessCDR(1,14109554,1,1,2) [2024-12-26 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109554', 'tblTempUsageDetail_20' ) start [2024-12-26 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109554', 'tblTempUsageDetail_20' ) end [2024-12-26 21:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:18:21] Production.INFO: ==751== Releasing lock... [2024-12-26 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:18:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:19:05 [end_date_ymd] => 2024-12-26 21:19:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:19:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:19:19] Production.INFO: count ==1250 [2024-12-26 21:19:19] Production.ERROR: pbx CDR StartTime 2024-12-26 18:19:05 - End Time 2024-12-26 21:19:05 [2024-12-26 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109559', 'tblTempUsageDetail_20' ) start [2024-12-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109559', 'tblTempUsageDetail_20' ) end [2024-12-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109559', 'tblTempVendorCDR_20' ) start [2024-12-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109559', 'tblTempVendorCDR_20' ) end [2024-12-26 21:19:19] Production.INFO: ProcessCDR(1,14109559,1,1,2) [2024-12-26 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109559', 'tblTempUsageDetail_20' ) start [2024-12-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109559', 'tblTempUsageDetail_20' ) end [2024-12-26 21:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:19:22] Production.INFO: ==839== Releasing lock... [2024-12-26 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:19:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:20:06 [end_date_ymd] => 2024-12-26 21:20:06 [RateCDR] => 1 ) [2024-12-26 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:20:06' and `end` < '2024-12-26 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:20:18] Production.INFO: count ==1249 [2024-12-26 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:20:06 - End Time 2024-12-26 21:20:06 [2024-12-26 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109565', 'tblTempUsageDetail_20' ) start [2024-12-26 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109565', 'tblTempUsageDetail_20' ) end [2024-12-26 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109565', 'tblTempVendorCDR_20' ) start [2024-12-26 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109565', 'tblTempVendorCDR_20' ) end [2024-12-26 21:20:18] Production.INFO: ProcessCDR(1,14109565,1,1,2) [2024-12-26 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109565', 'tblTempUsageDetail_20' ) start [2024-12-26 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109565', 'tblTempUsageDetail_20' ) end [2024-12-26 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:20:21] Production.INFO: ==958== Releasing lock... [2024-12-26 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:20:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:21:05 [end_date_ymd] => 2024-12-26 21:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:21:17] Production.INFO: count ==1246 [2024-12-26 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:21:05 - End Time 2024-12-26 21:21:05 [2024-12-26 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109570', 'tblTempUsageDetail_20' ) start [2024-12-26 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109570', 'tblTempUsageDetail_20' ) end [2024-12-26 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109570', 'tblTempVendorCDR_20' ) start [2024-12-26 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109570', 'tblTempVendorCDR_20' ) end [2024-12-26 21:21:17] Production.INFO: ProcessCDR(1,14109570,1,1,2) [2024-12-26 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109570', 'tblTempUsageDetail_20' ) start [2024-12-26 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109570', 'tblTempUsageDetail_20' ) end [2024-12-26 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:21:20] Production.INFO: ==1054== Releasing lock... [2024-12-26 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:21:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:22:06 [end_date_ymd] => 2024-12-26 21:22:06 [RateCDR] => 1 ) [2024-12-26 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:22:06' and `end` < '2024-12-26 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:22:19] Production.INFO: count ==1246 [2024-12-26 21:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 18:22:06 - End Time 2024-12-26 21:22:06 [2024-12-26 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109575', 'tblTempUsageDetail_20' ) start [2024-12-26 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109575', 'tblTempUsageDetail_20' ) end [2024-12-26 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109575', 'tblTempVendorCDR_20' ) start [2024-12-26 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109575', 'tblTempVendorCDR_20' ) end [2024-12-26 21:22:19] Production.INFO: ProcessCDR(1,14109575,1,1,2) [2024-12-26 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109575', 'tblTempUsageDetail_20' ) start [2024-12-26 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109575', 'tblTempUsageDetail_20' ) end [2024-12-26 21:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:22:22] Production.INFO: ==1140== Releasing lock... [2024-12-26 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:22:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:23:04 [end_date_ymd] => 2024-12-26 21:23:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:23:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:23:17] Production.INFO: count ==1246 [2024-12-26 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:23:04 - End Time 2024-12-26 21:23:04 [2024-12-26 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109580', 'tblTempUsageDetail_20' ) start [2024-12-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109580', 'tblTempUsageDetail_20' ) end [2024-12-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109580', 'tblTempVendorCDR_20' ) start [2024-12-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109580', 'tblTempVendorCDR_20' ) end [2024-12-26 21:23:18] Production.INFO: ProcessCDR(1,14109580,1,1,2) [2024-12-26 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109580', 'tblTempUsageDetail_20' ) start [2024-12-26 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109580', 'tblTempUsageDetail_20' ) end [2024-12-26 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:23:21] Production.INFO: ==1228== Releasing lock... [2024-12-26 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:23:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:24:05 [end_date_ymd] => 2024-12-26 21:24:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:24:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:24:17] Production.INFO: count ==1246 [2024-12-26 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:24:05 - End Time 2024-12-26 21:24:05 [2024-12-26 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109584', 'tblTempUsageDetail_20' ) start [2024-12-26 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109584', 'tblTempUsageDetail_20' ) end [2024-12-26 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109584', 'tblTempVendorCDR_20' ) start [2024-12-26 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109584', 'tblTempVendorCDR_20' ) end [2024-12-26 21:24:18] Production.INFO: ProcessCDR(1,14109584,1,1,2) [2024-12-26 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109584', 'tblTempUsageDetail_20' ) start [2024-12-26 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109584', 'tblTempUsageDetail_20' ) end [2024-12-26 21:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:24:21] Production.INFO: ==1329== Releasing lock... [2024-12-26 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:24:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:25:05 [end_date_ymd] => 2024-12-26 21:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:25:17] Production.INFO: count ==1245 [2024-12-26 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:25:05 - End Time 2024-12-26 21:25:05 [2024-12-26 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109590', 'tblTempUsageDetail_20' ) start [2024-12-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109590', 'tblTempUsageDetail_20' ) end [2024-12-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109590', 'tblTempVendorCDR_20' ) start [2024-12-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109590', 'tblTempVendorCDR_20' ) end [2024-12-26 21:25:18] Production.INFO: ProcessCDR(1,14109590,1,1,2) [2024-12-26 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109590', 'tblTempUsageDetail_20' ) start [2024-12-26 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109590', 'tblTempUsageDetail_20' ) end [2024-12-26 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:25:21] Production.INFO: ==1413== Releasing lock... [2024-12-26 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:25:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:26:05 [end_date_ymd] => 2024-12-26 21:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:26:18] Production.INFO: count ==1244 [2024-12-26 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:26:05 - End Time 2024-12-26 21:26:05 [2024-12-26 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109595', 'tblTempUsageDetail_20' ) start [2024-12-26 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109595', 'tblTempUsageDetail_20' ) end [2024-12-26 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109595', 'tblTempVendorCDR_20' ) start [2024-12-26 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109595', 'tblTempVendorCDR_20' ) end [2024-12-26 21:26:18] Production.INFO: ProcessCDR(1,14109595,1,1,2) [2024-12-26 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109595', 'tblTempUsageDetail_20' ) start [2024-12-26 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109595', 'tblTempUsageDetail_20' ) end [2024-12-26 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:26:21] Production.INFO: ==1493== Releasing lock... [2024-12-26 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:26:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:27:04 [end_date_ymd] => 2024-12-26 21:27:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:27:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:27:16] Production.INFO: count ==1241 [2024-12-26 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:27:04 - End Time 2024-12-26 21:27:04 [2024-12-26 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109600', 'tblTempUsageDetail_20' ) start [2024-12-26 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109600', 'tblTempUsageDetail_20' ) end [2024-12-26 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109600', 'tblTempVendorCDR_20' ) start [2024-12-26 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109600', 'tblTempVendorCDR_20' ) end [2024-12-26 21:27:17] Production.INFO: ProcessCDR(1,14109600,1,1,2) [2024-12-26 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109600', 'tblTempUsageDetail_20' ) start [2024-12-26 21:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109600', 'tblTempUsageDetail_20' ) end [2024-12-26 21:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:27:20] Production.INFO: ==1609== Releasing lock... [2024-12-26 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:27:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:28:05 [end_date_ymd] => 2024-12-26 21:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:28:18] Production.INFO: count ==1240 [2024-12-26 21:28:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:28:05 - End Time 2024-12-26 21:28:05 [2024-12-26 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109605', 'tblTempUsageDetail_20' ) start [2024-12-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109605', 'tblTempUsageDetail_20' ) end [2024-12-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109605', 'tblTempVendorCDR_20' ) start [2024-12-26 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109605', 'tblTempVendorCDR_20' ) end [2024-12-26 21:28:18] Production.INFO: ProcessCDR(1,14109605,1,1,2) [2024-12-26 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109605', 'tblTempUsageDetail_20' ) start [2024-12-26 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109605', 'tblTempUsageDetail_20' ) end [2024-12-26 21:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:28:21] Production.INFO: ==1698== Releasing lock... [2024-12-26 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:28:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:29:04 [end_date_ymd] => 2024-12-26 21:29:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:29:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:29:17] Production.INFO: count ==1235 [2024-12-26 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:29:04 - End Time 2024-12-26 21:29:04 [2024-12-26 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109610', 'tblTempUsageDetail_20' ) start [2024-12-26 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109610', 'tblTempUsageDetail_20' ) end [2024-12-26 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109610', 'tblTempVendorCDR_20' ) start [2024-12-26 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109610', 'tblTempVendorCDR_20' ) end [2024-12-26 21:29:17] Production.INFO: ProcessCDR(1,14109610,1,1,2) [2024-12-26 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109610', 'tblTempUsageDetail_20' ) start [2024-12-26 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109610', 'tblTempUsageDetail_20' ) end [2024-12-26 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:29:21] Production.INFO: ==1779== Releasing lock... [2024-12-26 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:29:21] Production.INFO: 37 MB #Memory Used# [2024-12-26 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:30:05 [end_date_ymd] => 2024-12-26 21:30:05 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:30:05' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:30:18] Production.INFO: count ==1233 [2024-12-26 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:30:05 - End Time 2024-12-26 21:30:05 [2024-12-26 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109616', 'tblTempUsageDetail_20' ) start [2024-12-26 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109616', 'tblTempUsageDetail_20' ) end [2024-12-26 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109616', 'tblTempVendorCDR_20' ) start [2024-12-26 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109616', 'tblTempVendorCDR_20' ) end [2024-12-26 21:30:18] Production.INFO: ProcessCDR(1,14109616,1,1,2) [2024-12-26 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109616', 'tblTempUsageDetail_20' ) start [2024-12-26 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109616', 'tblTempUsageDetail_20' ) end [2024-12-26 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:30:21] Production.INFO: ==1868== Releasing lock... [2024-12-26 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:30:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:31:05 [end_date_ymd] => 2024-12-26 21:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:31:18] Production.INFO: count ==1198 [2024-12-26 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:31:05 - End Time 2024-12-26 21:31:05 [2024-12-26 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109621', 'tblTempUsageDetail_20' ) start [2024-12-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109621', 'tblTempUsageDetail_20' ) end [2024-12-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109621', 'tblTempVendorCDR_20' ) start [2024-12-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109621', 'tblTempVendorCDR_20' ) end [2024-12-26 21:31:18] Production.INFO: ProcessCDR(1,14109621,1,1,2) [2024-12-26 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109621', 'tblTempUsageDetail_20' ) start [2024-12-26 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109621', 'tblTempUsageDetail_20' ) end [2024-12-26 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:31:21] Production.INFO: ==1961== Releasing lock... [2024-12-26 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:31:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:32:04 [end_date_ymd] => 2024-12-26 21:32:04 [RateCDR] => 1 ) [2024-12-26 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:32:04' and `end` < '2024-12-26 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:32:17] Production.INFO: count ==1196 [2024-12-26 21:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:32:04 - End Time 2024-12-26 21:32:04 [2024-12-26 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109626', 'tblTempUsageDetail_20' ) start [2024-12-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109626', 'tblTempUsageDetail_20' ) end [2024-12-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109626', 'tblTempVendorCDR_20' ) start [2024-12-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109626', 'tblTempVendorCDR_20' ) end [2024-12-26 21:32:18] Production.INFO: ProcessCDR(1,14109626,1,1,2) [2024-12-26 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109626', 'tblTempUsageDetail_20' ) start [2024-12-26 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109626', 'tblTempUsageDetail_20' ) end [2024-12-26 21:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:32:21] Production.INFO: ==2040== Releasing lock... [2024-12-26 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:32:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:33:05 [end_date_ymd] => 2024-12-26 21:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:33:19] Production.INFO: count ==1196 [2024-12-26 21:33:19] Production.ERROR: pbx CDR StartTime 2024-12-26 18:33:05 - End Time 2024-12-26 21:33:05 [2024-12-26 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109631', 'tblTempUsageDetail_20' ) start [2024-12-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109631', 'tblTempUsageDetail_20' ) end [2024-12-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109631', 'tblTempVendorCDR_20' ) start [2024-12-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109631', 'tblTempVendorCDR_20' ) end [2024-12-26 21:33:19] Production.INFO: ProcessCDR(1,14109631,1,1,2) [2024-12-26 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109631', 'tblTempUsageDetail_20' ) start [2024-12-26 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109631', 'tblTempUsageDetail_20' ) end [2024-12-26 21:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:33:23] Production.INFO: ==2128== Releasing lock... [2024-12-26 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:33:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:34:04 [end_date_ymd] => 2024-12-26 21:34:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:34:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:34:18] Production.INFO: count ==1196 [2024-12-26 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:34:04 - End Time 2024-12-26 21:34:04 [2024-12-26 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109636', 'tblTempUsageDetail_20' ) start [2024-12-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109636', 'tblTempUsageDetail_20' ) end [2024-12-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109636', 'tblTempVendorCDR_20' ) start [2024-12-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109636', 'tblTempVendorCDR_20' ) end [2024-12-26 21:34:18] Production.INFO: ProcessCDR(1,14109636,1,1,2) [2024-12-26 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109636', 'tblTempUsageDetail_20' ) start [2024-12-26 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109636', 'tblTempUsageDetail_20' ) end [2024-12-26 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:34:22] Production.INFO: ==2211== Releasing lock... [2024-12-26 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:34:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:35:05 [end_date_ymd] => 2024-12-26 21:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:35:17] Production.INFO: count ==1196 [2024-12-26 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:35:05 - End Time 2024-12-26 21:35:05 [2024-12-26 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109641', 'tblTempUsageDetail_20' ) start [2024-12-26 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109641', 'tblTempUsageDetail_20' ) end [2024-12-26 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109641', 'tblTempVendorCDR_20' ) start [2024-12-26 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109641', 'tblTempVendorCDR_20' ) end [2024-12-26 21:35:17] Production.INFO: ProcessCDR(1,14109641,1,1,2) [2024-12-26 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109641', 'tblTempUsageDetail_20' ) start [2024-12-26 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109641', 'tblTempUsageDetail_20' ) end [2024-12-26 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:35:20] Production.INFO: ==2331== Releasing lock... [2024-12-26 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:35:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:36:05 [end_date_ymd] => 2024-12-26 21:36:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:36:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:36:18] Production.INFO: count ==1197 [2024-12-26 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:36:05 - End Time 2024-12-26 21:36:05 [2024-12-26 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109646', 'tblTempUsageDetail_20' ) start [2024-12-26 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109646', 'tblTempUsageDetail_20' ) end [2024-12-26 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109646', 'tblTempVendorCDR_20' ) start [2024-12-26 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109646', 'tblTempVendorCDR_20' ) end [2024-12-26 21:36:18] Production.INFO: ProcessCDR(1,14109646,1,1,2) [2024-12-26 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109646', 'tblTempUsageDetail_20' ) start [2024-12-26 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109646', 'tblTempUsageDetail_20' ) end [2024-12-26 21:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:36:23] Production.INFO: ==2419== Releasing lock... [2024-12-26 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:36:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:37:04 [end_date_ymd] => 2024-12-26 21:37:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:37:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:37:18] Production.INFO: count ==1194 [2024-12-26 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:37:04 - End Time 2024-12-26 21:37:04 [2024-12-26 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109651', 'tblTempUsageDetail_20' ) start [2024-12-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109651', 'tblTempUsageDetail_20' ) end [2024-12-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109651', 'tblTempVendorCDR_20' ) start [2024-12-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109651', 'tblTempVendorCDR_20' ) end [2024-12-26 21:37:18] Production.INFO: ProcessCDR(1,14109651,1,1,2) [2024-12-26 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109651', 'tblTempUsageDetail_20' ) start [2024-12-26 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109651', 'tblTempUsageDetail_20' ) end [2024-12-26 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:37:21] Production.INFO: ==2506== Releasing lock... [2024-12-26 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:37:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:38:05 [end_date_ymd] => 2024-12-26 21:38:05 [RateCDR] => 1 ) [2024-12-26 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:38:05' and `end` < '2024-12-26 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:38:17] Production.INFO: count ==1219 [2024-12-26 21:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:38:05 - End Time 2024-12-26 21:38:05 [2024-12-26 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109656', 'tblTempUsageDetail_20' ) start [2024-12-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109656', 'tblTempUsageDetail_20' ) end [2024-12-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109656', 'tblTempVendorCDR_20' ) start [2024-12-26 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109656', 'tblTempVendorCDR_20' ) end [2024-12-26 21:38:18] Production.INFO: ProcessCDR(1,14109656,1,1,2) [2024-12-26 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109656', 'tblTempUsageDetail_20' ) start [2024-12-26 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109656', 'tblTempUsageDetail_20' ) end [2024-12-26 21:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:38:22] Production.INFO: ==2589== Releasing lock... [2024-12-26 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:38:22] Production.INFO: 37 MB #Memory Used# [2024-12-26 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:39:04 [end_date_ymd] => 2024-12-26 21:39:04 [RateCDR] => 1 ) [2024-12-26 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:39:04' and `end` < '2024-12-26 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:39:17] Production.INFO: count ==1217 [2024-12-26 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:39:04 - End Time 2024-12-26 21:39:04 [2024-12-26 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109661', 'tblTempUsageDetail_20' ) start [2024-12-26 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109661', 'tblTempUsageDetail_20' ) end [2024-12-26 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109661', 'tblTempVendorCDR_20' ) start [2024-12-26 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109661', 'tblTempVendorCDR_20' ) end [2024-12-26 21:39:17] Production.INFO: ProcessCDR(1,14109661,1,1,2) [2024-12-26 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109661', 'tblTempUsageDetail_20' ) start [2024-12-26 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109661', 'tblTempUsageDetail_20' ) end [2024-12-26 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:39:20] Production.INFO: ==2670== Releasing lock... [2024-12-26 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:39:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:40:06 [end_date_ymd] => 2024-12-26 21:40:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:40:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:40:18] Production.INFO: count ==1215 [2024-12-26 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:40:06 - End Time 2024-12-26 21:40:06 [2024-12-26 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109667', 'tblTempUsageDetail_20' ) start [2024-12-26 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109667', 'tblTempUsageDetail_20' ) end [2024-12-26 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109667', 'tblTempVendorCDR_20' ) start [2024-12-26 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109667', 'tblTempVendorCDR_20' ) end [2024-12-26 21:40:18] Production.INFO: ProcessCDR(1,14109667,1,1,2) [2024-12-26 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109667', 'tblTempUsageDetail_20' ) start [2024-12-26 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109667', 'tblTempUsageDetail_20' ) end [2024-12-26 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:40:21] Production.INFO: ==2761== Releasing lock... [2024-12-26 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:40:21] Production.INFO: 37 MB #Memory Used# [2024-12-26 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:41:05 [end_date_ymd] => 2024-12-26 21:41:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:41:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:41:20] Production.INFO: count ==1197 [2024-12-26 21:41:20] Production.ERROR: pbx CDR StartTime 2024-12-26 18:41:05 - End Time 2024-12-26 21:41:05 [2024-12-26 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109672', 'tblTempUsageDetail_20' ) start [2024-12-26 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109672', 'tblTempUsageDetail_20' ) end [2024-12-26 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109672', 'tblTempVendorCDR_20' ) start [2024-12-26 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109672', 'tblTempVendorCDR_20' ) end [2024-12-26 21:41:20] Production.INFO: ProcessCDR(1,14109672,1,1,2) [2024-12-26 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109672', 'tblTempUsageDetail_20' ) start [2024-12-26 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109672', 'tblTempUsageDetail_20' ) end [2024-12-26 21:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:41:23] Production.INFO: ==2843== Releasing lock... [2024-12-26 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:41:23] Production.INFO: 37 MB #Memory Used# [2024-12-26 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:42:04 [end_date_ymd] => 2024-12-26 21:42:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:42:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:42:17] Production.INFO: count ==1195 [2024-12-26 21:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:42:04 - End Time 2024-12-26 21:42:04 [2024-12-26 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109677', 'tblTempUsageDetail_20' ) start [2024-12-26 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109677', 'tblTempUsageDetail_20' ) end [2024-12-26 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109677', 'tblTempVendorCDR_20' ) start [2024-12-26 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109677', 'tblTempVendorCDR_20' ) end [2024-12-26 21:42:17] Production.INFO: ProcessCDR(1,14109677,1,1,2) [2024-12-26 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109677', 'tblTempUsageDetail_20' ) start [2024-12-26 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109677', 'tblTempUsageDetail_20' ) end [2024-12-26 21:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:42:20] Production.INFO: ==2926== Releasing lock... [2024-12-26 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:42:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-26 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:43:05 [end_date_ymd] => 2024-12-26 21:43:05 [RateCDR] => 1 ) [2024-12-26 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:43:05' and `end` < '2024-12-26 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:43:17] Production.INFO: count ==1188 [2024-12-26 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:43:05 - End Time 2024-12-26 21:43:05 [2024-12-26 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109682', 'tblTempUsageDetail_20' ) start [2024-12-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109682', 'tblTempUsageDetail_20' ) end [2024-12-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109682', 'tblTempVendorCDR_20' ) start [2024-12-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109682', 'tblTempVendorCDR_20' ) end [2024-12-26 21:43:18] Production.INFO: ProcessCDR(1,14109682,1,1,2) [2024-12-26 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109682', 'tblTempUsageDetail_20' ) start [2024-12-26 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109682', 'tblTempUsageDetail_20' ) end [2024-12-26 21:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:43:21] Production.INFO: ==3011== Releasing lock... [2024-12-26 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:43:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:44:05 [end_date_ymd] => 2024-12-26 21:44:05 [RateCDR] => 1 ) [2024-12-26 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:44:05' and `end` < '2024-12-26 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:44:18] Production.INFO: count ==1188 [2024-12-26 21:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:44:05 - End Time 2024-12-26 21:44:05 [2024-12-26 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109687', 'tblTempUsageDetail_20' ) start [2024-12-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109687', 'tblTempUsageDetail_20' ) end [2024-12-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109687', 'tblTempVendorCDR_20' ) start [2024-12-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109687', 'tblTempVendorCDR_20' ) end [2024-12-26 21:44:18] Production.INFO: ProcessCDR(1,14109687,1,1,2) [2024-12-26 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109687', 'tblTempUsageDetail_20' ) start [2024-12-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109687', 'tblTempUsageDetail_20' ) end [2024-12-26 21:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:44:21] Production.INFO: ==3095== Releasing lock... [2024-12-26 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:44:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:45:05 [end_date_ymd] => 2024-12-26 21:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:45:18] Production.INFO: count ==1176 [2024-12-26 21:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:45:05 - End Time 2024-12-26 21:45:05 [2024-12-26 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109692', 'tblTempUsageDetail_20' ) start [2024-12-26 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109692', 'tblTempUsageDetail_20' ) end [2024-12-26 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109692', 'tblTempVendorCDR_20' ) start [2024-12-26 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109692', 'tblTempVendorCDR_20' ) end [2024-12-26 21:45:18] Production.INFO: ProcessCDR(1,14109692,1,1,2) [2024-12-26 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109692', 'tblTempUsageDetail_20' ) start [2024-12-26 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109692', 'tblTempUsageDetail_20' ) end [2024-12-26 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:45:21] Production.INFO: ==3185== Releasing lock... [2024-12-26 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:45:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:46:04 [end_date_ymd] => 2024-12-26 21:46:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:46:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:46:16] Production.INFO: count ==1173 [2024-12-26 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:46:04 - End Time 2024-12-26 21:46:04 [2024-12-26 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109697', 'tblTempUsageDetail_20' ) start [2024-12-26 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109697', 'tblTempUsageDetail_20' ) end [2024-12-26 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109697', 'tblTempVendorCDR_20' ) start [2024-12-26 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109697', 'tblTempVendorCDR_20' ) end [2024-12-26 21:46:17] Production.INFO: ProcessCDR(1,14109697,1,1,2) [2024-12-26 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109697', 'tblTempUsageDetail_20' ) start [2024-12-26 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109697', 'tblTempUsageDetail_20' ) end [2024-12-26 21:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:46:20] Production.INFO: ==3264== Releasing lock... [2024-12-26 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:46:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:47:05 [end_date_ymd] => 2024-12-26 21:47:05 [RateCDR] => 1 ) [2024-12-26 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:47:05' and `end` < '2024-12-26 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:47:18] Production.INFO: count ==1172 [2024-12-26 21:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:47:05 - End Time 2024-12-26 21:47:05 [2024-12-26 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109702', 'tblTempUsageDetail_20' ) start [2024-12-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109702', 'tblTempUsageDetail_20' ) end [2024-12-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109702', 'tblTempVendorCDR_20' ) start [2024-12-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109702', 'tblTempVendorCDR_20' ) end [2024-12-26 21:47:18] Production.INFO: ProcessCDR(1,14109702,1,1,2) [2024-12-26 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109702', 'tblTempUsageDetail_20' ) start [2024-12-26 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109702', 'tblTempUsageDetail_20' ) end [2024-12-26 21:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:47:21] Production.INFO: ==3352== Releasing lock... [2024-12-26 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:47:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:48:05 [end_date_ymd] => 2024-12-26 21:48:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:48:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:48:17] Production.INFO: count ==1156 [2024-12-26 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:48:05 - End Time 2024-12-26 21:48:05 [2024-12-26 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109707', 'tblTempUsageDetail_20' ) start [2024-12-26 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109707', 'tblTempUsageDetail_20' ) end [2024-12-26 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109707', 'tblTempVendorCDR_20' ) start [2024-12-26 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109707', 'tblTempVendorCDR_20' ) end [2024-12-26 21:48:17] Production.INFO: ProcessCDR(1,14109707,1,1,2) [2024-12-26 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109707', 'tblTempUsageDetail_20' ) start [2024-12-26 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109707', 'tblTempUsageDetail_20' ) end [2024-12-26 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:48:21] Production.INFO: ==3428== Releasing lock... [2024-12-26 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:48:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:49:04 [end_date_ymd] => 2024-12-26 21:49:04 [RateCDR] => 1 ) [2024-12-26 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:49:04' and `end` < '2024-12-26 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:49:18] Production.INFO: count ==1156 [2024-12-26 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:49:04 - End Time 2024-12-26 21:49:04 [2024-12-26 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109712', 'tblTempUsageDetail_20' ) start [2024-12-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109712', 'tblTempUsageDetail_20' ) end [2024-12-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109712', 'tblTempVendorCDR_20' ) start [2024-12-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109712', 'tblTempVendorCDR_20' ) end [2024-12-26 21:49:18] Production.INFO: ProcessCDR(1,14109712,1,1,2) [2024-12-26 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109712', 'tblTempUsageDetail_20' ) start [2024-12-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109712', 'tblTempUsageDetail_20' ) end [2024-12-26 21:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:49:21] Production.INFO: ==3512== Releasing lock... [2024-12-26 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:49:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:50:05 [end_date_ymd] => 2024-12-26 21:50:05 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:50:05' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:50:18] Production.INFO: count ==1158 [2024-12-26 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:50:05 - End Time 2024-12-26 21:50:05 [2024-12-26 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109718', 'tblTempUsageDetail_20' ) start [2024-12-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109718', 'tblTempUsageDetail_20' ) end [2024-12-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109718', 'tblTempVendorCDR_20' ) start [2024-12-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109718', 'tblTempVendorCDR_20' ) end [2024-12-26 21:50:18] Production.INFO: ProcessCDR(1,14109718,1,1,2) [2024-12-26 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109718', 'tblTempUsageDetail_20' ) start [2024-12-26 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109718', 'tblTempUsageDetail_20' ) end [2024-12-26 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:50:21] Production.INFO: ==3599== Releasing lock... [2024-12-26 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:50:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:51:04 [end_date_ymd] => 2024-12-26 21:51:04 [RateCDR] => 1 ) [2024-12-26 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:51:04' and `end` < '2024-12-26 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:51:16] Production.INFO: count ==1148 [2024-12-26 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:51:04 - End Time 2024-12-26 21:51:04 [2024-12-26 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109723', 'tblTempUsageDetail_20' ) start [2024-12-26 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109723', 'tblTempUsageDetail_20' ) end [2024-12-26 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109723', 'tblTempVendorCDR_20' ) start [2024-12-26 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109723', 'tblTempVendorCDR_20' ) end [2024-12-26 21:51:17] Production.INFO: ProcessCDR(1,14109723,1,1,2) [2024-12-26 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109723', 'tblTempUsageDetail_20' ) start [2024-12-26 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109723', 'tblTempUsageDetail_20' ) end [2024-12-26 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:51:20] Production.INFO: ==3723== Releasing lock... [2024-12-26 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:51:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:52:05 [end_date_ymd] => 2024-12-26 21:52:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:52:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:52:17] Production.INFO: count ==1153 [2024-12-26 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:52:05 - End Time 2024-12-26 21:52:05 [2024-12-26 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109728', 'tblTempUsageDetail_20' ) start [2024-12-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109728', 'tblTempUsageDetail_20' ) end [2024-12-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109728', 'tblTempVendorCDR_20' ) start [2024-12-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109728', 'tblTempVendorCDR_20' ) end [2024-12-26 21:52:18] Production.INFO: ProcessCDR(1,14109728,1,1,2) [2024-12-26 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109728', 'tblTempUsageDetail_20' ) start [2024-12-26 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109728', 'tblTempUsageDetail_20' ) end [2024-12-26 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:52:21] Production.INFO: ==3812== Releasing lock... [2024-12-26 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:52:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:53:04 [end_date_ymd] => 2024-12-26 21:53:04 [RateCDR] => 1 ) [2024-12-26 21: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` >= '2024-12-26 18:53:04' and `end` < '2024-12-26 21: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 ,'') [2024-12-26 21:53:16] Production.INFO: count ==1151 [2024-12-26 21:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:53:04 - End Time 2024-12-26 21:53:04 [2024-12-26 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109733', 'tblTempUsageDetail_20' ) start [2024-12-26 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109733', 'tblTempUsageDetail_20' ) end [2024-12-26 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109733', 'tblTempVendorCDR_20' ) start [2024-12-26 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109733', 'tblTempVendorCDR_20' ) end [2024-12-26 21:53:17] Production.INFO: ProcessCDR(1,14109733,1,1,2) [2024-12-26 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109733', 'tblTempUsageDetail_20' ) start [2024-12-26 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109733', 'tblTempUsageDetail_20' ) end [2024-12-26 21:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:53:20] Production.INFO: ==3884== Releasing lock... [2024-12-26 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:53:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:54:05 [end_date_ymd] => 2024-12-26 21:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:54:17] Production.INFO: count ==1149 [2024-12-26 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:54:05 - End Time 2024-12-26 21:54:05 [2024-12-26 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109738', 'tblTempUsageDetail_20' ) start [2024-12-26 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109738', 'tblTempUsageDetail_20' ) end [2024-12-26 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109738', 'tblTempVendorCDR_20' ) start [2024-12-26 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109738', 'tblTempVendorCDR_20' ) end [2024-12-26 21:54:17] Production.INFO: ProcessCDR(1,14109738,1,1,2) [2024-12-26 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109738', 'tblTempUsageDetail_20' ) start [2024-12-26 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109738', 'tblTempUsageDetail_20' ) end [2024-12-26 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:54:21] Production.INFO: ==3969== Releasing lock... [2024-12-26 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:54:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:55:05 [end_date_ymd] => 2024-12-26 21:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:55:18] Production.INFO: count ==1148 [2024-12-26 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 18:55:05 - End Time 2024-12-26 21:55:05 [2024-12-26 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109743', 'tblTempUsageDetail_20' ) start [2024-12-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109743', 'tblTempUsageDetail_20' ) end [2024-12-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109743', 'tblTempVendorCDR_20' ) start [2024-12-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109743', 'tblTempVendorCDR_20' ) end [2024-12-26 21:55:18] Production.INFO: ProcessCDR(1,14109743,1,1,2) [2024-12-26 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109743', 'tblTempUsageDetail_20' ) start [2024-12-26 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109743', 'tblTempUsageDetail_20' ) end [2024-12-26 21:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:55:21] Production.INFO: ==4052== Releasing lock... [2024-12-26 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:55:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-26 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:56:04 [end_date_ymd] => 2024-12-26 21:56:04 [RateCDR] => 1 ) [2024-12-26 21:56: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` >= '2024-12-26 18:56:04' and `end` < '2024-12-26 21:56: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 ,'') [2024-12-26 21:56:17] Production.INFO: count ==1146 [2024-12-26 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:56:04 - End Time 2024-12-26 21:56:04 [2024-12-26 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109748', 'tblTempUsageDetail_20' ) start [2024-12-26 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109748', 'tblTempUsageDetail_20' ) end [2024-12-26 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109748', 'tblTempVendorCDR_20' ) start [2024-12-26 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109748', 'tblTempVendorCDR_20' ) end [2024-12-26 21:56:17] Production.INFO: ProcessCDR(1,14109748,1,1,2) [2024-12-26 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109748', 'tblTempUsageDetail_20' ) start [2024-12-26 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109748', 'tblTempUsageDetail_20' ) end [2024-12-26 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:56:20] Production.INFO: ==4129== Releasing lock... [2024-12-26 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:56:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:57:05 [end_date_ymd] => 2024-12-26 21:57:05 [RateCDR] => 1 ) [2024-12-26 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:57:05' and `end` < '2024-12-26 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:57:17] Production.INFO: count ==1141 [2024-12-26 21:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:57:05 - End Time 2024-12-26 21:57:05 [2024-12-26 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109753', 'tblTempUsageDetail_20' ) start [2024-12-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109753', 'tblTempUsageDetail_20' ) end [2024-12-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109753', 'tblTempVendorCDR_20' ) start [2024-12-26 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109753', 'tblTempVendorCDR_20' ) end [2024-12-26 21:57:18] Production.INFO: ProcessCDR(1,14109753,1,1,2) [2024-12-26 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109753', 'tblTempUsageDetail_20' ) start [2024-12-26 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109753', 'tblTempUsageDetail_20' ) end [2024-12-26 21:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:57:21] Production.INFO: ==4215== Releasing lock... [2024-12-26 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:57:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:58:05 [end_date_ymd] => 2024-12-26 21:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 18:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 21:58:17] Production.INFO: count ==1141 [2024-12-26 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:58:05 - End Time 2024-12-26 21:58:05 [2024-12-26 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109758', 'tblTempUsageDetail_20' ) start [2024-12-26 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109758', 'tblTempUsageDetail_20' ) end [2024-12-26 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109758', 'tblTempVendorCDR_20' ) start [2024-12-26 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109758', 'tblTempVendorCDR_20' ) end [2024-12-26 21:58:17] Production.INFO: ProcessCDR(1,14109758,1,1,2) [2024-12-26 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109758', 'tblTempUsageDetail_20' ) start [2024-12-26 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109758', 'tblTempUsageDetail_20' ) end [2024-12-26 21:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:58:20] Production.INFO: ==4293== Releasing lock... [2024-12-26 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:58:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 18:59:05 [end_date_ymd] => 2024-12-26 21:59:05 [RateCDR] => 1 ) [2024-12-26 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 18:59:05' and `end` < '2024-12-26 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 21:59:17] Production.INFO: count ==1143 [2024-12-26 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-26 18:59:05 - End Time 2024-12-26 21:59:05 [2024-12-26 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109763', 'tblTempUsageDetail_20' ) start [2024-12-26 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109763', 'tblTempUsageDetail_20' ) end [2024-12-26 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109763', 'tblTempVendorCDR_20' ) start [2024-12-26 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109763', 'tblTempVendorCDR_20' ) end [2024-12-26 21:59:17] Production.INFO: ProcessCDR(1,14109763,1,1,2) [2024-12-26 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109763', 'tblTempUsageDetail_20' ) start [2024-12-26 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109763', 'tblTempUsageDetail_20' ) end [2024-12-26 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 21:59:20] Production.INFO: ==4375== Releasing lock... [2024-12-26 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 21:59:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:00:06 [end_date_ymd] => 2024-12-26 22:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:00:18] Production.INFO: count ==1142 [2024-12-26 22:00:19] Production.ERROR: pbx CDR StartTime 2024-12-26 19:00:06 - End Time 2024-12-26 22:00:06 [2024-12-26 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109769', 'tblTempUsageDetail_20' ) start [2024-12-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109769', 'tblTempUsageDetail_20' ) end [2024-12-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109769', 'tblTempVendorCDR_20' ) start [2024-12-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109769', 'tblTempVendorCDR_20' ) end [2024-12-26 22:00:19] Production.INFO: ProcessCDR(1,14109769,1,1,2) [2024-12-26 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109769', 'tblTempUsageDetail_20' ) start [2024-12-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109769', 'tblTempUsageDetail_20' ) end [2024-12-26 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:00:22] Production.INFO: ==4462== Releasing lock... [2024-12-26 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:00:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:01:05 [end_date_ymd] => 2024-12-26 22:01:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:01:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:01:18] Production.INFO: count ==1129 [2024-12-26 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:01:05 - End Time 2024-12-26 22:01:05 [2024-12-26 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109774', 'tblTempUsageDetail_20' ) start [2024-12-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109774', 'tblTempUsageDetail_20' ) end [2024-12-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109774', 'tblTempVendorCDR_20' ) start [2024-12-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109774', 'tblTempVendorCDR_20' ) end [2024-12-26 22:01:18] Production.INFO: ProcessCDR(1,14109774,1,1,2) [2024-12-26 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109774', 'tblTempUsageDetail_20' ) start [2024-12-26 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109774', 'tblTempUsageDetail_20' ) end [2024-12-26 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:01:21] Production.INFO: ==4553== Releasing lock... [2024-12-26 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:01:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:02:04 [end_date_ymd] => 2024-12-26 22:02:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:02:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:02:17] Production.INFO: count ==1126 [2024-12-26 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:02:04 - End Time 2024-12-26 22:02:04 [2024-12-26 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109779', 'tblTempUsageDetail_20' ) start [2024-12-26 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109779', 'tblTempUsageDetail_20' ) end [2024-12-26 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109779', 'tblTempVendorCDR_20' ) start [2024-12-26 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109779', 'tblTempVendorCDR_20' ) end [2024-12-26 22:02:18] Production.INFO: ProcessCDR(1,14109779,1,1,2) [2024-12-26 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109779', 'tblTempUsageDetail_20' ) start [2024-12-26 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109779', 'tblTempUsageDetail_20' ) end [2024-12-26 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:02:20] Production.INFO: ==4640== Releasing lock... [2024-12-26 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:02:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:03:04 [end_date_ymd] => 2024-12-26 22:03:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:03:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:03:17] Production.INFO: count ==1132 [2024-12-26 22:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:03:04 - End Time 2024-12-26 22:03:04 [2024-12-26 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109784', 'tblTempUsageDetail_20' ) start [2024-12-26 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109784', 'tblTempUsageDetail_20' ) end [2024-12-26 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109784', 'tblTempVendorCDR_20' ) start [2024-12-26 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109784', 'tblTempVendorCDR_20' ) end [2024-12-26 22:03:17] Production.INFO: ProcessCDR(1,14109784,1,1,2) [2024-12-26 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109784', 'tblTempUsageDetail_20' ) start [2024-12-26 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109784', 'tblTempUsageDetail_20' ) end [2024-12-26 22:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:03:20] Production.INFO: ==4719== Releasing lock... [2024-12-26 22:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:03:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:04:05 [end_date_ymd] => 2024-12-26 22:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:04:18] Production.INFO: count ==1132 [2024-12-26 22:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:04:05 - End Time 2024-12-26 22:04:05 [2024-12-26 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109789', 'tblTempUsageDetail_20' ) start [2024-12-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109789', 'tblTempUsageDetail_20' ) end [2024-12-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109789', 'tblTempVendorCDR_20' ) start [2024-12-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109789', 'tblTempVendorCDR_20' ) end [2024-12-26 22:04:18] Production.INFO: ProcessCDR(1,14109789,1,1,2) [2024-12-26 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109789', 'tblTempUsageDetail_20' ) start [2024-12-26 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109789', 'tblTempUsageDetail_20' ) end [2024-12-26 22:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:04:21] Production.INFO: ==4803== Releasing lock... [2024-12-26 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:04:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:05:04 [end_date_ymd] => 2024-12-26 22:05:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:05:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:05:17] Production.INFO: count ==1133 [2024-12-26 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:05:04 - End Time 2024-12-26 22:05:04 [2024-12-26 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109794', 'tblTempUsageDetail_20' ) start [2024-12-26 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109794', 'tblTempUsageDetail_20' ) end [2024-12-26 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109794', 'tblTempVendorCDR_20' ) start [2024-12-26 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109794', 'tblTempVendorCDR_20' ) end [2024-12-26 22:05:17] Production.INFO: ProcessCDR(1,14109794,1,1,2) [2024-12-26 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109794', 'tblTempUsageDetail_20' ) start [2024-12-26 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109794', 'tblTempUsageDetail_20' ) end [2024-12-26 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:05:20] Production.INFO: ==4881== Releasing lock... [2024-12-26 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:05:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:06:05 [end_date_ymd] => 2024-12-26 22:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:06:18] Production.INFO: count ==1136 [2024-12-26 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:06:05 - End Time 2024-12-26 22:06:05 [2024-12-26 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109799', 'tblTempUsageDetail_20' ) start [2024-12-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109799', 'tblTempUsageDetail_20' ) end [2024-12-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109799', 'tblTempVendorCDR_20' ) start [2024-12-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109799', 'tblTempVendorCDR_20' ) end [2024-12-26 22:06:18] Production.INFO: ProcessCDR(1,14109799,1,1,2) [2024-12-26 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109799', 'tblTempUsageDetail_20' ) start [2024-12-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109799', 'tblTempUsageDetail_20' ) end [2024-12-26 22:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:06:22] Production.INFO: ==4968== Releasing lock... [2024-12-26 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:06:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:07:04 [end_date_ymd] => 2024-12-26 22:07:04 [RateCDR] => 1 ) [2024-12-26 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:07:04' and `end` < '2024-12-26 22:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:07:18] Production.INFO: count ==1136 [2024-12-26 22:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:07:04 - End Time 2024-12-26 22:07:04 [2024-12-26 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109804', 'tblTempUsageDetail_20' ) start [2024-12-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109804', 'tblTempUsageDetail_20' ) end [2024-12-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109804', 'tblTempVendorCDR_20' ) start [2024-12-26 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109804', 'tblTempVendorCDR_20' ) end [2024-12-26 22:07:18] Production.INFO: ProcessCDR(1,14109804,1,1,2) [2024-12-26 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109804', 'tblTempUsageDetail_20' ) start [2024-12-26 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109804', 'tblTempUsageDetail_20' ) end [2024-12-26 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:07:21] Production.INFO: ==5084== Releasing lock... [2024-12-26 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:07:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:08:05 [end_date_ymd] => 2024-12-26 22:08:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:08:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:08:17] Production.INFO: count ==1139 [2024-12-26 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:08:05 - End Time 2024-12-26 22:08:05 [2024-12-26 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109809', 'tblTempUsageDetail_20' ) start [2024-12-26 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109809', 'tblTempUsageDetail_20' ) end [2024-12-26 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109809', 'tblTempVendorCDR_20' ) start [2024-12-26 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109809', 'tblTempVendorCDR_20' ) end [2024-12-26 22:08:17] Production.INFO: ProcessCDR(1,14109809,1,1,2) [2024-12-26 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109809', 'tblTempUsageDetail_20' ) start [2024-12-26 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109809', 'tblTempUsageDetail_20' ) end [2024-12-26 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:08:20] Production.INFO: ==5168== Releasing lock... [2024-12-26 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:08:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:09:04 [end_date_ymd] => 2024-12-26 22:09:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:09:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:09:16] Production.INFO: count ==1130 [2024-12-26 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:09:04 - End Time 2024-12-26 22:09:04 [2024-12-26 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109814', 'tblTempUsageDetail_20' ) start [2024-12-26 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109814', 'tblTempUsageDetail_20' ) end [2024-12-26 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109814', 'tblTempVendorCDR_20' ) start [2024-12-26 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109814', 'tblTempVendorCDR_20' ) end [2024-12-26 22:09:17] Production.INFO: ProcessCDR(1,14109814,1,1,2) [2024-12-26 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109814', 'tblTempUsageDetail_20' ) start [2024-12-26 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109814', 'tblTempUsageDetail_20' ) end [2024-12-26 22:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:09:20] Production.INFO: ==5244== Releasing lock... [2024-12-26 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:09:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:10:05 [end_date_ymd] => 2024-12-26 22:10:05 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:10:05' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:10:18] Production.INFO: count ==1127 [2024-12-26 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:10:05 - End Time 2024-12-26 22:10:05 [2024-12-26 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109820', 'tblTempUsageDetail_20' ) start [2024-12-26 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109820', 'tblTempUsageDetail_20' ) end [2024-12-26 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109820', 'tblTempVendorCDR_20' ) start [2024-12-26 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109820', 'tblTempVendorCDR_20' ) end [2024-12-26 22:10:18] Production.INFO: ProcessCDR(1,14109820,1,1,2) [2024-12-26 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109820', 'tblTempUsageDetail_20' ) start [2024-12-26 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109820', 'tblTempUsageDetail_20' ) end [2024-12-26 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:10:21] Production.INFO: ==5331== Releasing lock... [2024-12-26 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:10:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:11:05 [end_date_ymd] => 2024-12-26 22:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:11:17] Production.INFO: count ==1105 [2024-12-26 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:11:05 - End Time 2024-12-26 22:11:05 [2024-12-26 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109825', 'tblTempUsageDetail_20' ) start [2024-12-26 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109825', 'tblTempUsageDetail_20' ) end [2024-12-26 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109825', 'tblTempVendorCDR_20' ) start [2024-12-26 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109825', 'tblTempVendorCDR_20' ) end [2024-12-26 22:11:17] Production.INFO: ProcessCDR(1,14109825,1,1,2) [2024-12-26 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109825', 'tblTempUsageDetail_20' ) start [2024-12-26 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109825', 'tblTempUsageDetail_20' ) end [2024-12-26 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:11:20] Production.INFO: ==5411== Releasing lock... [2024-12-26 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:11:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:12:05 [end_date_ymd] => 2024-12-26 22:12:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:12:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:12:17] Production.INFO: count ==1104 [2024-12-26 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:12:05 - End Time 2024-12-26 22:12:05 [2024-12-26 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109830', 'tblTempUsageDetail_20' ) start [2024-12-26 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109830', 'tblTempUsageDetail_20' ) end [2024-12-26 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109830', 'tblTempVendorCDR_20' ) start [2024-12-26 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109830', 'tblTempVendorCDR_20' ) end [2024-12-26 22:12:17] Production.INFO: ProcessCDR(1,14109830,1,1,2) [2024-12-26 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109830', 'tblTempUsageDetail_20' ) start [2024-12-26 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109830', 'tblTempUsageDetail_20' ) end [2024-12-26 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:12:20] Production.INFO: ==5493== Releasing lock... [2024-12-26 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:12:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:13:05 [end_date_ymd] => 2024-12-26 22:13:05 [RateCDR] => 1 ) [2024-12-26 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:13:05' and `end` < '2024-12-26 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:13:17] Production.INFO: count ==1106 [2024-12-26 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:13:05 - End Time 2024-12-26 22:13:05 [2024-12-26 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109835', 'tblTempUsageDetail_20' ) start [2024-12-26 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109835', 'tblTempUsageDetail_20' ) end [2024-12-26 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109835', 'tblTempVendorCDR_20' ) start [2024-12-26 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109835', 'tblTempVendorCDR_20' ) end [2024-12-26 22:13:17] Production.INFO: ProcessCDR(1,14109835,1,1,2) [2024-12-26 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109835', 'tblTempUsageDetail_20' ) start [2024-12-26 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109835', 'tblTempUsageDetail_20' ) end [2024-12-26 22:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:13:20] Production.INFO: ==5570== Releasing lock... [2024-12-26 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:13:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:14:04 [end_date_ymd] => 2024-12-26 22:14:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:14:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:14:18] Production.INFO: count ==1104 [2024-12-26 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:14:04 - End Time 2024-12-26 22:14:04 [2024-12-26 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109840', 'tblTempUsageDetail_20' ) start [2024-12-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109840', 'tblTempUsageDetail_20' ) end [2024-12-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109840', 'tblTempVendorCDR_20' ) start [2024-12-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109840', 'tblTempVendorCDR_20' ) end [2024-12-26 22:14:18] Production.INFO: ProcessCDR(1,14109840,1,1,2) [2024-12-26 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109840', 'tblTempUsageDetail_20' ) start [2024-12-26 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109840', 'tblTempUsageDetail_20' ) end [2024-12-26 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:14:21] Production.INFO: ==5649== Releasing lock... [2024-12-26 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:14:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:15:05 [end_date_ymd] => 2024-12-26 22:15:05 [RateCDR] => 1 ) [2024-12-26 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:15:05' and `end` < '2024-12-26 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:15:17] Production.INFO: count ==1106 [2024-12-26 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:15:05 - End Time 2024-12-26 22:15:05 [2024-12-26 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109845', 'tblTempUsageDetail_20' ) start [2024-12-26 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109845', 'tblTempUsageDetail_20' ) end [2024-12-26 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109845', 'tblTempVendorCDR_20' ) start [2024-12-26 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109845', 'tblTempVendorCDR_20' ) end [2024-12-26 22:15:17] Production.INFO: ProcessCDR(1,14109845,1,1,2) [2024-12-26 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109845', 'tblTempUsageDetail_20' ) start [2024-12-26 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109845', 'tblTempUsageDetail_20' ) end [2024-12-26 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:15:20] Production.INFO: ==5732== Releasing lock... [2024-12-26 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:15:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:16:06 [end_date_ymd] => 2024-12-26 22:16:06 [RateCDR] => 1 ) [2024-12-26 22:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:16:06' and `end` < '2024-12-26 22:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:16:18] Production.INFO: count ==1105 [2024-12-26 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:16:06 - End Time 2024-12-26 22:16:06 [2024-12-26 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109850', 'tblTempUsageDetail_20' ) start [2024-12-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109850', 'tblTempUsageDetail_20' ) end [2024-12-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109850', 'tblTempVendorCDR_20' ) start [2024-12-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109850', 'tblTempVendorCDR_20' ) end [2024-12-26 22:16:18] Production.INFO: ProcessCDR(1,14109850,1,1,2) [2024-12-26 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109850', 'tblTempUsageDetail_20' ) start [2024-12-26 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109850', 'tblTempUsageDetail_20' ) end [2024-12-26 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:16:21] Production.INFO: ==5811== Releasing lock... [2024-12-26 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:16:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:17:05 [end_date_ymd] => 2024-12-26 22:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:17:18] Production.INFO: count ==1104 [2024-12-26 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:17:05 - End Time 2024-12-26 22:17:05 [2024-12-26 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109855', 'tblTempUsageDetail_20' ) start [2024-12-26 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109855', 'tblTempUsageDetail_20' ) end [2024-12-26 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109855', 'tblTempVendorCDR_20' ) start [2024-12-26 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109855', 'tblTempVendorCDR_20' ) end [2024-12-26 22:17:18] Production.INFO: ProcessCDR(1,14109855,1,1,2) [2024-12-26 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109855', 'tblTempUsageDetail_20' ) start [2024-12-26 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109855', 'tblTempUsageDetail_20' ) end [2024-12-26 22:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:17:21] Production.INFO: ==5892== Releasing lock... [2024-12-26 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:17:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:18:05 [end_date_ymd] => 2024-12-26 22:18:05 [RateCDR] => 1 ) [2024-12-26 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:18:05' and `end` < '2024-12-26 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:18:18] Production.INFO: count ==1099 [2024-12-26 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:18:05 - End Time 2024-12-26 22:18:05 [2024-12-26 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109860', 'tblTempUsageDetail_20' ) start [2024-12-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109860', 'tblTempUsageDetail_20' ) end [2024-12-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109860', 'tblTempVendorCDR_20' ) start [2024-12-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109860', 'tblTempVendorCDR_20' ) end [2024-12-26 22:18:18] Production.INFO: ProcessCDR(1,14109860,1,1,2) [2024-12-26 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109860', 'tblTempUsageDetail_20' ) start [2024-12-26 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109860', 'tblTempUsageDetail_20' ) end [2024-12-26 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:18:21] Production.INFO: ==5972== Releasing lock... [2024-12-26 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:18:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:19:04 [end_date_ymd] => 2024-12-26 22:19:04 [RateCDR] => 1 ) [2024-12-26 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:19:04' and `end` < '2024-12-26 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:19:18] Production.INFO: count ==1098 [2024-12-26 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:19:04 - End Time 2024-12-26 22:19:04 [2024-12-26 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109865', 'tblTempUsageDetail_20' ) start [2024-12-26 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109865', 'tblTempUsageDetail_20' ) end [2024-12-26 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109865', 'tblTempVendorCDR_20' ) start [2024-12-26 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109865', 'tblTempVendorCDR_20' ) end [2024-12-26 22:19:18] Production.INFO: ProcessCDR(1,14109865,1,1,2) [2024-12-26 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109865', 'tblTempUsageDetail_20' ) start [2024-12-26 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109865', 'tblTempUsageDetail_20' ) end [2024-12-26 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:19:21] Production.INFO: ==6065== Releasing lock... [2024-12-26 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:19:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:20:06 [end_date_ymd] => 2024-12-26 22:20:06 [RateCDR] => 1 ) [2024-12-26 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:20:06' and `end` < '2024-12-26 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:20:18] Production.INFO: count ==1094 [2024-12-26 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:20:06 - End Time 2024-12-26 22:20:06 [2024-12-26 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109871', 'tblTempUsageDetail_20' ) start [2024-12-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109871', 'tblTempUsageDetail_20' ) end [2024-12-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109871', 'tblTempVendorCDR_20' ) start [2024-12-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109871', 'tblTempVendorCDR_20' ) end [2024-12-26 22:20:18] Production.INFO: ProcessCDR(1,14109871,1,1,2) [2024-12-26 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109871', 'tblTempUsageDetail_20' ) start [2024-12-26 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109871', 'tblTempUsageDetail_20' ) end [2024-12-26 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:20:21] Production.INFO: ==6161== Releasing lock... [2024-12-26 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:20:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:21:05 [end_date_ymd] => 2024-12-26 22:21:05 [RateCDR] => 1 ) [2024-12-26 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:21:05' and `end` < '2024-12-26 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:21:17] Production.INFO: count ==1078 [2024-12-26 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:21:05 - End Time 2024-12-26 22:21:05 [2024-12-26 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109876', 'tblTempUsageDetail_20' ) start [2024-12-26 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109876', 'tblTempUsageDetail_20' ) end [2024-12-26 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109876', 'tblTempVendorCDR_20' ) start [2024-12-26 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109876', 'tblTempVendorCDR_20' ) end [2024-12-26 22:21:17] Production.INFO: ProcessCDR(1,14109876,1,1,2) [2024-12-26 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109876', 'tblTempUsageDetail_20' ) start [2024-12-26 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109876', 'tblTempUsageDetail_20' ) end [2024-12-26 22:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:21:20] Production.INFO: ==6259== Releasing lock... [2024-12-26 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:21:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:22:05 [end_date_ymd] => 2024-12-26 22:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:22:18] Production.INFO: count ==1075 [2024-12-26 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:22:05 - End Time 2024-12-26 22:22:05 [2024-12-26 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109881', 'tblTempUsageDetail_20' ) start [2024-12-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109881', 'tblTempUsageDetail_20' ) end [2024-12-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109881', 'tblTempVendorCDR_20' ) start [2024-12-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109881', 'tblTempVendorCDR_20' ) end [2024-12-26 22:22:18] Production.INFO: ProcessCDR(1,14109881,1,1,2) [2024-12-26 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109881', 'tblTempUsageDetail_20' ) start [2024-12-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109881', 'tblTempUsageDetail_20' ) end [2024-12-26 22:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:22:21] Production.INFO: ==6391== Releasing lock... [2024-12-26 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:22:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:23:05 [end_date_ymd] => 2024-12-26 22:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:23:17] Production.INFO: count ==1073 [2024-12-26 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:23:05 - End Time 2024-12-26 22:23:05 [2024-12-26 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109886', 'tblTempUsageDetail_20' ) start [2024-12-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109886', 'tblTempUsageDetail_20' ) end [2024-12-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109886', 'tblTempVendorCDR_20' ) start [2024-12-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109886', 'tblTempVendorCDR_20' ) end [2024-12-26 22:23:17] Production.INFO: ProcessCDR(1,14109886,1,1,2) [2024-12-26 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109886', 'tblTempUsageDetail_20' ) start [2024-12-26 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109886', 'tblTempUsageDetail_20' ) end [2024-12-26 22:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:23:22] Production.INFO: ==6492== Releasing lock... [2024-12-26 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:23:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:24:05 [end_date_ymd] => 2024-12-26 22:24:05 [RateCDR] => 1 ) [2024-12-26 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:24:05' and `end` < '2024-12-26 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:24:18] Production.INFO: count ==1069 [2024-12-26 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:24:05 - End Time 2024-12-26 22:24:05 [2024-12-26 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109891', 'tblTempUsageDetail_20' ) start [2024-12-26 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109891', 'tblTempUsageDetail_20' ) end [2024-12-26 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109891', 'tblTempVendorCDR_20' ) start [2024-12-26 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109891', 'tblTempVendorCDR_20' ) end [2024-12-26 22:24:18] Production.INFO: ProcessCDR(1,14109891,1,1,2) [2024-12-26 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109891', 'tblTempUsageDetail_20' ) start [2024-12-26 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109891', 'tblTempUsageDetail_20' ) end [2024-12-26 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:24:21] Production.INFO: ==6597== Releasing lock... [2024-12-26 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:24:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:25:05 [end_date_ymd] => 2024-12-26 22:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:25:18] Production.INFO: count ==1036 [2024-12-26 22:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:25:05 - End Time 2024-12-26 22:25:05 [2024-12-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109896', 'tblTempUsageDetail_20' ) start [2024-12-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109896', 'tblTempUsageDetail_20' ) end [2024-12-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109896', 'tblTempVendorCDR_20' ) start [2024-12-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109896', 'tblTempVendorCDR_20' ) end [2024-12-26 22:25:18] Production.INFO: ProcessCDR(1,14109896,1,1,2) [2024-12-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109896', 'tblTempUsageDetail_20' ) start [2024-12-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109896', 'tblTempUsageDetail_20' ) end [2024-12-26 22:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:25:22] Production.INFO: ==6688== Releasing lock... [2024-12-26 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:25:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:26:05 [end_date_ymd] => 2024-12-26 22:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:26:18] Production.INFO: count ==1003 [2024-12-26 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:26:05 - End Time 2024-12-26 22:26:05 [2024-12-26 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109901', 'tblTempUsageDetail_20' ) start [2024-12-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109901', 'tblTempUsageDetail_20' ) end [2024-12-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109901', 'tblTempVendorCDR_20' ) start [2024-12-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109901', 'tblTempVendorCDR_20' ) end [2024-12-26 22:26:18] Production.INFO: ProcessCDR(1,14109901,1,1,2) [2024-12-26 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109901', 'tblTempUsageDetail_20' ) start [2024-12-26 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109901', 'tblTempUsageDetail_20' ) end [2024-12-26 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:26:21] Production.INFO: ==6788== Releasing lock... [2024-12-26 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:26:21] Production.INFO: 35 MB #Memory Used# [2024-12-26 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:27:04 [end_date_ymd] => 2024-12-26 22:27:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:27:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:27:17] Production.INFO: count ==971 [2024-12-26 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:27:04 - End Time 2024-12-26 22:27:04 [2024-12-26 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109906', 'tblTempUsageDetail_20' ) start [2024-12-26 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109906', 'tblTempUsageDetail_20' ) end [2024-12-26 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109906', 'tblTempVendorCDR_20' ) start [2024-12-26 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109906', 'tblTempVendorCDR_20' ) end [2024-12-26 22:27:17] Production.INFO: ProcessCDR(1,14109906,1,1,2) [2024-12-26 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109906', 'tblTempUsageDetail_20' ) start [2024-12-26 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109906', 'tblTempUsageDetail_20' ) end [2024-12-26 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:27:20] Production.INFO: ==6893== Releasing lock... [2024-12-26 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:27:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-26 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:28:04 [end_date_ymd] => 2024-12-26 22:28:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:28:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:28:18] Production.INFO: count ==938 [2024-12-26 22:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 19:28:04 - End Time 2024-12-26 22:28:04 [2024-12-26 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109911', 'tblTempUsageDetail_20' ) start [2024-12-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109911', 'tblTempUsageDetail_20' ) end [2024-12-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109911', 'tblTempVendorCDR_20' ) start [2024-12-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109911', 'tblTempVendorCDR_20' ) end [2024-12-26 22:28:19] Production.INFO: ProcessCDR(1,14109911,1,1,2) [2024-12-26 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109911', 'tblTempUsageDetail_20' ) start [2024-12-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109911', 'tblTempUsageDetail_20' ) end [2024-12-26 22:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:28:22] Production.INFO: ==6993== Releasing lock... [2024-12-26 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:28:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:29:04 [end_date_ymd] => 2024-12-26 22:29:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:29:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:29:17] Production.INFO: count ==931 [2024-12-26 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:29:04 - End Time 2024-12-26 22:29:04 [2024-12-26 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109916', 'tblTempUsageDetail_20' ) start [2024-12-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109916', 'tblTempUsageDetail_20' ) end [2024-12-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109916', 'tblTempVendorCDR_20' ) start [2024-12-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109916', 'tblTempVendorCDR_20' ) end [2024-12-26 22:29:17] Production.INFO: ProcessCDR(1,14109916,1,1,2) [2024-12-26 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109916', 'tblTempUsageDetail_20' ) start [2024-12-26 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109916', 'tblTempUsageDetail_20' ) end [2024-12-26 22:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:29:22] Production.INFO: ==7100== Releasing lock... [2024-12-26 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:29:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:30:05 [end_date_ymd] => 2024-12-26 22:30:05 [RateCDR] => 1 ) [2024-12-26 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:30:05' and `end` < '2024-12-26 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:30:18] Production.INFO: count ==932 [2024-12-26 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:30:05 - End Time 2024-12-26 22:30:05 [2024-12-26 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109922', 'tblTempUsageDetail_20' ) start [2024-12-26 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109922', 'tblTempUsageDetail_20' ) end [2024-12-26 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109922', 'tblTempVendorCDR_20' ) start [2024-12-26 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109922', 'tblTempVendorCDR_20' ) end [2024-12-26 22:30:18] Production.INFO: ProcessCDR(1,14109922,1,1,2) [2024-12-26 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109922', 'tblTempUsageDetail_20' ) start [2024-12-26 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109922', 'tblTempUsageDetail_20' ) end [2024-12-26 22:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:30:21] Production.INFO: ==7204== Releasing lock... [2024-12-26 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:30:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-26 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:31:05 [end_date_ymd] => 2024-12-26 22:31:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:31:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:31:18] Production.INFO: count ==922 [2024-12-26 22:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:31:05 - End Time 2024-12-26 22:31:05 [2024-12-26 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109927', 'tblTempUsageDetail_20' ) start [2024-12-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109927', 'tblTempUsageDetail_20' ) end [2024-12-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109927', 'tblTempVendorCDR_20' ) start [2024-12-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109927', 'tblTempVendorCDR_20' ) end [2024-12-26 22:31:18] Production.INFO: ProcessCDR(1,14109927,1,1,2) [2024-12-26 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109927', 'tblTempUsageDetail_20' ) start [2024-12-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109927', 'tblTempUsageDetail_20' ) end [2024-12-26 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:31:21] Production.INFO: ==7305== Releasing lock... [2024-12-26 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:31:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:32:05 [end_date_ymd] => 2024-12-26 22:32:05 [RateCDR] => 1 ) [2024-12-26 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:32:05' and `end` < '2024-12-26 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:32:18] Production.INFO: count ==924 [2024-12-26 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:32:05 - End Time 2024-12-26 22:32:05 [2024-12-26 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109932', 'tblTempUsageDetail_20' ) start [2024-12-26 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109932', 'tblTempUsageDetail_20' ) end [2024-12-26 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109932', 'tblTempVendorCDR_20' ) start [2024-12-26 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109932', 'tblTempVendorCDR_20' ) end [2024-12-26 22:32:18] Production.INFO: ProcessCDR(1,14109932,1,1,2) [2024-12-26 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109932', 'tblTempUsageDetail_20' ) start [2024-12-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109932', 'tblTempUsageDetail_20' ) end [2024-12-26 22:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:32:22] Production.INFO: ==7396== Releasing lock... [2024-12-26 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:32:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:33:05 [end_date_ymd] => 2024-12-26 22:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:33:18] Production.INFO: count ==924 [2024-12-26 22:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:33:05 - End Time 2024-12-26 22:33:05 [2024-12-26 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109937', 'tblTempUsageDetail_20' ) start [2024-12-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109937', 'tblTempUsageDetail_20' ) end [2024-12-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109937', 'tblTempVendorCDR_20' ) start [2024-12-26 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109937', 'tblTempVendorCDR_20' ) end [2024-12-26 22:33:18] Production.INFO: ProcessCDR(1,14109937,1,1,2) [2024-12-26 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109937', 'tblTempUsageDetail_20' ) start [2024-12-26 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109937', 'tblTempUsageDetail_20' ) end [2024-12-26 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:33:21] Production.INFO: ==7485== Releasing lock... [2024-12-26 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:33:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:34:04 [end_date_ymd] => 2024-12-26 22:34:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:34:04' and `end` < '2024-12-26 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:34:17] Production.INFO: count ==928 [2024-12-26 22:34:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:34:04 - End Time 2024-12-26 22:34:04 [2024-12-26 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109942', 'tblTempUsageDetail_20' ) start [2024-12-26 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109942', 'tblTempUsageDetail_20' ) end [2024-12-26 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109942', 'tblTempVendorCDR_20' ) start [2024-12-26 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109942', 'tblTempVendorCDR_20' ) end [2024-12-26 22:34:17] Production.INFO: ProcessCDR(1,14109942,1,1,2) [2024-12-26 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109942', 'tblTempUsageDetail_20' ) start [2024-12-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109942', 'tblTempUsageDetail_20' ) end [2024-12-26 22:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:34:22] Production.INFO: ==7583== Releasing lock... [2024-12-26 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:34:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:35:05 [end_date_ymd] => 2024-12-26 22:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:35:17] Production.INFO: count ==928 [2024-12-26 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:35:05 - End Time 2024-12-26 22:35:05 [2024-12-26 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109947', 'tblTempUsageDetail_20' ) start [2024-12-26 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109947', 'tblTempUsageDetail_20' ) end [2024-12-26 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109947', 'tblTempVendorCDR_20' ) start [2024-12-26 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109947', 'tblTempVendorCDR_20' ) end [2024-12-26 22:35:17] Production.INFO: ProcessCDR(1,14109947,1,1,2) [2024-12-26 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109947', 'tblTempUsageDetail_20' ) start [2024-12-26 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109947', 'tblTempUsageDetail_20' ) end [2024-12-26 22:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:35:20] Production.INFO: ==7679== Releasing lock... [2024-12-26 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:35:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:36:04 [end_date_ymd] => 2024-12-26 22:36:04 [RateCDR] => 1 ) [2024-12-26 22:36: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` >= '2024-12-26 19:36:04' and `end` < '2024-12-26 22:36: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 ,'') [2024-12-26 22:36:16] Production.INFO: count ==928 [2024-12-26 22:36:16] Production.ERROR: pbx CDR StartTime 2024-12-26 19:36:04 - End Time 2024-12-26 22:36:04 [2024-12-26 22:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109952', 'tblTempUsageDetail_20' ) start [2024-12-26 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109952', 'tblTempUsageDetail_20' ) end [2024-12-26 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109952', 'tblTempVendorCDR_20' ) start [2024-12-26 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109952', 'tblTempVendorCDR_20' ) end [2024-12-26 22:36:17] Production.INFO: ProcessCDR(1,14109952,1,1,2) [2024-12-26 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109952', 'tblTempUsageDetail_20' ) start [2024-12-26 22:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109952', 'tblTempUsageDetail_20' ) end [2024-12-26 22:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:36:19] Production.INFO: ==7788== Releasing lock... [2024-12-26 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:36:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:37:05 [end_date_ymd] => 2024-12-26 22:37:05 [RateCDR] => 1 ) [2024-12-26 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:37:05' and `end` < '2024-12-26 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:37:18] Production.INFO: count ==926 [2024-12-26 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:37:05 - End Time 2024-12-26 22:37:05 [2024-12-26 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109957', 'tblTempUsageDetail_20' ) start [2024-12-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109957', 'tblTempUsageDetail_20' ) end [2024-12-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109957', 'tblTempVendorCDR_20' ) start [2024-12-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109957', 'tblTempVendorCDR_20' ) end [2024-12-26 22:37:18] Production.INFO: ProcessCDR(1,14109957,1,1,2) [2024-12-26 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109957', 'tblTempUsageDetail_20' ) start [2024-12-26 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109957', 'tblTempUsageDetail_20' ) end [2024-12-26 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:37:21] Production.INFO: ==7893== Releasing lock... [2024-12-26 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:37:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:38:05 [end_date_ymd] => 2024-12-26 22:38:05 [RateCDR] => 1 ) [2024-12-26 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:38:05' and `end` < '2024-12-26 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:38:17] Production.INFO: count ==926 [2024-12-26 22:38:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:38:05 - End Time 2024-12-26 22:38:05 [2024-12-26 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109962', 'tblTempUsageDetail_20' ) start [2024-12-26 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109962', 'tblTempUsageDetail_20' ) end [2024-12-26 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109962', 'tblTempVendorCDR_20' ) start [2024-12-26 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109962', 'tblTempVendorCDR_20' ) end [2024-12-26 22:38:17] Production.INFO: ProcessCDR(1,14109962,1,1,2) [2024-12-26 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109962', 'tblTempUsageDetail_20' ) start [2024-12-26 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109962', 'tblTempUsageDetail_20' ) end [2024-12-26 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:38:20] Production.INFO: ==8037== Releasing lock... [2024-12-26 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:38:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:39:04 [end_date_ymd] => 2024-12-26 22:39:04 [RateCDR] => 1 ) [2024-12-26 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:39:04' and `end` < '2024-12-26 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:39:17] Production.INFO: count ==927 [2024-12-26 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:39:04 - End Time 2024-12-26 22:39:04 [2024-12-26 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109967', 'tblTempUsageDetail_20' ) start [2024-12-26 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109967', 'tblTempUsageDetail_20' ) end [2024-12-26 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109967', 'tblTempVendorCDR_20' ) start [2024-12-26 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109967', 'tblTempVendorCDR_20' ) end [2024-12-26 22:39:17] Production.INFO: ProcessCDR(1,14109967,1,1,2) [2024-12-26 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109967', 'tblTempUsageDetail_20' ) start [2024-12-26 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109967', 'tblTempUsageDetail_20' ) end [2024-12-26 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:39:20] Production.INFO: ==8139== Releasing lock... [2024-12-26 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:39:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:40:05 [end_date_ymd] => 2024-12-26 22:40:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:40:05' and `end` < '2024-12-26 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:40:18] Production.INFO: count ==927 [2024-12-26 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:40:05 - End Time 2024-12-26 22:40:05 [2024-12-26 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109973', 'tblTempUsageDetail_20' ) start [2024-12-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109973', 'tblTempUsageDetail_20' ) end [2024-12-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109973', 'tblTempVendorCDR_20' ) start [2024-12-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109973', 'tblTempVendorCDR_20' ) end [2024-12-26 22:40:18] Production.INFO: ProcessCDR(1,14109973,1,1,2) [2024-12-26 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109973', 'tblTempUsageDetail_20' ) start [2024-12-26 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109973', 'tblTempUsageDetail_20' ) end [2024-12-26 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:40:21] Production.INFO: ==8252== Releasing lock... [2024-12-26 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:40:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:41:04 [end_date_ymd] => 2024-12-26 22:41:04 [RateCDR] => 1 ) [2024-12-26 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:41:04' and `end` < '2024-12-26 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:41:17] Production.INFO: count ==921 [2024-12-26 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:41:04 - End Time 2024-12-26 22:41:04 [2024-12-26 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109978', 'tblTempUsageDetail_20' ) start [2024-12-26 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109978', 'tblTempUsageDetail_20' ) end [2024-12-26 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109978', 'tblTempVendorCDR_20' ) start [2024-12-26 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109978', 'tblTempVendorCDR_20' ) end [2024-12-26 22:41:17] Production.INFO: ProcessCDR(1,14109978,1,1,2) [2024-12-26 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109978', 'tblTempUsageDetail_20' ) start [2024-12-26 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109978', 'tblTempUsageDetail_20' ) end [2024-12-26 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:41:20] Production.INFO: ==8351== Releasing lock... [2024-12-26 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:41:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:42:05 [end_date_ymd] => 2024-12-26 22:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:42:17] Production.INFO: count ==915 [2024-12-26 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:42:05 - End Time 2024-12-26 22:42:05 [2024-12-26 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109983', 'tblTempUsageDetail_20' ) start [2024-12-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109983', 'tblTempUsageDetail_20' ) end [2024-12-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109983', 'tblTempVendorCDR_20' ) start [2024-12-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109983', 'tblTempVendorCDR_20' ) end [2024-12-26 22:42:17] Production.INFO: ProcessCDR(1,14109983,1,1,2) [2024-12-26 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109983', 'tblTempUsageDetail_20' ) start [2024-12-26 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109983', 'tblTempUsageDetail_20' ) end [2024-12-26 22:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:42:21] Production.INFO: ==8458== Releasing lock... [2024-12-26 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:42:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:43:05 [end_date_ymd] => 2024-12-26 22:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:43:19] Production.INFO: count ==915 [2024-12-26 22:43:19] Production.ERROR: pbx CDR StartTime 2024-12-26 19:43:05 - End Time 2024-12-26 22:43:05 [2024-12-26 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109988', 'tblTempUsageDetail_20' ) start [2024-12-26 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109988', 'tblTempUsageDetail_20' ) end [2024-12-26 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109988', 'tblTempVendorCDR_20' ) start [2024-12-26 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109988', 'tblTempVendorCDR_20' ) end [2024-12-26 22:43:19] Production.INFO: ProcessCDR(1,14109988,1,1,2) [2024-12-26 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109988', 'tblTempUsageDetail_20' ) start [2024-12-26 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109988', 'tblTempUsageDetail_20' ) end [2024-12-26 22:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:43:22] Production.INFO: ==8555== Releasing lock... [2024-12-26 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:43:22] Production.INFO: 34 MB #Memory Used# [2024-12-26 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:44:05 [end_date_ymd] => 2024-12-26 22:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:44:17] Production.INFO: count ==918 [2024-12-26 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:44:05 - End Time 2024-12-26 22:44:05 [2024-12-26 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109993', 'tblTempUsageDetail_20' ) start [2024-12-26 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109993', 'tblTempUsageDetail_20' ) end [2024-12-26 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109993', 'tblTempVendorCDR_20' ) start [2024-12-26 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109993', 'tblTempVendorCDR_20' ) end [2024-12-26 22:44:18] Production.INFO: ProcessCDR(1,14109993,1,1,2) [2024-12-26 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109993', 'tblTempUsageDetail_20' ) start [2024-12-26 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109993', 'tblTempUsageDetail_20' ) end [2024-12-26 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:44:21] Production.INFO: ==8657== Releasing lock... [2024-12-26 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:44:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:45:05 [end_date_ymd] => 2024-12-26 22:45:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:45:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:45:18] Production.INFO: count ==917 [2024-12-26 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:45:05 - End Time 2024-12-26 22:45:05 [2024-12-26 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109998', 'tblTempUsageDetail_20' ) start [2024-12-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14109998', 'tblTempUsageDetail_20' ) end [2024-12-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109998', 'tblTempVendorCDR_20' ) start [2024-12-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14109998', 'tblTempVendorCDR_20' ) end [2024-12-26 22:45:18] Production.INFO: ProcessCDR(1,14109998,1,1,2) [2024-12-26 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14109998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14109998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14109998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14109998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109998', 'tblTempUsageDetail_20' ) start [2024-12-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14109998', 'tblTempUsageDetail_20' ) end [2024-12-26 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:45:21] Production.INFO: ==8751== Releasing lock... [2024-12-26 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:45:21] Production.INFO: 34 MB #Memory Used# [2024-12-26 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:46:04 [end_date_ymd] => 2024-12-26 22:46:04 [RateCDR] => 1 ) [2024-12-26 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:46:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:46:17] Production.INFO: count ==918 [2024-12-26 22:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:46:04 - End Time 2024-12-26 22:46:04 [2024-12-26 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110003', 'tblTempUsageDetail_20' ) start [2024-12-26 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110003', 'tblTempUsageDetail_20' ) end [2024-12-26 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110003', 'tblTempVendorCDR_20' ) start [2024-12-26 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110003', 'tblTempVendorCDR_20' ) end [2024-12-26 22:46:17] Production.INFO: ProcessCDR(1,14110003,1,1,2) [2024-12-26 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110003', 'tblTempUsageDetail_20' ) start [2024-12-26 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110003', 'tblTempUsageDetail_20' ) end [2024-12-26 22:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:46:20] Production.INFO: ==8843== Releasing lock... [2024-12-26 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:46:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:47:05 [end_date_ymd] => 2024-12-26 22:47:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:47:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:47:18] Production.INFO: count ==919 [2024-12-26 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:47:05 - End Time 2024-12-26 22:47:05 [2024-12-26 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110008', 'tblTempUsageDetail_20' ) start [2024-12-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110008', 'tblTempUsageDetail_20' ) end [2024-12-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110008', 'tblTempVendorCDR_20' ) start [2024-12-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110008', 'tblTempVendorCDR_20' ) end [2024-12-26 22:47:18] Production.INFO: ProcessCDR(1,14110008,1,1,2) [2024-12-26 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110008', 'tblTempUsageDetail_20' ) start [2024-12-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110008', 'tblTempUsageDetail_20' ) end [2024-12-26 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:47:21] Production.INFO: ==8939== Releasing lock... [2024-12-26 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:47:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-26 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:48:04 [end_date_ymd] => 2024-12-26 22:48:04 [RateCDR] => 1 ) [2024-12-26 22:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:48:04' and `end` < '2024-12-26 22:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:48:17] Production.INFO: count ==1030 [2024-12-26 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:48:04 - End Time 2024-12-26 22:48:04 [2024-12-26 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110013', 'tblTempUsageDetail_20' ) start [2024-12-26 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110013', 'tblTempUsageDetail_20' ) end [2024-12-26 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110013', 'tblTempVendorCDR_20' ) start [2024-12-26 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110013', 'tblTempVendorCDR_20' ) end [2024-12-26 22:48:17] Production.INFO: ProcessCDR(1,14110013,1,1,2) [2024-12-26 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110013', 'tblTempUsageDetail_20' ) start [2024-12-26 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110013', 'tblTempUsageDetail_20' ) end [2024-12-26 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:48:20] Production.INFO: ==9042== Releasing lock... [2024-12-26 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:48:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:49:05 [end_date_ymd] => 2024-12-26 22:49:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:49:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:49:17] Production.INFO: count ==1028 [2024-12-26 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:49:05 - End Time 2024-12-26 22:49:05 [2024-12-26 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110018', 'tblTempUsageDetail_20' ) start [2024-12-26 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110018', 'tblTempUsageDetail_20' ) end [2024-12-26 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110018', 'tblTempVendorCDR_20' ) start [2024-12-26 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110018', 'tblTempVendorCDR_20' ) end [2024-12-26 22:49:17] Production.INFO: ProcessCDR(1,14110018,1,1,2) [2024-12-26 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110018', 'tblTempUsageDetail_20' ) start [2024-12-26 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110018', 'tblTempUsageDetail_20' ) end [2024-12-26 22:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:49:20] Production.INFO: ==9134== Releasing lock... [2024-12-26 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:49:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:50:05 [end_date_ymd] => 2024-12-26 22:50:05 [RateCDR] => 1 ) [2024-12-26 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 19:50:05' and `end` < '2024-12-26 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 22:50:18] Production.INFO: count ==1032 [2024-12-26 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:50:05 - End Time 2024-12-26 22:50:05 [2024-12-26 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110024', 'tblTempUsageDetail_20' ) start [2024-12-26 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110024', 'tblTempUsageDetail_20' ) end [2024-12-26 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110024', 'tblTempVendorCDR_20' ) start [2024-12-26 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110024', 'tblTempVendorCDR_20' ) end [2024-12-26 22:50:18] Production.INFO: ProcessCDR(1,14110024,1,1,2) [2024-12-26 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110024', 'tblTempUsageDetail_20' ) start [2024-12-26 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110024', 'tblTempUsageDetail_20' ) end [2024-12-26 22:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:50:23] Production.INFO: ==9231== Releasing lock... [2024-12-26 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:50:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:51:05 [end_date_ymd] => 2024-12-26 22:51:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:51:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:51:17] Production.INFO: count ==1069 [2024-12-26 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:51:05 - End Time 2024-12-26 22:51:05 [2024-12-26 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110029', 'tblTempUsageDetail_20' ) start [2024-12-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110029', 'tblTempUsageDetail_20' ) end [2024-12-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110029', 'tblTempVendorCDR_20' ) start [2024-12-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110029', 'tblTempVendorCDR_20' ) end [2024-12-26 22:51:18] Production.INFO: ProcessCDR(1,14110029,1,1,2) [2024-12-26 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110029', 'tblTempUsageDetail_20' ) start [2024-12-26 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110029', 'tblTempUsageDetail_20' ) end [2024-12-26 22:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:51:22] Production.INFO: ==9332== Releasing lock... [2024-12-26 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:51:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:52:04 [end_date_ymd] => 2024-12-26 22:52:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:52:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:52:17] Production.INFO: count ==1079 [2024-12-26 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:52:04 - End Time 2024-12-26 22:52:04 [2024-12-26 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110034', 'tblTempUsageDetail_20' ) start [2024-12-26 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110034', 'tblTempUsageDetail_20' ) end [2024-12-26 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110034', 'tblTempVendorCDR_20' ) start [2024-12-26 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110034', 'tblTempVendorCDR_20' ) end [2024-12-26 22:52:17] Production.INFO: ProcessCDR(1,14110034,1,1,2) [2024-12-26 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110034', 'tblTempUsageDetail_20' ) start [2024-12-26 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110034', 'tblTempUsageDetail_20' ) end [2024-12-26 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:52:21] Production.INFO: ==9431== Releasing lock... [2024-12-26 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:52:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:53:05 [end_date_ymd] => 2024-12-26 22:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:53:17] Production.INFO: count ==1079 [2024-12-26 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:53:05 - End Time 2024-12-26 22:53:05 [2024-12-26 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110039', 'tblTempUsageDetail_20' ) start [2024-12-26 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110039', 'tblTempUsageDetail_20' ) end [2024-12-26 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110039', 'tblTempVendorCDR_20' ) start [2024-12-26 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110039', 'tblTempVendorCDR_20' ) end [2024-12-26 22:53:17] Production.INFO: ProcessCDR(1,14110039,1,1,2) [2024-12-26 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110039', 'tblTempUsageDetail_20' ) start [2024-12-26 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110039', 'tblTempUsageDetail_20' ) end [2024-12-26 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:53:20] Production.INFO: ==9526== Releasing lock... [2024-12-26 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:53:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:54:04 [end_date_ymd] => 2024-12-26 22:54:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:54:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:54:17] Production.INFO: count ==1082 [2024-12-26 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:54:04 - End Time 2024-12-26 22:54:04 [2024-12-26 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110044', 'tblTempUsageDetail_20' ) start [2024-12-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110044', 'tblTempUsageDetail_20' ) end [2024-12-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110044', 'tblTempVendorCDR_20' ) start [2024-12-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110044', 'tblTempVendorCDR_20' ) end [2024-12-26 22:54:17] Production.INFO: ProcessCDR(1,14110044,1,1,2) [2024-12-26 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110044', 'tblTempUsageDetail_20' ) start [2024-12-26 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110044', 'tblTempUsageDetail_20' ) end [2024-12-26 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:54:20] Production.INFO: ==9657== Releasing lock... [2024-12-26 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:54:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:55:05 [end_date_ymd] => 2024-12-26 22:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:55:17] Production.INFO: count ==1082 [2024-12-26 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:55:05 - End Time 2024-12-26 22:55:05 [2024-12-26 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110049', 'tblTempUsageDetail_20' ) start [2024-12-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110049', 'tblTempUsageDetail_20' ) end [2024-12-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110049', 'tblTempVendorCDR_20' ) start [2024-12-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110049', 'tblTempVendorCDR_20' ) end [2024-12-26 22:55:17] Production.INFO: ProcessCDR(1,14110049,1,1,2) [2024-12-26 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110049', 'tblTempUsageDetail_20' ) start [2024-12-26 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110049', 'tblTempUsageDetail_20' ) end [2024-12-26 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:55:20] Production.INFO: ==9757== Releasing lock... [2024-12-26 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:55:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:56:05 [end_date_ymd] => 2024-12-26 22:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:56:17] Production.INFO: count ==1082 [2024-12-26 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 19:56:05 - End Time 2024-12-26 22:56:05 [2024-12-26 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110054', 'tblTempUsageDetail_20' ) start [2024-12-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110054', 'tblTempUsageDetail_20' ) end [2024-12-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110054', 'tblTempVendorCDR_20' ) start [2024-12-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110054', 'tblTempVendorCDR_20' ) end [2024-12-26 22:56:18] Production.INFO: ProcessCDR(1,14110054,1,1,2) [2024-12-26 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110054', 'tblTempUsageDetail_20' ) start [2024-12-26 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110054', 'tblTempUsageDetail_20' ) end [2024-12-26 22:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:56:21] Production.INFO: ==9852== Releasing lock... [2024-12-26 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:56:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:57:04 [end_date_ymd] => 2024-12-26 22:57:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:57:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:57:17] Production.INFO: count ==1083 [2024-12-26 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:57:04 - End Time 2024-12-26 22:57:04 [2024-12-26 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110059', 'tblTempUsageDetail_20' ) start [2024-12-26 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110059', 'tblTempUsageDetail_20' ) end [2024-12-26 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110059', 'tblTempVendorCDR_20' ) start [2024-12-26 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110059', 'tblTempVendorCDR_20' ) end [2024-12-26 22:57:17] Production.INFO: ProcessCDR(1,14110059,1,1,2) [2024-12-26 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110059', 'tblTempUsageDetail_20' ) start [2024-12-26 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110059', 'tblTempUsageDetail_20' ) end [2024-12-26 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:57:20] Production.INFO: ==9943== Releasing lock... [2024-12-26 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:57:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:58:05 [end_date_ymd] => 2024-12-26 22:58:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 19:58:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 22:58:19] Production.INFO: count ==1091 [2024-12-26 22:58:19] Production.ERROR: pbx CDR StartTime 2024-12-26 19:58:05 - End Time 2024-12-26 22:58:05 [2024-12-26 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110064', 'tblTempUsageDetail_20' ) start [2024-12-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110064', 'tblTempUsageDetail_20' ) end [2024-12-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110064', 'tblTempVendorCDR_20' ) start [2024-12-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110064', 'tblTempVendorCDR_20' ) end [2024-12-26 22:58:19] Production.INFO: ProcessCDR(1,14110064,1,1,2) [2024-12-26 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110064', 'tblTempUsageDetail_20' ) start [2024-12-26 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110064', 'tblTempUsageDetail_20' ) end [2024-12-26 22:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:58:23] Production.INFO: ==10033== Releasing lock... [2024-12-26 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:58:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 19:59:04 [end_date_ymd] => 2024-12-26 22:59:04 [RateCDR] => 1 ) [2024-12-26 22: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` >= '2024-12-26 19:59:04' and `end` < '2024-12-26 22: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 ,'') [2024-12-26 22:59:17] Production.INFO: count ==1090 [2024-12-26 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-26 19:59:04 - End Time 2024-12-26 22:59:04 [2024-12-26 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110069', 'tblTempUsageDetail_20' ) start [2024-12-26 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110069', 'tblTempUsageDetail_20' ) end [2024-12-26 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110069', 'tblTempVendorCDR_20' ) start [2024-12-26 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110069', 'tblTempVendorCDR_20' ) end [2024-12-26 22:59:17] Production.INFO: ProcessCDR(1,14110069,1,1,2) [2024-12-26 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110069', 'tblTempUsageDetail_20' ) start [2024-12-26 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110069', 'tblTempUsageDetail_20' ) end [2024-12-26 22:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 22:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 22:59:20] Production.INFO: ==10125== Releasing lock... [2024-12-26 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 22:59:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:00:06 [end_date_ymd] => 2024-12-26 23:00:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:00:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:00:18] Production.INFO: count ==1086 [2024-12-26 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:00:06 - End Time 2024-12-26 23:00:06 [2024-12-26 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110075', 'tblTempUsageDetail_20' ) start [2024-12-26 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110075', 'tblTempUsageDetail_20' ) end [2024-12-26 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110075', 'tblTempVendorCDR_20' ) start [2024-12-26 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110075', 'tblTempVendorCDR_20' ) end [2024-12-26 23:00:18] Production.INFO: ProcessCDR(1,14110075,1,1,2) [2024-12-26 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110075', 'tblTempUsageDetail_20' ) start [2024-12-26 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110075', 'tblTempUsageDetail_20' ) end [2024-12-26 23:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:00:23] Production.INFO: ==10216== Releasing lock... [2024-12-26 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:00:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:01:04 [end_date_ymd] => 2024-12-26 23:01:04 [RateCDR] => 1 ) [2024-12-26 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:01:04' and `end` < '2024-12-26 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:01:17] Production.INFO: count ==1058 [2024-12-26 23:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:01:04 - End Time 2024-12-26 23:01:04 [2024-12-26 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110080', 'tblTempUsageDetail_20' ) start [2024-12-26 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110080', 'tblTempUsageDetail_20' ) end [2024-12-26 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110080', 'tblTempVendorCDR_20' ) start [2024-12-26 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110080', 'tblTempVendorCDR_20' ) end [2024-12-26 23:01:17] Production.INFO: ProcessCDR(1,14110080,1,1,2) [2024-12-26 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110080', 'tblTempUsageDetail_20' ) start [2024-12-26 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110080', 'tblTempUsageDetail_20' ) end [2024-12-26 23:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:01:20] Production.INFO: ==10398== Releasing lock... [2024-12-26 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:01:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:02:05 [end_date_ymd] => 2024-12-26 23:02:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:02:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:02:17] Production.INFO: count ==1057 [2024-12-26 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:02:05 - End Time 2024-12-26 23:02:05 [2024-12-26 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110085', 'tblTempUsageDetail_20' ) start [2024-12-26 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110085', 'tblTempUsageDetail_20' ) end [2024-12-26 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110085', 'tblTempVendorCDR_20' ) start [2024-12-26 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110085', 'tblTempVendorCDR_20' ) end [2024-12-26 23:02:17] Production.INFO: ProcessCDR(1,14110085,1,1,2) [2024-12-26 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110085', 'tblTempUsageDetail_20' ) start [2024-12-26 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110085', 'tblTempUsageDetail_20' ) end [2024-12-26 23:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:02:20] Production.INFO: ==10492== Releasing lock... [2024-12-26 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:02:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:03:05 [end_date_ymd] => 2024-12-26 23:03:05 [RateCDR] => 1 ) [2024-12-26 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:03:05' and `end` < '2024-12-26 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:03:18] Production.INFO: count ==1057 [2024-12-26 23:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:03:05 - End Time 2024-12-26 23:03:05 [2024-12-26 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110090', 'tblTempUsageDetail_20' ) start [2024-12-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110090', 'tblTempUsageDetail_20' ) end [2024-12-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110090', 'tblTempVendorCDR_20' ) start [2024-12-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110090', 'tblTempVendorCDR_20' ) end [2024-12-26 23:03:19] Production.INFO: ProcessCDR(1,14110090,1,1,2) [2024-12-26 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110090', 'tblTempUsageDetail_20' ) start [2024-12-26 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110090', 'tblTempUsageDetail_20' ) end [2024-12-26 23:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:03:23] Production.INFO: ==10585== Releasing lock... [2024-12-26 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:03:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:04:05 [end_date_ymd] => 2024-12-26 23:04:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:04:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:04:17] Production.INFO: count ==1053 [2024-12-26 23:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:04:05 - End Time 2024-12-26 23:04:05 [2024-12-26 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110095', 'tblTempUsageDetail_20' ) start [2024-12-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110095', 'tblTempUsageDetail_20' ) end [2024-12-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110095', 'tblTempVendorCDR_20' ) start [2024-12-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110095', 'tblTempVendorCDR_20' ) end [2024-12-26 23:04:18] Production.INFO: ProcessCDR(1,14110095,1,1,2) [2024-12-26 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110095', 'tblTempUsageDetail_20' ) start [2024-12-26 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110095', 'tblTempUsageDetail_20' ) end [2024-12-26 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:04:21] Production.INFO: ==10675== Releasing lock... [2024-12-26 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:04:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:05:05 [end_date_ymd] => 2024-12-26 23:05:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:05:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:05:17] Production.INFO: count ==1050 [2024-12-26 23:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:05:05 - End Time 2024-12-26 23:05:05 [2024-12-26 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110100', 'tblTempUsageDetail_20' ) start [2024-12-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110100', 'tblTempUsageDetail_20' ) end [2024-12-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110100', 'tblTempVendorCDR_20' ) start [2024-12-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110100', 'tblTempVendorCDR_20' ) end [2024-12-26 23:05:18] Production.INFO: ProcessCDR(1,14110100,1,1,2) [2024-12-26 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110100', 'tblTempUsageDetail_20' ) start [2024-12-26 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110100', 'tblTempUsageDetail_20' ) end [2024-12-26 23:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:05:22] Production.INFO: ==10841== Releasing lock... [2024-12-26 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:05:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:06:05 [end_date_ymd] => 2024-12-26 23:06:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:06:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:06:17] Production.INFO: count ==1048 [2024-12-26 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:06:05 - End Time 2024-12-26 23:06:05 [2024-12-26 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110105', 'tblTempUsageDetail_20' ) start [2024-12-26 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110105', 'tblTempUsageDetail_20' ) end [2024-12-26 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110105', 'tblTempVendorCDR_20' ) start [2024-12-26 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110105', 'tblTempVendorCDR_20' ) end [2024-12-26 23:06:17] Production.INFO: ProcessCDR(1,14110105,1,1,2) [2024-12-26 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110105', 'tblTempUsageDetail_20' ) start [2024-12-26 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110105', 'tblTempUsageDetail_20' ) end [2024-12-26 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:06:20] Production.INFO: ==10936== Releasing lock... [2024-12-26 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:06:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:07:05 [end_date_ymd] => 2024-12-26 23:07:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:07:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:07:18] Production.INFO: count ==1046 [2024-12-26 23:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:07:05 - End Time 2024-12-26 23:07:05 [2024-12-26 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110110', 'tblTempUsageDetail_20' ) start [2024-12-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110110', 'tblTempUsageDetail_20' ) end [2024-12-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110110', 'tblTempVendorCDR_20' ) start [2024-12-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110110', 'tblTempVendorCDR_20' ) end [2024-12-26 23:07:18] Production.INFO: ProcessCDR(1,14110110,1,1,2) [2024-12-26 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110110', 'tblTempUsageDetail_20' ) start [2024-12-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110110', 'tblTempUsageDetail_20' ) end [2024-12-26 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:07:22] Production.INFO: ==11030== Releasing lock... [2024-12-26 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:07:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:08:05 [end_date_ymd] => 2024-12-26 23:08:05 [RateCDR] => 1 ) [2024-12-26 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:08:05' and `end` < '2024-12-26 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:08:19] Production.INFO: count ==1047 [2024-12-26 23:08:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:08:05 - End Time 2024-12-26 23:08:05 [2024-12-26 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110115', 'tblTempUsageDetail_20' ) start [2024-12-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110115', 'tblTempUsageDetail_20' ) end [2024-12-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110115', 'tblTempVendorCDR_20' ) start [2024-12-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110115', 'tblTempVendorCDR_20' ) end [2024-12-26 23:08:19] Production.INFO: ProcessCDR(1,14110115,1,1,2) [2024-12-26 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110115', 'tblTempUsageDetail_20' ) start [2024-12-26 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110115', 'tblTempUsageDetail_20' ) end [2024-12-26 23:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:08:22] Production.INFO: ==11200== Releasing lock... [2024-12-26 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:08:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:09:05 [end_date_ymd] => 2024-12-26 23:09:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:09:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:09:18] Production.INFO: count ==1049 [2024-12-26 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:09:05 - End Time 2024-12-26 23:09:05 [2024-12-26 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110120', 'tblTempUsageDetail_20' ) start [2024-12-26 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110120', 'tblTempUsageDetail_20' ) end [2024-12-26 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110120', 'tblTempVendorCDR_20' ) start [2024-12-26 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110120', 'tblTempVendorCDR_20' ) end [2024-12-26 23:09:18] Production.INFO: ProcessCDR(1,14110120,1,1,2) [2024-12-26 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110120', 'tblTempUsageDetail_20' ) start [2024-12-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110120', 'tblTempUsageDetail_20' ) end [2024-12-26 23:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:09:22] Production.INFO: ==11299== Releasing lock... [2024-12-26 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:09:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:10:05 [end_date_ymd] => 2024-12-26 23:10:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:10:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:10:18] Production.INFO: count ==1050 [2024-12-26 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:10:05 - End Time 2024-12-26 23:10:05 [2024-12-26 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110126', 'tblTempUsageDetail_20' ) start [2024-12-26 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110126', 'tblTempUsageDetail_20' ) end [2024-12-26 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110126', 'tblTempVendorCDR_20' ) start [2024-12-26 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110126', 'tblTempVendorCDR_20' ) end [2024-12-26 23:10:18] Production.INFO: ProcessCDR(1,14110126,1,1,2) [2024-12-26 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110126', 'tblTempUsageDetail_20' ) start [2024-12-26 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110126', 'tblTempUsageDetail_20' ) end [2024-12-26 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:10:21] Production.INFO: ==11434== Releasing lock... [2024-12-26 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:10:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:11:05 [end_date_ymd] => 2024-12-26 23:11:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:11:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:11:18] Production.INFO: count ==1069 [2024-12-26 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:11:05 - End Time 2024-12-26 23:11:05 [2024-12-26 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110131', 'tblTempUsageDetail_20' ) start [2024-12-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110131', 'tblTempUsageDetail_20' ) end [2024-12-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110131', 'tblTempVendorCDR_20' ) start [2024-12-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110131', 'tblTempVendorCDR_20' ) end [2024-12-26 23:11:18] Production.INFO: ProcessCDR(1,14110131,1,1,2) [2024-12-26 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110131', 'tblTempUsageDetail_20' ) start [2024-12-26 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110131', 'tblTempUsageDetail_20' ) end [2024-12-26 23:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:11:23] Production.INFO: ==11530== Releasing lock... [2024-12-26 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:11:23] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:12:05 [end_date_ymd] => 2024-12-26 23:12:05 [RateCDR] => 1 ) [2024-12-26 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:12:05' and `end` < '2024-12-26 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:12:17] Production.INFO: count ==1073 [2024-12-26 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:12:05 - End Time 2024-12-26 23:12:05 [2024-12-26 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110136', 'tblTempUsageDetail_20' ) start [2024-12-26 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110136', 'tblTempUsageDetail_20' ) end [2024-12-26 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110136', 'tblTempVendorCDR_20' ) start [2024-12-26 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110136', 'tblTempVendorCDR_20' ) end [2024-12-26 23:12:18] Production.INFO: ProcessCDR(1,14110136,1,1,2) [2024-12-26 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110136', 'tblTempUsageDetail_20' ) start [2024-12-26 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110136', 'tblTempUsageDetail_20' ) end [2024-12-26 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:12:21] Production.INFO: ==11699== Releasing lock... [2024-12-26 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:12:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:13:04 [end_date_ymd] => 2024-12-26 23:13:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:13:04' and `end` < '2024-12-26 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:13:18] Production.INFO: count ==1076 [2024-12-26 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:13:04 - End Time 2024-12-26 23:13:04 [2024-12-26 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110141', 'tblTempUsageDetail_20' ) start [2024-12-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110141', 'tblTempUsageDetail_20' ) end [2024-12-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110141', 'tblTempVendorCDR_20' ) start [2024-12-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110141', 'tblTempVendorCDR_20' ) end [2024-12-26 23:13:18] Production.INFO: ProcessCDR(1,14110141,1,1,2) [2024-12-26 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110141', 'tblTempUsageDetail_20' ) start [2024-12-26 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110141', 'tblTempUsageDetail_20' ) end [2024-12-26 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:13:21] Production.INFO: ==11789== Releasing lock... [2024-12-26 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:13:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:14:05 [end_date_ymd] => 2024-12-26 23:14:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:14:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:14:17] Production.INFO: count ==1066 [2024-12-26 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:14:05 - End Time 2024-12-26 23:14:05 [2024-12-26 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110146', 'tblTempUsageDetail_20' ) start [2024-12-26 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110146', 'tblTempUsageDetail_20' ) end [2024-12-26 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110146', 'tblTempVendorCDR_20' ) start [2024-12-26 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110146', 'tblTempVendorCDR_20' ) end [2024-12-26 23:14:18] Production.INFO: ProcessCDR(1,14110146,1,1,2) [2024-12-26 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110146', 'tblTempUsageDetail_20' ) start [2024-12-26 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110146', 'tblTempUsageDetail_20' ) end [2024-12-26 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:14:21] Production.INFO: ==11882== Releasing lock... [2024-12-26 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:14:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:15:05 [end_date_ymd] => 2024-12-26 23:15:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:15:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:15:19] Production.INFO: count ==1059 [2024-12-26 23:15:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:15:05 - End Time 2024-12-26 23:15:05 [2024-12-26 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110151', 'tblTempUsageDetail_20' ) start [2024-12-26 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110151', 'tblTempUsageDetail_20' ) end [2024-12-26 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110151', 'tblTempVendorCDR_20' ) start [2024-12-26 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110151', 'tblTempVendorCDR_20' ) end [2024-12-26 23:15:19] Production.INFO: ProcessCDR(1,14110151,1,1,2) [2024-12-26 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110151', 'tblTempUsageDetail_20' ) start [2024-12-26 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110151', 'tblTempUsageDetail_20' ) end [2024-12-26 23:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:15:24] Production.INFO: ==12054== Releasing lock... [2024-12-26 23:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:15:24] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:16:05 [end_date_ymd] => 2024-12-26 23:16:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:16:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:16:19] Production.INFO: count ==1059 [2024-12-26 23:16:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:16:05 - End Time 2024-12-26 23:16:05 [2024-12-26 23:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110156', 'tblTempUsageDetail_20' ) start [2024-12-26 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110156', 'tblTempUsageDetail_20' ) end [2024-12-26 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110156', 'tblTempVendorCDR_20' ) start [2024-12-26 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110156', 'tblTempVendorCDR_20' ) end [2024-12-26 23:16:20] Production.INFO: ProcessCDR(1,14110156,1,1,2) [2024-12-26 23:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110156', 'tblTempUsageDetail_20' ) start [2024-12-26 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110156', 'tblTempUsageDetail_20' ) end [2024-12-26 23:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:16:23] Production.INFO: ==12144== Releasing lock... [2024-12-26 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:16:23] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:17:05 [end_date_ymd] => 2024-12-26 23:17:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:17:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:17:20] Production.INFO: count ==1064 [2024-12-26 23:17:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:17:05 - End Time 2024-12-26 23:17:05 [2024-12-26 23:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110161', 'tblTempUsageDetail_20' ) start [2024-12-26 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110161', 'tblTempUsageDetail_20' ) end [2024-12-26 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110161', 'tblTempVendorCDR_20' ) start [2024-12-26 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110161', 'tblTempVendorCDR_20' ) end [2024-12-26 23:17:20] Production.INFO: ProcessCDR(1,14110161,1,1,2) [2024-12-26 23:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110161', 'tblTempUsageDetail_20' ) start [2024-12-26 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110161', 'tblTempUsageDetail_20' ) end [2024-12-26 23:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:17:24] Production.INFO: ==12235== Releasing lock... [2024-12-26 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:17:24] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:18:05 [end_date_ymd] => 2024-12-26 23:18:05 [RateCDR] => 1 ) [2024-12-26 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:18:05' and `end` < '2024-12-26 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:18:18] Production.INFO: count ==1065 [2024-12-26 23:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:18:05 - End Time 2024-12-26 23:18:05 [2024-12-26 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110166', 'tblTempUsageDetail_20' ) start [2024-12-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110166', 'tblTempUsageDetail_20' ) end [2024-12-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110166', 'tblTempVendorCDR_20' ) start [2024-12-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110166', 'tblTempVendorCDR_20' ) end [2024-12-26 23:18:18] Production.INFO: ProcessCDR(1,14110166,1,1,2) [2024-12-26 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110166', 'tblTempUsageDetail_20' ) start [2024-12-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110166', 'tblTempUsageDetail_20' ) end [2024-12-26 23:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:18:21] Production.INFO: ==12329== Releasing lock... [2024-12-26 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:18:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:19:04 [end_date_ymd] => 2024-12-26 23:19:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:19:04' and `end` < '2024-12-26 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:19:17] Production.INFO: count ==1072 [2024-12-26 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:19:04 - End Time 2024-12-26 23:19:04 [2024-12-26 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110171', 'tblTempUsageDetail_20' ) start [2024-12-26 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110171', 'tblTempUsageDetail_20' ) end [2024-12-26 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110171', 'tblTempVendorCDR_20' ) start [2024-12-26 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110171', 'tblTempVendorCDR_20' ) end [2024-12-26 23:19:17] Production.INFO: ProcessCDR(1,14110171,1,1,2) [2024-12-26 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110171', 'tblTempUsageDetail_20' ) start [2024-12-26 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110171', 'tblTempUsageDetail_20' ) end [2024-12-26 23:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:19:22] Production.INFO: ==12417== Releasing lock... [2024-12-26 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:19:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:20:05 [end_date_ymd] => 2024-12-26 23:20:05 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:20:05' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:20:18] Production.INFO: count ==1072 [2024-12-26 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:20:05 - End Time 2024-12-26 23:20:05 [2024-12-26 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110176', 'tblTempUsageDetail_20' ) start [2024-12-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110176', 'tblTempUsageDetail_20' ) end [2024-12-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110176', 'tblTempVendorCDR_20' ) start [2024-12-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110176', 'tblTempVendorCDR_20' ) end [2024-12-26 23:20:18] Production.INFO: ProcessCDR(1,14110176,1,1,2) [2024-12-26 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110176', 'tblTempUsageDetail_20' ) start [2024-12-26 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110176', 'tblTempUsageDetail_20' ) end [2024-12-26 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:20:21] Production.INFO: ==12512== Releasing lock... [2024-12-26 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:20:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:21:05 [end_date_ymd] => 2024-12-26 23:21:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:21:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:21:20] Production.INFO: count ==1095 [2024-12-26 23:21:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:21:05 - End Time 2024-12-26 23:21:05 [2024-12-26 23:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110182', 'tblTempUsageDetail_20' ) start [2024-12-26 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110182', 'tblTempUsageDetail_20' ) end [2024-12-26 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110182', 'tblTempVendorCDR_20' ) start [2024-12-26 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110182', 'tblTempVendorCDR_20' ) end [2024-12-26 23:21:20] Production.INFO: ProcessCDR(1,14110182,1,1,2) [2024-12-26 23:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110182', 'tblTempUsageDetail_20' ) start [2024-12-26 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110182', 'tblTempUsageDetail_20' ) end [2024-12-26 23:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:21:23] Production.INFO: ==12609== Releasing lock... [2024-12-26 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:21:23] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:22:05 [end_date_ymd] => 2024-12-26 23:22:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:22:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:22:18] Production.INFO: count ==1094 [2024-12-26 23:22:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:22:05 - End Time 2024-12-26 23:22:05 [2024-12-26 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110187', 'tblTempUsageDetail_20' ) start [2024-12-26 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110187', 'tblTempUsageDetail_20' ) end [2024-12-26 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110187', 'tblTempVendorCDR_20' ) start [2024-12-26 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110187', 'tblTempVendorCDR_20' ) end [2024-12-26 23:22:19] Production.INFO: ProcessCDR(1,14110187,1,1,2) [2024-12-26 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110187', 'tblTempUsageDetail_20' ) start [2024-12-26 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110187', 'tblTempUsageDetail_20' ) end [2024-12-26 23:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:22:22] Production.INFO: ==12699== Releasing lock... [2024-12-26 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:22:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:23:05 [end_date_ymd] => 2024-12-26 23:23:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:23:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:23:18] Production.INFO: count ==1092 [2024-12-26 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:23:05 - End Time 2024-12-26 23:23:05 [2024-12-26 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110192', 'tblTempUsageDetail_20' ) start [2024-12-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110192', 'tblTempUsageDetail_20' ) end [2024-12-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110192', 'tblTempVendorCDR_20' ) start [2024-12-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110192', 'tblTempVendorCDR_20' ) end [2024-12-26 23:23:18] Production.INFO: ProcessCDR(1,14110192,1,1,2) [2024-12-26 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110192', 'tblTempUsageDetail_20' ) start [2024-12-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110192', 'tblTempUsageDetail_20' ) end [2024-12-26 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:23:21] Production.INFO: ==12783== Releasing lock... [2024-12-26 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:23:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:24:05 [end_date_ymd] => 2024-12-26 23:24:05 [RateCDR] => 1 ) [2024-12-26 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:24:05' and `end` < '2024-12-26 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:24:17] Production.INFO: count ==1092 [2024-12-26 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:24:05 - End Time 2024-12-26 23:24:05 [2024-12-26 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110197', 'tblTempUsageDetail_20' ) start [2024-12-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110197', 'tblTempUsageDetail_20' ) end [2024-12-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110197', 'tblTempVendorCDR_20' ) start [2024-12-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110197', 'tblTempVendorCDR_20' ) end [2024-12-26 23:24:17] Production.INFO: ProcessCDR(1,14110197,1,1,2) [2024-12-26 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110197', 'tblTempUsageDetail_20' ) start [2024-12-26 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110197', 'tblTempUsageDetail_20' ) end [2024-12-26 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:24:20] Production.INFO: ==12871== Releasing lock... [2024-12-26 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:24:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:25:05 [end_date_ymd] => 2024-12-26 23:25:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:25:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:25:17] Production.INFO: count ==1091 [2024-12-26 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:25:05 - End Time 2024-12-26 23:25:05 [2024-12-26 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110202', 'tblTempUsageDetail_20' ) start [2024-12-26 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110202', 'tblTempUsageDetail_20' ) end [2024-12-26 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110202', 'tblTempVendorCDR_20' ) start [2024-12-26 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110202', 'tblTempVendorCDR_20' ) end [2024-12-26 23:25:17] Production.INFO: ProcessCDR(1,14110202,1,1,2) [2024-12-26 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110202', 'tblTempUsageDetail_20' ) start [2024-12-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110202', 'tblTempUsageDetail_20' ) end [2024-12-26 23:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:25:21] Production.INFO: ==12997== Releasing lock... [2024-12-26 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:25:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:26:05 [end_date_ymd] => 2024-12-26 23:26:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:26:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:26:18] Production.INFO: count ==1092 [2024-12-26 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:26:05 - End Time 2024-12-26 23:26:05 [2024-12-26 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110207', 'tblTempUsageDetail_20' ) start [2024-12-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110207', 'tblTempUsageDetail_20' ) end [2024-12-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110207', 'tblTempVendorCDR_20' ) start [2024-12-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110207', 'tblTempVendorCDR_20' ) end [2024-12-26 23:26:18] Production.INFO: ProcessCDR(1,14110207,1,1,2) [2024-12-26 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110207', 'tblTempUsageDetail_20' ) start [2024-12-26 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110207', 'tblTempUsageDetail_20' ) end [2024-12-26 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:26:21] Production.INFO: ==13091== Releasing lock... [2024-12-26 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:26:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:27:04 [end_date_ymd] => 2024-12-26 23:27:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:27:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:27:18] Production.INFO: count ==1089 [2024-12-26 23:27:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:27:04 - End Time 2024-12-26 23:27:04 [2024-12-26 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110212', 'tblTempUsageDetail_20' ) start [2024-12-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110212', 'tblTempUsageDetail_20' ) end [2024-12-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110212', 'tblTempVendorCDR_20' ) start [2024-12-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110212', 'tblTempVendorCDR_20' ) end [2024-12-26 23:27:18] Production.INFO: ProcessCDR(1,14110212,1,1,2) [2024-12-26 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110212', 'tblTempUsageDetail_20' ) start [2024-12-26 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110212', 'tblTempUsageDetail_20' ) end [2024-12-26 23:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:27:21] Production.INFO: ==13183== Releasing lock... [2024-12-26 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:27:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:28:05 [end_date_ymd] => 2024-12-26 23:28:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:28:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:28:20] Production.INFO: count ==1088 [2024-12-26 23:28:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:28:05 - End Time 2024-12-26 23:28:05 [2024-12-26 23:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110217', 'tblTempUsageDetail_20' ) start [2024-12-26 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110217', 'tblTempUsageDetail_20' ) end [2024-12-26 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110217', 'tblTempVendorCDR_20' ) start [2024-12-26 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110217', 'tblTempVendorCDR_20' ) end [2024-12-26 23:28:20] Production.INFO: ProcessCDR(1,14110217,1,1,2) [2024-12-26 23:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110217', 'tblTempUsageDetail_20' ) start [2024-12-26 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110217', 'tblTempUsageDetail_20' ) end [2024-12-26 23:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:28:23] Production.INFO: ==13282== Releasing lock... [2024-12-26 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:28:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:29:04 [end_date_ymd] => 2024-12-26 23:29:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:29:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:29:17] Production.INFO: count ==1086 [2024-12-26 23:29:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:29:04 - End Time 2024-12-26 23:29:04 [2024-12-26 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110220', 'tblTempUsageDetail_20' ) start [2024-12-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110220', 'tblTempUsageDetail_20' ) end [2024-12-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110220', 'tblTempVendorCDR_20' ) start [2024-12-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110220', 'tblTempVendorCDR_20' ) end [2024-12-26 23:29:18] Production.INFO: ProcessCDR(1,14110220,1,1,2) [2024-12-26 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110220', 'tblTempUsageDetail_20' ) start [2024-12-26 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110220', 'tblTempUsageDetail_20' ) end [2024-12-26 23:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:29:21] Production.INFO: ==13380== Releasing lock... [2024-12-26 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:29:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:30:06 [end_date_ymd] => 2024-12-26 23:30:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:30:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:30:18] Production.INFO: count ==1086 [2024-12-26 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:30:06 - End Time 2024-12-26 23:30:06 [2024-12-26 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110228', 'tblTempUsageDetail_20' ) start [2024-12-26 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110228', 'tblTempUsageDetail_20' ) end [2024-12-26 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110228', 'tblTempVendorCDR_20' ) start [2024-12-26 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110228', 'tblTempVendorCDR_20' ) end [2024-12-26 23:30:18] Production.INFO: ProcessCDR(1,14110228,1,1,2) [2024-12-26 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110228', 'tblTempUsageDetail_20' ) start [2024-12-26 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110228', 'tblTempUsageDetail_20' ) end [2024-12-26 23:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:30:22] Production.INFO: ==13472== Releasing lock... [2024-12-26 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:30:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:31:04 [end_date_ymd] => 2024-12-26 23:31:04 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:31:04' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:31:18] Production.INFO: count ==1087 [2024-12-26 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:31:04 - End Time 2024-12-26 23:31:04 [2024-12-26 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110233', 'tblTempUsageDetail_20' ) start [2024-12-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110233', 'tblTempUsageDetail_20' ) end [2024-12-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110233', 'tblTempVendorCDR_20' ) start [2024-12-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110233', 'tblTempVendorCDR_20' ) end [2024-12-26 23:31:18] Production.INFO: ProcessCDR(1,14110233,1,1,2) [2024-12-26 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110233', 'tblTempUsageDetail_20' ) start [2024-12-26 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110233', 'tblTempUsageDetail_20' ) end [2024-12-26 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:31:21] Production.INFO: ==13569== Releasing lock... [2024-12-26 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:31:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:32:05 [end_date_ymd] => 2024-12-26 23:32:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:32:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:32:18] Production.INFO: count ==1086 [2024-12-26 23:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:32:05 - End Time 2024-12-26 23:32:05 [2024-12-26 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110238', 'tblTempUsageDetail_20' ) start [2024-12-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110238', 'tblTempUsageDetail_20' ) end [2024-12-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110238', 'tblTempVendorCDR_20' ) start [2024-12-26 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110238', 'tblTempVendorCDR_20' ) end [2024-12-26 23:32:18] Production.INFO: ProcessCDR(1,14110238,1,1,2) [2024-12-26 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110238', 'tblTempUsageDetail_20' ) start [2024-12-26 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110238', 'tblTempUsageDetail_20' ) end [2024-12-26 23:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:32:21] Production.INFO: ==13664== Releasing lock... [2024-12-26 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:32:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:33:05 [end_date_ymd] => 2024-12-26 23:33:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:33:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:33:20] Production.INFO: count ==1085 [2024-12-26 23:33:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:33:05 - End Time 2024-12-26 23:33:05 [2024-12-26 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110243', 'tblTempUsageDetail_20' ) start [2024-12-26 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110243', 'tblTempUsageDetail_20' ) end [2024-12-26 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110243', 'tblTempVendorCDR_20' ) start [2024-12-26 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110243', 'tblTempVendorCDR_20' ) end [2024-12-26 23:33:20] Production.INFO: ProcessCDR(1,14110243,1,1,2) [2024-12-26 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110243', 'tblTempUsageDetail_20' ) start [2024-12-26 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110243', 'tblTempUsageDetail_20' ) end [2024-12-26 23:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:33:23] Production.INFO: ==13757== Releasing lock... [2024-12-26 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:33:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-26 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:34:04 [end_date_ymd] => 2024-12-26 23:34:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:34:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:34:20] Production.INFO: count ==1083 [2024-12-26 23:34:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:34:04 - End Time 2024-12-26 23:34:04 [2024-12-26 23:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110248', 'tblTempUsageDetail_20' ) start [2024-12-26 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110248', 'tblTempUsageDetail_20' ) end [2024-12-26 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110248', 'tblTempVendorCDR_20' ) start [2024-12-26 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110248', 'tblTempVendorCDR_20' ) end [2024-12-26 23:34:20] Production.INFO: ProcessCDR(1,14110248,1,1,2) [2024-12-26 23:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110248', 'tblTempUsageDetail_20' ) start [2024-12-26 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110248', 'tblTempUsageDetail_20' ) end [2024-12-26 23:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:34:23] Production.INFO: ==13845== Releasing lock... [2024-12-26 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:34:23] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:35:05 [end_date_ymd] => 2024-12-26 23:35:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:35:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:35:17] Production.INFO: count ==1072 [2024-12-26 23:35:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:35:05 - End Time 2024-12-26 23:35:05 [2024-12-26 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110253', 'tblTempUsageDetail_20' ) start [2024-12-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110253', 'tblTempUsageDetail_20' ) end [2024-12-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110253', 'tblTempVendorCDR_20' ) start [2024-12-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110253', 'tblTempVendorCDR_20' ) end [2024-12-26 23:35:18] Production.INFO: ProcessCDR(1,14110253,1,1,2) [2024-12-26 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110253', 'tblTempUsageDetail_20' ) start [2024-12-26 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110253', 'tblTempUsageDetail_20' ) end [2024-12-26 23:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:35:21] Production.INFO: ==13920== Releasing lock... [2024-12-26 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:35:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-26 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:36:04 [end_date_ymd] => 2024-12-26 23:36:04 [RateCDR] => 1 ) [2024-12-26 23:36: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` >= '2024-12-26 20:36:04' and `end` < '2024-12-26 23:36: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 ,'') [2024-12-26 23:36:16] Production.INFO: count ==1070 [2024-12-26 23:36:16] Production.ERROR: pbx CDR StartTime 2024-12-26 20:36:04 - End Time 2024-12-26 23:36:04 [2024-12-26 23:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110258', 'tblTempUsageDetail_20' ) start [2024-12-26 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110258', 'tblTempUsageDetail_20' ) end [2024-12-26 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110258', 'tblTempVendorCDR_20' ) start [2024-12-26 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110258', 'tblTempVendorCDR_20' ) end [2024-12-26 23:36:16] Production.INFO: ProcessCDR(1,14110258,1,1,2) [2024-12-26 23:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110258', 'tblTempUsageDetail_20' ) start [2024-12-26 23:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110258', 'tblTempUsageDetail_20' ) end [2024-12-26 23:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:36:19] Production.INFO: ==14000== Releasing lock... [2024-12-26 23:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:36:19] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:37:05 [end_date_ymd] => 2024-12-26 23:37:05 [RateCDR] => 1 ) [2024-12-26 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:37:05' and `end` < '2024-12-26 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:37:17] Production.INFO: count ==1070 [2024-12-26 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:37:05 - End Time 2024-12-26 23:37:05 [2024-12-26 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110263', 'tblTempUsageDetail_20' ) start [2024-12-26 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110263', 'tblTempUsageDetail_20' ) end [2024-12-26 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110263', 'tblTempVendorCDR_20' ) start [2024-12-26 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110263', 'tblTempVendorCDR_20' ) end [2024-12-26 23:37:17] Production.INFO: ProcessCDR(1,14110263,1,1,2) [2024-12-26 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110263', 'tblTempUsageDetail_20' ) start [2024-12-26 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110263', 'tblTempUsageDetail_20' ) end [2024-12-26 23:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:37:20] Production.INFO: ==14079== Releasing lock... [2024-12-26 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:37:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:38:05 [end_date_ymd] => 2024-12-26 23:38:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:38:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:38:18] Production.INFO: count ==1068 [2024-12-26 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:38:05 - End Time 2024-12-26 23:38:05 [2024-12-26 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110268', 'tblTempUsageDetail_20' ) start [2024-12-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110268', 'tblTempUsageDetail_20' ) end [2024-12-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110268', 'tblTempVendorCDR_20' ) start [2024-12-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110268', 'tblTempVendorCDR_20' ) end [2024-12-26 23:38:19] Production.INFO: ProcessCDR(1,14110268,1,1,2) [2024-12-26 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110268', 'tblTempUsageDetail_20' ) start [2024-12-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110268', 'tblTempUsageDetail_20' ) end [2024-12-26 23:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:38:22] Production.INFO: ==14157== Releasing lock... [2024-12-26 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:38:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:39:05 [end_date_ymd] => 2024-12-26 23:39:05 [RateCDR] => 1 ) [2024-12-26 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:39:05' and `end` < '2024-12-26 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:39:18] Production.INFO: count ==1067 [2024-12-26 23:39:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:39:05 - End Time 2024-12-26 23:39:05 [2024-12-26 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110273', 'tblTempUsageDetail_20' ) start [2024-12-26 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110273', 'tblTempUsageDetail_20' ) end [2024-12-26 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110273', 'tblTempVendorCDR_20' ) start [2024-12-26 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110273', 'tblTempVendorCDR_20' ) end [2024-12-26 23:39:19] Production.INFO: ProcessCDR(1,14110273,1,1,2) [2024-12-26 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110273', 'tblTempUsageDetail_20' ) start [2024-12-26 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110273', 'tblTempUsageDetail_20' ) end [2024-12-26 23:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:39:22] Production.INFO: ==14229== Releasing lock... [2024-12-26 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:39:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:40:05 [end_date_ymd] => 2024-12-26 23:40:05 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:40:05' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:40:18] Production.INFO: count ==1064 [2024-12-26 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:40:05 - End Time 2024-12-26 23:40:05 [2024-12-26 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110278', 'tblTempUsageDetail_20' ) start [2024-12-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110278', 'tblTempUsageDetail_20' ) end [2024-12-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110278', 'tblTempVendorCDR_20' ) start [2024-12-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110278', 'tblTempVendorCDR_20' ) end [2024-12-26 23:40:18] Production.INFO: ProcessCDR(1,14110278,1,1,2) [2024-12-26 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110278', 'tblTempUsageDetail_20' ) start [2024-12-26 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110278', 'tblTempUsageDetail_20' ) end [2024-12-26 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:40:21] Production.INFO: ==14311== Releasing lock... [2024-12-26 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:40:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:41:04 [end_date_ymd] => 2024-12-26 23:41:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:41:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:41:17] Production.INFO: count ==1052 [2024-12-26 23:41:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:41:04 - End Time 2024-12-26 23:41:04 [2024-12-26 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110284', 'tblTempUsageDetail_20' ) start [2024-12-26 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110284', 'tblTempUsageDetail_20' ) end [2024-12-26 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110284', 'tblTempVendorCDR_20' ) start [2024-12-26 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110284', 'tblTempVendorCDR_20' ) end [2024-12-26 23:41:17] Production.INFO: ProcessCDR(1,14110284,1,1,2) [2024-12-26 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110284', 'tblTempUsageDetail_20' ) start [2024-12-26 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110284', 'tblTempUsageDetail_20' ) end [2024-12-26 23:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:41:20] Production.INFO: ==14427== Releasing lock... [2024-12-26 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:41:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:42:05 [end_date_ymd] => 2024-12-26 23:42:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:42:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:42:17] Production.INFO: count ==1052 [2024-12-26 23:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:42:05 - End Time 2024-12-26 23:42:05 [2024-12-26 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110289', 'tblTempUsageDetail_20' ) start [2024-12-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110289', 'tblTempUsageDetail_20' ) end [2024-12-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110289', 'tblTempVendorCDR_20' ) start [2024-12-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110289', 'tblTempVendorCDR_20' ) end [2024-12-26 23:42:18] Production.INFO: ProcessCDR(1,14110289,1,1,2) [2024-12-26 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110289', 'tblTempUsageDetail_20' ) start [2024-12-26 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110289', 'tblTempUsageDetail_20' ) end [2024-12-26 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:42:21] Production.INFO: ==14504== Releasing lock... [2024-12-26 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:42:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:43:05 [end_date_ymd] => 2024-12-26 23:43:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:43:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:43:20] Production.INFO: count ==1051 [2024-12-26 23:43:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:43:05 - End Time 2024-12-26 23:43:05 [2024-12-26 23:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110294', 'tblTempUsageDetail_20' ) start [2024-12-26 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110294', 'tblTempUsageDetail_20' ) end [2024-12-26 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110294', 'tblTempVendorCDR_20' ) start [2024-12-26 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110294', 'tblTempVendorCDR_20' ) end [2024-12-26 23:43:20] Production.INFO: ProcessCDR(1,14110294,1,1,2) [2024-12-26 23:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110294', 'tblTempUsageDetail_20' ) start [2024-12-26 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110294', 'tblTempUsageDetail_20' ) end [2024-12-26 23:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:43:23] Production.INFO: ==14578== Releasing lock... [2024-12-26 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:43:23] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:44:05 [end_date_ymd] => 2024-12-26 23:44:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:44:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:44:17] Production.INFO: count ==1047 [2024-12-26 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:44:05 - End Time 2024-12-26 23:44:05 [2024-12-26 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110299', 'tblTempUsageDetail_20' ) start [2024-12-26 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110299', 'tblTempUsageDetail_20' ) end [2024-12-26 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110299', 'tblTempVendorCDR_20' ) start [2024-12-26 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110299', 'tblTempVendorCDR_20' ) end [2024-12-26 23:44:17] Production.INFO: ProcessCDR(1,14110299,1,1,2) [2024-12-26 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110299', 'tblTempUsageDetail_20' ) start [2024-12-26 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110299', 'tblTempUsageDetail_20' ) end [2024-12-26 23:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:44:20] Production.INFO: ==14650== Releasing lock... [2024-12-26 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:44:20] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:45:05 [end_date_ymd] => 2024-12-26 23:45:05 [RateCDR] => 1 ) [2024-12-26 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:45:05' and `end` < '2024-12-26 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:45:19] Production.INFO: count ==1049 [2024-12-26 23:45:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:45:05 - End Time 2024-12-26 23:45:05 [2024-12-26 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110304', 'tblTempUsageDetail_20' ) start [2024-12-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110304', 'tblTempUsageDetail_20' ) end [2024-12-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110304', 'tblTempVendorCDR_20' ) start [2024-12-26 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110304', 'tblTempVendorCDR_20' ) end [2024-12-26 23:45:19] Production.INFO: ProcessCDR(1,14110304,1,1,2) [2024-12-26 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110304', 'tblTempUsageDetail_20' ) start [2024-12-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110304', 'tblTempUsageDetail_20' ) end [2024-12-26 23:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:45:22] Production.INFO: ==14729== Releasing lock... [2024-12-26 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:45:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:46:04 [end_date_ymd] => 2024-12-26 23:46:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:46:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:46:17] Production.INFO: count ==1039 [2024-12-26 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:46:04 - End Time 2024-12-26 23:46:04 [2024-12-26 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110309', 'tblTempUsageDetail_20' ) start [2024-12-26 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110309', 'tblTempUsageDetail_20' ) end [2024-12-26 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110309', 'tblTempVendorCDR_20' ) start [2024-12-26 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110309', 'tblTempVendorCDR_20' ) end [2024-12-26 23:46:17] Production.INFO: ProcessCDR(1,14110309,1,1,2) [2024-12-26 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110309', 'tblTempUsageDetail_20' ) start [2024-12-26 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110309', 'tblTempUsageDetail_20' ) end [2024-12-26 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:46:20] Production.INFO: ==14803== Releasing lock... [2024-12-26 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:46:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:47:05 [end_date_ymd] => 2024-12-26 23:47:05 [RateCDR] => 1 ) [2024-12-26 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:47:05' and `end` < '2024-12-26 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:47:20] Production.INFO: count ==1041 [2024-12-26 23:47:20] Production.ERROR: pbx CDR StartTime 2024-12-26 20:47:05 - End Time 2024-12-26 23:47:05 [2024-12-26 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110314', 'tblTempUsageDetail_20' ) start [2024-12-26 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110314', 'tblTempUsageDetail_20' ) end [2024-12-26 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110314', 'tblTempVendorCDR_20' ) start [2024-12-26 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110314', 'tblTempVendorCDR_20' ) end [2024-12-26 23:47:20] Production.INFO: ProcessCDR(1,14110314,1,1,2) [2024-12-26 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110314', 'tblTempUsageDetail_20' ) start [2024-12-26 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110314', 'tblTempUsageDetail_20' ) end [2024-12-26 23:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:47:23] Production.INFO: ==14883== Releasing lock... [2024-12-26 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:47:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:48:04 [end_date_ymd] => 2024-12-26 23:48:04 [RateCDR] => 1 ) [2024-12-26 23:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:48:04' and `end` < '2024-12-26 23:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:48:17] Production.INFO: count ==1038 [2024-12-26 23:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:48:04 - End Time 2024-12-26 23:48:04 [2024-12-26 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110319', 'tblTempUsageDetail_20' ) start [2024-12-26 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110319', 'tblTempUsageDetail_20' ) end [2024-12-26 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110319', 'tblTempVendorCDR_20' ) start [2024-12-26 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110319', 'tblTempVendorCDR_20' ) end [2024-12-26 23:48:17] Production.INFO: ProcessCDR(1,14110319,1,1,2) [2024-12-26 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110319', 'tblTempUsageDetail_20' ) start [2024-12-26 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110319', 'tblTempUsageDetail_20' ) end [2024-12-26 23:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:48:20] Production.INFO: ==14959== Releasing lock... [2024-12-26 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:48:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:49:04 [end_date_ymd] => 2024-12-26 23:49:04 [RateCDR] => 1 ) [2024-12-26 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:49:04' and `end` < '2024-12-26 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:49:17] Production.INFO: count ==1040 [2024-12-26 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:49:04 - End Time 2024-12-26 23:49:04 [2024-12-26 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110324', 'tblTempUsageDetail_20' ) start [2024-12-26 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110324', 'tblTempUsageDetail_20' ) end [2024-12-26 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110324', 'tblTempVendorCDR_20' ) start [2024-12-26 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110324', 'tblTempVendorCDR_20' ) end [2024-12-26 23:49:17] Production.INFO: ProcessCDR(1,14110324,1,1,2) [2024-12-26 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110324', 'tblTempUsageDetail_20' ) start [2024-12-26 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110324', 'tblTempUsageDetail_20' ) end [2024-12-26 23:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:49:20] Production.INFO: ==15031== Releasing lock... [2024-12-26 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:49:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:50:06 [end_date_ymd] => 2024-12-26 23:50:06 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:50:06' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:50:18] Production.INFO: count ==1041 [2024-12-26 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:50:06 - End Time 2024-12-26 23:50:06 [2024-12-26 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110330', 'tblTempUsageDetail_20' ) start [2024-12-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110330', 'tblTempUsageDetail_20' ) end [2024-12-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110330', 'tblTempVendorCDR_20' ) start [2024-12-26 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110330', 'tblTempVendorCDR_20' ) end [2024-12-26 23:50:18] Production.INFO: ProcessCDR(1,14110330,1,1,2) [2024-12-26 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110330', 'tblTempUsageDetail_20' ) start [2024-12-26 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110330', 'tblTempUsageDetail_20' ) end [2024-12-26 23:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:50:23] Production.INFO: ==15107== Releasing lock... [2024-12-26 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:50:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:51:04 [end_date_ymd] => 2024-12-26 23:51:04 [RateCDR] => 1 ) [2024-12-26 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:51:04' and `end` < '2024-12-26 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:51:18] Production.INFO: count ==1053 [2024-12-26 23:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:51:04 - End Time 2024-12-26 23:51:04 [2024-12-26 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110335', 'tblTempUsageDetail_20' ) start [2024-12-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110335', 'tblTempUsageDetail_20' ) end [2024-12-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110335', 'tblTempVendorCDR_20' ) start [2024-12-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110335', 'tblTempVendorCDR_20' ) end [2024-12-26 23:51:18] Production.INFO: ProcessCDR(1,14110335,1,1,2) [2024-12-26 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110335', 'tblTempUsageDetail_20' ) start [2024-12-26 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110335', 'tblTempUsageDetail_20' ) end [2024-12-26 23:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:51:22] Production.INFO: ==15190== Releasing lock... [2024-12-26 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:51:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:52:05 [end_date_ymd] => 2024-12-26 23:52:05 [RateCDR] => 1 ) [2024-12-26 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 20:52:05' and `end` < '2024-12-26 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-26 23:52:19] Production.INFO: count ==1051 [2024-12-26 23:52:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:52:05 - End Time 2024-12-26 23:52:05 [2024-12-26 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110340', 'tblTempUsageDetail_20' ) start [2024-12-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110340', 'tblTempUsageDetail_20' ) end [2024-12-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110340', 'tblTempVendorCDR_20' ) start [2024-12-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110340', 'tblTempVendorCDR_20' ) end [2024-12-26 23:52:19] Production.INFO: ProcessCDR(1,14110340,1,1,2) [2024-12-26 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110340', 'tblTempUsageDetail_20' ) start [2024-12-26 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110340', 'tblTempUsageDetail_20' ) end [2024-12-26 23:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:52:22] Production.INFO: ==15266== Releasing lock... [2024-12-26 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:52:22] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:53:05 [end_date_ymd] => 2024-12-26 23:53:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:53:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:53:18] Production.INFO: count ==1047 [2024-12-26 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:53:05 - End Time 2024-12-26 23:53:05 [2024-12-26 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110345', 'tblTempUsageDetail_20' ) start [2024-12-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110345', 'tblTempUsageDetail_20' ) end [2024-12-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110345', 'tblTempVendorCDR_20' ) start [2024-12-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110345', 'tblTempVendorCDR_20' ) end [2024-12-26 23:53:18] Production.INFO: ProcessCDR(1,14110345,1,1,2) [2024-12-26 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110345', 'tblTempUsageDetail_20' ) start [2024-12-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110345', 'tblTempUsageDetail_20' ) end [2024-12-26 23:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:53:21] Production.INFO: ==15342== Releasing lock... [2024-12-26 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:53:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:54:05 [end_date_ymd] => 2024-12-26 23:54:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:54:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:54:17] Production.INFO: count ==1042 [2024-12-26 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:54:05 - End Time 2024-12-26 23:54:05 [2024-12-26 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110350', 'tblTempUsageDetail_20' ) start [2024-12-26 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110350', 'tblTempUsageDetail_20' ) end [2024-12-26 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110350', 'tblTempVendorCDR_20' ) start [2024-12-26 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110350', 'tblTempVendorCDR_20' ) end [2024-12-26 23:54:17] Production.INFO: ProcessCDR(1,14110350,1,1,2) [2024-12-26 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110350', 'tblTempUsageDetail_20' ) start [2024-12-26 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110350', 'tblTempUsageDetail_20' ) end [2024-12-26 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:54:20] Production.INFO: ==15424== Releasing lock... [2024-12-26 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:54:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:55:05 [end_date_ymd] => 2024-12-26 23:55:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:55:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:55:17] Production.INFO: count ==1042 [2024-12-26 23:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:55:05 - End Time 2024-12-26 23:55:05 [2024-12-26 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110355', 'tblTempUsageDetail_20' ) start [2024-12-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110355', 'tblTempUsageDetail_20' ) end [2024-12-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110355', 'tblTempVendorCDR_20' ) start [2024-12-26 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110355', 'tblTempVendorCDR_20' ) end [2024-12-26 23:55:18] Production.INFO: ProcessCDR(1,14110355,1,1,2) [2024-12-26 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110355', 'tblTempUsageDetail_20' ) start [2024-12-26 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110355', 'tblTempUsageDetail_20' ) end [2024-12-26 23:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:55:21] Production.INFO: ==15499== Releasing lock... [2024-12-26 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:55:21] Production.INFO: 36 MB #Memory Used# [2024-12-26 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:56:05 [end_date_ymd] => 2024-12-26 23:56:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:56:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:56:18] Production.INFO: count ==1040 [2024-12-26 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 20:56:05 - End Time 2024-12-26 23:56:05 [2024-12-26 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110360', 'tblTempUsageDetail_20' ) start [2024-12-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110360', 'tblTempUsageDetail_20' ) end [2024-12-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110360', 'tblTempVendorCDR_20' ) start [2024-12-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110360', 'tblTempVendorCDR_20' ) end [2024-12-26 23:56:18] Production.INFO: ProcessCDR(1,14110360,1,1,2) [2024-12-26 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110360', 'tblTempUsageDetail_20' ) start [2024-12-26 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110360', 'tblTempUsageDetail_20' ) end [2024-12-26 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:56:21] Production.INFO: ==15577== Releasing lock... [2024-12-26 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:56:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-26 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:57:05 [end_date_ymd] => 2024-12-26 23:57:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:57:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:57:17] Production.INFO: count ==1039 [2024-12-26 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:57:05 - End Time 2024-12-26 23:57:05 [2024-12-26 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110365', 'tblTempUsageDetail_20' ) start [2024-12-26 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110365', 'tblTempUsageDetail_20' ) end [2024-12-26 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110365', 'tblTempVendorCDR_20' ) start [2024-12-26 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110365', 'tblTempVendorCDR_20' ) end [2024-12-26 23:57:17] Production.INFO: ProcessCDR(1,14110365,1,1,2) [2024-12-26 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110365', 'tblTempUsageDetail_20' ) start [2024-12-26 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110365', 'tblTempUsageDetail_20' ) end [2024-12-26 23:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:57:20] Production.INFO: ==15688== Releasing lock... [2024-12-26 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:57:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:58:04 [end_date_ymd] => 2024-12-26 23:58:04 [RateCDR] => 1 ) [2024-12-26 23: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` >= '2024-12-26 20:58:04' and `end` < '2024-12-26 23: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 ,'') [2024-12-26 23:58:16] Production.INFO: count ==1038 [2024-12-26 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 20:58:04 - End Time 2024-12-26 23:58:04 [2024-12-26 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110370', 'tblTempUsageDetail_20' ) start [2024-12-26 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110370', 'tblTempUsageDetail_20' ) end [2024-12-26 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110370', 'tblTempVendorCDR_20' ) start [2024-12-26 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110370', 'tblTempVendorCDR_20' ) end [2024-12-26 23:58:17] Production.INFO: ProcessCDR(1,14110370,1,1,2) [2024-12-26 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110370', 'tblTempUsageDetail_20' ) start [2024-12-26 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110370', 'tblTempUsageDetail_20' ) end [2024-12-26 23:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:58:20] Production.INFO: ==15779== Releasing lock... [2024-12-26 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:58:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-26 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 20:59:05 [end_date_ymd] => 2024-12-26 23:59:05 [RateCDR] => 1 ) [2024-12-26 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` >= '2024-12-26 20:59:05' and `end` < '2024-12-26 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 ,'') [2024-12-26 23:59:18] Production.INFO: count ==1037 [2024-12-26 23:59:19] Production.ERROR: pbx CDR StartTime 2024-12-26 20:59:05 - End Time 2024-12-26 23:59:05 [2024-12-26 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110375', 'tblTempUsageDetail_20' ) start [2024-12-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110375', 'tblTempUsageDetail_20' ) end [2024-12-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110375', 'tblTempVendorCDR_20' ) start [2024-12-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110375', 'tblTempVendorCDR_20' ) end [2024-12-26 23:59:19] Production.INFO: ProcessCDR(1,14110375,1,1,2) [2024-12-26 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-26 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-26 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110375', 'tblTempUsageDetail_20' ) start [2024-12-26 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110375', 'tblTempUsageDetail_20' ) end [2024-12-26 23:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-26 23:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-26 23:59:22] Production.INFO: ==15897== Releasing lock... [2024-12-26 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-26 23:59:22] Production.INFO: 35.75 MB #Memory Used#